2024-01-02 07:24:51 +00:00
|
|
|
package internal
|
|
|
|
|
|
|
|
import (
|
|
|
|
"testing"
|
|
|
|
|
|
|
|
"github.com/databricks/cli/internal/acc"
|
|
|
|
"github.com/stretchr/testify/assert"
|
|
|
|
)
|
|
|
|
|
2024-03-14 12:56:21 +00:00
|
|
|
func TestAccStorageCredentialsListRendersResponse(t *testing.T) {
|
2024-01-02 07:24:51 +00:00
|
|
|
_, _ = acc.WorkspaceTest(t)
|
2024-03-14 12:56:21 +00:00
|
|
|
|
|
|
|
// Check if metastore is assigned for the workspace, otherwise test will fail
|
|
|
|
t.Log(GetEnvOrSkipTest(t, "TEST_METASTORE_ID"))
|
|
|
|
|
2024-01-02 07:24:51 +00:00
|
|
|
stdout, stderr := RequireSuccessfulRun(t, "storage-credentials", "list")
|
|
|
|
assert.NotEmpty(t, stdout)
|
|
|
|
assert.Empty(t, stderr)
|
|
|
|
}
|