Skip to content

Cloud tests

Cloud tests #165

GitHub Actions / Report cloud test results failed Feb 21, 2024 in 0s

62 passed, 42 failed and 0 skipped

Tests failed

Report Passed Failed Skipped Time
integration-tests-eks-1.25.xml 16✅ 4❌ 1738s
integration-tests-eks-1.26.xml 4❌ 5s
integration-tests-eks-1.27.xml 4❌ 5s
integration-tests-eks-1.28.xml 13✅ 7❌ 1708s
integration-tests-eks-1.29.xml 17✅ 3❌ 1779s
integration-tests-gke-1.25.xml 16✅ 4❌ 1553s
integration-tests-gke-1.26.xml 4❌ 5s
integration-tests-gke-1.27.xml 4❌ 5s
integration-tests-gke-1.28.xml 4❌ 7s
integration-tests-gke-1.29.xml 4❌ 4s

❌ integration-tests-eks-1.25.xml

20 tests were completed in 1738s with 16 passed, 4 failed and 0 skipped.

Test suite Passed Failed Skipped Time
go.mondoo.com/mondoo-operator/tests/integration 16✅ 4❌ 1734s

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

❌ 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_Containers
✅ TestAuditConfigCustomNamespaceSuite/TestReconcile_Nodes
✅ TestAuditConfigOOMSuite/TestOOMControllerReporting
✅ TestAuditConfigOOMSuite/TestOOMNodeScan
✅ TestAuditConfigOOMSuite/TestOOMScanAPI
✅ TestAuditConfigOOMSuite
✅ TestAuditConfigSuite/TestReconcile_AdmissionEnforcing
✅ TestAuditConfigSuite/TestReconcile_AdmissionEnforcingScaleDownScanApi
✅ TestAuditConfigSuite/TestReconcile_AdmissionPermissive
✅ TestAuditConfigSuite/TestReconcile_AllDisabled
✅ TestAuditConfigSuite/TestReconcile_Containers
✅ TestAuditConfigSuite/TestReconcile_Nodes
✅ TestAuditConfigUpgradeSuite/TestUpgradePreviousReleaseToLatest
✅ TestAuditConfigUpgradeSuite

❌ integration-tests-eks-1.26.xml

4 tests were completed in 5s with 0 passed, 4 failed and 0 skipped.

Test suite Passed Failed Skipped Time
go.mondoo.com/mondoo-operator/tests/integration 4❌ 358ms

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

❌ TestAuditConfigCustomNamespaceSuite
	=== RUN   TestAuditConfigCustomNamespaceSuite
❌ TestAuditConfigOOMSuite
	=== RUN   TestAuditConfigOOMSuite
❌ TestAuditConfigSuite
	=== RUN   TestAuditConfigSuite
❌ TestAuditConfigUpgradeSuite
	=== RUN   TestAuditConfigUpgradeSuite

❌ integration-tests-eks-1.27.xml

4 tests were completed in 5s with 0 passed, 4 failed and 0 skipped.

Test suite Passed Failed Skipped Time
go.mondoo.com/mondoo-operator/tests/integration 4❌ 460ms

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

❌ TestAuditConfigCustomNamespaceSuite
	=== RUN   TestAuditConfigCustomNamespaceSuite
❌ TestAuditConfigOOMSuite
	=== RUN   TestAuditConfigOOMSuite
❌ TestAuditConfigSuite
	=== RUN   TestAuditConfigSuite
❌ TestAuditConfigUpgradeSuite
	=== RUN   TestAuditConfigUpgradeSuite

❌ integration-tests-eks-1.28.xml

20 tests were completed in 1708s with 13 passed, 7 failed and 0 skipped.

Test suite Passed Failed Skipped Time
go.mondoo.com/mondoo-operator/tests/integration 13✅ 7❌ 1704s

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

❌ TestAuditConfigCustomNamespaceSuite/TestReconcile_Admission
	=== RUN   TestAuditConfigCustomNamespaceSuite/TestReconcile_Admission
❌ TestAuditConfigCustomNamespaceSuite/TestReconcile_KubernetesResources
	=== RUN   TestAuditConfigCustomNamespaceSuite/TestReconcile_KubernetesResources
❌ TestAuditConfigCustomNamespaceSuite
	=== RUN   TestAuditConfigCustomNamespaceSuite
❌ TestAuditConfigOOMSuite/TestOOMScanAPI
	=== RUN   TestAuditConfigOOMSuite/TestOOMScanAPI
❌ TestAuditConfigOOMSuite
	=== RUN   TestAuditConfigOOMSuite
❌ TestAuditConfigSuite/TestReconcile_KubernetesResources
	=== RUN   TestAuditConfigSuite/TestReconcile_KubernetesResources
❌ TestAuditConfigSuite
	=== RUN   TestAuditConfigSuite
