Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
AndersonQ committed Sep 1, 2023
1 parent c58136e commit ce34086
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions testing/integration/endpoint_security_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -541,7 +541,7 @@ func agentAndEndpointAreHealthy(t *testing.T, ctx context.Context, agentClient c
}

if state.State != client.Healthy {
t.Logf("local Agent is not Healthy\n%+v", state)
t.Logf("local Agent is not Healthy: current state: %+v", state)
return false
}

Expand All @@ -550,7 +550,7 @@ func agentAndEndpointAreHealthy(t *testing.T, ctx context.Context, agentClient c
for _, comp := range state.Components {
isEndpointComponent := strings.Contains(comp.Name, "endpoint")
if comp.State != client.Healthy {
t.Logf("Component is not Healthy\n%+v", comp)
t.Logf("endpoint component is not Healthy: current state: %+v", comp)
return false
}

Expand All @@ -565,15 +565,15 @@ func agentAndEndpointAreHealthy(t *testing.T, ctx context.Context, agentClient c
}

if unit.State != client.Healthy {
t.Logf("Unit is not Healthy\n%+v", unit)
t.Logf("unit %q is not Healthy\n%+v", unit.UnitID, unit)
return false
}
}
}

// Ensure both the endpoint input and output units were found and healthy.
if !foundEndpointInputUnit || !foundEndpointOutputUnit {
t.Logf("State did not contain endpoint units!\n%+v", state)
t.Logf("State did not contain endpoint units. state: %+v", state)
return false
}

Expand Down

0 comments on commit ce34086

Please sign in to comment.