mirror of https://github.com/databricks/cli.git
22 lines
586 B
Go
22 lines
586 B
Go
package internal
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/databricks/cli/internal/acc"
|
|
"github.com/databricks/cli/internal/testcli"
|
|
"github.com/databricks/cli/internal/testutil"
|
|
"github.com/stretchr/testify/assert"
|
|
)
|
|
|
|
func TestAccStorageCredentialsListRendersResponse(t *testing.T) {
|
|
_, _ = acc.WorkspaceTest(t)
|
|
|
|
// Check if metastore is assigned for the workspace, otherwise test will fail
|
|
t.Log(testutil.GetEnvOrSkipTest(t, "TEST_METASTORE_ID"))
|
|
|
|
stdout, stderr := testcli.RequireSuccessfulRun(t, "storage-credentials", "list")
|
|
assert.NotEmpty(t, stdout)
|
|
assert.Empty(t, stderr)
|
|
}
|