✅ TestAuditConfigCustomNamespaceSuite/TestReconcile_AdmissionMissingSA
✅ TestAuditConfigCustomNamespaceSuite/TestReconcile_Containers
✅ TestAuditConfigCustomNamespaceSuite/TestReconcile_Nodes
✅ TestAuditConfigOOMSuite/TestOOMControllerReporting
✅ TestAuditConfigOOMSuite/TestOOMNodeScan
✅ TestAuditConfigSuite/TestReconcile_AdmissionEnforcing
✅ TestAuditConfigSuite/TestReconcile_AdmissionEnforcingScaleDownScanApi
✅ TestAuditConfigSuite/TestReconcile_AdmissionPermissive
✅ TestAuditConfigSuite/TestReconcile_AllDisabled
✅ TestAuditConfigSuite/TestReconcile_Containers
✅ TestAuditConfigSuite/TestReconcile_Nodes
✅ TestAuditConfigUpgradeSuite/TestUpgradePreviousReleaseToLatest
✅ TestAuditConfigUpgradeSuite

❌ integration-tests-eks-1.29.xml

20 tests were completed in 1779s with 17 passed, 3 failed and 0 skipped.

Test suite Passed Failed Skipped Time
go.mondoo.com/mondoo-operator/tests/integration 17✅ 3❌ 1775s

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

❌ TestAuditConfigSuite/TestReconcile_AdmissionEnforcing
	=== RUN   TestAuditConfigSuite/TestReconcile_AdmissionEnforcing
❌ TestAuditConfigSuite/TestReconcile_KubernetesResources
	=== RUN   TestAuditConfigSuite/TestReconcile_KubernetesResources
❌ TestAuditConfigSuite
	=== RUN   TestAuditConfigSuite
✅ TestAuditConfigCustomNamespaceSuite/TestReconcile_Admission
✅ TestAuditConfigCustomNamespaceSuite/TestReconcile_AdmissionMissingSA
✅ TestAuditConfigCustomNamespaceSuite/TestReconcile_Containers
✅ TestAuditConfigCustomNamespaceSuite/TestReconcile_KubernetesResources
✅ TestAuditConfigCustomNamespaceSuite/TestReconcile_Nodes
✅ TestAuditConfigCustomNamespaceSuite
✅ TestAuditConfigOOMSuite/TestOOMControllerReporting
✅ TestAuditConfigOOMSuite/TestOOMNodeScan
✅ TestAuditConfigOOMSuite/TestOOMScanAPI
✅ TestAuditConfigOOMSuite
✅ TestAuditConfigSuite/TestReconcile_AdmissionEnforcingScaleDownScanApi
✅ TestAuditConfigSuite/TestReconcile_AdmissionPermissive
✅ TestAuditConfigSuite/TestReconcile_AllDisabled
✅ TestAuditConfigSuite/TestReconcile_Containers
✅ TestAuditConfigSuite/TestReconcile_Nodes
✅ TestAuditConfigUpgradeSuite/TestUpgradePreviousReleaseToLatest
✅ TestAuditConfigUpgradeSuite

❌ integration-tests-gke-1.25.xml

20 tests were completed in 1553s with 16 passed, 4 failed and 0 skipped.

Test suite Passed Failed Skipped Time
go.mondoo.com/mondoo-operator/tests/integration 16✅ 4❌ 1549s

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

❌ TestAuditConfigCustomNamespaceSuite/TestReconcile_Admission
	=== RUN   TestAuditConfigCustomNamespaceSuite/TestReconcile_Admission
❌ TestAuditConfigCustomNamespaceSuite
	=== RUN   TestAuditConfigCustomNamespaceSuite
❌ TestAuditConfigOOMSuite/TestOOMScanAPI
	=== RUN   TestAuditConfigOOMSuite/TestOOMScanAPI
❌ TestAuditConfigOOMSuite
	=== RUN   TestAuditConfigOOMSuite
✅ TestAuditConfigCustomNamespaceSuite/TestReconcile_AdmissionMissingSA
✅ TestAuditConfigCustomNamespaceSuite/TestReconcile_Containers
✅ TestAuditConfigCustomNamespaceSuite/TestReconcile_KubernetesResources
✅ TestAuditConfigCustomNamespaceSuite/TestReconcile_Nodes
✅ TestAuditConfigOOMSuite/TestOOMControllerReporting
✅ TestAuditConfigOOMSuite/TestOOMNodeScan
✅ TestAuditConfigSuite/TestReconcile_AdmissionEnforcing
✅ TestAuditConfigSuite/TestReconcile_AdmissionEnforcingScaleDownScanApi
✅ TestAuditConfigSuite/TestReconcile_AdmissionPermissive
✅ TestAuditConfigSuite/TestReconcile_AllDisabled
✅ TestAuditConfigSuite/TestReconcile_Containers
✅ TestAuditConfigSuite/TestReconcile_KubernetesResources
✅ TestAuditConfigSuite/TestReconcile_Nodes
✅ TestAuditConfigSuite
✅ TestAuditConfigUpgradeSuite/TestUpgradePreviousReleaseToLatest
✅ TestAuditConfigUpgradeSuite

