Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions v1/providers/sfcompute/scripts/instancetype_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down Expand Up @@ -50,19 +50,19 @@ 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)
}

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)
Expand Down
2 changes: 1 addition & 1 deletion v1/providers/sfcompute/validation_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down