Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
hebelsan committed May 3, 2024
1 parent 4aaa044 commit 21e9bb4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/integration/infrastructure/infrastructure_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -773,10 +773,12 @@ func verifyCreation(
address, err := computeService.Addresses.Get(project, *region, natIPName.Name).Context(ctx).Do()
Expect(err).NotTo(HaveOccurred())
ipAddresses[address.SelfLink] = true
// egress cidr
ipCIDR := fmt.Sprintf("%s/32", address.Address)
Expect(infra.Status.EgressCIDRs).Should(ContainElement(ipCIDR))
}
for _, natIP := range routerNAT.NatIps {
Expect(ipAddresses).Should(HaveKey(natIP))
Expect(infra.Status.EgressCIDRs).Should(ContainElement(fmt.Sprintf("%s/32", natIP)))
}
} else {
Expect(routerNAT.NatIpAllocateOption).To(Equal("AUTO_ONLY"))
Expand Down

0 comments on commit 21e9bb4

Please sign in to comment.