❌ integration-tests-gke-1.26.xml

4 tests were completed in 5s with 0 passed, 4 failed and 0 skipped.

Test suite Passed Failed Skipped Time
go.mondoo.com/mondoo-operator/tests/integration 4❌ 318ms

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

❌ TestAuditConfigCustomNamespaceSuite
	=== RUN   TestAuditConfigCustomNamespaceSuite
❌ TestAuditConfigOOMSuite
	=== RUN   TestAuditConfigOOMSuite
❌ TestAuditConfigSuite
	=== RUN   TestAuditConfigSuite
❌ TestAuditConfigUpgradeSuite
	=== RUN   TestAuditConfigUpgradeSuite

❌ integration-tests-gke-1.27.xml

4 tests were completed in 5s with 0 passed, 4 failed and 0 skipped.

Test suite Passed Failed Skipped Time
go.mondoo.com/mondoo-operator/tests/integration 4❌ 421ms

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

❌ TestAuditConfigCustomNamespaceSuite
	=== RUN   TestAuditConfigCustomNamespaceSuite
❌ TestAuditConfigOOMSuite
	=== RUN   TestAuditConfigOOMSuite
❌ TestAuditConfigSuite
	=== RUN   TestAuditConfigSuite
❌ TestAuditConfigUpgradeSuite
	=== RUN   TestAuditConfigUpgradeSuite

❌ integration-tests-gke-1.28.xml

4 tests were completed in 7s with 0 passed, 4 failed and 0 skipped.

Test suite Passed Failed Skipped Time
go.mondoo.com/mondoo-operator/tests/integration 4❌ 373ms

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

❌ TestAuditConfigCustomNamespaceSuite
	=== RUN   TestAuditConfigCustomNamespaceSuite
❌ TestAuditConfigOOMSuite
	=== RUN   TestAuditConfigOOMSuite
❌ TestAuditConfigSuite
	=== RUN   TestAuditConfigSuite
❌ TestAuditConfigUpgradeSuite
	=== RUN   TestAuditConfigUpgradeSuite

❌ integration-tests-gke-1.29.xml

4 tests were completed in 4s with 0 passed, 4 failed and 0 skipped.

Test suite Passed Failed Skipped Time
go.mondoo.com/mondoo-operator/tests/integration 4❌ 394ms

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

❌ TestAuditConfigCustomNamespaceSuite
	=== RUN   TestAuditConfigCustomNamespaceSuite
❌ TestAuditConfigOOMSuite
	=== RUN   TestAuditConfigOOMSuite
❌ TestAuditConfigSuite
	=== RUN   TestAuditConfigSuite
❌ TestAuditConfigUpgradeSuite
	=== RUN   TestAuditConfigUpgradeSuite

Annotations

Check failure on line 0 in integration-tests-eks-1.25.xml

See this annotation in the file changed.

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

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

Failed test found in:
  integration-tests-eks-1.25.xml
Error:
  === RUN   TestAuditConfigCustomNamespaceSuite/TestReconcile_KubernetesResources
Raw output
=== RUN   TestAuditConfigCustomNamespaceSuite/TestReconcile_KubernetesResources
2024-02-21T18:34:51.611Z	INFO	utils/audit_config.go:56	Using image ghcr.io/mondoohq/mondoo-operator/cnspec:latest-rootless for mondoo-client
2024-02-21T18:34:51.707Z	INFO	integration/audit_config_base_suite.go:160	Create an audit config that enables only workloads scanning.
2024-02-21T18:34:51.903Z	INFO	integration/audit_config_base_suite.go:965	Waiting for scan API Pod to become ready.
2024-02-21T18:35:04.565Z	INFO	integration/audit_config_base_suite.go:969	Scan API Pod is ready.
2024-02-21T18:35:04.658Z	INFO	integration/audit_config_base_suite.go:986	Waiting for good condition of Scan API
2024-02-21T18:35:04.848Z	INFO	integration/audit_config_base_suite.go:171	Make sure the Mondoo k8s resources scan CronJob is created.
2024-02-21T18:36:06.189Z	INFO	integration/audit_config_base_suite.go:199	number of workload amount 19
2024-02-21T18:37:08.961Z	INFO	integration/audit_config_base_suite.go:224	number of assets from upstream: 20
2024-02-21T18:37:08.961Z	INFO	integration/audit_config_base_suite.go:1367	Asset some-namespace/mondoo-client-scan-api has no score
    audit_config_base_suite.go:1369: 
        	Error Trace:	/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:1369
        	            				/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:233
        	            				/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 some-namespace/mondoo-client-scan-api should not be unscored
