Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kschoche committed Apr 6, 2021
1 parent 463a11f commit af7fb65
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions connect-inject/endpoints_controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -803,6 +803,7 @@ func TestReconcileCreateEndpoint(t *testing.T) {
check, err := consulClient.Agent().ChecksWithFilter(filter)
require.NoError(t, err)
require.EqualValues(t, len(check), 1)
// Ignoring Namespace because the response from ENT includes it and OSS does not.
var ignoredFields = []string{"Node", "Definition", "Namespace"}
require.True(t, cmp.Equal(check[tt.expectedAgentHealthCheck.CheckID], tt.expectedAgentHealthCheck, cmpopts.IgnoreFields(api.AgentCheck{}, ignoredFields...)))
}
Expand Down Expand Up @@ -1582,6 +1583,7 @@ func TestReconcileUpdateEndpoint(t *testing.T) {
check, err := consulClient.Agent().ChecksWithFilter(filter)
require.NoError(t, err)
require.EqualValues(t, len(check), 1)
// Ignoring Namespace because the response from ENT includes it and OSS does not.
var ignoredFields = []string{"Node", "Definition", "Namespace"}
require.True(t, cmp.Equal(check[tt.expectedAgentHealthCheck.CheckID], tt.expectedAgentHealthCheck, cmpopts.IgnoreFields(api.AgentCheck{}, ignoredFields...)))
}
Expand Down

0 comments on commit af7fb65

Please sign in to comment.