diff --git a/v1/providers/sfcompute/scripts/instancetype_test.go b/v1/providers/sfcompute/scripts/instancetype_test.go index d320b3ab..8630633a 100644 --- a/v1/providers/sfcompute/scripts/instancetype_test.go +++ b/v1/providers/sfcompute/scripts/instancetype_test.go @@ -20,7 +20,7 @@ func TestGetInstanceTypes(t *testing.T) { apiKey := getAPIKey() credential := NewSFCCredential("validation-test", apiKey) - client, err := credential.MakeClient(context.Background(), "eu-north1") + client, err := credential.MakeClient(context.Background(), "richmond") if err != nil { t.Fatalf("failed to make client: %v", err) } @@ -50,7 +50,7 @@ func TestCreateInstance(t *testing.T) { apiKey := getAPIKey() credential := NewSFCCredential("validation-test", apiKey) - client, err := credential.MakeClient(context.Background(), "eu-north1") + client, err := credential.MakeClient(context.Background(), "richmond") if err != nil { t.Fatalf("failed to make client: %v", err) } @@ -58,11 +58,11 @@ func TestCreateInstance(t *testing.T) { id := uuid.New().String() instance, err := client.CreateInstance(context.Background(), v1.CreateInstanceAttrs{ - Name: "test", + Name: fmt.Print("test-%s", id), RefID: id, PublicKey: ssh.GetTestPublicKey(), InstanceType: "h100", - Location: "hayesvalley", + Location: "richmond", }) if err != nil { t.Fatalf("failed to create instance: %v", err) diff --git a/v1/providers/sfcompute/validation_test.go b/v1/providers/sfcompute/validation_test.go index cd0a12da..8b0f0e61 100644 --- a/v1/providers/sfcompute/validation_test.go +++ b/v1/providers/sfcompute/validation_test.go @@ -30,7 +30,7 @@ func TestInstanceLifecycleValidation(t *testing.T) { config := validation.ProviderConfig{ Credential: NewSFCCredential("validation-test", apiKey), - Location: "yerba", + Location: "richmond", } validation.RunInstanceLifecycleValidation(t, config)