2024-02-21T18:37:08.961Z	INFO	integration/audit_config_base_suite.go:1367	Asset some-namespace/mondoo-client-scan-api-c5f7cc898 has no score
    audit_config_base_suite.go:1369: 
        	Error Trace:	/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:1369
        	            				/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:233
        	            				/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 some-namespace/mondoo-client-scan-api-c5f7cc898 should not be unscored
2024-02-21T18:37:09.130Z	INFO	installer/installer.go:186	gathering all logs from the test
2024-02-21T18:37:09.130Z	INFO	utils/k8s_helper.go:256	Gathering logs for all pods in namespace some-namespace
2024-02-21T18:37:09.313Z	DEBUG	utils/k8s_helper.go:491	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/TestReconcile_KubernetesResources_some-namespace_mondoo-client-k8s-scan-28475675-krx2z_1708540629.log
2024-02-21T18:37:09.420Z	DEBUG	utils/k8s_helper.go:491	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/TestReconcile_KubernetesResources_some-namespace_mondoo-client-scan-api-c5f7cc898-6c2kt_1708540629.log
2024-02-21T18:37:09.524Z	INFO	utils/k8s_helper.go:267	Gathering pod describe for all pods in namespace some-namespace
2024-02-21T18:37:09.623Z	DEBUG	utils/k8s_helper.go:491	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/some-namespace_describe_TestReconcile_KubernetesResources_1708540629.log
2024-02-21T18:37:09.623Z	DEBUG	utils/executor.go:271	Running command: kubectl get pod -o yaml -n some-namespace mondoo-client-k8s-scan-28475675-krx2z
2024-02-21T18:37:10.637Z	DEBUG	utils/executor.go:271	Running command: kubectl get pod -o yaml -n some-namespace mondoo-client-scan-api-c5f7cc898-6c2kt
2024-02-21T18:37:11.813Z	DEBUG	utils/executor.go:271	Running command: kubectl get deployment -o yaml -n some-namespace mondoo-client-scan-api
2024-02-21T18:37:12.945Z	DEBUG	utils/executor.go:271	Running command: kubectl get cronjob -o yaml -n some-namespace mondoo-client-k8s-scan
2024-02-21T18:37:14.013Z	DEBUG	utils/executor.go:271	Running command: kubectl get mondooauditconfig -o yaml -n some-namespace mondoo-client
2024-02-21T18:37:14.977Z	INFO	utils/k8s_helper.go:318	Gathering events in namespace "some-namespace"
2024-02-21T18:37:14.977Z	DEBUG	utils/k8s_helper.go:491	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/some-namespace_events_TestReconcile_KubernetesResources_1708540634.log
2024-02-21T18:37:14.977Z	DEBUG	utils/executor.go:271	Running command: kubectl get events -n some-namespace
2024-02-21T18:37:16.106Z	INFO	installer/installer.go:186	gathering all logs from the test
2024-02-21T18:37:16.106Z	INFO	utils/k8s_helper.go:256	Gathering logs for all pods in namespace mondoo-operator
2024-02-21T18:37:16.202Z	DEBUG	utils/k8s_helper.go:491	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/TestReconcile_KubernetesResources_mondoo-operator_mondoo-operator-controller-manager-596c489f58-v7rdf_1708540636.log
2024-02-21T18:37:16.479Z	DEBUG	utils/k8s_helper.go:491	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/TestReconcile_KubernetesResources_mondoo-operator_mondoo-operator-controller-manager-596c489f58-v7rdf_previous_1708540636.log
2024-02-21T18:37:16.576Z	DEBUG	utils/executor.go:271	Running command: kubectl -n mondoo-operator logs mondoo-operator-controller-manager-596c489f58-v7rdf -c manager
2024-02-21T18:37:17.822Z	INFO	utils/k8s_helper.go:267	Gathering pod describe for all pods in namespace mondoo-operator
2024-02-21T18:37:17.916Z	DEBUG	utils/k8s_helper.go:491	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/mondoo-operator_describe_TestReconcile_KubernetesResources_1708540637.log
2024-02-21T18:37:17.916Z	DEBUG	utils/executor.go:271	Running command: kubectl get pod -o yaml -n mondoo-operator mondoo-operator-controller-manager-596c489f58-v7rdf
2024-02-21T18:37:18.938Z	DEBUG	utils/executor.go:271	Running command: kubectl get deployment -o yaml -n mondoo-operator mondoo-operator-controller-manager
2024-02-21T18:37:20.105Z	INFO	utils/k8s_helper.go:318	Gathering events in namespace "mondoo-operator"
2024-02-21T18:37:20.105Z	DEBUG	utils/k8s_helper.go:491	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/mondoo-operator_events_TestReconcile_KubernetesResources_1708540640.log
2024-02-21T18:37:20.105Z	DEBUG	utils/executor.go:271	Running command: kubectl get events -n mondoo-operator
2024-02-21T18:37:21.439Z	INFO	utils/k8s_helper.go:351	Resource k8s.mondoo.com/v1alpha2, Kind=MondooAuditConfig some-namespace/mondoo-client deleted.
2024-02-21T18:37:21.439Z	INFO	installer/installer.go:166	Deleted MondooAuditConfig some-namespace/mondoo-client.
2024-02-21T18:37:21.628Z	INFO	integration/audit_config_base_suite.go:118	Waiting for cleanup of the test cluster.
2024-02-21T18:37:24.191Z	INFO	integration/audit_config_base_suite.go:143	Cleanup done. Cluster should be good to go for the next test.
2024-02-21T18:37:26.397Z	DEBUG	utils/executor.go:271	Running command: kubectl delete pods -n default --all --wait
    --- FAIL: TestAuditConfigCustomNamespaceSuite/TestReconcile_KubernetesResources (155.74s)

