Skip to content

Commit

Permalink
Update resource_ibm_is_bare_metal_server_test.go
Browse files Browse the repository at this point in the history
  • Loading branch information
uibm committed May 17, 2024
1 parent a3095d3 commit 9314c52
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions ibm/service/vpc/resource_ibm_is_bare_metal_server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -316,9 +316,7 @@ ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCKVmnMOlHKcZK8tpt3MP1lqOLAcqcJzhsvJcjscgVE
resource.TestCheckResourceAttr(
"ibm_is_bare_metal_server.testacc_bms", "zone", acc.ISZoneName),
resource.TestCheckResourceAttr(
"ibm_is_bare_metal_server.testacc_bms", "network_interfaces.0.vlan", "102"),
resource.TestCheckResourceAttr(
"ibm_is_bare_metal_server.testacc_bms", "network_interfaces.#", "4"),
"ibm_is_bare_metal_server.testacc_bms", "network_interfaces.#", "3"),
),
},
},
Expand Down Expand Up @@ -724,17 +722,21 @@ func testAccCheckIBMISBareMetalServerMixMultiNicConfig(vpcname, subnetname, sshn
zone = "%s"
keys = [ibm_is_ssh_key.testacc_sshkey.id]
primary_network_interface {
name = "primary-nic"
subnet = ibm_is_subnet.testacc_subnet.id
allowed_vlans = [102,103]
}
network_interfaces {
name = "sec-nic-vlan112"
subnet = ibm_is_subnet.testacc_subnet.id
vlan = 102
}
network_interfaces {
name = "sec-nic-pci"
subnet = ibm_is_subnet.testacc_subnet.id
}
network_interfaces {
name = "sec-nic-pci108-09"
subnet = ibm_is_subnet.testacc_subnet.id
allowed_vlans = [108,109]
Expand Down

0 comments on commit 9314c52

Please sign in to comment.