Skip to content

Commit 0cdb7af

Browse files
committed
fix: golangci-run
1 parent d64ff25 commit 0cdb7af

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

internal/services/baremetal/server_test.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1032,8 +1032,6 @@ func TestAccServer_WithIPAMPrivateNetwork(t *testing.T) {
10321032
testAccCheckBaremetalServerExists(tt, "scaleway_baremetal_server.base"),
10331033
testAccCheckBaremetalServerHasPrivateNetwork(tt, "scaleway_baremetal_server.base"),
10341034
testIPAMIPs(tt, "scaleway_ipam_ip", "data.scaleway_ipam_ips.base"),
1035-
//resource.TestCheckResourceAttrPair("scaleway_ipam_ip.ip01", "address", "data.scaleway_ipam_ips.base", "ips.0.address"),
1036-
//resource.TestCheckResourceAttrPair("scaleway_ipam_ip.ip02", "address", "data.scaleway_ipam_ips.base", "ips.1.address"),
10371035
),
10381036
},
10391037
},
@@ -1270,19 +1268,23 @@ func testIPAMIPs(_ *acctest.TestTools, ipamResourcePrefix, ipamDataSource string
12701268

12711269
for i := 0; ; i++ {
12721270
key := fmt.Sprintf("ips.%d.address", i)
1271+
12731272
ip, ok := ips[key]
12741273
if !ok {
12751274
break
12761275
}
1276+
12771277
expectedIPs[ip] = true
12781278
}
12791279

12801280
for y := 1; ; y++ {
12811281
resourceName := fmt.Sprintf("%s.ip0%d", ipamResourcePrefix, y)
1282+
12821283
rs, ok := s.RootModule().Resources[resourceName]
12831284
if !ok {
12841285
break
12851286
}
1287+
12861288
ip := rs.Primary.Attributes["address"]
12871289
if !expectedIPs[ip] {
12881290
return fmt.Errorf("IP %q from resource %s not found in data source %s", ip, resourceName, ipamDataSource)

0 commit comments

Comments
 (0)