Skip to content

Commit 79a8831

Browse files
committed
tests(apple-silicon): register cassette
1 parent 06b5c56 commit 79a8831

File tree

3 files changed

+820
-328
lines changed

3 files changed

+820
-328
lines changed

internal/services/applesilicon/server.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,7 @@ func ResourceAppleSiliconServerCreate(ctx context.Context, d *schema.ResourceDat
204204
ProjectID: d.Get("project_id").(string),
205205
EnableVpc: d.Get("enable_vpc").(bool),
206206
CommitmentType: applesilicon.CommitmentType(d.Get("commitment").(string)),
207+
Zone: zone,
207208
}
208209

209210
if bandwidth, ok := d.GetOk("public_bandwidth"); ok {
@@ -281,6 +282,7 @@ func ResourceAppleSiliconServerRead(ctx context.Context, d *schema.ResourceData,
281282
_ = d.Set("password", res.SudoPassword)
282283
_ = d.Set("username", res.SSHUsername)
283284
_ = d.Set("public_bandwidth", res.PublicBandwidthBps)
285+
_ = d.Set("zone", res.Zone)
284286

285287
listPrivateNetworks, err := privateNetworkAPI.ListServerPrivateNetworks(&applesilicon.PrivateNetworkAPIListServerPrivateNetworksRequest{
286288
Zone: res.Zone,

internal/services/applesilicon/server_test.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ func TestAccServer_Basic(t *testing.T) {
2626
name = "TestAccServerBasic"
2727
type = "M4-M"
2828
public_bandwidth = 1000000000
29-
zone="fr-par-3"
3029
}
3130
`,
3231
Check: resource.ComposeTestCheckFunc(
@@ -47,7 +46,6 @@ func TestAccServer_Basic(t *testing.T) {
4746
name = "TestAccServerBasic"
4847
type = "M4-M"
4948
public_bandwidth = 2000000000
50-
zone="fr-par-3"
5149
}
5250
`,
5351
Check: resource.ComposeTestCheckFunc(

0 commit comments

Comments
 (0)