Skip to content

Commit

Permalink
Tests fail when label is not found
Browse files Browse the repository at this point in the history
  • Loading branch information
rahulreddy15 committed Feb 7, 2025
1 parent 549bfb6 commit 116b27d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pkg/integrations/legacy/runner_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -703,6 +703,8 @@ func (rs *RunnerSuite) TestPluginHandleOutputV1(c *C) {

if expectedValue, exists := expectedLabelValues[id]; exists {
c.Assert(value, Equals, expectedValue)
} else {
c.Fatalf("Expected label: %v not found in Inventory", id)
}
}
}
Expand Down Expand Up @@ -1620,6 +1622,8 @@ func TestEmitPayloadV2NoDisplayNameNoEntityName(t *testing.T) {

if expectedValue, exists := expectedLabelValues[id]; exists {
assert.EqualValues(t, value, expectedValue)
} else {
assert.Fail(t, "Expected label not found in Inventory", "Label: %s not found in inventory", id)
}
}
}
Expand All @@ -1643,6 +1647,8 @@ func TestEmitPayloadV2NoDisplayNameNoEntityName(t *testing.T) {

if expectedValue, exists := expectedLabelValues[id]; exists {
assert.EqualValues(t, value, expectedValue)
} else {
assert.Fail(t, "Expected label not found in Inventory", "Label: %s not found in inventory", id)
}
}
}
Expand Down

0 comments on commit 116b27d

Please sign in to comment.