@@ -24,13 +24,14 @@ import (
2424
2525 infrav1 "sigs.k8s.io/cluster-api-provider-azure/api/v1alpha3"
2626 azure "sigs.k8s.io/cluster-api-provider-azure/cloud"
27- "sigs.k8s.io/cluster-api-provider-azure/internal/test/matchers"
27+ gomockinternal "sigs.k8s.io/cluster-api-provider-azure/internal/test/matchers/gomock "
2828
2929 "github.com/Azure/go-autorest/autorest"
3030 "github.com/Azure/go-autorest/autorest/to"
3131 "github.com/golang/mock/gomock"
3232 "github.com/google/go-cmp/cmp"
3333 . "github.com/onsi/gomega"
34+
3435 "sigs.k8s.io/cluster-api-provider-azure/cloud/services/loadbalancers/mock_loadbalancers"
3536 "sigs.k8s.io/cluster-api-provider-azure/cloud/services/networkinterfaces/mock_networkinterfaces"
3637 "sigs.k8s.io/cluster-api-provider-azure/cloud/services/publicips/mock_publicips"
@@ -140,7 +141,7 @@ func TestReconcileNetworkInterface(t *testing.T) {
140141 gomock .InOrder (
141142 mSubnet .Get (context .TODO (), "my-rg" , "my-vnet" , "my-subnet" ).Return (network.Subnet {}, nil ),
142143 mLoadBalancer .Get (context .TODO (), "my-rg" , "my-public-lb" ).Return (getFakeNodeOutboundLoadBalancer (), nil ),
143- m .CreateOrUpdate (context .TODO (), "my-rg" , "my-net-interface" , matchers .DiffEq (network.Interface {
144+ m .CreateOrUpdate (context .TODO (), "my-rg" , "my-net-interface" , gomockinternal .DiffEq (network.Interface {
144145 Location : to .StringPtr ("fake-location" ),
145146 InterfacePropertiesFormat : & network.InterfacePropertiesFormat {
146147 EnableAcceleratedNetworking : to .BoolPtr (true ),
@@ -187,7 +188,7 @@ func TestReconcileNetworkInterface(t *testing.T) {
187188 gomock .InOrder (
188189 mSubnet .Get (context .TODO (), "my-rg" , "my-vnet" , "my-subnet" ).Return (network.Subnet {}, nil ),
189190 mLoadBalancer .Get (context .TODO (), "my-rg" , "my-public-lb" ).Return (getFakeNodeOutboundLoadBalancer (), nil ),
190- m .CreateOrUpdate (context .TODO (), "my-rg" , "my-net-interface" , matchers .DiffEq (network.Interface {
191+ m .CreateOrUpdate (context .TODO (), "my-rg" , "my-net-interface" , gomockinternal .DiffEq (network.Interface {
191192 Location : to .StringPtr ("fake-location" ),
192193 InterfacePropertiesFormat : & network.InterfacePropertiesFormat {
193194 EnableAcceleratedNetworking : to .BoolPtr (true ),
@@ -261,7 +262,7 @@ func TestReconcileNetworkInterface(t *testing.T) {
261262 },
262263 },
263264 }}, nil ),
264- m .CreateOrUpdate (context .TODO (), "my-rg" , "my-net-interface" , matchers .DiffEq (network.Interface {
265+ m .CreateOrUpdate (context .TODO (), "my-rg" , "my-net-interface" , gomockinternal .DiffEq (network.Interface {
265266 Location : to .StringPtr ("fake-location" ),
266267 InterfacePropertiesFormat : & network.InterfacePropertiesFormat {
267268 EnableAcceleratedNetworking : to .BoolPtr (true ),
@@ -452,7 +453,7 @@ func TestReconcileNetworkInterface(t *testing.T) {
452453 gomock .InOrder (
453454 mSubnet .Get (context .TODO (), "my-rg" , "my-vnet" , "my-subnet" ).Return (network.Subnet {}, nil ),
454455 mLoadBalancer .Get (context .TODO (), "my-rg" , "my-public-lb" ).Return (getFakeNodeOutboundLoadBalancer (), nil ),
455- m .CreateOrUpdate (context .TODO (), "my-rg" , "my-net-interface" , matchers .DiffEq (network.Interface {
456+ m .CreateOrUpdate (context .TODO (), "my-rg" , "my-net-interface" , gomockinternal .DiffEq (network.Interface {
456457 Location : to .StringPtr ("fake-location" ),
457458 InterfacePropertiesFormat : & network.InterfacePropertiesFormat {
458459 EnableAcceleratedNetworking : to .BoolPtr (true ),
@@ -501,7 +502,7 @@ func TestReconcileNetworkInterface(t *testing.T) {
501502 gomock .InOrder (
502503 mSubnet .Get (context .TODO (), "my-rg" , "my-vnet" , "my-subnet" ).Return (network.Subnet {}, nil ),
503504 mLoadBalancer .Get (context .TODO (), "my-rg" , "my-public-lb" ).Return (getFakeNodeOutboundLoadBalancer (), nil ),
504- m .CreateOrUpdate (context .TODO (), "my-rg" , "my-net-interface" , matchers .DiffEq (network.Interface {
505+ m .CreateOrUpdate (context .TODO (), "my-rg" , "my-net-interface" , gomockinternal .DiffEq (network.Interface {
505506 Location : to .StringPtr ("fake-location" ),
506507 InterfacePropertiesFormat : & network.InterfacePropertiesFormat {
507508 EnableAcceleratedNetworking : to .BoolPtr (false ),
0 commit comments