Skip to content

Bump go.mondoo.com/cnspec/v9 from 9.5.1 to 9.6.0 (#926) #2273

Bump go.mondoo.com/cnspec/v9 from 9.5.1 to 9.6.0 (#926)

Bump go.mondoo.com/cnspec/v9 from 9.5.1 to 9.6.0 (#926) #2273

This check has been archived and is scheduled for deletion. Learn more about checks retention
GitHub Actions / Report OLM test results failed Nov 8, 2023 in 1s

Report OLM test results ❌

Tests failed

❌ integration-tests.xml

16 tests were completed in 1294s with 11 passed, 5 failed and 0 skipped.

Test suite Passed Failed Skipped Time
go.mondoo.com/mondoo-operator/tests/integration 11✅ 5❌ 1285s

❌ go.mondoo.com/mondoo-operator/tests/integration

❌ TestAuditConfigCustomNamespaceSuite/TestReconcile_Containers
	=== RUN   TestAuditConfigCustomNamespaceSuite/TestReconcile_Containers
❌ TestAuditConfigCustomNamespaceSuite/TestReconcile_KubernetesResources
	=== RUN   TestAuditConfigCustomNamespaceSuite/TestReconcile_KubernetesResources
❌ TestAuditConfigCustomNamespaceSuite
	=== RUN   TestAuditConfigCustomNamespaceSuite
❌ TestAuditConfigSuite/TestReconcile_KubernetesResources
	=== RUN   TestAuditConfigSuite/TestReconcile_KubernetesResources
❌ TestAuditConfigSuite
	=== RUN   TestAuditConfigSuite
✅ TestAuditConfigCustomNamespaceSuite/TestReconcile_Admission
✅ TestAuditConfigCustomNamespaceSuite/TestReconcile_AdmissionMissingSA
✅ TestAuditConfigCustomNamespaceSuite/TestReconcile_Nodes
✅ TestAuditConfigSuite/TestReconcile_AdmissionEnforcing
✅ 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

See this annotation in the file changed.

@github-actions github-actions / Report OLM test results

go.mondoo.com/mondoo-operator/tests/integration ► TestAuditConfigCustomNamespaceSuite/TestReconcile_Containers

Failed test found in:
  integration-tests.xml
Error:
  === RUN   TestAuditConfigCustomNamespaceSuite/TestReconcile_Containers
Raw output
=== RUN   TestAuditConfigCustomNamespaceSuite/TestReconcile_Containers
2023-11-08T10:36:57.828Z	DEBUG	utils/executor.go:271	Running command: kubectl run -n default nginx --image nginx -l app.kubernetes.io/name=nginx
2023-11-08T10:36:57.949Z	DEBUG	utils/executor.go:271	Running command: kubectl run -n default redis --image redis -l app.kubernetes.io/name=redis
2023-11-08T10:37:10.116Z	INFO	integration/audit_config_base_suite.go:231	Create an audit config that enables only workloads scanning.
2023-11-08T10:37:10.137Z	INFO	integration/audit_config_base_suite.go:241	Make sure the Mondoo k8s container image scan CronJob is created.
    audit_config_base_suite.go:254: 
        	Error Trace:	/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:254
        	            				/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_namespace_test.go:94
        	Error:      	Should be true
        	Test:       	TestAuditConfigCustomNamespaceSuite/TestReconcile_Containers
        	Messages:   	Kubernetes container image scan CronJob did not run successfully.
2023-11-08T10:40:45.047Z	INFO	installer/installer.go:185	gathering all logs from the test
2023-11-08T10:40:45.047Z	INFO	utils/k8s_helper.go:256	Gathering logs for all pods in namespace some-namespace
2023-11-08T10:40:45.050Z	DEBUG	utils/k8s_helper.go:461	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/TestReconcile_Containers_some-namespace_mondoo-client-containers-scan-28323998-2hxmr_1699440045.log
2023-11-08T10:40:45.081Z	INFO	utils/k8s_helper.go:267	Gathering pod describe for all pods in namespace some-namespace
2023-11-08T10:40:45.084Z	DEBUG	utils/k8s_helper.go:461	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/some-namespace_describe_TestReconcile_Containers_1699440045.log
2023-11-08T10:40:45.084Z	DEBUG	utils/executor.go:271	Running command: kubectl get pod -o yaml -n some-namespace mondoo-client-containers-scan-28323998-2hxmr
2023-11-08T10:40:45.183Z	DEBUG	utils/executor.go:271	Running command: kubectl get mondooauditconfig -o yaml -n some-namespace mondoo-client
2023-11-08T10:40:45.279Z	INFO	utils/k8s_helper.go:308	Gathering events in namespace "some-namespace"
2023-11-08T10:40:45.279Z	DEBUG	utils/k8s_helper.go:461	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/some-namespace_events_TestReconcile_Containers_1699440045.log
2023-11-08T10:40:45.280Z	DEBUG	utils/executor.go:271	Running command: kubectl get events -n some-namespace
2023-11-08T10:40:45.375Z	INFO	installer/installer.go:185	gathering all logs from the test
2023-11-08T10:40:45.375Z	INFO	utils/k8s_helper.go:256	Gathering logs for all pods in namespace mondoo-operator
2023-11-08T10:40:45.380Z	DEBUG	utils/k8s_helper.go:461	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/TestReconcile_Containers_mondoo-operator_ceebbf7a6ae509237c37527567c5138333236c8a7a4bb688b3e44de2bckzvmg_1699440045.log
2023-11-08T10:40:45.400Z	DEBUG	utils/k8s_helper.go:461	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/TestReconcile_Containers_mondoo-operator_ghcr-io-mondoohq-mondoo-operator-bundle-v1-17-2_1699440045.log
2023-11-08T10:40:45.407Z	DEBUG	utils/k8s_helper.go:461	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/TestReconcile_Containers_mondoo-operator_ghcr-io-mondoohq-mondoo-operator-bundle-v1-17-2_previous_1699440045.log
2023-11-08T10:40:45.411Z	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-08T10:40:45.513Z	DEBUG	utils/k8s_helper.go:461	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/TestReconcile_Containers_mondoo-operator_mondoo-operator-controller-manager-84b477b8c7-dm44f_1699440045.log
2023-11-08T10:40:45.524Z	DEBUG	utils/k8s_helper.go:461	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/TestReconcile_Containers_mondoo-operator_mondoo-operator-controller-manager-84b477b8c7-dm44f_previous_1699440045.log
2023-11-08T10:40:45.528Z	DEBUG	utils/executor.go:271	Running command: kubectl -n mondoo-operator logs mondoo-operator-controller-manager-84b477b8c7-dm44f -c manager
2023-11-08T10:40:45.632Z	INFO	utils/k8s_helper.go:267	Gathering pod describe for all pods in namespace mondoo-operator
2023-11-08T10:40:45.636Z	DEBUG	utils/k8s_helper.go:461	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/mondoo-operator_describe_TestReconcile_Containers_1699440045.log
2023-11-08T10:40:45.636Z	DEBUG	utils/executor.go:271	Running command: kubectl get pod -o yaml -n mondoo-operator ceebbf7a6ae509237c37527567c5138333236c8a7a4bb688b3e44de2bckzvmg
2023-11-08T10:40:45.725Z	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-08T10:40:45.822Z	DEBUG	utils/executor.go:271	Running command: kubectl get pod -o yaml -n mondoo-operator mondoo-operator-controller-manager-84b477b8c7-dm44f
2023-11-08T10:40:45.919Z	DEBUG	utils/executor.go:271	Running command: kubectl get deployment -o yaml -n mondoo-operator mondoo-operator-controller-manager
2023-11-08T10:40:45.996Z	INFO	utils/k8s_helper.go:308	Gathering events in namespace "mondoo-operator"
2023-11-08T10:40:45.996Z	DEBUG	utils/k8s_helper.go:461	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/mondoo-operator_events_TestReconcile_Containers_1699440045.log
2023-11-08T10:40:45.996Z	DEBUG	utils/executor.go:271	Running command: kubectl get events -n mondoo-operator
2023-11-08T10:40:46.158Z	INFO	utils/k8s_helper.go:337	Resource k8s.mondoo.com/v1alpha2, Kind=MondooAuditConfig some-namespace/mondoo-client still exists.
2023-11-08T10:40:48.162Z	INFO	utils/k8s_helper.go:341	Resource k8s.mondoo.com/v1alpha2, Kind=MondooAuditConfig some-namespace/mondoo-client deleted.
2023-11-08T10:40:48.166Z	INFO	integration/audit_config_base_suite.go:116	Waiting for cleanup of the test cluster.
2023-11-08T10:40:48.176Z	INFO	integration/audit_config_base_suite.go:141	Cleanup done. Cluster should be good to go for the next test.
2023-11-08T10:40:49.614Z	DEBUG	utils/executor.go:271	Running command: kubectl delete pods -n default --all --wait
    --- FAIL: TestAuditConfigCustomNamespaceSuite/TestReconcile_Containers (232.56s)

Check failure on line 0 in integration-tests.xml

See this annotation in the file changed.

@github-actions 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-08T10:40:50.388Z	INFO	integration/audit_config_base_suite.go:158	Create an audit config that enables only workloads scanning.
2023-11-08T10:40:50.404Z	INFO	integration/audit_config_base_suite.go:659	Waiting for scan API Pod to become ready.
2023-11-08T10:40:58.428Z	INFO	integration/audit_config_base_suite.go:663	Scan API Pod is ready.
2023-11-08T10:40:58.430Z	INFO	integration/audit_config_base_suite.go:680	Waiting for good condition of Scan API
2023-11-08T10:40:58.436Z	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_namespace_test.go:84
        	Error:      	Should be true
        	Test:       	TestAuditConfigCustomNamespaceSuite/TestReconcile_KubernetesResources
        	Messages:   	Kubernetes resources scan CronJob did not run successfully.
    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=9) {
        	            	 (string) (len=35) "kube-system/kube-apiserver-minikube",
        	            	 (string) (len=28) "kube-system/kube-proxy-2zgmt",
        	            	 (string) (len=31) "kube-system/storage-provisioner",
        	            	 (string) (len=37) "olm/catalog-operator-5d76954c7b-nkh2t",
        	            	 (string) (len=33) "olm/olm-operator-75bfdb99df-hpkw4",
        	            	 (string) (len=31) "olm/operatorhubio-catalog-jb6vl",
        	            	 (string) (len=22) "kube-system/kube-proxy",
        	            	 (string) (len=31) "olm/catalog-operator-5d76954c7b",
        	            	 (string) (len=27) "olm/olm-operator-75bfdb99df"
        	            	}
        	            	
        	            	
        	            	listA:
        	            	([]string) (len=33) {
        	            	 (string) (len=36) "kube-system/coredns-787d4945fb-hdxqd",
        	            	 (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-2zgmt",
        	            	 (string) (len=35) "kube-system/kube-scheduler-minikube",
        	            	 (string) (len=31) "kube-system/storage-provisioner",
        	            	 (string) (len=79) "mondoo-operator/ceebbf7a6ae509237c37527567c5138333236c8a7a4bb688b3e44de2bckzvmg",
        	            	 (string) (len=63) "mondoo-operator/ghcr-io-mondoohq-mondoo-operator-bundle-v1-17-2",
        	            	 (string) (len=67) "mondoo-operator/mondoo-operator-controller-manager-84b477b8c7-dm44f",
        	            	 (string) (len=37) "olm/catalog-operator-5d76954c7b-nkh2t",
        	            	 (string) (len=33) "olm/olm-operator-75bfdb99df-hpkw4",
        	            	 (string) (len=31) "olm/operatorhubio-catalog-jb6vl",
        	            	 (string) (len=34) "olm/packageserver-6c87f95fcb-j5fq8",
        	            	 (string) (len=34) "olm/packageserver-6c87f95fcb-m2bgq",
        	            	 (string) (len=52) "some-namespace/mondoo-client-k8s-scan-28324001-g724t",
        	            	 (string) (len=54) "some-namespace/mondoo-client-scan-api-65c64f87d6-r5qd4",
        	            	 (string) (len=79) "mondoo-operator/ceebbf7a6ae509237c37527567c5138333236c8a7a4bb688b3e44de2bc5e78d",
        	            	 (string) (len=46) "some-namespace/mondoo-client-k8s-scan-28324001",
        	            	 (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-787d4945fb",
        	            	 (string) (len=61) "mondoo-operator/mondoo-operator-controller-manager-84b477b8c7",
        	            	 (string) (len=31) "olm/catalog-operator-5d76954c7b",
        	            	 (string) (len=27) "olm/olm-operator-75bfdb99df",
        	            	 (string) (len=28) "olm/packageserver-6c87f95fcb",
        	            	 (string) (len=48) "some-namespace/mondoo-client-scan-api-65c64f87d6"
        	            	}
        	            	
        	            	
        	            	listB:
        	            	([]string) (len=24) {
        	            	 (string) (len=54) "some-namespace/mondoo-client-scan-api-65c64f87d6-r5qd4",
        	            	 (string) (len=48) "some-namespace/mondoo-client-scan-api-65c64f87d6",
        	            	 (string) (len=37) "some-namespace/mondoo-client-scan-api",
        	            	 (string) (len=34) "olm/packageserver-6c87f95fcb-m2bgq",
        	            	 (string) (len=67) "mondoo-operator/mondoo-operator-controller-manager-84b477b8c7-dm44f",
        	            	 (string) (len=46) "some-namespace/mondoo-client-k8s-scan-28324001",
        	            	 (string) (len=52) "some-namespace/mondoo-client-k8s-scan-28324001-g724t",
        	            	 (string) (len=37) "some-namespace/mondoo-client-k8s-scan",
        	            	 (string) (len=79) "mondoo-operator/ceebbf7a6ae509237c37527567c5138333236c8a7a4bb688b3e44de2bckzvmg",
        	            	 (string) (len=36) "kube-system/coredns-787d4945fb-hdxqd",
        	            	 (string) (len=20) "olm/catalog-operator",
        	            	 (string) (len=50) "mondoo-operator/mondoo-operator-controller-manager",
        	            	 (string) (len=16) "olm/olm-operator",
        	            	 (string) (len=19) "kube-system/coredns",
        	            	 (string) (len=17) "olm/packageserver",
        	            	 (string) (len=63) "mondoo-operator/ghcr-io-mondoohq-mondoo-operator-bundle-v1-17-2",
        	            	 (string) (len=35) "kube-system/kube-scheduler-minikube",
        	            	 (string) (len=44) "kube-system/kube-controller-manager-minikube",
        	            	 (string) (len=25) "kube-system/etcd-minikube",
        	            	 (string) (len=34) "olm/packageserver-6c87f95fcb-j5fq8",
        	            	 (string) (len=61) "mondoo-operator/mondoo-operator-controller-manager-84b477b8c7",
        	            	 (string) (len=79) "mondoo-operator/ceebbf7a6ae509237c37527567c5138333236c8a7a4bb688b3e44de2bc5e78d",
        	            	 (string) (len=30) "kube-system/coredns-787d4945fb",
        	            	 (string) (len=28) "olm/packageserver-6c87f95fcb"
        	            	}
        	Test:       	TestAuditConfigCustomNamespaceSuite/TestReconcile_KubernetesResources
        	Messages:   	Workloads were not sent upstream.
2023-11-08T10:44:30.293Z	INFO	integration/audit_config_base_suite.go:1061	Asset olm/packageserver-6c87f95fcb-j5fq8 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_namespace_test.go:84
        	Error:      	Should not be: "U"
        	Test:       	TestAuditConfigCustomNamespaceSuite/TestReconcile_KubernetesResources
        	Messages:   	Asset olm/packageserver-6c87f95fcb-j5fq8 should not be unscored
2023-11-08T10:44:30.294Z	INFO	integration/audit_config_base_suite.go:1061	Asset mondoo-operator/mondoo-operator-controller-manager-84b477b8c7 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_namespace_test.go:84
        	Error:      	Should not be: "U"
        	Test:       	TestAuditConfigCustomNamespaceSuite/TestReconcile_KubernetesResources
        	Messages:   	Asset mondoo-operator/mondoo-operator-controller-manager-84b477b8c7 should not be unscored
2023-11-08T10:44:30.294Z	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_namespace_test.go:84
        	Error:      	Should not be: "U"
        	Test:       	TestAuditConfigCustomNamespaceSuite/TestReconcile_KubernetesResources
        	Messages:   	Asset mondoo-operator/ceebbf7a6ae509237c37527567c5138333236c8a7a4bb688b3e44de2bc5e78d should not be unscored
2023-11-08T10:44:30.295Z	INFO	integration/audit_config_base_suite.go:1061	Asset kube-system/coredns-787d4945fb 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_namespace_test.go:84
        	Error:      	Should not be: "U"
        	Test:       	TestAuditConfigCustomNamespaceSuite/TestReconcile_KubernetesResources
        	Messages:   	Asset kube-system/coredns-787d4945fb should not be unscored
2023-11-08T10:44:30.295Z	INFO	integration/audit_config_base_suite.go:1061	Asset olm/packageserver-6c87f95fcb 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_namespace_test.go:84
        	Error:      	Should not be: "U"
        	Test:       	TestAuditConfigCustomNamespaceSuite/TestReconcile_KubernetesResources
        	Messages:   	Asset olm/packageserver-6c87f95fcb should not be unscored
2023-11-08T10:44:30.607Z	INFO	installer/installer.go:185	gathering all logs from the test
2023-11-08T10:44:30.607Z	INFO	utils/k8s_helper.go:256	Gathering logs for all pods in namespace some-namespace
2023-11-08T10:44:30.619Z	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-28324001-g724t_1699440270.log
2023-11-08T10:44:30.639Z	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-65c64f87d6-r5qd4_1699440270.log
2023-11-08T10:44:30.659Z	INFO	utils/k8s_helper.go:267	Gathering pod describe for all pods in namespace some-namespace
2023-11-08T10:44:30.664Z	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_1699440270.log
2023-11-08T10:44:30.664Z	DEBUG	utils/executor.go:271	Running command: kubectl get pod -o yaml -n some-namespace mondoo-client-k8s-scan-28324001-g724t
2023-11-08T10:44:30.780Z	DEBUG	utils/executor.go:271	Running command: kubectl get pod -o yaml -n some-namespace mondoo-client-scan-api-65c64f87d6-r5qd4
2023-11-08T10:44:30.909Z	DEBUG	utils/executor.go:271	Running command: kubectl get deployment -o yaml -n some-namespace mondoo-client-scan-api
2023-11-08T10:44:31.056Z	DEBUG	utils/executor.go:271	Running command: kubectl get mondooauditconfig -o yaml -n some-namespace mondoo-client
2023-11-08T10:44:31.179Z	INFO	utils/k8s_helper.go:308	Gathering events in namespace "some-namespace"
2023-11-08T10:44:31.179Z	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_1699440271.log
2023-11-08T10:44:31.179Z	DEBUG	utils/executor.go:271	Running command: kubectl get events -n some-namespace
2023-11-08T10:44:31.312Z	INFO	installer/installer.go:185	gathering all logs from the test
2023-11-08T10:44:31.312Z	INFO	utils/k8s_helper.go:256	Gathering logs for all pods in namespace mondoo-operator
2023-11-08T10:44:31.320Z	DEBUG	utils/k8s_helper.go:461	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/TestReconcile_KubernetesResources_mondoo-operator_ceebbf7a6ae509237c37527567c5138333236c8a7a4bb688b3e44de2bckzvmg_1699440271.log
2023-11-08T10:44:31.343Z	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_1699440271.log
2023-11-08T10:44:31.350Z	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_1699440271.log
2023-11-08T10:44:31.355Z	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-08T10:44:31.490Z	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-84b477b8c7-dm44f_1699440271.log
2023-11-08T10:44:31.508Z	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-84b477b8c7-dm44f_previous_1699440271.log
2023-11-08T10:44:31.513Z	DEBUG	utils/executor.go:271	Running command: kubectl -n mondoo-operator logs mondoo-operator-controller-manager-84b477b8c7-dm44f -c manager
2023-11-08T10:44:31.643Z	INFO	utils/k8s_helper.go:267	Gathering pod describe for all pods in namespace mondoo-operator
2023-11-08T10:44:31.648Z	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_1699440271.log
2023-11-08T10:44:31.648Z	DEBUG	utils/executor.go:271	Running command: kubectl get pod -o yaml -n mondoo-operator ceebbf7a6ae509237c37527567c5138333236c8a7a4bb688b3e44de2bckzvmg
2023-11-08T10:44:31.762Z	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-08T10:44:31.924Z	DEBUG	utils/executor.go:271	Running command: kubectl get pod -o yaml -n mondoo-operator mondoo-operator-controller-manager-84b477b8c7-dm44f
2023-11-08T10:44:32.097Z	DEBUG	utils/executor.go:271	Running command: kubectl get deployment -o yaml -n mondoo-operator mondoo-operator-controller-manager
2023-11-08T10:44:32.234Z	INFO	utils/k8s_helper.go:308	Gathering events in namespace "mondoo-operator"
2023-11-08T10:44:32.234Z	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_1699440272.log
2023-11-08T10:44:32.234Z	DEBUG	utils/executor.go:271	Running command: kubectl get events -n mondoo-operator
2023-11-08T10:44:32.463Z	INFO	utils/k8s_helper.go:337	Resource k8s.mondoo.com/v1alpha2, Kind=MondooAuditConfig some-namespace/mondoo-client still exists.
2023-11-08T10:44:34.472Z	INFO	utils/k8s_helper.go:341	Resource k8s.mondoo.com/v1alpha2, Kind=MondooAuditConfig some-namespace/mondoo-client deleted.
2023-11-08T10:44:34.489Z	INFO	integration/audit_config_base_suite.go:116	Waiting for cleanup of the test cluster.
2023-11-08T10:44:36.502Z	INFO	integration/audit_config_base_suite.go:141	Cleanup done. Cluster should be good to go for the next test.
2023-11-08T10:44:37.593Z	DEBUG	utils/executor.go:271	Running command: kubectl delete pods -n default --all --wait
    --- FAIL: TestAuditConfigCustomNamespaceSuite/TestReconcile_KubernetesResources (227.30s)

Check failure on line 0 in integration-tests.xml

See this annotation in the file changed.

@github-actions 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-08T10:33:23.543Z	INFO	installer/installer.go:177	Created Мondoo client secret "mondoo-token".
2023-11-08T10:33:23.544Z	INFO	installer/installer.go:67	The Mondoo operator is installed externally. Skipping installation...
2023-11-08T10:33:23.544Z	INFO	installer/installer.go:70	Sleeping for 30 seconds to allow the token to get active
2023-11-08T10:33:53.553Z	INFO	integration/audit_config_namespace_test.go:34	Created test namespace.
2023-11-08T10:33:53.580Z	INFO	installer/installer.go:177	Created Мondoo client secret "mondoo-token".
2023-11-08T10:33:53.580Z	INFO	integration/audit_config_namespace_test.go:37	Created client secret in namespace "some-namespace".
2023-11-08T10:33:53.590Z	INFO	integration/audit_config_namespace_test.go:44	Created webhook ServiceAccount "webhook-sa" in namespace "some-namespace".
2023-11-08T10:33:53.605Z	INFO	integration/audit_config_namespace_test.go:51	Created service account "mondoo-sa" in namespace "some-namespace".
2023-11-08T10:33:53.616Z	INFO	integration/audit_config_namespace_test.go:64	Created cluster role binding "mondoo-operator-k8s-resources-scanning2".
--- FAIL: TestAuditConfigCustomNamespaceSuite (735.22s)

Check failure on line 0 in integration-tests.xml

See this annotation in the file changed.

@github-actions 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-08T10:50:18.353Z	INFO	integration/audit_config_base_suite.go:158	Create an audit config that enables only workloads scanning.
2023-11-08T10:50:18.364Z	INFO	integration/audit_config_base_suite.go:659	Waiting for scan API Pod to become ready.
2023-11-08T10:50:30.394Z	INFO	integration/audit_config_base_suite.go:663	Scan API Pod is ready.
2023-11-08T10:50:30.397Z	INFO	integration/audit_config_base_suite.go:680	Waiting for good condition of Scan API
2023-11-08T10:50:30.408Z	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_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=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-2zgmt",
        	            	 (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-787d4945fb-hdxqd",
        	            	 (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-2zgmt",
        	            	 (string) (len=35) "kube-system/kube-scheduler-minikube",
        	            	 (string) (len=31) "kube-system/storage-provisioner",
        	            	 (string) (len=79) "mondoo-operator/ceebbf7a6ae509237c37527567c5138333236c8a7a4bb688b3e44de2bckzvmg",
        	            	 (string) (len=63) "mondoo-operator/ghcr-io-mondoohq-mondoo-operator-bundle-v1-17-2",
        	            	 (string) (len=53) "mondoo-operator/mondoo-client-k8s-scan-28324011-lbddj",
        	            	 (string) (len=55) "mondoo-operator/mondoo-client-scan-api-5f598ddf4d-56bpf",
        	            	 (string) (len=67) "mondoo-operator/mondoo-operator-controller-manager-84b477b8c7-dm44f",
        	            	 (string) (len=37) "olm/catalog-operator-5d76954c7b-nkh2t",
        	            	 (string) (len=33) "olm/olm-operator-75bfdb99df-hpkw4",
        	            	 (string) (len=31) "olm/operatorhubio-catalog-jb6vl",
        	            	 (string) (len=34) "olm/packageserver-6c87f95fcb-j5fq8",
        	            	 (string) (len=34) "olm/packageserver-6c87f95fcb-m2bgq",
        	            	 (string) (len=79) "mondoo-operator/ceebbf7a6ae509237c37527567c5138333236c8a7a4bb688b3e44de2bc5e78d",
        	            	 (string) (len=47) "mondoo-operator/mondoo-client-k8s-scan-28324011",
        	            	 (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-787d4945fb",
        	            	 (string) (len=49) "mondoo-operator/mondoo-client-scan-api-5f598ddf4d",
        	            	 (string) (len=61) "mondoo-operator/mondoo-operator-controller-manager-84b477b8c7",
        	            	 (string) (len=31) "olm/catalog-operator-5d76954c7b",
        	            	 (string) (len=27) "olm/olm-operator-75bfdb99df",
        	            	 (string) (len=28) "olm/packageserver-6c87f95fcb"
        	            	}
        	            	
        	            	
        	            	listB:
        	            	([]string) (len=25) {
        	            	 (string) (len=49) "mondoo-operator/mondoo-client-scan-api-5f598ddf4d",
        	            	 (string) (len=55) "mondoo-operator/mondoo-client-scan-api-5f598ddf4d-56bpf",
        	            	 (string) (len=38) "mondoo-operator/mondoo-client-scan-api",
        	            	 (string) (len=34) "olm/packageserver-6c87f95fcb-m2bgq",
        	            	 (string) (len=34) "olm/packageserver-6c87f95fcb-j5fq8",
        	            	 (string) (len=31) "olm/operatorhubio-catalog-jb6vl",
        	            	 (string) (len=33) "olm/olm-operator-75bfdb99df-hpkw4",
        	            	 (string) (len=53) "mondoo-operator/mondoo-client-k8s-scan-28324011-lbddj",
        	            	 (string) (len=47) "mondoo-operator/mondoo-client-k8s-scan-28324011",
        	            	 (string) (len=38) "mondoo-operator/mondoo-client-k8s-scan",
        	            	 (string) (len=37) "olm/catalog-operator-5d76954c7b-nkh2t",
        	            	 (string) (len=67) "mondoo-operator/mondoo-operator-controller-manager-84b477b8c7-dm44f",
        	            	 (string) (len=61) "mondoo-operator/mondoo-operator-controller-manager-84b477b8c7",
        	            	 (string) (len=27) "olm/olm-operator-75bfdb99df",
        	            	 (string) (len=31) "olm/catalog-operator-5d76954c7b",
        	            	 (string) (len=79) "mondoo-operator/ceebbf7a6ae509237c37527567c5138333236c8a7a4bb688b3e44de2bc5e78d",
        	            	 (string) (len=79) "mondoo-operator/ceebbf7a6ae509237c37527567c5138333236c8a7a4bb688b3e44de2bckzvmg",
        	            	 (string) (len=28) "olm/packageserver-6c87f95fcb",
        	            	 (string) (len=36) "kube-system/coredns-787d4945fb-hdxqd",
        	            	 (string) (len=30) "kube-system/coredns-787d4945fb",
        	            	 (string) (len=50) "mondoo-operator/mondoo-operator-controller-manager",
        	            	 (string) (len=20) "olm/catalog-operator",
        	            	 (string) (len=19) "kube-system/coredns",
        	            	 (string) (len=17) "olm/packageserver",
        	            	 (string) (len=16) "olm/olm-operator"
        	            	}
        	Test:       	TestAuditConfigSuite/TestReconcile_KubernetesResources
        	Messages:   	Workloads were not sent upstream.
2023-11-08T10:52:17.060Z	INFO	installer/installer.go:185	gathering all logs from the test
2023-11-08T10:52:17.060Z	INFO	utils/k8s_helper.go:256	Gathering logs for all pods in namespace mondoo-operator
2023-11-08T10:52:17.068Z	DEBUG	utils/k8s_helper.go:461	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/TestReconcile_KubernetesResources_mondoo-operator_ceebbf7a6ae509237c37527567c5138333236c8a7a4bb688b3e44de2bckzvmg_1699440737.log
2023-11-08T10:52:17.112Z	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_1699440737.log
2023-11-08T10:52:17.120Z	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_1699440737.log
2023-11-08T10:52:17.124Z	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-08T10:52:17.247Z	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-28324011-lbddj_1699440737.log
2023-11-08T10:52:17.257Z	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-5f598ddf4d-56bpf_1699440737.log
2023-11-08T10:52:17.268Z	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-84b477b8c7-dm44f_1699440737.log
2023-11-08T10:52:17.303Z	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-84b477b8c7-dm44f_previous_1699440737.log
2023-11-08T10:52:17.310Z	DEBUG	utils/executor.go:271	Running command: kubectl -n mondoo-operator logs mondoo-operator-controller-manager-84b477b8c7-dm44f -c manager
2023-11-08T10:52:17.494Z	INFO	utils/k8s_helper.go:267	Gathering pod describe for all pods in namespace mondoo-operator
2023-11-08T10:52:17.500Z	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_1699440737.log
2023-11-08T10:52:17.500Z	DEBUG	utils/executor.go:271	Running command: kubectl get pod -o yaml -n mondoo-operator ceebbf7a6ae509237c37527567c5138333236c8a7a4bb688b3e44de2bckzvmg
2023-11-08T10:52:17.602Z	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-08T10:52:17.709Z	DEBUG	utils/executor.go:271	Running command: kubectl get pod -o yaml -n mondoo-operator mondoo-client-k8s-scan-28324011-lbddj
2023-11-08T10:52:17.800Z	DEBUG	utils/executor.go:271	Running command: kubectl get pod -o yaml -n mondoo-operator mondoo-client-scan-api-5f598ddf4d-56bpf
2023-11-08T10:52:17.920Z	DEBUG	utils/executor.go:271	Running command: kubectl get pod -o yaml -n mondoo-operator mondoo-operator-controller-manager-84b477b8c7-dm44f
2023-11-08T10:52:18.119Z	DEBUG	utils/executor.go:271	Running command: kubectl get deployment -o yaml -n mondoo-operator mondoo-client-scan-api
2023-11-08T10:52:18.214Z	DEBUG	utils/executor.go:271	Running command: kubectl get deployment -o yaml -n mondoo-operator mondoo-operator-controller-manager
2023-11-08T10:52:18.329Z	DEBUG	utils/executor.go:271	Running command: kubectl get mondooauditconfig -o yaml -n mondoo-operator mondoo-client
2023-11-08T10:52:18.435Z	INFO	utils/k8s_helper.go:308	Gathering events in namespace "mondoo-operator"
2023-11-08T10:52:18.436Z	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_1699440738.log
2023-11-08T10:52:18.436Z	DEBUG	utils/executor.go:271	Running command: kubectl get events -n mondoo-operator
2023-11-08T10:52:18.599Z	INFO	utils/k8s_helper.go:337	Resource k8s.mondoo.com/v1alpha2, Kind=MondooAuditConfig mondoo-operator/mondoo-client still exists.
2023-11-08T10:52:20.602Z	INFO	utils/k8s_helper.go:341	Resource k8s.mondoo.com/v1alpha2, Kind=MondooAuditConfig mondoo-operator/mondoo-client deleted.
2023-11-08T10:52:20.606Z	INFO	integration/audit_config_base_suite.go:116	Waiting for cleanup of the test cluster.
2023-11-08T10:52:20.617Z	INFO	integration/audit_config_base_suite.go:141	Cleanup done. Cluster should be good to go for the next test.
2023-11-08T10:52:22.326Z	DEBUG	utils/executor.go:271	Running command: kubectl delete pods -n default --all --wait
    --- FAIL: TestAuditConfigSuite/TestReconcile_KubernetesResources (124.11s)

Check failure on line 0 in integration-tests.xml

See this annotation in the file changed.

@github-actions 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-08T10:45:40.620Z	INFO	installer/installer.go:177	Created Мondoo client secret "mondoo-token".
2023-11-08T10:45:40.620Z	INFO	installer/installer.go:67	The Mondoo operator is installed externally. Skipping installation...
2023-11-08T10:45:40.620Z	INFO	installer/installer.go:70	Sleeping for 30 seconds to allow the token to get active
--- FAIL: TestAuditConfigSuite (471.44s)