Skip to content

Bump the gomodupdates group with 2 updates (#1115) #26

Bump the gomodupdates group with 2 updates (#1115)

Bump the gomodupdates group with 2 updates (#1115) #26

GitHub Actions / Test Results failed May 19, 2024 in 0s

4 fail, 19 pass in 6h 18m 36s

  8 files    8 suites   6h 18m 36s ⏱️
 23 tests  19 ✅ 0 💤  4 ❌
184 runs  172 ✅ 0 💤 12 ❌

Results for commit e555bc5.

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 8 runs failed: TestAuditConfigCustomNamespaceSuite/TestReconcile_Containers (go.mondoo.com/mondoo-operator/tests/integration)

integration-tests-gke-1.27.xml [took 1m 57s]
integration-tests-gke-1.28.xml [took 2m 17s]
integration-tests-gke-1.29.xml [took 1m 36s]
Raw output
Failed
=== RUN   TestAuditConfigCustomNamespaceSuite/TestReconcile_Containers
2024-05-19T23:17:16.037Z	INFO	utils/audit_config.go:71	Using image ghcr.io/mondoohq/mondoo-operator/cnspec:latest-rootless for mondoo-client
2024-05-19T23:17:16.037Z	DEBUG	utils/executor.go:271	Running command: kubectl run -n default nginx --image nginx -l app.kubernetes.io/name=nginx
2024-05-19T23:17:16.304Z	DEBUG	utils/executor.go:271	Running command: kubectl run -n default redis --image redis -l app.kubernetes.io/name=redis
2024-05-19T23:17:22.896Z	INFO	integration/audit_config_base_suite.go:252	Create an audit config that enables only workloads scanning.
2024-05-19T23:17:23.118Z	INFO	integration/audit_config_base_suite.go:262	Make sure the Mondoo k8s container image scan CronJob is created.
    audit_config_base_suite.go:1269: 
        	Error Trace:	/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:1269
        	            				/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:313
        	            				/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@17d23aa1d2cc should be the default k8s policies
    audit_config_base_suite.go:1269: 
        	Error Trace:	/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:1269
        	            				/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:313
        	            				/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/rule-evaluator@997edbf651e9 should be the default k8s policies
    audit_config_base_suite.go:1269: 
        	Error Trace:	/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:1269
        	            				/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:313
        	            				/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@0c6c8973e4dc should be the default k8s policies
    audit_config_base_suite.go:1269: 
        	Error Trace:	/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:1269
        	            				/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:313
        	            				/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@5b2fedfc401e should be the default k8s policies
    audit_config_base_suite.go:1269: 
        	Error Trace:	/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:1269
        	            				/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:313
        	            				/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@8bb9b6f3f3eb should be the default k8s policies
    audit_config_base_suite.go:1269: 
        	Error Trace:	/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:1269
        	            				/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:313
        	            				/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/alertmanager@c7e1686135a4 should be the default k8s policies
2024-05-19T23:19:07.694Z	INFO	installer/installer.go:212	gathering all logs from the test
2024-05-19T23:19:07.694Z	INFO	utils/k8s_helper.go:256	Gathering logs for all pods in namespace some-namespace
2024-05-19T23:19:07.753Z	DEBUG	utils/k8s_helper.go:545	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/AuditConfigCustomNamespaceSuite/TestReconcile_Containers/some-namespace_mondoo-client-containers-scan-28602678-5828r_1716160747.log
2024-05-19T23:19:07.933Z	INFO	utils/k8s_helper.go:267	Gathering pod describe for all pods in namespace some-namespace
2024-05-19T23:19:07.991Z	DEBUG	utils/k8s_helper.go:545	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/AuditConfigCustomNamespaceSuite/TestReconcile_Containers/describe_some-namespace_1716160747.log
2024-05-19T23:19:07.991Z	DEBUG	utils/executor.go:271	Running command: kubectl get pod -o yaml -n some-namespace mondoo-client-containers-scan-28602678-5828r
2024-05-19T23:19:08.382Z	DEBUG	utils/executor.go:271	Running command: kubectl get cronjob -o yaml -n some-namespace mondoo-client-containers-scan
2024-05-19T23:19:08.691Z	DEBUG	utils/executor.go:271	Running command: kubectl get mondooauditconfig -o yaml -n some-namespace mondoo-client
2024-05-19T23:19:08.912Z	INFO	utils/k8s_helper.go:318	Gathering events in namespace "some-namespace"
2024-05-19T23:19:08.912Z	DEBUG	utils/k8s_helper.go:545	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/AuditConfigCustomNamespaceSuite/TestReconcile_Containers/events_some-namespace_1716160748.log
2024-05-19T23:19:08.912Z	DEBUG	utils/executor.go:271	Running command: kubectl get events -n some-namespace
2024-05-19T23:19:09.254Z	INFO	installer/installer.go:212	gathering all logs from the test
2024-05-19T23:19:09.254Z	INFO	utils/k8s_helper.go:256	Gathering logs for all pods in namespace mondoo-operator
2024-05-19T23:19:09.330Z	DEBUG	utils/k8s_helper.go:545	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/AuditConfigCustomNamespaceSuite/TestReconcile_Containers/mondoo-operator_mondoo-operator-controller-manager-6f89c5bfb4-tw4hx_1716160749.log
2024-05-19T23:19:09.418Z	DEBUG	utils/k8s_helper.go:545	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/AuditConfigCustomNamespaceSuite/TestReconcile_Containers/mondoo-operator_mondoo-operator-controller-manager-6f89c5bfb4-tw4hx_previous_1716160749.log
2024-05-19T23:19:09.480Z	DEBUG	utils/executor.go:271	Running command: kubectl -n mondoo-operator logs mondoo-operator-controller-manager-6f89c5bfb4-tw4hx -c manager
2024-05-19T23:19:09.823Z	INFO	utils/k8s_helper.go:267	Gathering pod describe for all pods in namespace mondoo-operator
2024-05-19T23:19:09.893Z	DEBUG	utils/k8s_helper.go:545	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/AuditConfigCustomNamespaceSuite/TestReconcile_Containers/describe_mondoo-operator_1716160749.log
2024-05-19T23:19:09.893Z	DEBUG	utils/executor.go:271	Running command: kubectl get pod -o yaml -n mondoo-operator mondoo-operator-controller-manager-6f89c5bfb4-tw4hx
2024-05-19T23:19:10.186Z	DEBUG	utils/executor.go:271	Running command: kubectl get deployment -o yaml -n mondoo-operator mondoo-operator-controller-manager
2024-05-19T23:19:10.566Z	INFO	utils/k8s_helper.go:318	Gathering events in namespace "mondoo-operator"
2024-05-19T23:19:10.566Z	DEBUG	utils/k8s_helper.go:545	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/AuditConfigCustomNamespaceSuite/TestReconcile_Containers/events_mondoo-operator_1716160750.log
2024-05-19T23:19:10.566Z	DEBUG	utils/executor.go:271	Running command: kubectl get events -n mondoo-operator
2024-05-19T23:19:11.096Z	INFO	utils/k8s_helper.go:351	Resource k8s.mondoo.com/v1alpha2, Kind=MondooAuditConfig some-namespace/mondoo-client deleted.
2024-05-19T23:19:11.096Z	INFO	installer/installer.go:192	Deleted MondooAuditConfig some-namespace/mondoo-client.
2024-05-19T23:19:11.253Z	INFO	integration/audit_config_base_suite.go:117	Waiting for cleanup of the test cluster.
2024-05-19T23:19:11.550Z	INFO	integration/audit_config_base_suite.go:142	Cleanup done. Cluster should be good to go for the next test.
2024-05-19T23:19:12.708Z	DEBUG	utils/executor.go:271	Running command: kubectl delete pods -n default --all --wait
    --- FAIL: TestAuditConfigCustomNamespaceSuite/TestReconcile_Containers (117.90s)

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 8 runs failed: TestAuditConfigCustomNamespaceSuite (go.mondoo.com/mondoo-operator/tests/integration)

integration-tests-gke-1.27.xml [took 10m 49s]
integration-tests-gke-1.28.xml [took 9m 31s]
integration-tests-gke-1.29.xml [took 8m 30s]
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-05-19T23:13:53Z	INFO	Created Nexus space	{"space": "//captain.api.mondoo.app/spaces/crazy-poitras-268722"}
2024-05-19T23:13:53.834Z	INFO	installer/installer.go:91	Installing Mondoo operator with local manifest
2024-05-19T23:13:53.834Z	INFO	utils/manifest_utils.go:54	Reading file: /home/runner/work/mondoo-operator/mondoo-operator/mondoo-operator-manifests.yaml
2024-05-19T23:13:53.834Z	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-05-19T23:14:00.579Z	INFO	installer/installer.go:204	Created Мondoo client secret "mondoo-token".
2024-05-19T23:14:08.910Z	INFO	installer/installer.go:130	Mondoo operator is ready.
2024-05-19T23:14:08.973Z	INFO	integration/audit_config_namespace_test.go:36	Created test namespace.
2024-05-19T23:14:09.127Z	INFO	installer/installer.go:204	Created Мondoo client secret "mondoo-token".
2024-05-19T23:14:09.127Z	INFO	integration/audit_config_namespace_test.go:39	Created client secret in namespace "some-namespace".
2024-05-19T23:14:09.203Z	INFO	integration/audit_config_namespace_test.go:46	Created webhook ServiceAccount "webhook-sa" in namespace "some-namespace".
2024-05-19T23:14:09.262Z	INFO	integration/audit_config_namespace_test.go:53	Created service account "mondoo-sa" in namespace "some-namespace".
2024-05-19T23:14:09.375Z	INFO	integration/audit_config_namespace_test.go:66	Created cluster role binding "mondoo-operator-k8s-resources-scanning2".
--- FAIL: TestAuditConfigCustomNamespaceSuite (649.84s)

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 8 runs failed: TestAuditConfigSuite/TestReconcile_Containers (go.mondoo.com/mondoo-operator/tests/integration)

integration-tests-gke-1.27.xml [took 1m 51s]
integration-tests-gke-1.28.xml [took 2m 8s]
integration-tests-gke-1.29.xml [took 1m 41s]
Raw output
Failed
=== RUN   TestAuditConfigSuite/TestReconcile_Containers
2024-05-19T23:32:21.422Z	INFO	utils/audit_config.go:71	Using image ghcr.io/mondoohq/mondoo-operator/cnspec:latest-rootless for mondoo-client
2024-05-19T23:32:21.422Z	DEBUG	utils/executor.go:271	Running command: kubectl run -n default nginx --image nginx -l app.kubernetes.io/name=nginx
2024-05-19T23:32:21.669Z	DEBUG	utils/executor.go:271	Running command: kubectl run -n default redis --image redis -l app.kubernetes.io/name=redis
2024-05-19T23:32:24.123Z	INFO	integration/audit_config_base_suite.go:252	Create an audit config that enables only workloads scanning.
2024-05-19T23:32:24.269Z	INFO	integration/audit_config_base_suite.go:262	Make sure the Mondoo k8s container image scan CronJob is created.
    audit_config_base_suite.go:1269: 
        	Error Trace:	/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:1269
        	            				/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:313
        	            				/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/rule-evaluator@997edbf651e9 should be the default k8s policies
    audit_config_base_suite.go:1269: 
        	Error Trace:	/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:1269
        	            				/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:313
        	            				/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@0c6c8973e4dc should be the default k8s policies
    audit_config_base_suite.go:1269: 
        	Error Trace:	/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:1269
        	            				/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:313
        	            				/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@5b2fedfc401e should be the default k8s policies
    audit_config_base_suite.go:1269: 
        	Error Trace:	/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:1269
        	            				/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:313
        	            				/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/alertmanager@c7e1686135a4 should be the default k8s policies
    audit_config_base_suite.go:1269: 
        	Error Trace:	/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:1269
        	            				/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:313
        	            				/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@8bb9b6f3f3eb should be the default k8s policies
    audit_config_base_suite.go:1269: 
        	Error Trace:	/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:1269
        	            				/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:313
        	            				/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@17d23aa1d2cc should be the default k8s policies
2024-05-19T23:34:07.218Z	INFO	installer/installer.go:212	gathering all logs from the test
2024-05-19T23:34:07.218Z	INFO	utils/k8s_helper.go:256	Gathering logs for all pods in namespace mondoo-operator
2024-05-19T23:34:07.295Z	DEBUG	utils/k8s_helper.go:545	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/AuditConfigSuite/TestReconcile_Containers/mondoo-operator_mondoo-client-containers-scan-28602693-v7n5b_1716161647.log
2024-05-19T23:34:07.442Z	DEBUG	utils/k8s_helper.go:545	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/AuditConfigSuite/TestReconcile_Containers/mondoo-operator_mondoo-operator-controller-manager-6f89c5bfb4-pwg9c_1716161647.log
2024-05-19T23:34:07.534Z	DEBUG	utils/k8s_helper.go:545	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/AuditConfigSuite/TestReconcile_Containers/mondoo-operator_mondoo-operator-controller-manager-6f89c5bfb4-pwg9c_previous_1716161647.log
2024-05-19T23:34:07.596Z	DEBUG	utils/executor.go:271	Running command: kubectl -n mondoo-operator logs mondoo-operator-controller-manager-6f89c5bfb4-pwg9c -c manager
2024-05-19T23:34:07.939Z	INFO	utils/k8s_helper.go:267	Gathering pod describe for all pods in namespace mondoo-operator
2024-05-19T23:34:07.997Z	DEBUG	utils/k8s_helper.go:545	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/AuditConfigSuite/TestReconcile_Containers/describe_mondoo-operator_1716161647.log
2024-05-19T23:34:07.997Z	DEBUG	utils/executor.go:271	Running command: kubectl get pod -o yaml -n mondoo-operator mondoo-client-containers-scan-28602693-v7n5b
2024-05-19T23:34:08.233Z	DEBUG	utils/executor.go:271	Running command: kubectl get pod -o yaml -n mondoo-operator mondoo-operator-controller-manager-6f89c5bfb4-pwg9c
2024-05-19T23:34:08.516Z	DEBUG	utils/executor.go:271	Running command: kubectl get deployment -o yaml -n mondoo-operator mondoo-operator-controller-manager
2024-05-19T23:34:08.794Z	DEBUG	utils/executor.go:271	Running command: kubectl get cronjob -o yaml -n mondoo-operator mondoo-client-containers-scan
2024-05-19T23:34:09.077Z	DEBUG	utils/executor.go:271	Running command: kubectl get mondooauditconfig -o yaml -n mondoo-operator mondoo-client
2024-05-19T23:34:09.279Z	INFO	utils/k8s_helper.go:318	Gathering events in namespace "mondoo-operator"
2024-05-19T23:34:09.279Z	DEBUG	utils/k8s_helper.go:545	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/AuditConfigSuite/TestReconcile_Containers/events_mondoo-operator_1716161649.log
2024-05-19T23:34:09.279Z	DEBUG	utils/executor.go:271	Running command: kubectl get events -n mondoo-operator
2024-05-19T23:34:09.911Z	INFO	utils/k8s_helper.go:351	Resource k8s.mondoo.com/v1alpha2, Kind=MondooAuditConfig mondoo-operator/mondoo-client deleted.
2024-05-19T23:34:09.911Z	INFO	installer/installer.go:192	Deleted MondooAuditConfig mondoo-operator/mondoo-client.
2024-05-19T23:34:10.067Z	INFO	integration/audit_config_base_suite.go:117	Waiting for cleanup of the test cluster.
2024-05-19T23:34:10.399Z	INFO	integration/audit_config_base_suite.go:142	Cleanup done. Cluster should be good to go for the next test.
2024-05-19T23:34:11.538Z	DEBUG	utils/executor.go:271	Running command: kubectl delete pods -n default --all --wait
    --- FAIL: TestAuditConfigSuite/TestReconcile_Containers (111.22s)

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 8 runs failed: TestAuditConfigSuite (go.mondoo.com/mondoo-operator/tests/integration)

integration-tests-gke-1.27.xml [took 10m 49s]
integration-tests-gke-1.28.xml [took 10m 55s]
integration-tests-gke-1.29.xml [took 11m 5s]
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-05-19T23:29:03Z	INFO	Created Nexus space	{"space": "//captain.api.mondoo.app/spaces/angry-gates-327892"}
2024-05-19T23:29:04.091Z	INFO	installer/installer.go:91	Installing Mondoo operator with local manifest
2024-05-19T23:29:04.091Z	INFO	utils/manifest_utils.go:54	Reading file: /home/runner/work/mondoo-operator/mondoo-operator/mondoo-operator-manifests.yaml
2024-05-19T23:29:04.092Z	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-05-19T23:29:09.980Z	INFO	installer/installer.go:204	Created Мondoo client secret "mondoo-token".
2024-05-19T23:29:18.334Z	INFO	installer/installer.go:130	Mondoo operator is ready.
--- FAIL: TestAuditConfigSuite (649.49s)

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_Deployments
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_Deployment
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_Deployments
go.mondoo.com/mondoo-operator/tests/integration ‑ TestAuditConfigUpgradeSuite
go.mondoo.com/mondoo-operator/tests/integration ‑ TestAuditConfigUpgradeSuite/TestUpgradePreviousReleaseToLatest