Check failure on line 0 in integration-tests-eks-1.25.xml

See this annotation in the file changed.

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

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

Failed test found in:
  integration-tests-eks-1.25.xml
Error:
  === RUN   TestAuditConfigCustomNamespaceSuite
Raw output
=== RUN   TestAuditConfigCustomNamespaceSuite
Using GraphQL endpoint https://api.mondoo.com/query
Using org MRN //captain.api.mondoo.app/organizations/mondoo-operator-testing
2024-02-21T18:29:26Z	INFO	Created Nexus space	{"space": "//captain.api.mondoo.app/spaces/busy-volhard-723283"}
2024-02-21T18:29:27.715Z	INFO	installer/installer.go:89	Installing Mondoo operator with local manifest
2024-02-21T18:29:27.716Z	INFO	utils/manifest_utils.go:54	Reading file: /home/runner/work/mondoo-operator/mondoo-operator/mondoo-operator-manifests.yaml
2024-02-21T18:29:27.716Z	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-02-21T18:29:34.713Z	INFO	installer/installer.go:178	Created Мondoo client secret "mondoo-token".
2024-02-21T18:29:45.296Z	INFO	installer/installer.go:105	Mondoo operator is ready.
2024-02-21T18:29:45.395Z	INFO	integration/audit_config_namespace_test.go:34	Created test namespace.
2024-02-21T18:29:45.613Z	INFO	installer/installer.go:178	Created Мondoo client secret "mondoo-token".
2024-02-21T18:29:45.613Z	INFO	integration/audit_config_namespace_test.go:37	Created client secret in namespace "some-namespace".
2024-02-21T18:29:45.708Z	INFO	integration/audit_config_namespace_test.go:44	Created webhook ServiceAccount "webhook-sa" in namespace "some-namespace".
2024-02-21T18:29:45.803Z	INFO	integration/audit_config_namespace_test.go:51	Created service account "mondoo-sa" in namespace "some-namespace".
2024-02-21T18:29:45.989Z	INFO	integration/audit_config_namespace_test.go:64	Created cluster role binding "mondoo-operator-k8s-resources-scanning2".
--- FAIL: TestAuditConfigCustomNamespaceSuite (693.80s)

Check failure on line 0 in integration-tests-eks-1.25.xml

See this annotation in the file changed.

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

go.mondoo.com/mondoo-operator/tests/integration ► TestAuditConfigSuite/TestReconcile_KubernetesResources

Failed test found in:
  integration-tests-eks-1.25.xml
Error:
  === RUN   TestAuditConfigSuite/TestReconcile_KubernetesResources
Raw output
=== RUN   TestAuditConfigSuite/TestReconcile_KubernetesResources
2024-02-21T18:50:45.205Z	INFO	utils/audit_config.go:56	Using image ghcr.io/mondoohq/mondoo-operator/cnspec:latest-rootless for mondoo-client
2024-02-21T18:50:45.300Z	INFO	integration/audit_config_base_suite.go:160	Create an audit config that enables only workloads scanning.
2024-02-21T18:50:45.496Z	INFO	integration/audit_config_base_suite.go:965	Waiting for scan API Pod to become ready.
2024-02-21T18:50:58.163Z	INFO	integration/audit_config_base_suite.go:969	Scan API Pod is ready.
2024-02-21T18:50:58.258Z	INFO	integration/audit_config_base_suite.go:986	Waiting for good condition of Scan API
2024-02-21T18:50:58.448Z	INFO	integration/audit_config_base_suite.go:171	Make sure the Mondoo k8s resources scan CronJob is created.
2024-02-21T18:51:59.665Z	INFO	integration/audit_config_base_suite.go:199	number of workload amount 19
2024-02-21T18:53:01.066Z	INFO	integration/audit_config_base_suite.go:224	number of assets from upstream: 20
2024-02-21T18:53:01.066Z	INFO	integration/audit_config_base_suite.go:1367	Asset mondoo-operator/mondoo-client-scan-api-8bff5c6cb-n7zck has no score
    audit_config_base_suite.go:1369: 
        	Error Trace:	/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:1369
        	            				/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:233
        	            				/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_test.go:27
        	Error:      	Should not be: "U"
        	Test:       	TestAuditConfigSuite/TestReconcile_KubernetesResources
        	Messages:   	Asset mondoo-operator/mondoo-client-scan-api-8bff5c6cb-n7zck should not be unscored
