mirror of https://github.com/databricks/cli.git
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:
parent
26833418c3
commit
4ac1c1655b
|
@ -523,7 +523,8 @@ func TemporaryRepo(t *testing.T, w *databricks.WorkspaceClient) string {
|
||||||
func GetNodeTypeId(env string) string {
|
func GetNodeTypeId(env string) string {
|
||||||
if env == "gcp" {
|
if env == "gcp" {
|
||||||
return "n1-standard-4"
|
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 "i3.xlarge"
|
||||||
}
|
}
|
||||||
return "Standard_DS4_v2"
|
return "Standard_DS4_v2"
|
||||||
|
|
|
@ -41,6 +41,9 @@ func GetCloud(t *testing.T) Cloud {
|
||||||
return Azure
|
return Azure
|
||||||
case "gcp":
|
case "gcp":
|
||||||
return GCP
|
return GCP
|
||||||
|
// CLOUD_ENV is set to "ucws" in the "aws-prod-ucws" test environment
|
||||||
|
case "ucws":
|
||||||
|
return AWS
|
||||||
default:
|
default:
|
||||||
t.Fatalf("Unknown cloud environment: %s", env)
|
t.Fatalf("Unknown cloud environment: %s", env)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue