Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
omris94 committed Dec 23, 2024
1 parent 38a6830 commit d0e34d1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/mapper/pkg/resolvers/resolver_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1484,6 +1484,7 @@ func (s *ResolverTestSuite) TestDiscoverInternalSrcIdentityIgnoreControlPlaneIfB
// get endpoints for control plane service
endpointsTest := &v1.Endpoints{}
err = s.Mgr.GetClient().Get(context.Background(), types.NamespacedName{Name: "kubernetes", Namespace: "default"}, endpointsTest)
s.Require().NoError(err)

// Add host network pod as a target for the control plane service
pod := s.AddPodWithHostNetwork("pod", endpointsTest.Subsets[0].Addresses[0].IP, map[string]string{"app": "test"}, nil, true)
Expand All @@ -1507,7 +1508,7 @@ func (s *ResolverTestSuite) TestDiscoverInternalSrcIdentityIgnoreControlPlaneIfB
},
},
})
s.Require().Equal(err, controlPlaneBackedByAHostNetworkPodError)
s.Require().Equal(controlPlaneBackedByAHostNetworkPodError, err)
s.Require().Empty(identity)

// Test source ip is pod ip
Expand All @@ -1520,7 +1521,7 @@ func (s *ResolverTestSuite) TestDiscoverInternalSrcIdentityIgnoreControlPlaneIfB
},
},
})
s.Require().Equal(err, controlPlaneBackedByAHostNetworkPodError)
s.Require().Equal(controlPlaneBackedByAHostNetworkPodError, err)
s.Require().Empty(identity)
}

Expand Down

0 comments on commit d0e34d1

Please sign in to comment.