2024-02-21T18:53:01.066Z	INFO	integration/audit_config_base_suite.go:1367	Asset mondoo-operator/mondoo-client-scan-api-8bff5c6cb has no score
    audit_config_base_suite.go:1369: 
        	Error Trace:	/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:1369
        	            				/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:233
        	            				/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_test.go:27
        	Error:      	Should not be: "U"
        	Test:       	TestAuditConfigSuite/TestReconcile_KubernetesResources
        	Messages:   	Asset mondoo-operator/mondoo-client-scan-api-8bff5c6cb should not be unscored
2024-02-21T18:53:01.066Z	INFO	integration/audit_config_base_suite.go:1367	Asset mondoo-operator/mondoo-client-scan-api has no score
    audit_config_base_suite.go:1369: 
        	Error Trace:	/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:1369
        	            				/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:233
        	            				/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_test.go:27
        	Error:      	Should not be: "U"
        	Test:       	TestAuditConfigSuite/TestReconcile_KubernetesResources
        	Messages:   	Asset mondoo-operator/mondoo-client-scan-api should not be unscored
2024-02-21T18:53:01.258Z	INFO	installer/installer.go:186	gathering all logs from the test
2024-02-21T18:53:01.258Z	INFO	utils/k8s_helper.go:256	Gathering logs for all pods in namespace mondoo-operator
2024-02-21T18:53:01.443Z	DEBUG	utils/k8s_helper.go:491	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/TestReconcile_KubernetesResources_mondoo-operator_mondoo-client-k8s-scan-28475691-gc7kf_1708541581.log
2024-02-21T18:53:01.557Z	DEBUG	utils/k8s_helper.go:491	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/TestReconcile_KubernetesResources_mondoo-operator_mondoo-client-scan-api-8bff5c6cb-n7zck_1708541581.log
2024-02-21T18:53:01.673Z	DEBUG	utils/k8s_helper.go:491	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/TestReconcile_KubernetesResources_mondoo-operator_mondoo-operator-controller-manager-596c489f58-g2qtz_1708541581.log
2024-02-21T18:53:01.951Z	DEBUG	utils/k8s_helper.go:491	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/TestReconcile_KubernetesResources_mondoo-operator_mondoo-operator-controller-manager-596c489f58-g2qtz_previous_1708541581.log
2024-02-21T18:53:02.055Z	DEBUG	utils/executor.go:271	Running command: kubectl -n mondoo-operator logs mondoo-operator-controller-manager-596c489f58-g2qtz -c manager
2024-02-21T18:53:03.289Z	INFO	utils/k8s_helper.go:267	Gathering pod describe for all pods in namespace mondoo-operator
2024-02-21T18:53:03.473Z	DEBUG	utils/k8s_helper.go:491	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/mondoo-operator_describe_TestReconcile_KubernetesResources_1708541583.log
2024-02-21T18:53:03.473Z	DEBUG	utils/executor.go:271	Running command: kubectl get pod -o yaml -n mondoo-operator mondoo-client-k8s-scan-28475691-gc7kf
2024-02-21T18:53:04.466Z	DEBUG	utils/executor.go:271	Running command: kubectl get pod -o yaml -n mondoo-operator mondoo-client-scan-api-8bff5c6cb-n7zck
2024-02-21T18:53:05.607Z	DEBUG	utils/executor.go:271	Running command: kubectl get pod -o yaml -n mondoo-operator mondoo-operator-controller-manager-596c489f58-g2qtz
2024-02-21T18:53:06.757Z	DEBUG	utils/executor.go:271	Running command: kubectl get deployment -o yaml -n mondoo-operator mondoo-client-scan-api
2024-02-21T18:53:07.774Z	DEBUG	utils/executor.go:271	Running command: kubectl get deployment -o yaml -n mondoo-operator mondoo-operator-controller-manager
2024-02-21T18:53:08.847Z	DEBUG	utils/executor.go:271	Running command: kubectl get cronjob -o yaml -n mondoo-operator mondoo-client-k8s-scan
2024-02-21T18:53:09.869Z	DEBUG	utils/executor.go:271	Running command: kubectl get mondooauditconfig -o yaml -n mondoo-operator mondoo-client
2024-02-21T18:53:10.801Z	INFO	utils/k8s_helper.go:318	Gathering events in namespace "mondoo-operator"
2024-02-21T18:53:10.801Z	DEBUG	utils/k8s_helper.go:491	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/mondoo-operator_events_TestReconcile_KubernetesResources_1708541590.log
2024-02-21T18:53:10.801Z	DEBUG	utils/executor.go:271	Running command: kubectl get events -n mondoo-operator
2024-02-21T18:53:12.310Z	INFO	utils/k8s_helper.go:351	Resource k8s.mondoo.com/v1alpha2, Kind=MondooAuditConfig mondoo-operator/mondoo-client deleted.
2024-02-21T18:53:12.310Z	INFO	installer/installer.go:166	Deleted MondooAuditConfig mondoo-operator/mondoo-client.
2024-02-21T18:53:12.500Z	INFO	integration/audit_config_base_suite.go:118	Waiting for cleanup of the test cluster.
2024-02-21T18:53:15.061Z	INFO	integration/audit_config_base_suite.go:143	Cleanup done. Cluster should be good to go for the next test.
2024-02-21T18:53:15.288Z	DEBUG	utils/executor.go:271	Running command: kubectl delete pods -n default --all --wait
    --- FAIL: TestAuditConfigSuite/TestReconcile_KubernetesResources (151.02s)

