Skip to content

Commit

Permalink
Remove BYO NSG references and replace with Preconfigure NSG
Browse files Browse the repository at this point in the history
  • Loading branch information
nwnt committed Jan 18, 2024
1 parent 3ddcbd8 commit f0a2eb6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/validate/dynamic/dynamic_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1673,7 +1673,7 @@ func TestValidateNatGatewaysPermissionsWithCheckAccess(t *testing.T) {
}
}

func TestCheckBYONsg(t *testing.T) {
func TestCheckPreconfiguredNSG(t *testing.T) {
subnetWithNSG := &mgmtnetwork.Subnet{
SubnetPropertiesFormat: &mgmtnetwork.SubnetPropertiesFormat{
NetworkSecurityGroup: &mgmtnetwork.SecurityGroup{
Expand All @@ -1691,14 +1691,14 @@ func TestCheckBYONsg(t *testing.T) {
wantErr string
}{
{
name: "pass: all subnets are attached (BYONSG)",
name: "pass: all subnets are attached",
subnetByID: map[string]*mgmtnetwork.Subnet{
"A": subnetWithNSG,
"B": subnetWithNSG,
},
},
{
name: "fail: no subnets are attached (no longer BYONSG)",
name: "fail: no subnets are attached",
subnetByID: map[string]*mgmtnetwork.Subnet{
"A": subnetWithoutNSG,
"B": subnetWithoutNSG,
Expand Down

0 comments on commit f0a2eb6

Please sign in to comment.