Skip to content

Commit

Permalink
Add compliant object for listening port test
Browse files Browse the repository at this point in the history
  • Loading branch information
sebrandon1 committed Jan 13, 2025
1 parent 8ade1f6 commit c5aea60
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/networking/suite.go
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,8 @@ func testUndeclaredContainerPortsUsage(check *checksdb.Check, env *provider.Test
}
if len(listeningPorts) == 0 {
check.LogInfo("None of the containers of %q have any listening port.", put)
compliantObjects = append(compliantObjects,
testhelper.NewPodReportObject(put.Namespace, put.Name, "None of the containers have any listening ports", true))
continue
}

Expand Down

0 comments on commit c5aea60

Please sign in to comment.