diff --git a/acceptance/cmd/auth/profiles/spog-account/out.test.toml b/acceptance/cmd/auth/profiles/spog-account/out.test.toml new file mode 100644 index 0000000000..d560f1de04 --- /dev/null +++ b/acceptance/cmd/auth/profiles/spog-account/out.test.toml @@ -0,0 +1,5 @@ +Local = true +Cloud = false + +[EnvMatrix] + DATABRICKS_BUNDLE_ENGINE = ["terraform", "direct"] diff --git a/acceptance/cmd/auth/profiles/spog-account/output.txt b/acceptance/cmd/auth/profiles/spog-account/output.txt new file mode 100644 index 0000000000..f5ce0ac53c --- /dev/null +++ b/acceptance/cmd/auth/profiles/spog-account/output.txt @@ -0,0 +1,16 @@ + +=== SPOG account profile should be valid +>>> [CLI] auth profiles --output json +{ + "profiles": [ + { + "name":"spog-account", + "host":"[DATABRICKS_URL]", + "account_id":"spog-acct-123", + "workspace_id":"none", + "cloud":"aws", + "auth_type":"pat", + "valid":true + } + ] +} diff --git a/acceptance/cmd/auth/profiles/spog-account/script b/acceptance/cmd/auth/profiles/spog-account/script new file mode 100644 index 0000000000..64285ad0ec --- /dev/null +++ b/acceptance/cmd/auth/profiles/spog-account/script @@ -0,0 +1,15 @@ +sethome "./home" + +# Create a SPOG account profile: non-accounts.* host with account_id, no workspace_id. +# Before the fix, this was misclassified as WorkspaceConfig and validated with +# CurrentUser.Me, which fails on account-scoped SPOG hosts. +cat > "./home/.databrickscfg" <