Check failure on line 0 in integration-tests-eks-1.25.xml

See this annotation in the file changed.

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

go.mondoo.com/mondoo-operator/tests/integration ► TestAuditConfigSuite

Failed test found in:
  integration-tests-eks-1.25.xml
Error:
  === RUN   TestAuditConfigSuite
Raw output
=== RUN   TestAuditConfigSuite
Using GraphQL endpoint https://api.mondoo.com/query
Using org MRN //captain.api.mondoo.app/organizations/mondoo-operator-testing
2024-02-21T18:44:56Z	INFO	Created Nexus space	{"space": "//captain.api.mondoo.app/spaces/festive-borg-565898"}
2024-02-21T18:44:57.382Z	INFO	installer/installer.go:89	Installing Mondoo operator with local manifest
2024-02-21T18:44:57.382Z	INFO	utils/manifest_utils.go:54	Reading file: /home/runner/work/mondoo-operator/mondoo-operator/mondoo-operator-manifests.yaml
2024-02-21T18:44:57.382Z	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-02-21T18:45:03.569Z	INFO	installer/installer.go:178	Created Мondoo client secret "mondoo-token".
2024-02-21T18:45:14.141Z	INFO	installer/installer.go:105	Mondoo operator is ready.
--- FAIL: TestAuditConfigSuite (719.74s)

Check failure on line 0 in integration-tests-eks-1.26.xml

See this annotation in the file changed.

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

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

Failed test found in:
  integration-tests-eks-1.26.xml
Error:
  === RUN   TestAuditConfigCustomNamespaceSuite
Raw output
=== RUN   TestAuditConfigCustomNamespaceSuite
Using GraphQL endpoint https://api.mondoo.com/query
Using org MRN //captain.api.mondoo.app/organizations/mondoo-operator-testing
    audit_config_base_suite.go:74: 
        	Error Trace:	/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:74
        	            				/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_namespace_test.go:28
        	            				/home/runner/go/pkg/mod/github.com/stretchr/[email protected]/suite/suite.go:154
        	            				/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_namespace_test.go:131
        	Error:      	Received unexpected error:
        	            	Quota for spaces in //captain.api.mondoo.app/organizations/mondoo-operator-testing reached. Max allowed is 10
        	Test:       	TestAuditConfigCustomNamespaceSuite
        	Messages:   	Failed to create Nexus space
--- FAIL: TestAuditConfigCustomNamespaceSuite (0.14s)

Check failure on line 0 in integration-tests-eks-1.26.xml

See this annotation in the file changed.

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

go.mondoo.com/mondoo-operator/tests/integration ► TestAuditConfigOOMSuite

Failed test found in:
  integration-tests-eks-1.26.xml
Error:
  === RUN   TestAuditConfigOOMSuite
Raw output
=== RUN   TestAuditConfigOOMSuite
Using GraphQL endpoint https://api.mondoo.com/query
Using org MRN //captain.api.mondoo.app/organizations/mondoo-operator-testing
    audit_config_base_suite.go:74: 
        	Error Trace:	/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:74
        	            				/home/runner/go/pkg/mod/github.com/stretchr/[email protected]/suite/suite.go:154
        	            				/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_oom_test.go:51
        	Error:      	Received unexpected error:
        	            	Quota for spaces in //captain.api.mondoo.app/organizations/mondoo-operator-testing reached. Max allowed is 10
        	Test:       	TestAuditConfigOOMSuite
        	Messages:   	Failed to create Nexus space
--- FAIL: TestAuditConfigOOMSuite (0.07s)

Check failure on line 0 in integration-tests-eks-1.26.xml

See this annotation in the file changed.

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

go.mondoo.com/mondoo-operator/tests/integration ► TestAuditConfigSuite

Failed test found in:
  integration-tests-eks-1.26.xml
Error:
  === RUN   TestAuditConfigSuite
