@@ -24,13 +24,13 @@ func TestAccServer_Basic(t *testing.T) {
2424 {
2525 Config : `
2626 resource scaleway_apple_silicon_server main {
27- name = "test-m1 "
27+ name = "test-m2 "
2828 type = "M2-M"
2929 }
3030 ` ,
3131 Check : resource .ComposeTestCheckFunc (
3232 isServerPresent (tt , "scaleway_apple_silicon_server.main" ),
33- resource .TestCheckResourceAttr ("scaleway_apple_silicon_server.main" , "name" , "test-m1 " ),
33+ resource .TestCheckResourceAttr ("scaleway_apple_silicon_server.main" , "name" , "test-m2 " ),
3434 resource .TestCheckResourceAttr ("scaleway_apple_silicon_server.main" , "type" , "M2-M" ),
3535 // Computed
3636 resource .TestCheckResourceAttrSet ("scaleway_apple_silicon_server.main" , "ip" ),
@@ -55,11 +55,11 @@ func TestAccServer_EnableVPC(t *testing.T) {
5555 {
5656 Config : `
5757 resource "scaleway_vpc" "vpc01" {
58- name = "TestAccScalewayBaremetalIPAM "
58+ name = "TestAccServer_EnableVPC "
5959 }
6060
6161 resource "scaleway_vpc_private_network" "pn01" {
62- name = "TestAccScalewayBaremetalIPAM "
62+ name = "TestAccServer_EnableVPC "
6363 ipv4_subnet {
6464 subnet = "172.16.64.0/22"
6565 }
@@ -84,10 +84,6 @@ func TestAccServer_EnableVPC(t *testing.T) {
8484 name = "test-m2"
8585 type = "M2-M"
8686 enable_vpc = true
87- private_network {
88- id = scaleway_vpc_private_network.pn01.id
89- ipam_ip_ids = [scaleway_ipam_ip.ip01.id]
90- }
9187 }
9288 ` ,
9389 Check : resource .ComposeTestCheckFunc (
@@ -113,13 +109,14 @@ func TestAccServer_EnableVPC(t *testing.T) {
113109 Check : resource .ComposeTestCheckFunc (
114110 isServerPresent (tt , "scaleway_apple_silicon_server.main" ),
115111 resource .TestCheckResourceAttr ("scaleway_apple_silicon_server.main" , "name" , "test-m2" ),
116- resource .TestCheckResourceAttr ("scaleway_apple_silicon_server.main" , "type" , "M1 -M" ),
112+ resource .TestCheckResourceAttr ("scaleway_apple_silicon_server.main" , "type" , "M2 -M" ),
117113 // Computed
118114 resource .TestCheckResourceAttrSet ("scaleway_apple_silicon_server.main" , "ip" ),
119115 resource .TestCheckResourceAttrSet ("scaleway_apple_silicon_server.main" , "vnc_url" ),
120116 resource .TestCheckResourceAttrSet ("scaleway_apple_silicon_server.main" , "created_at" ),
121117 resource .TestCheckResourceAttrSet ("scaleway_apple_silicon_server.main" , "deletable_at" ),
122- resource .TestCheckResourceAttr ("scaleway_apple_silicon_server.main" , "vpc_status" , "vpc_disabled" ),
118+ resource .TestCheckResourceAttr ("scaleway_apple_silicon_server.main" , "vpc_status" , "vpc_updating" ),
119+ resource .TestCheckNoResourceAttr ("scaleway_apple_silicon_server.main" , "vpc_id" ),
123120 ),
124121 },
125122 },
0 commit comments