Skip to content

Commit

Permalink
Fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
p-strusiewiczsurmacki-mobica committed Jan 10, 2024
1 parent 1704f32 commit 5df5a31
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 1 addition & 3 deletions pkg/infoblox/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,7 @@ var _ = Describe("Infoblox Client", func() {
When("network view does exist", func() {
Context("CheckNetworkExists", func() {
It("should return true and no error", func() {
addr, err := netip.ParseAddr("192.168.200.0")
Expect(err).NotTo(HaveOccurred())
exists, err := testClient.CheckNetworkExists(testView, netip.PrefixFrom(addr, 28))
exists, err := testClient.CheckNetworkExists(testView, v4subnet1)
Expect(err).ToNot(HaveOccurred())
Expect(exists).To(BeTrue())
})
Expand Down
3 changes: 2 additions & 1 deletion pkg/infoblox/suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ var (
testClient *client
testView string

testNetworkIPv4 netip.Prefix
v4testIBNetwork *ibclient.NetworkContainer
v4subnet1IBNetwork *ibclient.Network
v4subnet2IBNetwork *ibclient.Network
Expand Down Expand Up @@ -44,7 +45,7 @@ func TestInfoblox(t *testing.T) {
var _ = BeforeSuite(func() {
netviewWasCreated = false
testView = getInfobloxTestEnvVar("network_view", defaultView)
testNetworkIPv4 := netip.MustParsePrefix(getInfobloxTestEnvVar("v4network", "192.168.200.0/24"))
testNetworkIPv4 = netip.MustParsePrefix(getInfobloxTestEnvVar("v4network", "192.168.200.0/24"))
testNetworkIPv6 := netip.MustParsePrefix(getInfobloxTestEnvVar("v6network", "fdf0:9824:ab5c:6f73:0000:0000:0000:0000/120"))

config, err := InfobloxConfigFromEnv()
Expand Down

0 comments on commit 5df5a31

Please sign in to comment.