From 6862c9458ee2b744513a99c75a0a7d26ad4d5c20 Mon Sep 17 00:00:00 2001 From: Brandon Palm Date: Mon, 13 Jan 2025 12:38:34 -0600 Subject: [PATCH] Add compliant object for listening port test (#2685) --- tests/networking/suite.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/networking/suite.go b/tests/networking/suite.go index 260561e90..6f61cd94d 100644 --- a/tests/networking/suite.go +++ b/tests/networking/suite.go @@ -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 }