mirror of https://github.com/databricks/cli.git
17 lines
460 B
Go
17 lines
460 B
Go
package internal
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/databricks/cli/internal/testcli"
|
|
"github.com/databricks/cli/internal/testutil"
|
|
"github.com/stretchr/testify/assert"
|
|
)
|
|
|
|
func TestAccAlertsCreateErrWhenNoArguments(t *testing.T) {
|
|
t.Log(testutil.GetEnvOrSkipTest(t, "CLOUD_ENV"))
|
|
|
|
_, _, err := testcli.RequireErrorRun(t, "alerts-legacy", "create")
|
|
assert.Equal(t, "please provide command input in JSON format by specifying the --json flag", err.Error())
|
|
}
|