mirror of https://github.com/databricks/cli.git
skip e2e test on aws
This commit is contained in:
parent
c55a2dcdb6
commit
7366c699af
|
@ -6,6 +6,7 @@ import (
|
||||||
|
|
||||||
"github.com/databricks/cli/internal"
|
"github.com/databricks/cli/internal"
|
||||||
"github.com/databricks/cli/internal/acc"
|
"github.com/databricks/cli/internal/acc"
|
||||||
|
"github.com/databricks/cli/internal/testutil"
|
||||||
"github.com/databricks/cli/libs/env"
|
"github.com/databricks/cli/libs/env"
|
||||||
"github.com/databricks/databricks-sdk-go/service/compute"
|
"github.com/databricks/databricks-sdk-go/service/compute"
|
||||||
"github.com/google/uuid"
|
"github.com/google/uuid"
|
||||||
|
@ -15,6 +16,10 @@ import (
|
||||||
func TestAccDeployBundleWithCluster(t *testing.T) {
|
func TestAccDeployBundleWithCluster(t *testing.T) {
|
||||||
ctx, wt := acc.WorkspaceTest(t)
|
ctx, wt := acc.WorkspaceTest(t)
|
||||||
|
|
||||||
|
if testutil.IsAWSCloud(wt.T) {
|
||||||
|
t.Skip("Skipping test for AWS cloud because it is not permitted to create clusters")
|
||||||
|
}
|
||||||
|
|
||||||
nodeTypeId := internal.GetNodeTypeId(env.Get(ctx, "CLOUD_ENV"))
|
nodeTypeId := internal.GetNodeTypeId(env.Get(ctx, "CLOUD_ENV"))
|
||||||
uniqueId := uuid.New().String()
|
uniqueId := uuid.New().String()
|
||||||
root, err := initTestTemplate(t, ctx, "clusters", map[string]any{
|
root, err := initTestTemplate(t, ctx, "clusters", map[string]any{
|
||||||
|
|
|
@ -49,3 +49,7 @@ func GetCloud(t *testing.T) Cloud {
|
||||||
}
|
}
|
||||||
return -1
|
return -1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func IsAWSCloud(t *testing.T) bool {
|
||||||
|
return GetCloud(t) == AWS
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue