Skip to content

Commit

Permalink
Fix e2e
Browse files Browse the repository at this point in the history
  • Loading branch information
zarvd committed Nov 13, 2023
1 parent 919595b commit 0052168
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/e2e/network/network_security_group.go
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,7 @@ var _ = Describe("Network security group", Label(utils.TestSuiteLabelNSG), func(
Expect(err).NotTo(HaveOccurred())

By("Waiting for the service to be exposed")
_, err = utils.WaitServiceExposure(cs, ns.Name, serviceName, []*string{})
_, err = utils.WaitServiceExposure(cs, ns.Name, serviceName, []string{})
Expect(err).NotTo(HaveOccurred())

By("Validating if the corresponding IP prefix existing in nsg")
Expand All @@ -431,13 +431,13 @@ var _ = Describe("Network security group", Label(utils.TestSuiteLabelNSG), func(

for _, nsg := range nsgs {

rules := nsg.Properties.SecurityRules
rules := nsg.SecurityRules
if rules == nil {
continue
}
for _, rule := range rules {
if rule.Properties.SourceAddressPrefix != nil {
sources = append(sources, *rule.Properties.SourceAddressPrefix)
for _, rule := range *rules {
if rule.SourceAddressPrefix != nil {
sources = append(sources, *rule.SourceAddressPrefix)
}
}
}
Expand Down

0 comments on commit 0052168

Please sign in to comment.