Fix CLI nightlies on our UC workspaces (#1225)

This PR fixes some test helper functions so that they work properly on
our test environments for AWS and Azure UC workspaces.
This commit is contained in:
shreyas-goenka 2024-02-21 18:36:03 +05:30 committed by GitHub
parent 26833418c3
commit 4ac1c1655b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 1 deletions

View File

@ -523,7 +523,8 @@ func TemporaryRepo(t *testing.T, w *databricks.WorkspaceClient) string {
func GetNodeTypeId(env string) string {
if env == "gcp" {
return "n1-standard-4"
} else if env == "aws" {
} else if env == "aws" || env == "ucws" {
// aws-prod-ucws has CLOUD_ENV set to "ucws"
return "i3.xlarge"
}
return "Standard_DS4_v2"

View File

@ -41,6 +41,9 @@ func GetCloud(t *testing.T) Cloud {
return Azure
case "gcp":
return GCP
// CLOUD_ENV is set to "ucws" in the "aws-prod-ucws" test environment
case "ucws":
return AWS
default:
t.Fatalf("Unknown cloud environment: %s", env)
}