Raw output
=== RUN   TestAuditConfigSuite
Using GraphQL endpoint https://api.mondoo.com/query
Using org MRN //captain.api.mondoo.app/organizations/mondoo-operator-testing
    audit_config_base_suite.go:74: 
        	Error Trace:	/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:74
        	            				/home/runner/go/pkg/mod/github.com/stretchr/[email protected]/suite/suite.go:154
        	            				/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_test.go:81
        	Error:      	Received unexpected error:
        	            	Quota for spaces in //captain.api.mondoo.app/organizations/mondoo-operator-testing reached. Max allowed is 10
        	Test:       	TestAuditConfigSuite
        	Messages:   	Failed to create Nexus space
--- FAIL: TestAuditConfigSuite (0.06s)

Check failure on line 0 in integration-tests-eks-1.26.xml

See this annotation in the file changed.

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

go.mondoo.com/mondoo-operator/tests/integration ► TestAuditConfigUpgradeSuite

Failed test found in:
  integration-tests-eks-1.26.xml
Error:
  === RUN   TestAuditConfigUpgradeSuite
Raw output
=== RUN   TestAuditConfigUpgradeSuite
Using GraphQL endpoint https://api.mondoo.com/query
Using org MRN //captain.api.mondoo.app/organizations/mondoo-operator-testing
    audit_config_base_suite.go:74: 
        	Error Trace:	/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:74
        	            				/home/runner/go/pkg/mod/github.com/stretchr/[email protected]/suite/suite.go:154
        	            				/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_upgrade_test.go:50
        	Error:      	Received unexpected error:
        	            	Quota for spaces in //captain.api.mondoo.app/organizations/mondoo-operator-testing reached. Max allowed is 10
        	Test:       	TestAuditConfigUpgradeSuite
        	Messages:   	Failed to create Nexus space
--- FAIL: TestAuditConfigUpgradeSuite (0.07s)

Check failure on line 0 in integration-tests-eks-1.27.xml

See this annotation in the file changed.

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

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

Failed test found in:
  integration-tests-eks-1.27.xml
Error:
  === RUN   TestAuditConfigCustomNamespaceSuite
Raw output
=== RUN   TestAuditConfigCustomNamespaceSuite
Using GraphQL endpoint https://api.mondoo.com/query
Using org MRN //captain.api.mondoo.app/organizations/mondoo-operator-testing
    audit_config_base_suite.go:74: 
        	Error Trace:	/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:74
        	            				/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_namespace_test.go:28
        	            				/home/runner/go/pkg/mod/github.com/stretchr/[email protected]/suite/suite.go:154
        	            				/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_namespace_test.go:131
        	Error:      	Received unexpected error:
        	            	Quota for spaces in //captain.api.mondoo.app/organizations/mondoo-operator-testing reached. Max allowed is 10
        	Test:       	TestAuditConfigCustomNamespaceSuite
        	Messages:   	Failed to create Nexus space
--- FAIL: TestAuditConfigCustomNamespaceSuite (0.21s)

Check failure on line 0 in integration-tests-eks-1.27.xml

See this annotation in the file changed.

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

go.mondoo.com/mondoo-operator/tests/integration ► TestAuditConfigOOMSuite

Failed test found in:
  integration-tests-eks-1.27.xml
Error:
  === RUN   TestAuditConfigOOMSuite
Raw output
=== RUN   TestAuditConfigOOMSuite
Using GraphQL endpoint https://api.mondoo.com/query
Using org MRN //captain.api.mondoo.app/organizations/mondoo-operator-testing
    audit_config_base_suite.go:74: 
        	Error Trace:	/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:74
        	            				/home/runner/go/pkg/mod/github.com/stretchr/[email protected]/suite/suite.go:154
        	            				/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_oom_test.go:51
        	Error:      	Received unexpected error:
        	            	Quota for spaces in //captain.api.mondoo.app/organizations/mondoo-operator-testing reached. Max allowed is 10
        	Test:       	TestAuditConfigOOMSuite
        	Messages:   	Failed to create Nexus space
--- FAIL: TestAuditConfigOOMSuite (0.07s)

Check failure on line 0 in integration-tests-eks-1.27.xml

See this annotation in the file changed.

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

go.mondoo.com/mondoo-operator/tests/integration ► TestAuditConfigSuite

Failed test found in:
  integration-tests-eks-1.27.xml
Error:
  === RUN   TestAuditConfigSuite
Raw output
=== RUN   TestAuditConfigSuite
Using GraphQL endpoint https://api.mondoo.com/query
Using org MRN //captain.api.mondoo.app/organizations/mondoo-operator-testing
    audit_config_base_suite.go:74: 
        	Error Trace:	/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:74
        	            				/home/runner/go/pkg/mod/github.com/stretchr/[email protected]/suite/suite.go:154
        	            				/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_test.go:81
        	Error:      	Received unexpected error:
        	            	Quota for spaces in //captain.api.mondoo.app/organizations/mondoo-operator-testing reached. Max allowed is 10
        	Test:       	TestAuditConfigSuite
        	Messages:   	Failed to create Nexus space
--- FAIL: TestAuditConfigSuite (0.07s)