Skip to content

🧹 fix repo name for GCP containers (#1141) #2778

🧹 fix repo name for GCP containers (#1141)

🧹 fix repo name for GCP containers (#1141) #2778

GitHub Actions / Test Results failed Jun 30, 2024 in 0s

6 fail, 17 pass in 5h 44m 19s

  7 files    7 suites   5h 44m 19s ⏱️
 23 tests  17 ✅ 0 💤  6 ❌
161 runs  146 ✅ 0 💤 15 ❌

Results for commit d9b484d.

Annotations

Check warning on line 0 in go.mondoo.com/mondoo-operator/tests/integration

See this annotation in the file changed.

@github-actions github-actions / Test Results

3 out of 7 runs failed: TestAuditConfigCustomNamespaceSuite/TestReconcile_Containers (go.mondoo.com/mondoo-operator/tests/integration)

integration-tests-gke-1.27.xml [took 2m 14s]
integration-tests-gke-1.28.xml [took 1m 20s]
integration-tests-gke-1.29.xml [took 1m 37s]
Raw output
Failed
=== RUN   TestAuditConfigCustomNamespaceSuite/TestReconcile_Containers
2024-06-30T23:18:40.800Z	INFO	utils/audit_config.go:71	Using image ghcr.io/mondoohq/mondoo-operator/cnspec:latest-rootless for mondoo-client
2024-06-30T23:18:40.800Z	DEBUG	utils/executor.go:271	Running command: kubectl run -n default nginx --image nginx -l app.kubernetes.io/name=nginx
2024-06-30T23:18:41.027Z	DEBUG	utils/executor.go:271	Running command: kubectl run -n default redis --image redis -l app.kubernetes.io/name=redis
2024-06-30T23:18:47.570Z	INFO	integration/audit_config_base_suite.go:262	Create an audit config that enables only workloads scanning.
2024-06-30T23:18:47.771Z	INFO	integration/audit_config_base_suite.go:272	Make sure the Mondoo k8s container image scan CronJob is created.
    audit_config_base_suite.go:1264: 
        	Error Trace:	/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:1264
        	            				/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:323
        	            				/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_namespace_test.go:96
        	Error:      	elements differ
        	            	
        	            	extra elements in list A:
        	            	([]interface {}) (len=1) {
        	            	 (string) (len=59) "//policy.api.mondoo.app/policies/mondoo-kubernetes-security"
        	            	}
        	            	
        	            	
        	            	listA:
        	            	([]string) (len=3) {
        	            	 (string) (len=45) "//policy.api.mondoo.app/policies/platform-eol",
        	            	 (string) (len=59) "//policy.api.mondoo.app/policies/mondoo-kubernetes-security",
        	            	 (string) (len=54) "//policy.api.mondoo.app/policies/mondoo-linux-security"
        	            	}
        	            	
        	            	
        	            	listB:
        	            	([]string) (len=2) {
        	            	 (string) (len=54) "//policy.api.mondoo.app/policies/mondoo-linux-security",
        	            	 (string) (len=45) "//policy.api.mondoo.app/policies/platform-eol"
        	            	}
        	Test:       	TestAuditConfigCustomNamespaceSuite/TestReconcile_Containers
        	Messages:   	Scored policies for asset gke.gcr.io/prometheus-engine/config-reloader@2d048552b7d2 should be the default k8s policies
    audit_config_base_suite.go:1264: 
        	Error Trace:	/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:1264
        	            				/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:323
        	            				/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_namespace_test.go:96
        	Error:      	elements differ
        	            	
        	            	extra elements in list A:
        	            	([]interface {}) (len=1) {
        	            	 (string) (len=59) "//policy.api.mondoo.app/policies/mondoo-kubernetes-security"
        	            	}
        	            	
        	            	
        	            	listA:
        	            	([]string) (len=3) {
        	            	 (string) (len=45) "//policy.api.mondoo.app/policies/platform-eol",
        	            	 (string) (len=59) "//policy.api.mondoo.app/policies/mondoo-kubernetes-security",
        	            	 (string) (len=54) "//policy.api.mondoo.app/policies/mondoo-linux-security"
        	            	}
        	            	
        	            	
        	            	listB:
        	            	([]string) (len=2) {
        	            	 (string) (len=54) "//policy.api.mondoo.app/policies/mondoo-linux-security",
        	            	 (string) (len=45) "//policy.api.mondoo.app/policies/platform-eol"
        	            	}
        	Test:       	TestAuditConfigCustomNamespaceSuite/TestReconcile_Containers
        	Messages:   	Scored policies for asset gke.gcr.io/gke-distroless/bash@23f3defd1e15 should be the default k8s policies
    audit_config_base_suite.go:1264: 
        	Error Trace:	/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:1264
        	            				/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:323
        	            				/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_namespace_test.go:96
        	Error:      	elements differ
        	            	
        	            	extra elements in list A:
        	            	([]interface {}) (len=1) {
        	            	 (string) (len=59) "//policy.api.mondoo.app/policies/mondoo-kubernetes-security"
        	            	}
        	            	
        	            	
        	            	listA:
        	            	([]string) (len=3) {
        	            	 (string) (len=45) "//policy.api.mondoo.app/policies/platform-eol",
        	            	 (string) (len=59) "//policy.api.mondoo.app/policies/mondoo-kubernetes-security",
        	            	 (string) (len=54) "//policy.api.mondoo.app/policies/mondoo-linux-security"
        	            	}
        	            	
        	            	
        	            	listB:
        	            	([]string) (len=2) {
        	            	 (string) (len=54) "//policy.api.mondoo.app/policies/mondoo-linux-security",
        	            	 (string) (len=45) "//policy.api.mondoo.app/policies/platform-eol"
        	            	}
        	Test:       	TestAuditConfigCustomNamespaceSuite/TestReconcile_Containers
        	Messages:   	Scored policies for asset gke.gcr.io/prometheus-engine/operator@16813cca37b1 should be the default k8s policies
    audit_config_base_suite.go:1264: 
        	Error Trace:	/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:1264
        	            				/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:323
        	            				/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_namespace_test.go:96
        	Error:      	elements differ
        	            	
        	            	extra elements in list A:
        	            	([]interface {}) (len=1) {
        	            	 (string) (len=59) "//policy.api.mondoo.app/policies/mondoo-kubernetes-security"
        	            	}
        	            	
        	            	
        	            	listA:
        	            	([]string) (len=3) {
        	            	 (string) (len=45) "//policy.api.mondoo.app/policies/platform-eol",
        	            	 (string) (len=59) "//policy.api.mondoo.app/policies/mondoo-kubernetes-security",
        	            	 (string) (len=54) "//policy.api.mondoo.app/policies/mondoo-linux-security"
        	            	}
        	            	
        	            	
        	            	listB:
        	            	([]string) (len=2) {
        	            	 (string) (len=54) "//policy.api.mondoo.app/policies/mondoo-linux-security",
        	            	 (string) (len=45) "//policy.api.mondoo.app/policies/platform-eol"
        	            	}
        	Test:       	TestAuditConfigCustomNamespaceSuite/TestReconcile_Containers
        	Messages:   	Scored policies for asset gke.gcr.io/prometheus-engine/prometheus@ec37592df522 should be the default k8s policies
2024-06-30T23:19:53.959Z	INFO	installer/installer.go:212	gathering all logs from the test
2024-06-30T23:19:53.959Z	INFO	utils/k8s_helper.go:256	Gathering logs for all pods in namespace some-namespace
2024-06-30T23:19:54.039Z	DEBUG	utils/k8s_helper.go:561	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/AuditConfigCustomNamespaceSuite/TestReconcile_Containers/some-namespace_mondoo-client-containers-scan-28663159-9qw7g_1719789594.log
2024-06-30T23:19:54.146Z	INFO	utils/k8s_helper.go:267	Gathering pod describe for all pods in namespace some-namespace
2024-06-30T23:19:54.202Z	DEBUG	utils/k8s_helper.go:561	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/AuditConfigCustomNamespaceSuite/TestReconcile_Containers/describe_some-namespace_1719789594.log
2024-06-30T23:19:54.202Z	DEBUG	utils/executor.go:271	Running command: kubectl get pod -o yaml -n some-namespace mondoo-client-containers-scan-28663159-9qw7g
2024-06-30T23:19:54.576Z	DEBUG	utils/executor.go:271	Running command: kubectl get cronjob -o yaml -n some-namespace mondoo-client-containers-scan
2024-06-30T23:19:54.858Z	DEBUG	utils/executor.go:271	Running command: kubectl get mondooauditconfig -o yaml -n some-namespace mondoo-client
2024-06-30T23:19:55.060Z	INFO	utils/k8s_helper.go:318	Gathering events in namespace "some-namespace"
2024-06-30T23:19:55.060Z	DEBUG	utils/k8s_helper.go:561	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/AuditConfigCustomNamespaceSuite/TestReconcile_Containers/events_some-namespace_1719789595.log
2024-06-30T23:19:55.060Z	DEBUG	utils/executor.go:271	Running command: kubectl get events -n some-namespace
2024-06-30T23:19:55.391Z	INFO	installer/installer.go:212	gathering all logs from the test
2024-06-30T23:19:55.391Z	INFO	utils/k8s_helper.go:256	Gathering logs for all pods in namespace mondoo-operator
2024-06-30T23:19:55.469Z	DEBUG	utils/k8s_helper.go:561	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/AuditConfigCustomNamespaceSuite/TestReconcile_Containers/mondoo-operator_mondoo-operator-controller-manager-8646559c78-69nc8_1719789595.log
2024-06-30T23:19:55.548Z	DEBUG	utils/k8s_helper.go:561	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/AuditConfigCustomNamespaceSuite/TestReconcile_Containers/mondoo-operator_mondoo-operator-controller-manager-8646559c78-69nc8_previous_1719789595.log
2024-06-30T23:19:55.606Z	DEBUG	utils/executor.go:271	Running command: kubectl -n mondoo-operator logs mondoo-operator-controller-manager-8646559c78-69nc8 -c manager
2024-06-30T23:19:55.938Z	INFO	utils/k8s_helper.go:267	Gathering pod describe for all pods in namespace mondoo-operator
2024-06-30T23:19:55.995Z	DEBUG	utils/k8s_helper.go:561	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/AuditConfigCustomNamespaceSuite/TestReconcile_Containers/describe_mondoo-operator_1719789595.log
2024-06-30T23:19:55.995Z	DEBUG	utils/executor.go:271	Running command: kubectl get pod -o yaml -n mondoo-operator mondoo-operator-controller-manager-8646559c78-69nc8
2024-06-30T23:19:56.282Z	DEBUG	utils/executor.go:271	Running command: kubectl get deployment -o yaml -n mondoo-operator mondoo-operator-controller-manager
2024-06-30T23:19:56.646Z	INFO	utils/k8s_helper.go:318	Gathering events in namespace "mondoo-operator"
2024-06-30T23:19:56.646Z	DEBUG	utils/k8s_helper.go:561	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/AuditConfigCustomNamespaceSuite/TestReconcile_Containers/events_mondoo-operator_1719789596.log
2024-06-30T23:19:56.646Z	DEBUG	utils/executor.go:271	Running command: kubectl get events -n mondoo-operator
2024-06-30T23:19:57.149Z	INFO	utils/k8s_helper.go:351	Resource k8s.mondoo.com/v1alpha2, Kind=MondooAuditConfig some-namespace/mondoo-client deleted.
2024-06-30T23:19:57.149Z	INFO	installer/installer.go:192	Deleted MondooAuditConfig some-namespace/mondoo-client.
2024-06-30T23:19:57.288Z	INFO	integration/audit_config_base_suite.go:117	Waiting for cleanup of the test cluster.
2024-06-30T23:19:57.561Z	INFO	integration/audit_config_base_suite.go:142	Cleanup done. Cluster should be good to go for the next test.
2024-06-30T23:19:59.503Z	DEBUG	utils/executor.go:271	Running command: kubectl delete pods -n default --all --wait
    --- FAIL: TestAuditConfigCustomNamespaceSuite/TestReconcile_Containers (80.38s)

Check warning on line 0 in go.mondoo.com/mondoo-operator/tests/integration

See this annotation in the file changed.

@github-actions github-actions / Test Results

1 out of 7 runs failed: TestAuditConfigCustomNamespaceSuite/TestReconcile_Nodes_CronJobs (go.mondoo.com/mondoo-operator/tests/integration)

integration-tests-eks-1.27.xml [took 1m 18s]
Raw output
Failed
=== RUN   TestAuditConfigCustomNamespaceSuite/TestReconcile_Nodes_CronJobs
2024-06-30T23:21:13.048Z	INFO	utils/audit_config.go:71	Using image ghcr.io/mondoohq/mondoo-operator/cnspec:latest-rootless for mondoo-client
2024-06-30T23:21:13.145Z	INFO	integration/audit_config_base_suite.go:337	Create an audit config that enables only nodes scanning.
2024-06-30T23:21:13.344Z	INFO	integration/audit_config_base_suite.go:344	Verify the nodes scanning cron jobs are created.
2024-06-30T23:22:13.776Z	INFO	integration/audit_config_base_suite.go:1247	Asset ip-10-0-5-75.eu-central-1.compute.internal has no score
    audit_config_base_suite.go:1249: 
        	Error Trace:	/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:1249
        	            				/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:442
        	            				/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_namespace_test.go:102
        	Error:      	Should not be: "U"
        	Test:       	TestAuditConfigCustomNamespaceSuite/TestReconcile_Nodes_CronJobs
        	Messages:   	Asset ip-10-0-5-75.eu-central-1.compute.internal should not be unscored
    audit_config_base_suite.go:1264: 
        	Error Trace:	/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:1264
        	            				/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:442
        	            				/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_namespace_test.go:102
        	Error:      	elements differ
        	            	
        	            	extra elements in list A:
        	            	([]interface {}) (len=3) {
        	            	 (string) (len=45) "//policy.api.mondoo.app/policies/platform-eol",
        	            	 (string) (len=59) "//policy.api.mondoo.app/policies/mondoo-kubernetes-security",
        	            	 (string) (len=54) "//policy.api.mondoo.app/policies/mondoo-linux-security"
        	            	}
        	            	
        	            	
        	            	listA:
        	            	([]string) (len=3) {
        	            	 (string) (len=45) "//policy.api.mondoo.app/policies/platform-eol",
        	            	 (string) (len=59) "//policy.api.mondoo.app/policies/mondoo-kubernetes-security",
        	            	 (string) (len=54) "//policy.api.mondoo.app/policies/mondoo-linux-security"
        	            	}
        	            	
        	            	
        	            	listB:
        	            	([]string) {
        	            	}
        	Test:       	TestAuditConfigCustomNamespaceSuite/TestReconcile_Nodes_CronJobs
        	Messages:   	Scored policies for asset ip-10-0-5-75.eu-central-1.compute.internal should be the default k8s policies
2024-06-30T23:22:13.776Z	INFO	integration/audit_config_base_suite.go:1247	Asset ip-10-0-4-81.eu-central-1.compute.internal has no score
    audit_config_base_suite.go:1249: 
        	Error Trace:	/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:1249
        	            				/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:442
        	            				/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_namespace_test.go:102
        	Error:      	Should not be: "U"
        	Test:       	TestAuditConfigCustomNamespaceSuite/TestReconcile_Nodes_CronJobs
        	Messages:   	Asset ip-10-0-4-81.eu-central-1.compute.internal should not be unscored
    audit_config_base_suite.go:1264: 
        	Error Trace:	/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:1264
        	            				/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:442
        	            				/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_namespace_test.go:102
        	Error:      	elements differ
        	            	
        	            	extra elements in list A:
        	            	([]interface {}) (len=3) {
        	            	 (string) (len=45) "//policy.api.mondoo.app/policies/platform-eol",
        	            	 (string) (len=59) "//policy.api.mondoo.app/policies/mondoo-kubernetes-security",
        	            	 (string) (len=54) "//policy.api.mondoo.app/policies/mondoo-linux-security"
        	            	}
        	            	
        	            	
        	            	listA:
        	            	([]string) (len=3) {
        	            	 (string) (len=45) "//policy.api.mondoo.app/policies/platform-eol",
        	            	 (string) (len=59) "//policy.api.mondoo.app/policies/mondoo-kubernetes-security",
        	            	 (string) (len=54) "//policy.api.mondoo.app/policies/mondoo-linux-security"
        	            	}
        	            	
        	            	
        	            	listB:
        	            	([]string) {
        	            	}
        	Test:       	TestAuditConfigCustomNamespaceSuite/TestReconcile_Nodes_CronJobs
        	Messages:   	Scored policies for asset ip-10-0-4-81.eu-central-1.compute.internal should be the default k8s policies
2024-06-30T23:22:13.954Z	INFO	installer/installer.go:212	gathering all logs from the test
2024-06-30T23:22:13.954Z	INFO	utils/k8s_helper.go:256	Gathering logs for all pods in namespace some-namespace
2024-06-30T23:22:14.049Z	DEBUG	utils/k8s_helper.go:561	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/AuditConfigCustomNamespaceSuite/TestReconcile_Nodes_CronJobs/some-namespace_mondoo-client-scan-api-fdd5859-ntb92_1719789734.log
2024-06-30T23:22:14.148Z	INFO	utils/k8s_helper.go:267	Gathering pod describe for all pods in namespace some-namespace
2024-06-30T23:22:14.244Z	DEBUG	utils/k8s_helper.go:561	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/AuditConfigCustomNamespaceSuite/TestReconcile_Nodes_CronJobs/describe_some-namespace_1719789734.log
2024-06-30T23:22:14.244Z	DEBUG	utils/executor.go:271	Running command: kubectl get pod -o yaml -n some-namespace mondoo-client-scan-api-fdd5859-ntb92
2024-06-30T23:22:15.316Z	DEBUG	utils/executor.go:271	Running command: kubectl get deployment -o yaml -n some-namespace mondoo-client-scan-api
2024-06-30T23:22:16.480Z	DEBUG	utils/executor.go:271	Running command: kubectl get cronjob -o yaml -n some-namespace mondoo-client-node-200cb950303c3eb08a37d87708e4b1a89
2024-06-30T23:22:17.370Z	DEBUG	utils/executor.go:271	Running command: kubectl get cronjob -o yaml -n some-namespace mondoo-client-node-c844897522050c633196d3d3971396b50
2024-06-30T23:22:18.260Z	DEBUG	utils/executor.go:271	Running command: kubectl get cronjob -o yaml -n some-namespace mondoo-client-node-gc
2024-06-30T23:22:19.214Z	DEBUG	utils/executor.go:271	Running command: kubectl get mondooauditconfig -o yaml -n some-namespace mondoo-client
2024-06-30T23:22:20.108Z	INFO	utils/k8s_helper.go:318	Gathering events in namespace "some-namespace"
2024-06-30T23:22:20.108Z	DEBUG	utils/k8s_helper.go:561	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/AuditConfigCustomNamespaceSuite/TestReconcile_Nodes_CronJobs/events_some-namespace_1719789740.log
2024-06-30T23:22:20.109Z	DEBUG	utils/executor.go:271	Running command: kubectl get events -n some-namespace
2024-06-30T23:22:21.179Z	INFO	installer/installer.go:212	gathering all logs from the test
2024-06-30T23:22:21.179Z	INFO	utils/k8s_helper.go:256	Gathering logs for all pods in namespace mondoo-operator
2024-06-30T23:22:21.273Z	DEBUG	utils/k8s_helper.go:561	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/AuditConfigCustomNamespaceSuite/TestReconcile_Nodes_CronJobs/mondoo-operator_mondoo-operator-controller-manager-6f89c5bfb4-p7gs6_1719789741.log
2024-06-30T23:22:21.371Z	DEBUG	utils/k8s_helper.go:561	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/AuditConfigCustomNamespaceSuite/TestReconcile_Nodes_CronJobs/mondoo-operator_mondoo-operator-controller-manager-6f89c5bfb4-p7gs6_previous_1719789741.log
2024-06-30T23:22:21.474Z	DEBUG	utils/executor.go:271	Running command: kubectl -n mondoo-operator logs mondoo-operator-controller-manager-6f89c5bfb4-p7gs6 -c manager
2024-06-30T23:22:22.442Z	INFO	utils/k8s_helper.go:267	Gathering pod describe for all pods in namespace mondoo-operator
2024-06-30T23:22:22.538Z	DEBUG	utils/k8s_helper.go:561	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/AuditConfigCustomNamespaceSuite/TestReconcile_Nodes_CronJobs/describe_mondoo-operator_1719789742.log
2024-06-30T23:22:22.538Z	DEBUG	utils/executor.go:271	Running command: kubectl get pod -o yaml -n mondoo-operator mondoo-operator-controller-manager-6f89c5bfb4-p7gs6
2024-06-30T23:22:23.501Z	DEBUG	utils/executor.go:271	Running command: kubectl get deployment -o yaml -n mondoo-operator mondoo-operator-controller-manager
2024-06-30T23:22:24.663Z	INFO	utils/k8s_helper.go:318	Gathering events in namespace "mondoo-operator"
2024-06-30T23:22:24.663Z	DEBUG	utils/k8s_helper.go:561	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/AuditConfigCustomNamespaceSuite/TestReconcile_Nodes_CronJobs/events_mondoo-operator_1719789744.log
2024-06-30T23:22:24.663Z	DEBUG	utils/executor.go:271	Running command: kubectl get events -n mondoo-operator
2024-06-30T23:22:26.001Z	INFO	utils/k8s_helper.go:347	Resource k8s.mondoo.com/v1alpha2, Kind=MondooAuditConfig some-namespace/mondoo-client still exists.
2024-06-30T23:22:28.097Z	INFO	utils/k8s_helper.go:351	Resource k8s.mondoo.com/v1alpha2, Kind=MondooAuditConfig some-namespace/mondoo-client deleted.
2024-06-30T23:22:28.097Z	INFO	installer/installer.go:192	Deleted MondooAuditConfig some-namespace/mondoo-client.
2024-06-30T23:22:28.285Z	INFO	integration/audit_config_base_suite.go:117	Waiting for cleanup of the test cluster.
2024-06-30T23:22:30.855Z	INFO	integration/audit_config_base_suite.go:142	Cleanup done. Cluster should be good to go for the next test.
2024-06-30T23:22:31.054Z	DEBUG	utils/executor.go:271	Running command: kubectl delete pods -n default --all --wait
    --- FAIL: TestAuditConfigCustomNamespaceSuite/TestReconcile_Nodes_CronJobs (78.88s)

Check warning on line 0 in go.mondoo.com/mondoo-operator/tests/integration

See this annotation in the file changed.

@github-actions github-actions / Test Results

1 out of 7 runs failed: TestAuditConfigCustomNamespaceSuite/TestReconcile_Nodes_DaemonSet (go.mondoo.com/mondoo-operator/tests/integration)

integration-tests-eks-1.27.xml [took 5m 25s]
Raw output
Failed
=== RUN   TestAuditConfigCustomNamespaceSuite/TestReconcile_Nodes_DaemonSet
2024-06-30T23:22:31.925Z	INFO	utils/audit_config.go:71	Using image ghcr.io/mondoohq/mondoo-operator/cnspec:latest-rootless for mondoo-client
2024-06-30T23:22:32.034Z	INFO	integration/audit_config_base_suite.go:456	Create an audit config that enables only nodes scanning.
2024-06-30T23:22:32.232Z	INFO	integration/audit_config_base_suite.go:463	Verify the nodes scanning daemonset is created.
    audit_config_base_suite.go:529: 
        	Error Trace:	/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:529
        	            				/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_namespace_test.go:110
        	Error:      	Received unexpected error:
        	            	test did not succeed after 100 retries
        	Test:       	TestAuditConfigCustomNamespaceSuite/TestReconcile_Nodes_DaemonSet
2024-06-30T23:27:35.965Z	INFO	installer/installer.go:212	gathering all logs from the test
2024-06-30T23:27:35.965Z	INFO	utils/k8s_helper.go:256	Gathering logs for all pods in namespace some-namespace
2024-06-30T23:27:36.147Z	DEBUG	utils/k8s_helper.go:561	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/AuditConfigCustomNamespaceSuite/TestReconcile_Nodes_DaemonSet/some-namespace_mondoo-client-node-br4gr_1719790056.log
2024-06-30T23:27:36.254Z	DEBUG	utils/k8s_helper.go:561	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/AuditConfigCustomNamespaceSuite/TestReconcile_Nodes_DaemonSet/some-namespace_mondoo-client-node-zbk6n_1719790056.log
2024-06-30T23:27:36.358Z	DEBUG	utils/k8s_helper.go:561	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/AuditConfigCustomNamespaceSuite/TestReconcile_Nodes_DaemonSet/some-namespace_mondoo-client-scan-api-fdd5859-nw5xn_1719790056.log
2024-06-30T23:27:36.454Z	INFO	utils/k8s_helper.go:267	Gathering pod describe for all pods in namespace some-namespace
2024-06-30T23:27:36.546Z	DEBUG	utils/k8s_helper.go:561	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/AuditConfigCustomNamespaceSuite/TestReconcile_Nodes_DaemonSet/describe_some-namespace_1719790056.log
2024-06-30T23:27:36.546Z	DEBUG	utils/executor.go:271	Running command: kubectl get pod -o yaml -n some-namespace mondoo-client-node-br4gr
2024-06-30T23:27:37.521Z	DEBUG	utils/executor.go:271	Running command: kubectl get pod -o yaml -n some-namespace mondoo-client-node-zbk6n
2024-06-30T23:27:38.419Z	DEBUG	utils/executor.go:271	Running command: kubectl get pod -o yaml -n some-namespace mondoo-client-scan-api-fdd5859-nw5xn
2024-06-30T23:27:39.486Z	DEBUG	utils/executor.go:271	Running command: kubectl get deployment -o yaml -n some-namespace mondoo-client-scan-api
2024-06-30T23:27:40.547Z	DEBUG	utils/executor.go:271	Running command: kubectl get cronjob -o yaml -n some-namespace mondoo-client-node-gc
2024-06-30T23:27:41.505Z	DEBUG	utils/executor.go:271	Running command: kubectl get mondooauditconfig -o yaml -n some-namespace mondoo-client
2024-06-30T23:27:42.384Z	INFO	utils/k8s_helper.go:318	Gathering events in namespace "some-namespace"
2024-06-30T23:27:42.384Z	DEBUG	utils/k8s_helper.go:561	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/AuditConfigCustomNamespaceSuite/TestReconcile_Nodes_DaemonSet/events_some-namespace_1719790062.log
2024-06-30T23:27:42.384Z	DEBUG	utils/executor.go:271	Running command: kubectl get events -n some-namespace
2024-06-30T23:27:43.537Z	INFO	installer/installer.go:212	gathering all logs from the test
2024-06-30T23:27:43.537Z	INFO	utils/k8s_helper.go:256	Gathering logs for all pods in namespace mondoo-operator
2024-06-30T23:27:43.629Z	DEBUG	utils/k8s_helper.go:561	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/AuditConfigCustomNamespaceSuite/TestReconcile_Nodes_DaemonSet/mondoo-operator_mondoo-operator-controller-manager-6f89c5bfb4-p7gs6_1719790063.log
2024-06-30T23:27:43.813Z	DEBUG	utils/k8s_helper.go:561	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/AuditConfigCustomNamespaceSuite/TestReconcile_Nodes_DaemonSet/mondoo-operator_mondoo-operator-controller-manager-6f89c5bfb4-p7gs6_previous_1719790063.log
2024-06-30T23:27:43.907Z	DEBUG	utils/executor.go:271	Running command: kubectl -n mondoo-operator logs mondoo-operator-controller-manager-6f89c5bfb4-p7gs6 -c manager
2024-06-30T23:27:45.032Z	INFO	utils/k8s_helper.go:267	Gathering pod describe for all pods in namespace mondoo-operator
2024-06-30T23:27:45.124Z	DEBUG	utils/k8s_helper.go:561	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/AuditConfigCustomNamespaceSuite/TestReconcile_Nodes_DaemonSet/describe_mondoo-operator_1719790065.log
2024-06-30T23:27:45.124Z	DEBUG	utils/executor.go:271	Running command: kubectl get pod -o yaml -n mondoo-operator mondoo-operator-controller-manager-6f89c5bfb4-p7gs6
2024-06-30T23:27:46.105Z	DEBUG	utils/executor.go:271	Running command: kubectl get deployment -o yaml -n mondoo-operator mondoo-operator-controller-manager
2024-06-30T23:27:47.259Z	INFO	utils/k8s_helper.go:318	Gathering events in namespace "mondoo-operator"
2024-06-30T23:27:47.259Z	DEBUG	utils/k8s_helper.go:561	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/AuditConfigCustomNamespaceSuite/TestReconcile_Nodes_DaemonSet/events_mondoo-operator_1719790067.log
2024-06-30T23:27:47.259Z	DEBUG	utils/executor.go:271	Running command: kubectl get events -n mondoo-operator
2024-06-30T23:27:48.621Z	INFO	utils/k8s_helper.go:351	Resource k8s.mondoo.com/v1alpha2, Kind=MondooAuditConfig some-namespace/mondoo-client deleted.
2024-06-30T23:27:48.621Z	INFO	installer/installer.go:192	Deleted MondooAuditConfig some-namespace/mondoo-client.
2024-06-30T23:27:48.806Z	INFO	integration/audit_config_base_suite.go:117	Waiting for cleanup of the test cluster.
2024-06-30T23:27:51.358Z	INFO	integration/audit_config_base_suite.go:142	Cleanup done. Cluster should be good to go for the next test.
2024-06-30T23:27:56.383Z	DEBUG	utils/executor.go:271	Running command: kubectl delete pods -n default --all --wait
2024-06-30T23:27:57.668Z	INFO	utils/k8s_helper.go:256	Gathering logs for all pods in namespace mondoo-operator
2024-06-30T23:27:57.759Z	DEBUG	utils/k8s_helper.go:561	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/AuditConfigCustomNamespaceSuite/TestAuditConfigCustomNamespaceSuite/mondoo-operator_mondoo-operator-controller-manager-6f89c5bfb4-p7gs6_1719790077.log
2024-06-30T23:27:57.944Z	DEBUG	utils/k8s_helper.go:561	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/AuditConfigCustomNamespaceSuite/TestAuditConfigCustomNamespaceSuite/mondoo-operator_mondoo-operator-controller-manager-6f89c5bfb4-p7gs6_previous_1719790077.log
2024-06-30T23:27:58.039Z	DEBUG	utils/executor.go:271	Running command: kubectl -n mondoo-operator logs mondoo-operator-controller-manager-6f89c5bfb4-p7gs6 -c manager
2024-06-30T23:27:59.280Z	INFO	installer/installer.go:154	Deleted Mondoo client secret mondoo-operator/mondoo-client.
2024-06-30T23:27:59.373Z	INFO	installer/installer.go:161	Deleted Mondoo token secret mondoo-operator/mondoo-token.
2024-06-30T23:27:59.373Z	INFO	utils/manifest_utils.go:54	Reading file: /home/runner/work/mondoo-operator/mondoo-operator/mondoo-operator-manifests.yaml
2024-06-30T23:27:59.374Z	INFO	utils/exec_utils.go:45	Running kubectl [delete --ignore-not-found=true -f -]
namespace "mondoo-operator" deleted
customresourcedefinition.apiextensions.k8s.io "mondooauditconfigs.k8s.mondoo.com" deleted
customresourcedefinition.apiextensions.k8s.io "mondoooperatorconfigs.k8s.mondoo.com" deleted
serviceaccount "mondoo-operator-controller-manager" deleted
serviceaccount "mondoo-operator-k8s-resources-scanning" deleted
serviceaccount "mondoo-operator-webhook" deleted
role.rbac.authorization.k8s.io "mondoo-operator-leader-election-role" deleted
clusterrole.rbac.authorization.k8s.io "mondoo-operator-k8s-resources-scanning" deleted
clusterrole.rbac.authorization.k8s.io "mondoo-operator-manager-role" deleted
rolebinding.rbac.authorization.k8s.io "mondoo-operator-leader-election-rolebinding" deleted
clusterrolebinding.rbac.authorization.k8s.io "mondoo-operator-k8s-resources-scanning" deleted
clusterrolebinding.rbac.authorization.k8s.io "mondoo-operator-manager-rolebinding" deleted
configmap "mondoo-operator-manager-config" deleted
service "mondoo-operator-controller-manager-metrics-service" deleted
deployment.apps "mondoo-operator-controller-manager" deleted
    --- FAIL: TestAuditConfigCustomNamespaceSuite/TestReconcile_Nodes_DaemonSet (325.36s)

Check warning on line 0 in go.mondoo.com/mondoo-operator/tests/integration

See this annotation in the file changed.

@github-actions github-actions / Test Results

4 out of 7 runs failed: TestAuditConfigCustomNamespaceSuite (go.mondoo.com/mondoo-operator/tests/integration)

integration-tests-eks-1.27.xml [took 13m 36s]
integration-tests-gke-1.27.xml [took 11m 12s]
integration-tests-gke-1.28.xml [took 9m 32s]
integration-tests-gke-1.29.xml [took 9m 10s]
Raw output
Failed
=== RUN   TestAuditConfigCustomNamespaceSuite
Using GraphQL endpoint https://api.mondoo.com/query
Using org MRN //captain.api.mondoo.app/organizations/mondoo-operator-testing
2024-06-30T23:17:09Z	INFO	Created Nexus space	{"space": "//captain.api.mondoo.app/spaces/suspicious-hawking-763842"}
2024-06-30T23:17:10.438Z	INFO	installer/installer.go:91	Installing Mondoo operator with local manifest
2024-06-30T23:17:10.438Z	INFO	utils/manifest_utils.go:54	Reading file: /home/runner/work/mondoo-operator/mondoo-operator/mondoo-operator-manifests.yaml
2024-06-30T23:17:10.438Z	INFO	utils/exec_utils.go:45	Running kubectl [apply -f -]
namespace/mondoo-operator created
customresourcedefinition.apiextensions.k8s.io/mondooauditconfigs.k8s.mondoo.com created
customresourcedefinition.apiextensions.k8s.io/mondoooperatorconfigs.k8s.mondoo.com created
serviceaccount/mondoo-operator-controller-manager created
serviceaccount/mondoo-operator-k8s-resources-scanning created
serviceaccount/mondoo-operator-webhook created
role.rbac.authorization.k8s.io/mondoo-operator-leader-election-role created
clusterrole.rbac.authorization.k8s.io/mondoo-operator-k8s-resources-scanning created
clusterrole.rbac.authorization.k8s.io/mondoo-operator-manager-role created
rolebinding.rbac.authorization.k8s.io/mondoo-operator-leader-election-rolebinding created
clusterrolebinding.rbac.authorization.k8s.io/mondoo-operator-k8s-resources-scanning created
clusterrolebinding.rbac.authorization.k8s.io/mondoo-operator-manager-rolebinding created
configmap/mondoo-operator-manager-config created
service/mondoo-operator-controller-manager-metrics-service created
deployment.apps/mondoo-operator-controller-manager created
2024-06-30T23:17:16.633Z	INFO	installer/installer.go:204	Created Мondoo client secret "mondoo-token".
2024-06-30T23:17:24.989Z	INFO	installer/installer.go:130	Mondoo operator is ready.
2024-06-30T23:17:25.048Z	INFO	integration/audit_config_namespace_test.go:36	Created test namespace.
2024-06-30T23:17:25.188Z	INFO	installer/installer.go:204	Created Мondoo client secret "mondoo-token".
2024-06-30T23:17:25.188Z	INFO	integration/audit_config_namespace_test.go:39	Created client secret in namespace "some-namespace".
2024-06-30T23:17:25.260Z	INFO	integration/audit_config_namespace_test.go:46	Created webhook ServiceAccount "webhook-sa" in namespace "some-namespace".
2024-06-30T23:17:25.316Z	INFO	integration/audit_config_namespace_test.go:53	Created service account "mondoo-sa" in namespace "some-namespace".
2024-06-30T23:17:25.427Z	INFO	integration/audit_config_namespace_test.go:66	Created cluster role binding "mondoo-operator-k8s-resources-scanning2".
--- FAIL: TestAuditConfigCustomNamespaceSuite (572.91s)

Check warning on line 0 in go.mondoo.com/mondoo-operator/tests/integration

See this annotation in the file changed.

@github-actions github-actions / Test Results

3 out of 7 runs failed: TestAuditConfigSuite/TestReconcile_Containers (go.mondoo.com/mondoo-operator/tests/integration)

integration-tests-gke-1.27.xml [took 2m 19s]
integration-tests-gke-1.28.xml [took 2m 17s]
integration-tests-gke-1.29.xml [took 2m 3s]
Raw output
Failed
=== RUN   TestAuditConfigSuite/TestReconcile_Containers
2024-06-30T23:34:45.632Z	INFO	utils/audit_config.go:71	Using image ghcr.io/mondoohq/mondoo-operator/cnspec:latest-rootless for mondoo-client
2024-06-30T23:34:45.632Z	DEBUG	utils/executor.go:271	Running command: kubectl run -n default nginx --image nginx -l app.kubernetes.io/name=nginx
2024-06-30T23:34:45.860Z	DEBUG	utils/executor.go:271	Running command: kubectl run -n default redis --image redis -l app.kubernetes.io/name=redis
2024-06-30T23:34:48.288Z	INFO	integration/audit_config_base_suite.go:262	Create an audit config that enables only workloads scanning.
2024-06-30T23:34:48.437Z	INFO	integration/audit_config_base_suite.go:272	Make sure the Mondoo k8s container image scan CronJob is created.
    audit_config_base_suite.go:1264: 
        	Error Trace:	/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:1264
        	            				/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:323
        	            				/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_test.go:41
        	Error:      	elements differ
        	            	
        	            	extra elements in list A:
        	            	([]interface {}) (len=1) {
        	            	 (string) (len=59) "//policy.api.mondoo.app/policies/mondoo-kubernetes-security"
        	            	}
        	            	
        	            	
        	            	listA:
        	            	([]string) (len=3) {
        	            	 (string) (len=45) "//policy.api.mondoo.app/policies/platform-eol",
        	            	 (string) (len=59) "//policy.api.mondoo.app/policies/mondoo-kubernetes-security",
        	            	 (string) (len=54) "//policy.api.mondoo.app/policies/mondoo-linux-security"
        	            	}
        	            	
        	            	
        	            	listB:
        	            	([]string) (len=2) {
        	            	 (string) (len=54) "//policy.api.mondoo.app/policies/mondoo-linux-security",
        	            	 (string) (len=45) "//policy.api.mondoo.app/policies/platform-eol"
        	            	}
        	Test:       	TestAuditConfigSuite/TestReconcile_Containers
        	Messages:   	Scored policies for asset gke.gcr.io/prometheus-engine/operator@16813cca37b1 should be the default k8s policies
    audit_config_base_suite.go:1264: 
        	Error Trace:	/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:1264
        	            				/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:323
        	            				/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_test.go:41
        	Error:      	elements differ
        	            	
        	            	extra elements in list A:
        	            	([]interface {}) (len=1) {
        	            	 (string) (len=59) "//policy.api.mondoo.app/policies/mondoo-kubernetes-security"
        	            	}
        	            	
        	            	
        	            	listA:
        	            	([]string) (len=3) {
        	            	 (string) (len=45) "//policy.api.mondoo.app/policies/platform-eol",
        	            	 (string) (len=59) "//policy.api.mondoo.app/policies/mondoo-kubernetes-security",
        	            	 (string) (len=54) "//policy.api.mondoo.app/policies/mondoo-linux-security"
        	            	}
        	            	
        	            	
        	            	listB:
        	            	([]string) (len=2) {
        	            	 (string) (len=54) "//policy.api.mondoo.app/policies/mondoo-linux-security",
        	            	 (string) (len=45) "//policy.api.mondoo.app/policies/platform-eol"
        	            	}
        	Test:       	TestAuditConfigSuite/TestReconcile_Containers
        	Messages:   	Scored policies for asset gke.gcr.io/prometheus-engine/prometheus@ec37592df522 should be the default k8s policies
    audit_config_base_suite.go:1264: 
        	Error Trace:	/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:1264
        	            				/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:323
        	            				/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_test.go:41
        	Error:      	elements differ
        	            	
        	            	extra elements in list A:
        	            	([]interface {}) (len=1) {
        	            	 (string) (len=59) "//policy.api.mondoo.app/policies/mondoo-kubernetes-security"
        	            	}
        	            	
        	            	
        	            	listA:
        	            	([]string) (len=3) {
        	            	 (string) (len=45) "//policy.api.mondoo.app/policies/platform-eol",
        	            	 (string) (len=59) "//policy.api.mondoo.app/policies/mondoo-kubernetes-security",
        	            	 (string) (len=54) "//policy.api.mondoo.app/policies/mondoo-linux-security"
        	            	}
        	            	
        	            	
        	            	listB:
        	            	([]string) (len=2) {
        	            	 (string) (len=54) "//policy.api.mondoo.app/policies/mondoo-linux-security",
        	            	 (string) (len=45) "//policy.api.mondoo.app/policies/platform-eol"
        	            	}
        	Test:       	TestAuditConfigSuite/TestReconcile_Containers
        	Messages:   	Scored policies for asset gke.gcr.io/prometheus-engine/config-reloader@2d048552b7d2 should be the default k8s policies
    audit_config_base_suite.go:1264: 
        	Error Trace:	/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:1264
        	            				/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:323
        	            				/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_test.go:41
        	Error:      	elements differ
        	            	
        	            	extra elements in list A:
        	            	([]interface {}) (len=1) {
        	            	 (string) (len=59) "//policy.api.mondoo.app/policies/mondoo-kubernetes-security"
        	            	}
        	            	
        	            	
        	            	listA:
        	            	([]string) (len=3) {
        	            	 (string) (len=45) "//policy.api.mondoo.app/policies/platform-eol",
        	            	 (string) (len=59) "//policy.api.mondoo.app/policies/mondoo-kubernetes-security",
        	            	 (string) (len=54) "//policy.api.mondoo.app/policies/mondoo-linux-security"
        	            	}
        	            	
        	            	
        	            	listB:
        	            	([]string) (len=2) {
        	            	 (string) (len=54) "//policy.api.mondoo.app/policies/mondoo-linux-security",
        	            	 (string) (len=45) "//policy.api.mondoo.app/policies/platform-eol"
        	            	}
        	Test:       	TestAuditConfigSuite/TestReconcile_Containers
        	Messages:   	Scored policies for asset gke.gcr.io/gke-distroless/bash@23f3defd1e15 should be the default k8s policies
2024-06-30T23:36:56.454Z	INFO	installer/installer.go:212	gathering all logs from the test
2024-06-30T23:36:56.454Z	INFO	utils/k8s_helper.go:256	Gathering logs for all pods in namespace mondoo-operator
2024-06-30T23:36:56.534Z	DEBUG	utils/k8s_helper.go:561	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/AuditConfigSuite/TestReconcile_Containers/mondoo-operator_mondoo-client-containers-scan-28663176-skv7n_1719790616.log
2024-06-30T23:36:56.667Z	DEBUG	utils/k8s_helper.go:561	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/AuditConfigSuite/TestReconcile_Containers/mondoo-operator_mondoo-operator-controller-manager-8646559c78-z5vsb_1719790616.log
2024-06-30T23:36:56.762Z	DEBUG	utils/k8s_helper.go:561	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/AuditConfigSuite/TestReconcile_Containers/mondoo-operator_mondoo-operator-controller-manager-8646559c78-z5vsb_previous_1719790616.log
2024-06-30T23:36:56.820Z	DEBUG	utils/executor.go:271	Running command: kubectl -n mondoo-operator logs mondoo-operator-controller-manager-8646559c78-z5vsb -c manager
2024-06-30T23:36:57.155Z	INFO	utils/k8s_helper.go:267	Gathering pod describe for all pods in namespace mondoo-operator
2024-06-30T23:36:57.212Z	DEBUG	utils/k8s_helper.go:561	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/AuditConfigSuite/TestReconcile_Containers/describe_mondoo-operator_1719790617.log
2024-06-30T23:36:57.212Z	DEBUG	utils/executor.go:271	Running command: kubectl get pod -o yaml -n mondoo-operator mondoo-client-containers-scan-28663176-skv7n
2024-06-30T23:36:57.436Z	DEBUG	utils/executor.go:271	Running command: kubectl get pod -o yaml -n mondoo-operator mondoo-operator-controller-manager-8646559c78-z5vsb
2024-06-30T23:36:57.719Z	DEBUG	utils/executor.go:271	Running command: kubectl get deployment -o yaml -n mondoo-operator mondoo-operator-controller-manager
2024-06-30T23:36:57.996Z	DEBUG	utils/executor.go:271	Running command: kubectl get cronjob -o yaml -n mondoo-operator mondoo-client-containers-scan
2024-06-30T23:36:58.274Z	DEBUG	utils/executor.go:271	Running command: kubectl get mondooauditconfig -o yaml -n mondoo-operator mondoo-client
2024-06-30T23:36:58.478Z	INFO	utils/k8s_helper.go:318	Gathering events in namespace "mondoo-operator"
2024-06-30T23:36:58.478Z	DEBUG	utils/k8s_helper.go:561	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/AuditConfigSuite/TestReconcile_Containers/events_mondoo-operator_1719790618.log
2024-06-30T23:36:58.478Z	DEBUG	utils/executor.go:271	Running command: kubectl get events -n mondoo-operator
2024-06-30T23:36:59.066Z	INFO	utils/k8s_helper.go:351	Resource k8s.mondoo.com/v1alpha2, Kind=MondooAuditConfig mondoo-operator/mondoo-client deleted.
2024-06-30T23:36:59.066Z	INFO	installer/installer.go:192	Deleted MondooAuditConfig mondoo-operator/mondoo-client.
2024-06-30T23:36:59.194Z	INFO	integration/audit_config_base_suite.go:117	Waiting for cleanup of the test cluster.
2024-06-30T23:36:59.468Z	INFO	integration/audit_config_base_suite.go:142	Cleanup done. Cluster should be good to go for the next test.
2024-06-30T23:37:01.337Z	DEBUG	utils/executor.go:271	Running command: kubectl delete pods -n default --all --wait
    --- FAIL: TestAuditConfigSuite/TestReconcile_Containers (137.32s)

Check warning on line 0 in go.mondoo.com/mondoo-operator/tests/integration

See this annotation in the file changed.

@github-actions github-actions / Test Results

3 out of 7 runs failed: TestAuditConfigSuite (go.mondoo.com/mondoo-operator/tests/integration)

integration-tests-gke-1.27.xml [took 10m 58s]
integration-tests-gke-1.28.xml [took 11m 8s]
integration-tests-gke-1.29.xml [took 11m 10s]
Raw output
Failed
=== RUN   TestAuditConfigSuite
Using GraphQL endpoint https://api.mondoo.com/query
Using org MRN //captain.api.mondoo.app/organizations/mondoo-operator-testing
2024-06-30T23:31:43Z	INFO	Created Nexus space	{"space": "//captain.api.mondoo.app/spaces/quirky-northcutt-277855"}
2024-06-30T23:31:43.435Z	INFO	installer/installer.go:91	Installing Mondoo operator with local manifest
2024-06-30T23:31:43.435Z	INFO	utils/manifest_utils.go:54	Reading file: /home/runner/work/mondoo-operator/mondoo-operator/mondoo-operator-manifests.yaml
2024-06-30T23:31:43.435Z	INFO	utils/exec_utils.go:45	Running kubectl [apply -f -]
namespace/mondoo-operator created
customresourcedefinition.apiextensions.k8s.io/mondooauditconfigs.k8s.mondoo.com created
customresourcedefinition.apiextensions.k8s.io/mondoooperatorconfigs.k8s.mondoo.com created
serviceaccount/mondoo-operator-controller-manager created
serviceaccount/mondoo-operator-k8s-resources-scanning created
serviceaccount/mondoo-operator-webhook created
role.rbac.authorization.k8s.io/mondoo-operator-leader-election-role created
clusterrole.rbac.authorization.k8s.io/mondoo-operator-k8s-resources-scanning created
clusterrole.rbac.authorization.k8s.io/mondoo-operator-manager-role created
rolebinding.rbac.authorization.k8s.io/mondoo-operator-leader-election-rolebinding created
clusterrolebinding.rbac.authorization.k8s.io/mondoo-operator-k8s-resources-scanning created
clusterrolebinding.rbac.authorization.k8s.io/mondoo-operator-manager-rolebinding created
configmap/mondoo-operator-manager-config created
service/mondoo-operator-controller-manager-metrics-service created
deployment.apps/mondoo-operator-controller-manager created
2024-06-30T23:31:47.191Z	INFO	installer/installer.go:204	Created Мondoo client secret "mondoo-token".
2024-06-30T23:31:57.578Z	INFO	installer/installer.go:130	Mondoo operator is ready.
--- FAIL: TestAuditConfigSuite (668.62s)

Check notice on line 0 in .github

See this annotation in the file changed.

@github-actions github-actions / Test Results

23 tests found

There are 23 tests, see "Raw output" for the full list of tests.
Raw output
go.mondoo.com/mondoo-operator/tests/integration ‑ TestAuditConfigCustomNamespaceSuite
go.mondoo.com/mondoo-operator/tests/integration ‑ TestAuditConfigCustomNamespaceSuite/TestReconcile_Admission
go.mondoo.com/mondoo-operator/tests/integration ‑ TestAuditConfigCustomNamespaceSuite/TestReconcile_AdmissionMissingSA
go.mondoo.com/mondoo-operator/tests/integration ‑ TestAuditConfigCustomNamespaceSuite/TestReconcile_Containers
go.mondoo.com/mondoo-operator/tests/integration ‑ TestAuditConfigCustomNamespaceSuite/TestReconcile_KubernetesResources
go.mondoo.com/mondoo-operator/tests/integration ‑ TestAuditConfigCustomNamespaceSuite/TestReconcile_Nodes_CronJobs
go.mondoo.com/mondoo-operator/tests/integration ‑ TestAuditConfigCustomNamespaceSuite/TestReconcile_Nodes_DaemonSet
go.mondoo.com/mondoo-operator/tests/integration ‑ TestAuditConfigOOMSuite
go.mondoo.com/mondoo-operator/tests/integration ‑ TestAuditConfigOOMSuite/TestOOMControllerReporting
go.mondoo.com/mondoo-operator/tests/integration ‑ TestAuditConfigOOMSuite/TestOOMNodeScan_CronJob
go.mondoo.com/mondoo-operator/tests/integration ‑ TestAuditConfigOOMSuite/TestOOMNodeScan_DaemonSet
go.mondoo.com/mondoo-operator/tests/integration ‑ TestAuditConfigOOMSuite/TestOOMScanAPI
go.mondoo.com/mondoo-operator/tests/integration ‑ TestAuditConfigSuite
go.mondoo.com/mondoo-operator/tests/integration ‑ TestAuditConfigSuite/TestReconcile_AdmissionEnforcing
go.mondoo.com/mondoo-operator/tests/integration ‑ TestAuditConfigSuite/TestReconcile_AdmissionEnforcingScaleDownScanApi
go.mondoo.com/mondoo-operator/tests/integration ‑ TestAuditConfigSuite/TestReconcile_AdmissionPermissive
go.mondoo.com/mondoo-operator/tests/integration ‑ TestAuditConfigSuite/TestReconcile_AllDisabled
go.mondoo.com/mondoo-operator/tests/integration ‑ TestAuditConfigSuite/TestReconcile_Containers
go.mondoo.com/mondoo-operator/tests/integration ‑ TestAuditConfigSuite/TestReconcile_KubernetesResources
go.mondoo.com/mondoo-operator/tests/integration ‑ TestAuditConfigSuite/TestReconcile_Nodes_CronJobs
go.mondoo.com/mondoo-operator/tests/integration ‑ TestAuditConfigSuite/TestReconcile_Nodes_DaemonSet
go.mondoo.com/mondoo-operator/tests/integration ‑ TestAuditConfigUpgradeSuite
go.mondoo.com/mondoo-operator/tests/integration ‑ TestAuditConfigUpgradeSuite/TestUpgradePreviousReleaseToLatest