Bump go.mondoo.com/cnspec/v9 from 9.5.1 to 9.6.0 (#926) #2273
Report OLM test results ❌
❌ integration-tests.xml
16 tests were completed in 1401s with 11 passed, 5 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
go.mondoo.com/mondoo-operator/tests/integration | 11✅ | 5❌ | 1390s |
❌ go.mondoo.com/mondoo-operator/tests/integration
❌ TestAuditConfigCustomNamespaceSuite/TestReconcile_KubernetesResources
=== RUN TestAuditConfigCustomNamespaceSuite/TestReconcile_KubernetesResources
❌ TestAuditConfigCustomNamespaceSuite
=== RUN TestAuditConfigCustomNamespaceSuite
❌ TestAuditConfigSuite/TestReconcile_AdmissionEnforcing
=== RUN TestAuditConfigSuite/TestReconcile_AdmissionEnforcing
❌ TestAuditConfigSuite/TestReconcile_KubernetesResources
=== RUN TestAuditConfigSuite/TestReconcile_KubernetesResources
❌ TestAuditConfigSuite
=== RUN TestAuditConfigSuite
✅ TestAuditConfigCustomNamespaceSuite/TestReconcile_Admission
✅ TestAuditConfigCustomNamespaceSuite/TestReconcile_AdmissionMissingSA
✅ TestAuditConfigCustomNamespaceSuite/TestReconcile_Containers
✅ TestAuditConfigCustomNamespaceSuite/TestReconcile_Nodes
✅ TestAuditConfigSuite/TestReconcile_AdmissionEnforcingScaleDownScanApi
✅ TestAuditConfigSuite/TestReconcile_AdmissionPermissive
✅ TestAuditConfigSuite/TestReconcile_AllDisabled
✅ TestAuditConfigSuite/TestReconcile_Containers
✅ TestAuditConfigSuite/TestReconcile_Nodes
✅ TestAuditConfigUpgradeSuite/TestUpgradePreviousReleaseToLatest
✅ TestAuditConfigUpgradeSuite
Annotations
Check failure on line 0 in integration-tests.xml
github-actions / Report OLM test results
go.mondoo.com/mondoo-operator/tests/integration ► TestAuditConfigCustomNamespaceSuite/TestReconcile_KubernetesResources
Failed test found in:
integration-tests.xml
Error:
=== RUN TestAuditConfigCustomNamespaceSuite/TestReconcile_KubernetesResources
Raw output
=== RUN TestAuditConfigCustomNamespaceSuite/TestReconcile_KubernetesResources
2023-11-08T12:19:27.517Z INFO integration/audit_config_base_suite.go:158 Create an audit config that enables only workloads scanning.
2023-11-08T12:19:27.531Z INFO integration/audit_config_base_suite.go:659 Waiting for scan API Pod to become ready.
2023-11-08T12:19:39.566Z INFO integration/audit_config_base_suite.go:663 Scan API Pod is ready.
2023-11-08T12:19:39.568Z INFO integration/audit_config_base_suite.go:680 Waiting for good condition of Scan API
2023-11-08T12:19:39.576Z INFO integration/audit_config_base_suite.go:169 Make sure the Mondoo k8s resources scan CronJob is created.
audit_config_base_suite.go:203:
Error Trace: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:203
/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_namespace_test.go:84
Error: Not equal:
expected: 24
actual : 25
Test: TestAuditConfigCustomNamespaceSuite/TestReconcile_KubernetesResources
Messages: Cluster asset was sent upstream.
audit_config_base_suite.go:206:
Error Trace: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:206
/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_namespace_test.go:84
Error: elements differ
extra elements in list A:
([]interface {}) (len=8) {
(string) (len=25) "kube-system/etcd-minikube",
(string) (len=35) "kube-system/kube-apiserver-minikube",
(string) (len=44) "kube-system/kube-controller-manager-minikube",
(string) (len=28) "kube-system/kube-proxy-rdz4q",
(string) (len=35) "kube-system/kube-scheduler-minikube",
(string) (len=31) "kube-system/storage-provisioner",
(string) (len=63) "mondoo-operator/ghcr-io-mondoohq-mondoo-operator-bundle-v1-17-2",
(string) (len=22) "kube-system/kube-proxy"
}
listA:
([]string) (len=33) {
(string) (len=36) "kube-system/coredns-5dd5756b68-cfjhp",
(string) (len=25) "kube-system/etcd-minikube",
(string) (len=35) "kube-system/kube-apiserver-minikube",
(string) (len=44) "kube-system/kube-controller-manager-minikube",
(string) (len=28) "kube-system/kube-proxy-rdz4q",
(string) (len=35) "kube-system/kube-scheduler-minikube",
(string) (len=31) "kube-system/storage-provisioner",
(string) (len=79) "mondoo-operator/ceebbf7a6ae509237c37527567c5138333236c8a7a4bb688b3e44de2bc9bgjt",
(string) (len=63) "mondoo-operator/ghcr-io-mondoohq-mondoo-operator-bundle-v1-17-2",
(string) (len=67) "mondoo-operator/mondoo-operator-controller-manager-59c4cf5d6c-w2pzc",
(string) (len=37) "olm/catalog-operator-7676fc5cc8-28x9l",
(string) (len=33) "olm/olm-operator-7c897bd449-6mbjp",
(string) (len=31) "olm/operatorhubio-catalog-j6824",
(string) (len=33) "olm/packageserver-7d6fb48bb-kp722",
(string) (len=33) "olm/packageserver-7d6fb48bb-lwvg9",
(string) (len=52) "some-namespace/mondoo-client-k8s-scan-28324100-hwsnk",
(string) (len=53) "some-namespace/mondoo-client-scan-api-6675c5594-w5km8",
(string) (len=79) "mondoo-operator/ceebbf7a6ae509237c37527567c5138333236c8a7a4bb688b3e44de2bc5e78d",
(string) (len=46) "some-namespace/mondoo-client-k8s-scan-28324100",
(string) (len=37) "some-namespace/mondoo-client-k8s-scan",
(string) (len=19) "kube-system/coredns",
(string) (len=50) "mondoo-operator/mondoo-operator-controller-manager",
(string) (len=20) "olm/catalog-operator",
(string) (len=16) "olm/olm-operator",
(string) (len=17) "olm/packageserver",
(string) (len=37) "some-namespace/mondoo-client-scan-api",
(string) (len=22) "kube-system/kube-proxy",
(string) (len=30) "kube-system/coredns-5dd5756b68",
(string) (len=61) "mondoo-operator/mondoo-operator-controller-manager-59c4cf5d6c",
(string) (len=31) "olm/catalog-operator-7676fc5cc8",
(string) (len=27) "olm/olm-operator-7c897bd449",
(string) (len=27) "olm/packageserver-7d6fb48bb",
(string) (len=47) "some-namespace/mondoo-client-scan-api-6675c5594"
}
listB:
([]string) (len=25) {
(string) (len=37) "some-namespace/mondoo-client-scan-api",
(string) (len=47) "some-namespace/mondoo-client-scan-api-6675c5594",
(string) (len=53) "some-namespace/mondoo-client-scan-api-6675c5594-w5km8",
(string) (len=33) "olm/packageserver-7d6fb48bb-lwvg9",
(string) (len=33) "olm/packageserver-7d6fb48bb-kp722",
(string) (len=61) "mondoo-operator/mondoo-operator-controller-manager-59c4cf5d6c",
(string) (len=37) "some-namespace/mondoo-client-k8s-scan",
(string) (len=46) "some-namespace/mondoo-client-k8s-scan-28324100",
(string) (len=52) "some-namespace/mondoo-client-k8s-scan-28324100-hwsnk",
(string) (len=67) "mondoo-operator/mondoo-operator-controller-manager-59c4cf5d6c-w2pzc",
(string) (len=31) "olm/operatorhubio-catalog-j6824",
(string) (len=37) "olm/catalog-operator-7676fc5cc8-28x9l",
(string) (len=33) "olm/olm-operator-7c897bd449-6mbjp",
(string) (len=79) "mondoo-operator/ceebbf7a6ae509237c37527567c5138333236c8a7a4bb688b3e44de2bc5e78d",
(string) (len=79) "mondoo-operator/ceebbf7a6ae509237c37527567c5138333236c8a7a4bb688b3e44de2bc9bgjt",
(string) (len=27) "olm/packageserver-7d6fb48bb",
(string) (len=31) "olm/catalog-operator-7676fc5cc8",
(string) (len=27) "olm/olm-operator-7c897bd449",
(string) (len=30) "kube-system/coredns-5dd5756b68",
(string) (len=36) "kube-system/coredns-5dd5756b68-cfjhp",
(string) (len=17) "olm/packageserver",
(string) (len=19) "kube-system/coredns",
(string) (len=20) "olm/catalog-operator",
(string) (len=16) "olm/olm-operator",
(string) (len=50) "mondoo-operator/mondoo-operator-controller-manager"
}
Test: TestAuditConfigCustomNamespaceSuite/TestReconcile_KubernetesResources
Messages: Workloads were not sent upstream.
2023-11-08T12:22:53.221Z INFO installer/installer.go:185 gathering all logs from the test
2023-11-08T12:22:53.221Z INFO utils/k8s_helper.go:256 Gathering logs for all pods in namespace some-namespace
2023-11-08T12:22:53.231Z DEBUG utils/k8s_helper.go:461 created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/TestReconcile_KubernetesResources_some-namespace_mondoo-client-k8s-scan-28324100-hwsnk_1699446173.log
2023-11-08T12:22:53.265Z DEBUG utils/k8s_helper.go:461 created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/TestReconcile_KubernetesResources_some-namespace_mondoo-client-scan-api-6675c5594-w5km8_1699446173.log
2023-11-08T12:22:53.284Z INFO utils/k8s_helper.go:267 Gathering pod describe for all pods in namespace some-namespace
2023-11-08T12:22:53.292Z DEBUG utils/k8s_helper.go:461 created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/some-namespace_describe_TestReconcile_KubernetesResources_1699446173.log
2023-11-08T12:22:53.292Z DEBUG utils/executor.go:271 Running command: kubectl get pod -o yaml -n some-namespace mondoo-client-k8s-scan-28324100-hwsnk
2023-11-08T12:22:53.402Z DEBUG utils/executor.go:271 Running command: kubectl get pod -o yaml -n some-namespace mondoo-client-scan-api-6675c5594-w5km8
2023-11-08T12:22:53.523Z DEBUG utils/executor.go:271 Running command: kubectl get deployment -o yaml -n some-namespace mondoo-client-scan-api
2023-11-08T12:22:53.623Z DEBUG utils/executor.go:271 Running command: kubectl get mondooauditconfig -o yaml -n some-namespace mondoo-client
2023-11-08T12:22:53.722Z INFO utils/k8s_helper.go:308 Gathering events in namespace "some-namespace"
2023-11-08T12:22:53.722Z DEBUG utils/k8s_helper.go:461 created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/some-namespace_events_TestReconcile_KubernetesResources_1699446173.log
2023-11-08T12:22:53.722Z DEBUG utils/executor.go:271 Running command: kubectl get events -n some-namespace
2023-11-08T12:22:53.836Z INFO installer/installer.go:185 gathering all logs from the test
2023-11-08T12:22:53.836Z INFO utils/k8s_helper.go:256 Gathering logs for all pods in namespace mondoo-operator
2023-11-08T12:22:53.847Z DEBUG utils/k8s_helper.go:461 created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/TestReconcile_KubernetesResources_mondoo-operator_ceebbf7a6ae509237c37527567c5138333236c8a7a4bb688b3e44de2bc9bgjt_1699446173.log
2023-11-08T12:22:53.889Z DEBUG utils/k8s_helper.go:461 created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/TestReconcile_KubernetesResources_mondoo-operator_ghcr-io-mondoohq-mondoo-operator-bundle-v1-17-2_1699446173.log
2023-11-08T12:22:53.898Z DEBUG utils/k8s_helper.go:461 created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/TestReconcile_KubernetesResources_mondoo-operator_ghcr-io-mondoohq-mondoo-operator-bundle-v1-17-2_previous_1699446173.log
2023-11-08T12:22:53.904Z DEBUG utils/executor.go:271 Running command: kubectl -n mondoo-operator logs ghcr-io-mondoohq-mondoo-operator-bundle-v1-17-2 -c registry-grpc
2023-11-08T12:22:54.031Z DEBUG utils/k8s_helper.go:461 created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/TestReconcile_KubernetesResources_mondoo-operator_mondoo-operator-controller-manager-59c4cf5d6c-w2pzc_1699446174.log
2023-11-08T12:22:54.047Z DEBUG utils/k8s_helper.go:461 created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/TestReconcile_KubernetesResources_mondoo-operator_mondoo-operator-controller-manager-59c4cf5d6c-w2pzc_previous_1699446174.log
2023-11-08T12:22:54.051Z DEBUG utils/executor.go:271 Running command: kubectl -n mondoo-operator logs mondoo-operator-controller-manager-59c4cf5d6c-w2pzc -c manager
2023-11-08T12:22:54.184Z INFO utils/k8s_helper.go:267 Gathering pod describe for all pods in namespace mondoo-operator
2023-11-08T12:22:54.189Z DEBUG utils/k8s_helper.go:461 created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/mondoo-operator_describe_TestReconcile_KubernetesResources_1699446174.log
2023-11-08T12:22:54.189Z DEBUG utils/executor.go:271 Running command: kubectl get pod -o yaml -n mondoo-operator ceebbf7a6ae509237c37527567c5138333236c8a7a4bb688b3e44de2bc9bgjt
2023-11-08T12:22:54.302Z DEBUG utils/executor.go:271 Running command: kubectl get pod -o yaml -n mondoo-operator ghcr-io-mondoohq-mondoo-operator-bundle-v1-17-2
2023-11-08T12:22:54.402Z DEBUG utils/executor.go:271 Running command: kubectl get pod -o yaml -n mondoo-operator mondoo-operator-controller-manager-59c4cf5d6c-w2pzc
2023-11-08T12:22:54.506Z DEBUG utils/executor.go:271 Running command: kubectl get deployment -o yaml -n mondoo-operator mondoo-operator-controller-manager
2023-11-08T12:22:54.631Z INFO utils/k8s_helper.go:308 Gathering events in namespace "mondoo-operator"
2023-11-08T12:22:54.632Z DEBUG utils/k8s_helper.go:461 created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/mondoo-operator_events_TestReconcile_KubernetesResources_1699446174.log
2023-11-08T12:22:54.632Z DEBUG utils/executor.go:271 Running command: kubectl get events -n mondoo-operator
2023-11-08T12:22:54.772Z INFO utils/k8s_helper.go:337 Resource k8s.mondoo.com/v1alpha2, Kind=MondooAuditConfig some-namespace/mondoo-client still exists.
2023-11-08T12:22:56.776Z INFO utils/k8s_helper.go:341 Resource k8s.mondoo.com/v1alpha2, Kind=MondooAuditConfig some-namespace/mondoo-client deleted.
2023-11-08T12:22:56.782Z INFO integration/audit_config_base_suite.go:116 Waiting for cleanup of the test cluster.
2023-11-08T12:22:56.801Z INFO integration/audit_config_base_suite.go:141 Cleanup done. Cluster should be good to go for the next test.
2023-11-08T12:22:58.025Z DEBUG utils/executor.go:271 Running command: kubectl delete pods -n default --all --wait
--- FAIL: TestAuditConfigCustomNamespaceSuite/TestReconcile_KubernetesResources (210.61s)
Check failure on line 0 in integration-tests.xml
github-actions / Report OLM test results
go.mondoo.com/mondoo-operator/tests/integration ► TestAuditConfigCustomNamespaceSuite
Failed test found in:
integration-tests.xml
Error:
=== RUN TestAuditConfigCustomNamespaceSuite
Raw output
=== RUN TestAuditConfigCustomNamespaceSuite
Using GraphQL endpoint https://api.edge.mondoo.com/query
Using org MRN //captain.api.mondoo.app/organizations/serene-lovelace-854342
2023-11-08T12:15:18.580Z INFO installer/installer.go:177 Created Мondoo client secret "mondoo-token".
2023-11-08T12:15:18.580Z INFO installer/installer.go:67 The Mondoo operator is installed externally. Skipping installation...
2023-11-08T12:15:18.580Z INFO installer/installer.go:70 Sleeping for 30 seconds to allow the token to get active
2023-11-08T12:15:48.591Z INFO integration/audit_config_namespace_test.go:34 Created test namespace.
2023-11-08T12:15:48.614Z INFO installer/installer.go:177 Created Мondoo client secret "mondoo-token".
2023-11-08T12:15:48.614Z INFO integration/audit_config_namespace_test.go:37 Created client secret in namespace "some-namespace".
2023-11-08T12:15:48.620Z INFO integration/audit_config_namespace_test.go:44 Created webhook ServiceAccount "webhook-sa" in namespace "some-namespace".
2023-11-08T12:15:48.638Z INFO integration/audit_config_namespace_test.go:51 Created service account "mondoo-sa" in namespace "some-namespace".
2023-11-08T12:15:48.651Z INFO integration/audit_config_namespace_test.go:64 Created cluster role binding "mondoo-operator-k8s-resources-scanning2".
--- FAIL: TestAuditConfigCustomNamespaceSuite (509.87s)
Check failure on line 0 in integration-tests.xml
github-actions / Report OLM test results
go.mondoo.com/mondoo-operator/tests/integration ► TestAuditConfigSuite/TestReconcile_AdmissionEnforcing
Failed test found in:
integration-tests.xml
Error:
=== RUN TestAuditConfigSuite/TestReconcile_AdmissionEnforcing
Raw output
=== RUN TestAuditConfigSuite/TestReconcile_AdmissionEnforcing
2023-11-08T12:24:21.136Z INFO integration/audit_config_base_suite.go:405 Create an audit config that enables only admission control.
2023-11-08T12:24:25.163Z INFO integration/audit_config_base_suite.go:413 Waiting for webhook Pod to become ready.
2023-11-08T12:24:39.236Z INFO integration/audit_config_base_suite.go:418 Webhook Pod is ready.
2023-11-08T12:24:39.236Z INFO integration/audit_config_base_suite.go:659 Waiting for scan API Pod to become ready.
2023-11-08T12:24:39.239Z INFO integration/audit_config_base_suite.go:663 Scan API Pod is ready.
2023-11-08T12:24:39.241Z INFO integration/audit_config_base_suite.go:680 Waiting for good condition of Scan API
2023-11-08T12:24:39.381Z INFO integration/audit_config_base_suite.go:922 Update the webhook with the CA data.
2023-11-08T12:24:39.392Z INFO integration/audit_config_base_suite.go:931 Restart the webhook pods such that it is certain the CA secret has been reloaded.
2023-11-08T12:24:51.440Z INFO integration/audit_config_base_suite.go:941 Webhook Pod is ready.
2023-11-08T12:24:51.448Z INFO integration/audit_config_base_suite.go:959 Getting endpoints for webhook.
2023-11-08T12:24:51.450Z INFO integration/audit_config_base_suite.go:965 endpoints Addresses: [{10.244.0.27 0xc000970880 &ObjectReference{Kind:Pod,Namespace:mondoo-operator,Name:mondoo-client-webhook-manager-6f65fc456b-t6wpj,UID:2bcb947a-a0bb-42a3-8d6e-602c36d78c53,APIVersion:,ResourceVersion:,FieldPath:,}}]
2023-11-08T12:24:51.450Z INFO integration/audit_config_base_suite.go:966 endpoints NotReadyAddresses: []
2023-11-08T12:24:51.450Z INFO integration/audit_config_base_suite.go:973 Wait for webhook to start working.
2023-11-08T12:24:51.459Z INFO integration/audit_config_base_suite.go:446 Waiting for Webhook to accept connections (max 120s).
2023-11-08T12:24:51.462Z INFO integration/audit_config_base_suite.go:994 Created port-forward via kubectl for webhook with pid: 31927
2023-11-08T12:24:53.512Z INFO integration/audit_config_base_suite.go:1007 Webhook is available: 200 OK
2023-11-08T12:24:53.512Z DEBUG integration/audit_config_base_suite.go:1034 Trying to stop port-forward with pid: 31927
2023-11-08T12:24:53.514Z INFO integration/audit_config_base_suite.go:449 Webhook should be working by now.
2023-11-08T12:24:53.515Z INFO integration/audit_config_base_suite.go:802 Create a Deployment which should pass. (max. 5 retries)
audit_config_base_suite.go:1071:
Error Trace: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:1071
/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:822
/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:450
/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:393
/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_test.go:52
Error: Should not be: "U"
Test: TestAuditConfigSuite/TestReconcile_AdmissionEnforcing
Messages: CI/CD job passing-deployment should not be unscored
2023-11-08T12:25:56.652Z INFO integration/audit_config_base_suite.go:824 Create a Deployment which should be denied in enforcing mode.
audit_config_base_suite.go:1071:
Error Trace: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:1071
/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:838
/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:450
/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:393
/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_test.go:52
Error: Should not be: "U"
Test: TestAuditConfigSuite/TestReconcile_AdmissionEnforcing
Messages: CI/CD job passing-deployment should not be unscored
2023-11-08T12:26:05.185Z INFO utils/k8s_helper.go:341 Resource /, Kind= mondoo-operator/passing-deployment deleted.
2023-11-08T12:26:05.187Z INFO utils/k8s_helper.go:341 Resource /, Kind= mondoo-operator/failing-deployment deleted.
2023-11-08T12:26:05.676Z INFO installer/installer.go:185 gathering all logs from the test
2023-11-08T12:26:05.676Z INFO utils/k8s_helper.go:256 Gathering logs for all pods in namespace mondoo-operator
2023-11-08T12:26:05.696Z DEBUG utils/k8s_helper.go:461 created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/TestReconcile_AdmissionEnforcing_mondoo-operator_ceebbf7a6ae509237c37527567c5138333236c8a7a4bb688b3e44de2bc9bgjt_1699446365.log
2023-11-08T12:26:05.834Z DEBUG utils/k8s_helper.go:461 created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/TestReconcile_AdmissionEnforcing_mondoo-operator_ghcr-io-mondoohq-mondoo-operator-bundle-v1-17-2_1699446365.log
2023-11-08T12:26:05.943Z DEBUG utils/k8s_helper.go:461 created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/TestReconcile_AdmissionEnforcing_mondoo-operator_ghcr-io-mondoohq-mondoo-operator-bundle-v1-17-2_previous_1699446365.log
2023-11-08T12:26:05.977Z DEBUG utils/executor.go:271 Running command: kubectl -n mondoo-operator logs ghcr-io-mondoohq-mondoo-operator-bundle-v1-17-2 -c registry-grpc
2023-11-08T12:26:06.148Z DEBUG utils/k8s_helper.go:461 created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/TestReconcile_AdmissionEnforcing_mondoo-operator_mondoo-client-scan-api-596876f77b-cggfp_1699446366.log
2023-11-08T12:26:06.173Z DEBUG utils/k8s_helper.go:461 created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/TestReconcile_AdmissionEnforcing_mondoo-operator_mondoo-client-webhook-manager-6f65fc456b-t6wpj_1699446366.log
2023-11-08T12:26:06.183Z DEBUG utils/k8s_helper.go:461 created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/TestReconcile_AdmissionEnforcing_mondoo-operator_mondoo-operator-controller-manager-59c4cf5d6c-w2pzc_1699446366.log
2023-11-08T12:26:06.252Z DEBUG utils/k8s_helper.go:461 created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/TestReconcile_AdmissionEnforcing_mondoo-operator_mondoo-operator-controller-manager-59c4cf5d6c-w2pzc_previous_1699446366.log
2023-11-08T12:26:06.268Z DEBUG utils/executor.go:271 Running command: kubectl -n mondoo-operator logs mondoo-operator-controller-manager-59c4cf5d6c-w2pzc -c manager
2023-11-08T12:26:06.421Z INFO utils/k8s_helper.go:267 Gathering pod describe for all pods in namespace mondoo-operator
2023-11-08T12:26:06.429Z DEBUG utils/k8s_helper.go:461 created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/mondoo-operator_describe_TestReconcile_AdmissionEnforcing_1699446366.log
2023-11-08T12:26:06.429Z DEBUG utils/executor.go:271 Running command: kubectl get pod -o yaml -n mondoo-operator ceebbf7a6ae509237c37527567c5138333236c8a7a4bb688b3e44de2bc9bgjt
2023-11-08T12:26:06.594Z DEBUG utils/executor.go:271 Running command: kubectl get pod -o yaml -n mondoo-operator ghcr-io-mondoohq-mondoo-operator-bundle-v1-17-2
2023-11-08T12:26:06.744Z DEBUG utils/executor.go:271 Running command: kubectl get pod -o yaml -n mondoo-operator mondoo-client-scan-api-596876f77b-cggfp
2023-11-08T12:26:06.917Z DEBUG utils/executor.go:271 Running command: kubectl get pod -o yaml -n mondoo-operator mondoo-client-webhook-manager-6f65fc456b-t6wpj
2023-11-08T12:26:07.065Z DEBUG utils/executor.go:271 Running command: kubectl get pod -o yaml -n mondoo-operator mondoo-operator-controller-manager-59c4cf5d6c-w2pzc
2023-11-08T12:26:07.204Z DEBUG utils/executor.go:271 Running command: kubectl get deployment -o yaml -n mondoo-operator mondoo-client-scan-api
2023-11-08T12:26:07.397Z DEBUG utils/executor.go:271 Running command: kubectl get deployment -o yaml -n mondoo-operator mondoo-client-webhook-manager
2023-11-08T12:26:07.546Z DEBUG utils/executor.go:271 Running command: kubectl get deployment -o yaml -n mondoo-operator mondoo-operator-controller-manager
2023-11-08T12:26:07.675Z DEBUG utils/executor.go:271 Running command: kubectl get mondooauditconfig -o yaml -n mondoo-operator mondoo-client
2023-11-08T12:26:07.821Z INFO utils/k8s_helper.go:308 Gathering events in namespace "mondoo-operator"
2023-11-08T12:26:07.822Z DEBUG utils/k8s_helper.go:461 created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/mondoo-operator_events_TestReconcile_AdmissionEnforcing_1699446367.log
2023-11-08T12:26:07.822Z DEBUG utils/executor.go:271 Running command: kubectl get events -n mondoo-operator
2023-11-08T12:26:07.997Z INFO utils/k8s_helper.go:337 Resource k8s.mondoo.com/v1alpha2, Kind=MondooAuditConfig mondoo-operator/mondoo-client still exists.
2023-11-08T12:26:10.000Z INFO utils/k8s_helper.go:341 Resource k8s.mondoo.com/v1alpha2, Kind=MondooAuditConfig mondoo-operator/mondoo-client deleted.
2023-11-08T12:26:10.010Z INFO integration/audit_config_base_suite.go:116 Waiting for cleanup of the test cluster.
2023-11-08T12:26:10.024Z INFO integration/audit_config_base_suite.go:141 Cleanup done. Cluster should be good to go for the next test.
2023-11-08T12:26:11.162Z DEBUG utils/executor.go:271 Running command: kubectl delete pods -n default --all --wait
--- FAIL: TestAuditConfigSuite/TestReconcile_AdmissionEnforcing (111.26s)
Check failure on line 0 in integration-tests.xml
github-actions / Report OLM test results
go.mondoo.com/mondoo-operator/tests/integration ► TestAuditConfigSuite/TestReconcile_KubernetesResources
Failed test found in:
integration-tests.xml
Error:
=== RUN TestAuditConfigSuite/TestReconcile_KubernetesResources
Raw output
=== RUN TestAuditConfigSuite/TestReconcile_KubernetesResources
2023-11-08T12:31:16.694Z INFO integration/audit_config_base_suite.go:158 Create an audit config that enables only workloads scanning.
2023-11-08T12:31:16.719Z INFO integration/audit_config_base_suite.go:659 Waiting for scan API Pod to become ready.
2023-11-08T12:31:28.756Z INFO integration/audit_config_base_suite.go:663 Scan API Pod is ready.
2023-11-08T12:31:28.758Z INFO integration/audit_config_base_suite.go:680 Waiting for good condition of Scan API
2023-11-08T12:31:28.764Z INFO integration/audit_config_base_suite.go:169 Make sure the Mondoo k8s resources scan CronJob is created.
audit_config_base_suite.go:182:
Error Trace: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:182
/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_test.go:27
Error: Should be true
Test: TestAuditConfigSuite/TestReconcile_KubernetesResources
Messages: Kubernetes resources scan CronJob did not run successfully.
audit_config_base_suite.go:203:
Error Trace: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:203
/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_test.go:27
Error: Not equal:
expected: 24
actual : 25
Test: TestAuditConfigSuite/TestReconcile_KubernetesResources
Messages: Cluster asset was sent upstream.
audit_config_base_suite.go:206:
Error Trace: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:206
/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_test.go:27
Error: elements differ
extra elements in list A:
([]interface {}) (len=8) {
(string) (len=35) "kube-system/kube-scheduler-minikube",
(string) (len=31) "kube-system/storage-provisioner",
(string) (len=79) "mondoo-operator/ceebbf7a6ae509237c37527567c5138333236c8a7a4bb688b3e44de2bc9bgjt",
(string) (len=33) "olm/packageserver-7d6fb48bb-lwvg9",
(string) (len=22) "kube-system/kube-proxy",
(string) (len=30) "kube-system/coredns-5dd5756b68",
(string) (len=61) "mondoo-operator/mondoo-operator-controller-manager-59c4cf5d6c",
(string) (len=27) "olm/olm-operator-7c897bd449"
}
listA:
([]string) (len=33) {
(string) (len=36) "kube-system/coredns-5dd5756b68-cfjhp",
(string) (len=25) "kube-system/etcd-minikube",
(string) (len=35) "kube-system/kube-apiserver-minikube",
(string) (len=44) "kube-system/kube-controller-manager-minikube",
(string) (len=28) "kube-system/kube-proxy-rdz4q",
(string) (len=35) "kube-system/kube-scheduler-minikube",
(string) (len=31) "kube-system/storage-provisioner",
(string) (len=79) "mondoo-operator/ceebbf7a6ae509237c37527567c5138333236c8a7a4bb688b3e44de2bc9bgjt",
(string) (len=63) "mondoo-operator/ghcr-io-mondoohq-mondoo-operator-bundle-v1-17-2",
(string) (len=53) "mondoo-operator/mondoo-client-k8s-scan-28324112-6hmvf",
(string) (len=55) "mondoo-operator/mondoo-client-scan-api-586f748968-xx794",
(string) (len=67) "mondoo-operator/mondoo-operator-controller-manager-59c4cf5d6c-w2pzc",
(string) (len=37) "olm/catalog-operator-7676fc5cc8-28x9l",
(string) (len=33) "olm/olm-operator-7c897bd449-6mbjp",
(string) (len=31) "olm/operatorhubio-catalog-j6824",
(string) (len=33) "olm/packageserver-7d6fb48bb-kp722",
(string) (len=33) "olm/packageserver-7d6fb48bb-lwvg9",
(string) (len=79) "mondoo-operator/ceebbf7a6ae509237c37527567c5138333236c8a7a4bb688b3e44de2bc5e78d",
(string) (len=47) "mondoo-operator/mondoo-client-k8s-scan-28324112",
(string) (len=38) "mondoo-operator/mondoo-client-k8s-scan",
(string) (len=19) "kube-system/coredns",
(string) (len=38) "mondoo-operator/mondoo-client-scan-api",
(string) (len=50) "mondoo-operator/mondoo-operator-controller-manager",
(string) (len=20) "olm/catalog-operator",
(string) (len=16) "olm/olm-operator",
(string) (len=17) "olm/packageserver",
(string) (len=22) "kube-system/kube-proxy",
(string) (len=30) "kube-system/coredns-5dd5756b68",
(string) (len=49) "mondoo-operator/mondoo-client-scan-api-586f748968",
(string) (len=61) "mondoo-operator/mondoo-operator-controller-manager-59c4cf5d6c",
(string) (len=31) "olm/catalog-operator-7676fc5cc8",
(string) (len=27) "olm/olm-operator-7c897bd449",
(string) (len=27) "olm/packageserver-7d6fb48bb"
}
listB:
([]string) (len=25) {
(string) (len=38) "mondoo-operator/mondoo-client-scan-api",
(string) (len=49) "mondoo-operator/mondoo-client-scan-api-586f748968",
(string) (len=55) "mondoo-operator/mondoo-client-scan-api-586f748968-xx794",
(string) (len=47) "mondoo-operator/mondoo-client-k8s-scan-28324112",
(string) (len=53) "mondoo-operator/mondoo-client-k8s-scan-28324112-6hmvf",
(string) (len=31) "olm/operatorhubio-catalog-j6824",
(string) (len=33) "olm/olm-operator-7c897bd449-6mbjp",
(string) (len=67) "mondoo-operator/mondoo-operator-controller-manager-59c4cf5d6c-w2pzc",
(string) (len=38) "mondoo-operator/mondoo-client-k8s-scan",
(string) (len=36) "kube-system/coredns-5dd5756b68-cfjhp",
(string) (len=19) "kube-system/coredns",
(string) (len=16) "olm/olm-operator",
(string) (len=17) "olm/packageserver",
(string) (len=50) "mondoo-operator/mondoo-operator-controller-manager",
(string) (len=20) "olm/catalog-operator",
(string) (len=25) "kube-system/etcd-minikube",
(string) (len=28) "kube-system/kube-proxy-rdz4q",
(string) (len=44) "kube-system/kube-controller-manager-minikube",
(string) (len=63) "mondoo-operator/ghcr-io-mondoohq-mondoo-operator-bundle-v1-17-2",
(string) (len=35) "kube-system/kube-apiserver-minikube",
(string) (len=27) "olm/packageserver-7d6fb48bb",
(string) (len=33) "olm/packageserver-7d6fb48bb-kp722",
(string) (len=31) "olm/catalog-operator-7676fc5cc8",
(string) (len=37) "olm/catalog-operator-7676fc5cc8-28x9l",
(string) (len=79) "mondoo-operator/ceebbf7a6ae509237c37527567c5138333236c8a7a4bb688b3e44de2bc5e78d"
}
Test: TestAuditConfigSuite/TestReconcile_KubernetesResources
Messages: Workloads were not sent upstream.
2023-11-08T12:35:02.669Z INFO integration/audit_config_base_suite.go:1061 Asset olm/packageserver-7d6fb48bb has no score
audit_config_base_suite.go:1063:
Error Trace: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:1063
/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:208
/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_test.go:27
Error: Should not be: "U"
Test: TestAuditConfigSuite/TestReconcile_KubernetesResources
Messages: Asset olm/packageserver-7d6fb48bb should not be unscored
2023-11-08T12:35:02.670Z INFO integration/audit_config_base_suite.go:1061 Asset olm/packageserver-7d6fb48bb-kp722 has no score
audit_config_base_suite.go:1063:
Error Trace: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:1063
/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:208
/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_test.go:27
Error: Should not be: "U"
Test: TestAuditConfigSuite/TestReconcile_KubernetesResources
Messages: Asset olm/packageserver-7d6fb48bb-kp722 should not be unscored
2023-11-08T12:35:02.670Z INFO integration/audit_config_base_suite.go:1061 Asset olm/catalog-operator-7676fc5cc8 has no score
audit_config_base_suite.go:1063:
Error Trace: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:1063
/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:208
/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_test.go:27
Error: Should not be: "U"
Test: TestAuditConfigSuite/TestReconcile_KubernetesResources
Messages: Asset olm/catalog-operator-7676fc5cc8 should not be unscored
2023-11-08T12:35:02.670Z INFO integration/audit_config_base_suite.go:1061 Asset olm/catalog-operator-7676fc5cc8-28x9l has no score
audit_config_base_suite.go:1063:
Error Trace: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:1063
/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:208
/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_test.go:27
Error: Should not be: "U"
Test: TestAuditConfigSuite/TestReconcile_KubernetesResources
Messages: Asset olm/catalog-operator-7676fc5cc8-28x9l should not be unscored
2023-11-08T12:35:02.670Z INFO integration/audit_config_base_suite.go:1061 Asset mondoo-operator/ceebbf7a6ae509237c37527567c5138333236c8a7a4bb688b3e44de2bc5e78d has no score
audit_config_base_suite.go:1063:
Error Trace: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:1063
/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:208
/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_test.go:27
Error: Should not be: "U"
Test: TestAuditConfigSuite/TestReconcile_KubernetesResources
Messages: Asset mondoo-operator/ceebbf7a6ae509237c37527567c5138333236c8a7a4bb688b3e44de2bc5e78d should not be unscored
2023-11-08T12:35:04.182Z INFO installer/installer.go:185 gathering all logs from the test
2023-11-08T12:35:04.182Z INFO utils/k8s_helper.go:256 Gathering logs for all pods in namespace mondoo-operator
2023-11-08T12:35:04.187Z DEBUG utils/k8s_helper.go:461 created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/TestReconcile_KubernetesResources_mondoo-operator_ceebbf7a6ae509237c37527567c5138333236c8a7a4bb688b3e44de2bc9bgjt_1699446904.log
2023-11-08T12:35:04.228Z DEBUG utils/k8s_helper.go:461 created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/TestReconcile_KubernetesResources_mondoo-operator_ghcr-io-mondoohq-mondoo-operator-bundle-v1-17-2_1699446904.log
2023-11-08T12:35:04.234Z DEBUG utils/k8s_helper.go:461 created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/TestReconcile_KubernetesResources_mondoo-operator_ghcr-io-mondoohq-mondoo-operator-bundle-v1-17-2_previous_1699446904.log
2023-11-08T12:35:04.238Z DEBUG utils/executor.go:271 Running command: kubectl -n mondoo-operator logs ghcr-io-mondoohq-mondoo-operator-bundle-v1-17-2 -c registry-grpc
2023-11-08T12:35:04.340Z DEBUG utils/k8s_helper.go:461 created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/TestReconcile_KubernetesResources_mondoo-operator_mondoo-client-k8s-scan-28324112-6hmvf_1699446904.log
2023-11-08T12:35:04.346Z DEBUG utils/k8s_helper.go:461 created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/TestReconcile_KubernetesResources_mondoo-operator_mondoo-client-scan-api-586f748968-xx794_1699446904.log
2023-11-08T12:35:04.358Z DEBUG utils/k8s_helper.go:461 created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/TestReconcile_KubernetesResources_mondoo-operator_mondoo-operator-controller-manager-59c4cf5d6c-w2pzc_1699446904.log
2023-11-08T12:35:04.409Z DEBUG utils/k8s_helper.go:461 created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/TestReconcile_KubernetesResources_mondoo-operator_mondoo-operator-controller-manager-59c4cf5d6c-w2pzc_previous_1699446904.log
2023-11-08T12:35:04.415Z DEBUG utils/executor.go:271 Running command: kubectl -n mondoo-operator logs mondoo-operator-controller-manager-59c4cf5d6c-w2pzc -c manager
2023-11-08T12:35:04.574Z INFO utils/k8s_helper.go:267 Gathering pod describe for all pods in namespace mondoo-operator
2023-11-08T12:35:04.580Z DEBUG utils/k8s_helper.go:461 created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/mondoo-operator_describe_TestReconcile_KubernetesResources_1699446904.log
2023-11-08T12:35:04.580Z DEBUG utils/executor.go:271 Running command: kubectl get pod -o yaml -n mondoo-operator ceebbf7a6ae509237c37527567c5138333236c8a7a4bb688b3e44de2bc9bgjt
2023-11-08T12:35:04.676Z DEBUG utils/executor.go:271 Running command: kubectl get pod -o yaml -n mondoo-operator ghcr-io-mondoohq-mondoo-operator-bundle-v1-17-2
2023-11-08T12:35:04.773Z DEBUG utils/executor.go:271 Running command: kubectl get pod -o yaml -n mondoo-operator mondoo-client-k8s-scan-28324112-6hmvf
2023-11-08T12:35:04.868Z DEBUG utils/executor.go:271 Running command: kubectl get pod -o yaml -n mondoo-operator mondoo-client-scan-api-586f748968-xx794
2023-11-08T12:35:04.964Z DEBUG utils/executor.go:271 Running command: kubectl get pod -o yaml -n mondoo-operator mondoo-operator-controller-manager-59c4cf5d6c-w2pzc
2023-11-08T12:35:05.055Z DEBUG utils/executor.go:271 Running command: kubectl get deployment -o yaml -n mondoo-operator mondoo-client-scan-api
2023-11-08T12:35:05.150Z DEBUG utils/executor.go:271 Running command: kubectl get deployment -o yaml -n mondoo-operator mondoo-operator-controller-manager
2023-11-08T12:35:05.251Z DEBUG utils/executor.go:271 Running command: kubectl get mondooauditconfig -o yaml -n mondoo-operator mondoo-client
2023-11-08T12:35:05.342Z INFO utils/k8s_helper.go:308 Gathering events in namespace "mondoo-operator"
2023-11-08T12:35:05.342Z DEBUG utils/k8s_helper.go:461 created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/mondoo-operator_events_TestReconcile_KubernetesResources_1699446905.log
2023-11-08T12:35:05.342Z DEBUG utils/executor.go:271 Running command: kubectl get events -n mondoo-operator
2023-11-08T12:35:05.499Z INFO utils/k8s_helper.go:337 Resource k8s.mondoo.com/v1alpha2, Kind=MondooAuditConfig mondoo-operator/mondoo-client still exists.
2023-11-08T12:35:07.502Z INFO utils/k8s_helper.go:341 Resource k8s.mondoo.com/v1alpha2, Kind=MondooAuditConfig mondoo-operator/mondoo-client deleted.
2023-11-08T12:35:07.507Z INFO integration/audit_config_base_suite.go:116 Waiting for cleanup of the test cluster.
2023-11-08T12:35:07.519Z INFO integration/audit_config_base_suite.go:141 Cleanup done. Cluster should be good to go for the next test.
2023-11-08T12:35:10.896Z DEBUG utils/executor.go:271 Running command: kubectl delete pods -n default --all --wait
--- FAIL: TestAuditConfigSuite/TestReconcile_KubernetesResources (234.29s)
Check failure on line 0 in integration-tests.xml
github-actions / Report OLM test results
go.mondoo.com/mondoo-operator/tests/integration ► TestAuditConfigSuite
Failed test found in:
integration-tests.xml
Error:
=== RUN TestAuditConfigSuite
Raw output
=== RUN TestAuditConfigSuite
Using GraphQL endpoint https://api.edge.mondoo.com/query
Using org MRN //captain.api.mondoo.app/organizations/serene-lovelace-854342
2023-11-08T12:23:50.002Z INFO installer/installer.go:177 Created Мondoo client secret "mondoo-token".
2023-11-08T12:23:50.002Z INFO installer/installer.go:67 The Mondoo operator is installed externally. Skipping installation...
2023-11-08T12:23:50.002Z INFO installer/installer.go:70 Sleeping for 30 seconds to allow the token to get active
--- FAIL: TestAuditConfigSuite (791.25s)