Skip to content

mondoo-operator-1.17.2 (#913) #2247

mondoo-operator-1.17.2 (#913)

mondoo-operator-1.17.2 (#913) #2247

GitHub Actions / Report test results failed Nov 2, 2023 in 1s

Report test results ❌

Tests failed

Report Passed Failed Skipped Time
integration-tests-k3d-v1.24.16.xml 9✅ 7❌ 1450s
integration-tests-k3d-v1.25.12.xml 11✅ 5❌ 1424s
integration-tests-k3d-v1.26.7.xml 9✅ 7❌ 1447s
integration-tests-k3d-v1.27.4.xml 8✅ 8❌ 1436s
integration-tests-minikube-v1.24.16.xml 9✅ 7❌ 1405s
integration-tests-minikube-v1.25.12.xml 10✅ 6❌ 1463s
integration-tests-minikube-v1.26.7.xml 10✅ 6❌ 1499s
integration-tests-minikube-v1.27.4.xml 9✅ 7❌ 1531s
unit-tests.xml 214✅ 70s

❌ integration-tests-k3d-v1.24.16.xml

16 tests were completed in 1450s with 9 passed, 7 failed and 0 skipped.

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

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

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

❌ integration-tests-k3d-v1.25.12.xml

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

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

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

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

❌ integration-tests-k3d-v1.26.7.xml

16 tests were completed in 1447s with 9 passed, 7 failed and 0 skipped.

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

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

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

❌ integration-tests-k3d-v1.27.4.xml

16 tests were completed in 1436s with 8 passed, 8 failed and 0 skipped.

Test suite Passed Failed Skipped Time
go.mondoo.com/mondoo-operator/tests/integration 8✅ 8❌ 1391s

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

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

❌ integration-tests-minikube-v1.24.16.xml

16 tests were completed in 1405s with 9 passed, 7 failed and 0 skipped.

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

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

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

❌ integration-tests-minikube-v1.25.12.xml

16 tests were completed in 1463s with 10 passed, 6 failed and 0 skipped.

Test suite Passed Failed Skipped Time
go.mondoo.com/mondoo-operator/tests/integration 10✅ 6❌ 1434s

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

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

❌ integration-tests-minikube-v1.26.7.xml

16 tests were completed in 1499s with 10 passed, 6 failed and 0 skipped.

Test suite Passed Failed Skipped Time
go.mondoo.com/mondoo-operator/tests/integration 10✅ 6❌ 1456s

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

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

❌ integration-tests-minikube-v1.27.4.xml

16 tests were completed in 1531s with 9 passed, 7 failed and 0 skipped.

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

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

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

✅ unit-tests.xml

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

Test suite Passed Failed Skipped Time
go.mondoo.com/mondoo-operator/api/v1alpha2 0ms
go.mondoo.com/mondoo-operator/cmd/mondoo-operator 0ms
go.mondoo.com/mondoo-operator/cmd/mondoo-operator/garbage_collect 0ms
go.mondoo.com/mondoo-operator/cmd/mondoo-operator/k8s_scan 0ms
go.mondoo.com/mondoo-operator/cmd/mondoo-operator/operator 0ms
go.mondoo.com/mondoo-operator/cmd/mondoo-operator/version 0ms
go.mondoo.com/mondoo-operator/cmd/mondoo-operator/webhook 0ms
go.mondoo.com/mondoo-operator/controllers 9✅ 978ms
go.mondoo.com/mondoo-operator/controllers/admission 14✅ 53ms
go.mondoo.com/mondoo-operator/controllers/container_image 8✅ 78ms
go.mondoo.com/mondoo-operator/controllers/integration 6✅ 354ms
go.mondoo.com/mondoo-operator/controllers/k8s_scan 6✅ 90ms
go.mondoo.com/mondoo-operator/controllers/metrics 2✅ 63ms
go.mondoo.com/mondoo-operator/controllers/nodes 23✅ 119ms
go.mondoo.com/mondoo-operator/controllers/resource_monitor 3✅ 53ms
go.mondoo.com/mondoo-operator/controllers/resource_monitor/debouncer 6✅ 6s
go.mondoo.com/mondoo-operator/controllers/resource_monitor/debouncer/mock 0ms
go.mondoo.com/mondoo-operator/controllers/resource_monitor/scan_api_store 4✅ 51ms
go.mondoo.com/mondoo-operator/controllers/resource_monitor/scan_api_store/mock 0ms
go.mondoo.com/mondoo-operator/controllers/scanapi 14✅ 68ms
go.mondoo.com/mondoo-operator/controllers/status 7✅ 77ms
go.mondoo.com/mondoo-operator/pkg/client/common 0ms
go.mondoo.com/mondoo-operator/pkg/client/mondooclient 0ms
go.mondoo.com/mondoo-operator/pkg/client/mondooclient/fakeserver 0ms
go.mondoo.com/mondoo-operator/pkg/client/mondooclient/mock 0ms
go.mondoo.com/mondoo-operator/pkg/client/scanapiclient 2✅ 58ms
go.mondoo.com/mondoo-operator/pkg/client/scanapiclient/fakeserver 0ms
go.mondoo.com/mondoo-operator/pkg/client/scanapiclient/mock 0ms
go.mondoo.com/mondoo-operator/pkg/constants 0ms
go.mondoo.com/mondoo-operator/pkg/feature_flags 0ms
go.mondoo.com/mondoo-operator/pkg/imagecache 5✅ 7ms
go.mondoo.com/mondoo-operator/pkg/utils 9✅ 23ms
go.mondoo.com/mondoo-operator/pkg/utils/k8s 66✅ 52ms
go.mondoo.com/mondoo-operator/pkg/utils/logger 0ms
go.mondoo.com/mondoo-operator/pkg/utils/mondoo 9✅ 993ms
go.mondoo.com/mondoo-operator/pkg/utils/mondoo/fake 0ms
go.mondoo.com/mondoo-operator/pkg/utils/test 0ms
go.mondoo.com/mondoo-operator/pkg/version 0ms
go.mondoo.com/mondoo-operator/pkg/webhooks/handler 21✅ 102ms
go.mondoo.com/mondoo-operator/pkg/webhooks/utils 0ms
go.mondoo.com/mondoo-operator/tests/credentials 0ms
go.mondoo.com/mondoo-operator/tests/framework/installer 0ms
go.mondoo.com/mondoo-operator/tests/framework/nexus 0ms
go.mondoo.com/mondoo-operator/tests/framework/nexus/assets 0ms
go.mondoo.com/mondoo-operator/tests/framework/nexus/k8s 0ms
go.mondoo.com/mondoo-operator/tests/framework/utils 0ms

✅ go.mondoo.com/mondoo-operator/controllers

✅ TestTokenRegistration/generate_service_account_from_token_secret
✅ TestTokenRegistration/no_token,_no_service_account
✅ TestTokenRegistration/already_a_Mondoo_creds_secret
✅ TestTokenRegistration/mondoo_API_error
✅ TestTokenRegistration/malformed_JWT
✅ TestTokenRegistration/generate_service_account_via_Integrations
✅ TestTokenRegistration/missing_owner_claim_error
✅ TestTokenRegistration
✅ TestMondooAuditConfigStatus

✅ go.mondoo.com/mondoo-operator/controllers/admission

✅ TestReconcile/admission_disabled
✅ TestReconcile/admission_enabled
✅ TestReconcile/admission_enabled_with_mode_enforcing
✅ TestReconcile/admission_enabled_with_mode_enforcing_and_set_replicas
✅ TestReconcile/admission_enabled_with_cert-manager
✅ TestReconcile/cleanup_when_admission_change_to_disabled
✅ TestReconcile/pass_admission_mode_down_to_Deployment
✅ TestReconcile/pass_admission_mode_down_to_Deployment_and_set_replicas
✅ TestReconcile/pass_ClusterID_mode_down_to_Deployment
✅ TestReconcile/pass_Integration_MRN_down_to_Deployment
✅ TestReconcile/update_admission_Deployment_when_mode_changes
✅ TestReconcile/update_webhook_Deployment_when_changed_externally
✅ TestReconcile/update_webhook_Service_when_changed_externally
✅ TestReconcile

✅ go.mondoo.com/mondoo-operator/controllers/container_image

✅ TestDeploymentHandlerSuite/TestReconcile_Create
✅ TestDeploymentHandlerSuite/TestReconcile_CreateWithCustomImage
✅ TestDeploymentHandlerSuite/TestReconcile_Create_ConsoleIntegration
✅ TestDeploymentHandlerSuite/TestReconcile_Create_PrivateRegistriesSecret
✅ TestDeploymentHandlerSuite/TestReconcile_DisableContainerImageScanning
✅ TestDeploymentHandlerSuite/TestReconcile_K8sContainerImageScanningStatus
✅ TestDeploymentHandlerSuite/TestReconcile_Update
✅ TestDeploymentHandlerSuite

✅ go.mondoo.com/mondoo-operator/controllers/integration

✅ TestMondooIntegrationCheckInSuite/TestBadServiceAccountData
✅ TestMondooIntegrationCheckInSuite/TestCheckIn
✅ TestMondooIntegrationCheckInSuite/TestClearPreviousCondition
✅ TestMondooIntegrationCheckInSuite/TestFailedCheckIn
✅ TestMondooIntegrationCheckInSuite/TestMissingIntegrationMRN
✅ TestMondooIntegrationCheckInSuite

✅ go.mondoo.com/mondoo-operator/controllers/k8s_scan

✅ TestDeploymentHandlerSuite/TestReconcile_Create
✅ TestDeploymentHandlerSuite/TestReconcile_Create_ConsoleIntegration
✅ TestDeploymentHandlerSuite/TestReconcile_Disable
✅ TestDeploymentHandlerSuite/TestReconcile_K8sResourceScanningStatus
✅ TestDeploymentHandlerSuite/TestReconcile_Update
✅ TestDeploymentHandlerSuite

✅ go.mondoo.com/mondoo-operator/controllers/metrics

✅ TestDeploymentHandlerSuite/TestMetricMondooAuditConfig
✅ TestDeploymentHandlerSuite

✅ go.mondoo.com/mondoo-operator/controllers/nodes

✅ TestDeploymentHandlerSuite/TestReconcile_CleanConfigMapsForDeletedNodes
✅ TestDeploymentHandlerSuite/TestReconcile_CleanCronJobsForDeletedNodes
✅ TestDeploymentHandlerSuite/TestReconcile_CreateConfigMap
✅ TestDeploymentHandlerSuite/TestReconcile_CreateConfigMapWithIntegrationMRN
✅ TestDeploymentHandlerSuite/TestReconcile_CreateCronJobs
✅ TestDeploymentHandlerSuite/TestReconcile_DisableNodeScanning
✅ TestDeploymentHandlerSuite/TestReconcile_NodeScanningStatus
✅ TestDeploymentHandlerSuite/TestReconcile_UpdateConfigMap
✅ TestDeploymentHandlerSuite/TestReconcile_UpdateCronJobs
✅ TestDeploymentHandlerSuite
✅ TestCronJobName/should_be_prefix+base+suffix_when_shorter_than_52_chars
✅ TestCronJobName/should_be_prefix+base+hash_when_longer_than_52_chars
✅ TestCronJobName
✅ TestGarbageCollectCronJobName
✅ TestConfigMapName/should_be_prefix+base+suffix_when_shorter_than_52_chars
✅ TestConfigMapName/should_be_prefix+base+hash_when_longer_than_52_chars
✅ TestConfigMapName
✅ TestResources/resources_should_match_default
✅ TestResources/resources_should_match_spec
✅ TestResources
✅ TestCronJob_PrivilegedOpenshift
✅ TestCronJob_Privileged
✅ TestInventory

✅ go.mondoo.com/mondoo-operator/controllers/resource_monitor

✅ TestResourceMonitorControllerSuite/TestReconcile_Pod
✅ TestResourceMonitorControllerSuite/TestReconcile_Pod_NoScanApi
✅ TestResourceMonitorControllerSuite

✅ go.mondoo.com/mondoo-operator/controllers/resource_monitor/debouncer

✅ TestDebouncerSuite/TestStart_Debounce
✅ TestDebouncerSuite/TestStart_DebounceManagedBy
✅ TestDebouncerSuite/TestStart_IgnoreInitialResources
✅ TestDebouncerSuite/TestStart_MultipleScanApiClients
✅ TestDebouncerSuite/TestStart_NoScanApiClients
✅ TestDebouncerSuite

✅ go.mondoo.com/mondoo-operator/controllers/resource_monitor/scan_api_store

✅ TestScanApiStoreSuite/TestAdd
✅ TestScanApiStoreSuite/TestAdd_Idempotence
✅ TestScanApiStoreSuite/TestDelete
✅ TestScanApiStoreSuite

✅ go.mondoo.com/mondoo-operator/controllers/scanapi

✅ TestDeploymentHandlerSuite/TestCleanup_AlreadyClean
✅ TestDeploymentHandlerSuite/TestDeploy_CreateMissingServiceAccount
✅ TestDeploymentHandlerSuite/TestReconcile_Cleanup_AuditConfigDeletion
✅ TestDeploymentHandlerSuite/TestReconcile_Cleanup_NoScanning
✅ TestDeploymentHandlerSuite/TestReconcile_Create_Admission
✅ TestDeploymentHandlerSuite/TestReconcile_Create_CustomEnvVars
✅ TestDeploymentHandlerSuite/TestReconcile_Create_KubernetesResources
✅ TestDeploymentHandlerSuite/TestReconcile_Create_KubernetesResources_OpenShift
✅ TestDeploymentHandlerSuite/TestReconcile_Create_NodeScanning
✅ TestDeploymentHandlerSuite/TestReconcile_Create_PrivateRegistriesSecret
✅ TestDeploymentHandlerSuite/TestReconcile_Create_PrivateRegistriesSecretNotSpecifiedButPresent
✅ TestDeploymentHandlerSuite/TestReconcile_Create_PrivateRegistriesSecretWrongName
✅ TestDeploymentHandlerSuite/TestReconcile_Update
✅ TestDeploymentHandlerSuite

✅ go.mondoo.com/mondoo-operator/controllers/status

✅ TestReportStatusRequestFromAuditConfig_AllDisabled
✅ TestReportStatusRequestFromAuditConfig_AllEnabled
✅ TestReportStatusRequestFromAuditConfig_AllEnabled_DeprecatedFields
✅ TestReportStatusRequestFromAuditConfig_AllError
✅ TestStatusReporterSuite/TestReport
✅ TestStatusReporterSuite/TestReport_StatusChange
✅ TestStatusReporterSuite

✅ go.mondoo.com/mondoo-operator/pkg/client/scanapiclient

✅ TestScanner
✅ TestScanner_ScanKubernetesResources

✅ go.mondoo.com/mondoo-operator/pkg/imagecache

✅ TestCache/image_in_cache
✅ TestCache/stale_image_in_cache
✅ TestCache/image_not_in_cache
✅ TestCache/error_during_image_fetching
✅ TestCache

✅ go.mondoo.com/mondoo-operator/pkg/utils

✅ TestFiltering/no_lists_provided
✅ TestFiltering/explicitly_excluded
✅ TestFiltering/explicitly_included
✅ TestFiltering/on_both_include_and_exclude_list
✅ TestFiltering/not_on_include_list
✅ TestFiltering/not_on_exclude_list
✅ TestFiltering/include_glob_middle_of_string
✅ TestFiltering/exclude_glob_beginning_of_string
✅ TestFiltering

✅ go.mondoo.com/mondoo-operator/pkg/utils/k8s

✅ TestCreateSuite/TestCreateIfNotExist
✅ TestCreateSuite/TestCreateIfNotExist_AlreadyExists
✅ TestCreateSuite/TestCreateIfNotExist_Error
✅ TestCreateSuite
✅ TestDeleteSuite/TestDeleteIfExists
✅ TestDeleteSuite/TestDeleteIfExists_DoesNotExist
✅ TestDeleteSuite
✅ TestMergeEnv_NoDuplicates
✅ TestMergeEnv_Duplicates
✅ TestMergeEnv_AEmpty
✅ TestMergeEnv_BEmpty
✅ TestAreDeploymentsEqual/should_be_equal_when_identical
✅ TestAreDeploymentsEqual/should_not_be_equal_when_container_count_differ
✅ TestAreDeploymentsEqual/should_not_be_equal_when_replicas_differ
✅ TestAreDeploymentsEqual/should_not_be_equal_when_selectors_differ
✅ TestAreDeploymentsEqual/should_not_be_equal_when_service_accounts_differ
✅ TestAreDeploymentsEqual/should_not_be_equal_when_container_images_differ
✅ TestAreDeploymentsEqual/should_not_be_equal_when_container_commands_differ
✅ TestAreDeploymentsEqual/should_not_be_equal_when_volume_mounts_differ
✅ TestAreDeploymentsEqual/should_not_be_equal_when_env_vars_differ
✅ TestAreDeploymentsEqual/should_not_be_equal_when_container_resource_requirements_differ
✅ TestAreDeploymentsEqual/should_not_be_equal_when_owner_references_differ
✅ TestAreDeploymentsEqual/should_not_be_equal_when_container_args_differ
✅ TestAreDeploymentsEqual/should_not_be_equal_when_Pod_volume_definition(s)_differ
✅ TestAreDeploymentsEqual/should_not_be_equal_when_securityContext_differ
✅ TestAreDeploymentsEqual/should_not_be_equal_when_securityContext.capabilities_differ
✅ TestAreDeploymentsEqual
✅ TestAreServicesEqual/should_be_equal_when_identical
✅ TestAreServicesEqual/should_not_be_equal_when_ports_differ
✅ TestAreServicesEqual/should_not_be_equal_when_selectors_differ
✅ TestAreServicesEqual/should_not_be_equal_when_types_differ
✅ TestAreServicesEqual/should_not_be_equal_when_owner_references_differ
✅ TestAreServicesEqual
✅ TestAreCronJobsEqual/should_be_equal_when_identical
✅ TestAreCronJobsEqual/should_not_be_equal_when_container_count_differ
✅ TestAreCronJobsEqual/should_not_be_equal_when_service_accounts_differ
✅ TestAreCronJobsEqual/should_not_be_equal_when_tolerations_differ
✅ TestAreCronJobsEqual/should_not_be_equal_when_node_names_differ
✅ TestAreCronJobsEqual/should_not_be_equal_when_container_images_differ
✅ TestAreCronJobsEqual/should_not_be_equal_when_container_commands_differ
✅ TestAreCronJobsEqual/should_not_be_equal_when_volume_mounts_differ
✅ TestAreCronJobsEqual/should_not_be_equal_when_env_vars_differ
✅ TestAreCronJobsEqual/should_not_be_equal_when_container_resource_requirements_differ
✅ TestAreCronJobsEqual/should_not_be_equal_when_owner_references_differ
✅ TestAreCronJobsEqual/should_not_be_equal_when_container_args_differ
✅ TestAreCronJobsEqual/should_not_be_equal_when_Pod_volume_definition(s)_differ
✅ TestAreCronJobsEqual/should_not_be_equal_when_successful_jobs_history_limits_differ
✅ TestAreCronJobsEqual/should_not_be_equal_when_failed_jobs_history_limits_differ
✅ TestAreCronJobsEqual
✅ TestAreResouceRequirementsEqual
✅ TestAreEnvVarsEqual
✅ TestAreEnvVarsEqual_DifferentOrder
✅ TestTaintsToTolerations
✅ TestTaintToToleration
✅ TestUpdateService/should_update_ports
✅ TestUpdateService/should_update_selector
✅ TestUpdateService/should_update_type
✅ TestUpdateService/should_update_owner_references
✅ TestUpdateService/should_not_update_labels
✅ TestUpdateService/should_not_update_annotations
✅ TestUpdateService
✅ TestUpdateDeployment/should_update_spec
✅ TestUpdateDeployment/should_update_owner_references
✅ TestUpdateDeployment/should_not_update_labels
✅ TestUpdateDeployment/should_not_update_annotations
✅ TestUpdateDeployment

✅ go.mondoo.com/mondoo-operator/pkg/utils/mondoo

✅ TestContainerImageResolverSuite/TestCnspecImage
✅ TestContainerImageResolverSuite/TestCnspecImage_Defaults
✅ TestContainerImageResolverSuite/TestCnspecImage_OpenShift
✅ TestContainerImageResolverSuite/TestCnspecImage_SkipImageResolution
✅ TestContainerImageResolverSuite/TestMondooOperatorImage
✅ TestContainerImageResolverSuite/TestMondooOperatorImage_Defaults
✅ TestContainerImageResolverSuite/TestMondooOperatorImage_SkipImageResolution
✅ TestContainerImageResolverSuite/TestNewContainerImageResolver
✅ TestContainerImageResolverSuite

✅ go.mondoo.com/mondoo-operator/pkg/webhooks/handler

✅ TestWebhookValidate/example_test
✅ TestWebhookValidate/pod_from_replicaset_test
✅ TestWebhookValidate/pod_from_statefulset_test
✅ TestWebhookValidate/pod_from_daemonset_test
✅ TestWebhookValidate/pod_from_job_test
✅ TestWebhookValidate/job_test
✅ TestWebhookValidate/job_from_cronjob_test
✅ TestWebhookValidate/example_Deployment
✅ TestWebhookValidate/example_Deployment_-_enforcing
✅ TestWebhookValidate/malformed_object
✅ TestWebhookValidate/malformed_object_-_enforcing
✅ TestWebhookValidate
✅ TestLabels
✅ TestWebhookNamespaceFiltering/no_namespace_filtering
✅ TestWebhookNamespaceFiltering/excluded_resource
✅ TestWebhookNamespaceFiltering/included_resource
✅ TestWebhookNamespaceFiltering/included_resource_with_include_and_exclude_lists
✅ TestWebhookNamespaceFiltering/resource_not_in_include_list
✅ TestWebhookNamespaceFiltering/resource_not_in_exclude_list
✅ TestWebhookNamespaceFiltering/excluded_with_glob
✅ TestWebhookNamespaceFiltering

Annotations

Check failure on line 0 in integration-tests-k3d-v1.24.16.xml

See this annotation in the file changed.

@github-actions github-actions / Report test results

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

Failed test found in:
  integration-tests-k3d-v1.24.16.xml
Error:
  === RUN   TestAuditConfigCustomNamespaceSuite/TestReconcile_KubernetesResources
Raw output
=== RUN   TestAuditConfigCustomNamespaceSuite/TestReconcile_KubernetesResources
2023-11-02T12:09:03.418Z	INFO	integration/audit_config_base_suite.go:158	Create an audit config that enables only workloads scanning.
2023-11-02T12:09:03.435Z	INFO	integration/audit_config_base_suite.go:659	Waiting for scan API Pod to become ready.
2023-11-02T12:09:15.469Z	INFO	integration/audit_config_base_suite.go:663	Scan API Pod is ready.
2023-11-02T12:09:15.471Z	INFO	integration/audit_config_base_suite.go:680	Waiting for good condition of Scan API
2023-11-02T12:09:15.479Z	INFO	integration/audit_config_base_suite.go:169	Make sure the Mondoo k8s resources scan CronJob is created.
    audit_config_base_suite.go:182: 
        	Error Trace:	/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:182
        	            				/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_namespace_test.go:84
        	Error:      	Should be true
        	Test:       	TestAuditConfigCustomNamespaceSuite/TestReconcile_KubernetesResources
        	Messages:   	Kubernetes resources scan CronJob did not run successfully.
    audit_config_base_suite.go:206: 
        	Error Trace:	/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:206
        	            				/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_namespace_test.go:84
        	Error:      	elements differ
        	            	
        	            	extra elements in list A:
        	            	([]interface {}) (len=8) {
        	            	 (string) (len=51) "kube-system/local-path-provisioner-597bc7dccd-sf4wd",
        	            	 (string) (len=36) "kube-system/coredns-74448699cf-j5gtk",
        	            	 (string) (len=42) "kube-system/metrics-server-749b574fc-qzq7k",
        	            	 (string) (len=67) "mondoo-operator/mondoo-operator-controller-manager-85867466ff-fpjvn",
        	            	 (string) (len=45) "kube-system/local-path-provisioner-597bc7dccd",
        	            	 (string) (len=30) "kube-system/coredns-74448699cf",
        	            	 (string) (len=36) "kube-system/metrics-server-749b574fc",
        	            	 (string) (len=61) "mondoo-operator/mondoo-operator-controller-manager-85867466ff"
        	            	}
        	            	
        	            	
        	            	listA:
        	            	([]string) (len=18) {
        	            	 (string) (len=51) "kube-system/local-path-provisioner-597bc7dccd-sf4wd",
        	            	 (string) (len=36) "kube-system/coredns-74448699cf-j5gtk",
        	            	 (string) (len=42) "kube-system/metrics-server-749b574fc-qzq7k",
        	            	 (string) (len=67) "mondoo-operator/mondoo-operator-controller-manager-85867466ff-fpjvn",
        	            	 (string) (len=52) "some-namespace/mondoo-client-scan-api-79b58c55-j9lfj",
        	            	 (string) (len=52) "some-namespace/mondoo-client-k8s-scan-28315450-jm7vr",
        	            	 (string) (len=46) "some-namespace/mondoo-client-k8s-scan-28315450",
        	            	 (string) (len=37) "some-namespace/mondoo-client-k8s-scan",
        	            	 (string) (len=34) "kube-system/local-path-provisioner",
        	            	 (string) (len=19) "kube-system/coredns",
        	            	 (string) (len=26) "kube-system/metrics-server",
        	            	 (string) (len=50) "mondoo-operator/mondoo-operator-controller-manager",
        	            	 (string) (len=37) "some-namespace/mondoo-client-scan-api",
        	            	 (string) (len=45) "kube-system/local-path-provisioner-597bc7dccd",
        	            	 (string) (len=30) "kube-system/coredns-74448699cf",
        	            	 (string) (len=36) "kube-system/metrics-server-749b574fc",
        	            	 (string) (len=61) "mondoo-operator/mondoo-operator-controller-manager-85867466ff",
        	            	 (string) (len=46) "some-namespace/mondoo-client-scan-api-79b58c55"
        	            	}
        	            	
        	            	
        	            	listB:
        	            	([]string) (len=10) {
        	            	 (string) (len=37) "some-namespace/mondoo-client-scan-api",
        	            	 (string) (len=46) "some-namespace/mondoo-client-scan-api-79b58c55",
        	            	 (string) (len=52) "some-namespace/mondoo-client-scan-api-79b58c55-j9lfj",
        	            	 (string) (len=37) "some-namespace/mondoo-client-k8s-scan",
        	            	 (string) (len=46) "some-namespace/mondoo-client-k8s-scan-28315450",
        	            	 (string) (len=52) "some-namespace/mondoo-client-k8s-scan-28315450-jm7vr",
        	            	 (string) (len=26) "kube-system/metrics-server",
        	            	 (string) (len=50) "mondoo-operator/mondoo-operator-controller-manager",
        	            	 (string) (len=19) "kube-system/coredns",
        	            	 (string) (len=34) "kube-system/local-path-provisioner"
        	            	}
        	Test:       	TestAuditConfigCustomNamespaceSuite/TestReconcile_KubernetesResources
        	Messages:   	Workloads were not sent upstream.
2023-11-02T12:12:47.323Z	INFO	installer/installer.go:173	gathering all logs from the test
2023-11-02T12:12:47.323Z	INFO	utils/k8s_helper.go:256	Gathering logs for all pods in namespace some-namespace
2023-11-02T12:12:47.330Z	DEBUG	utils/k8s_helper.go:461	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/TestReconcile_KubernetesResources_some-namespace_mondoo-client-scan-api-79b58c55-j9lfj_1698927167.log
2023-11-02T12:12:47.361Z	DEBUG	utils/k8s_helper.go:461	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/TestReconcile_KubernetesResources_some-namespace_mondoo-client-k8s-scan-28315450-jm7vr_1698927167.log
2023-11-02T12:12:47.367Z	INFO	utils/k8s_helper.go:267	Gathering pod describe for all pods in namespace some-namespace
2023-11-02T12:12:47.371Z	DEBUG	utils/k8s_helper.go:461	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/some-namespace_describe_TestReconcile_KubernetesResources_1698927167.log
2023-11-02T12:12:47.371Z	DEBUG	utils/executor.go:271	Running command: kubectl get pod -o yaml -n some-namespace mondoo-client-scan-api-79b58c55-j9lfj
2023-11-02T12:12:47.441Z	DEBUG	utils/executor.go:271	Running command: kubectl get pod -o yaml -n some-namespace mondoo-client-k8s-scan-28315450-jm7vr
2023-11-02T12:12:47.519Z	DEBUG	utils/executor.go:271	Running command: kubectl get deployment -o yaml -n some-namespace mondoo-client-scan-api
2023-11-02T12:12:47.597Z	DEBUG	utils/executor.go:271	Running command: kubectl get mondooauditconfig -o yaml -n some-namespace mondoo-client
2023-11-02T12:12:47.672Z	INFO	utils/k8s_helper.go:308	Gathering events in namespace "some-namespace"
2023-11-02T12:12:47.672Z	DEBUG	utils/k8s_helper.go:461	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/some-namespace_events_TestReconcile_KubernetesResources_1698927167.log
2023-11-02T12:12:47.672Z	DEBUG	utils/executor.go:271	Running command: kubectl get events -n some-namespace
2023-11-02T12:12:47.750Z	INFO	installer/installer.go:173	gathering all logs from the test
2023-11-02T12:12:47.750Z	INFO	utils/k8s_helper.go:256	Gathering logs for all pods in namespace mondoo-operator
2023-11-02T12:12:47.754Z	DEBUG	utils/k8s_helper.go:461	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/TestReconcile_KubernetesResources_mondoo-operator_mondoo-operator-controller-manager-85867466ff-fpjvn_1698927167.log
2023-11-02T12:12:47.763Z	DEBUG	utils/k8s_helper.go:461	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/TestReconcile_KubernetesResources_mondoo-operator_mondoo-operator-controller-manager-85867466ff-fpjvn_previous_1698927167.log
2023-11-02T12:12:47.768Z	DEBUG	utils/executor.go:271	Running command: kubectl -n mondoo-operator logs mondoo-operator-controller-manager-85867466ff-fpjvn -c manager
2023-11-02T12:12:47.858Z	INFO	utils/k8s_helper.go:267	Gathering pod describe for all pods in namespace mondoo-operator
2023-11-02T12:12:47.864Z	DEBUG	utils/k8s_helper.go:461	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/mondoo-operator_describe_TestReconcile_KubernetesResources_1698927167.log
2023-11-02T12:12:47.864Z	DEBUG	utils/executor.go:271	Running command: kubectl get pod -o yaml -n mondoo-operator mondoo-operator-controller-manager-85867466ff-fpjvn
2023-11-02T12:12:47.940Z	DEBUG	utils/executor.go:271	Running command: kubectl get deployment -o yaml -n mondoo-operator mondoo-operator-controller-manager
2023-11-02T12:12:48.018Z	INFO	utils/k8s_helper.go:308	Gathering events in namespace "mondoo-operator"
2023-11-02T12:12:48.018Z	DEBUG	utils/k8s_helper.go:461	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/mondoo-operator_events_TestReconcile_KubernetesResources_1698927168.log
2023-11-02T12:12:48.018Z	DEBUG	utils/executor.go:271	Running command: kubectl get events -n mondoo-operator
2023-11-02T12:12:48.119Z	INFO	utils/k8s_helper.go:337	Resource k8s.mondoo.com/v1alpha2, Kind=MondooAuditConfig some-namespace/mondoo-client still exists.
2023-11-02T12:12:50.123Z	INFO	utils/k8s_helper.go:341	Resource k8s.mondoo.com/v1alpha2, Kind=MondooAuditConfig some-namespace/mondoo-client deleted.
2023-11-02T12:12:50.130Z	INFO	integration/audit_config_base_suite.go:116	Waiting for cleanup of the test cluster.
2023-11-02T12:12:50.165Z	INFO	integration/audit_config_base_suite.go:141	Cleanup done. Cluster should be good to go for the next test.
2023-11-02T12:12:55.345Z	DEBUG	utils/executor.go:271	Running command: kubectl delete pods -n default --all --wait
    --- FAIL: TestAuditConfigCustomNamespaceSuite/TestReconcile_KubernetesResources (232.01s)

Check failure on line 0 in integration-tests-k3d-v1.24.16.xml

See this annotation in the file changed.

@github-actions github-actions / Report test results

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

Failed test found in:
  integration-tests-k3d-v1.24.16.xml
Error:
  === RUN   TestAuditConfigCustomNamespaceSuite
Raw output
=== RUN   TestAuditConfigCustomNamespaceSuite
2023-11-02T12:03:59.793Z	INFO	installer/installer.go:84	Installing Mondoo operator with local manifest
2023-11-02T12:03:59.794Z	INFO	utils/manifest_utils.go:54	Reading file: /home/runner/work/mondoo-operator/mondoo-operator/mondoo-operator-manifests.yaml
2023-11-02T12:03:59.794Z	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
2023-11-02T12:04:01.431Z	INFO	installer/installer.go:165	Created Мondoo client secret "mondoo-token".
2023-11-02T12:04:13.474Z	INFO	installer/installer.go:100	Mondoo operator is ready.
2023-11-02T12:04:13.481Z	INFO	integration/audit_config_namespace_test.go:34	Created test namespace.
2023-11-02T12:04:13.516Z	INFO	installer/installer.go:165	Created Мondoo client secret "mondoo-token".
2023-11-02T12:04:13.516Z	INFO	integration/audit_config_namespace_test.go:37	Created client secret in namespace "some-namespace".
2023-11-02T12:04:13.522Z	INFO	integration/audit_config_namespace_test.go:44	Created webhook ServiceAccount "webhook-sa" in namespace "some-namespace".
2023-11-02T12:04:13.525Z	INFO	integration/audit_config_namespace_test.go:51	Created service account "mondoo-sa" in namespace "some-namespace".
2023-11-02T12:04:13.529Z	INFO	integration/audit_config_namespace_test.go:64	Created cluster role binding "mondoo-operator-k8s-resources-scanning2".
--- FAIL: TestAuditConfigCustomNamespaceSuite (590.44s)

Check failure on line 0 in integration-tests-k3d-v1.24.16.xml

See this annotation in the file changed.

@github-actions github-actions / Report test results

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

Failed test found in:
  integration-tests-k3d-v1.24.16.xml
Error:
  === RUN   TestAuditConfigSuite/TestReconcile_AdmissionEnforcing
Raw output
=== RUN   TestAuditConfigSuite/TestReconcile_AdmissionEnforcing
2023-11-02T12:14:09.723Z	INFO	integration/audit_config_base_suite.go:405	Create an audit config that enables only admission control.
2023-11-02T12:14:11.739Z	INFO	integration/audit_config_base_suite.go:413	Waiting for webhook Pod to become ready.
2023-11-02T12:14:23.777Z	INFO	integration/audit_config_base_suite.go:418	Webhook Pod is ready.
2023-11-02T12:14:23.777Z	INFO	integration/audit_config_base_suite.go:659	Waiting for scan API Pod to become ready.
2023-11-02T12:14:23.781Z	INFO	integration/audit_config_base_suite.go:663	Scan API Pod is ready.
2023-11-02T12:14:23.784Z	INFO	integration/audit_config_base_suite.go:680	Waiting for good condition of Scan API
2023-11-02T12:14:23.818Z	INFO	integration/audit_config_base_suite.go:922	Update the webhook with the CA data.
2023-11-02T12:14:23.825Z	INFO	integration/audit_config_base_suite.go:931	Restart the webhook pods such that it is certain the CA secret has been reloaded.
2023-11-02T12:14:35.862Z	INFO	integration/audit_config_base_suite.go:941	Webhook Pod is ready.
2023-11-02T12:14:35.871Z	INFO	integration/audit_config_base_suite.go:959	Getting endpoints for webhook.
2023-11-02T12:14:35.874Z	INFO	integration/audit_config_base_suite.go:965	endpoints Addresses: [{10.42.0.22  0xc00080a400 &ObjectReference{Kind:Pod,Namespace:mondoo-operator,Name:mondoo-client-webhook-manager-684565594b-98djp,UID:bc34e2f1-93bc-419d-90d8-1af61cf556f9,APIVersion:,ResourceVersion:,FieldPath:,}}]
2023-11-02T12:14:35.874Z	INFO	integration/audit_config_base_suite.go:966	endpoints NotReadyAddresses: []
2023-11-02T12:14:35.874Z	INFO	integration/audit_config_base_suite.go:973	Wait for webhook to start working.
2023-11-02T12:14:35.881Z	INFO	integration/audit_config_base_suite.go:446	Waiting for Webhook to accept connections (max 120s).
2023-11-02T12:14:35.882Z	INFO	integration/audit_config_base_suite.go:994	Created port-forward via kubectl for webhook with pid: 21654
2023-11-02T12:14:37.901Z	INFO	integration/audit_config_base_suite.go:1007	Webhook is available: 200 OK
2023-11-02T12:14:37.901Z	DEBUG	integration/audit_config_base_suite.go:1034	Trying to stop port-forward with pid: 21654
2023-11-02T12:14:37.903Z	INFO	integration/audit_config_base_suite.go:449	Webhook should be working by now.
2023-11-02T12:14:37.903Z	INFO	integration/audit_config_base_suite.go:802	Create a Deployment which should pass. (max. 5 retries)
    audit_config_base_suite.go:811: 
        	Error Trace:	/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:811
        	            				/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:450
        	            				/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:393
        	            				/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_test.go:52
        	Error:      	Received unexpected error:
        	            	Internal error occurred: failed calling webhook "policy.k8s.mondoo.com": failed to call webhook: Post "https://mondoo-client-webhook-service.mondoo-operator.svc:443/validate-k8s-mondoo-com?timeout=10s": context deadline exceeded
        	Test:       	TestAuditConfigSuite/TestReconcile_AdmissionEnforcing
        	Messages:   	Failed to create Deployment which should pass.
    audit_config_base_suite.go:1071: 
        	Error Trace:	/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:1071
        	            				/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:822
        	            				/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:450
        	            				/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:393
        	            				/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_test.go:52
        	Error:      	Should not be: "U"
        	Test:       	TestAuditConfigSuite/TestReconcile_AdmissionEnforcing
        	Messages:   	CI/CD job passing-deployment should not be unscored
    audit_config_base_suite.go:1071: 
        	Error Trace:	/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:1071
        	            				/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:822
        	            				/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:450
        	            				/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:393
        	            				/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_test.go:52
        	Error:      	Should not be: "U"
        	Test:       	TestAuditConfigSuite/TestReconcile_AdmissionEnforcing
        	Messages:   	CI/CD job passing-deployment should not be unscored
    audit_config_base_suite.go:1071: 
        	Error Trace:	/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:1071
        	            				/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:822
        	            				/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:450
        	            				/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:393
        	            				/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_test.go:52
        	Error:      	Should not be: "U"
        	Test:       	TestAuditConfigSuite/TestReconcile_AdmissionEnforcing
        	Messages:   	CI/CD job passing-deployment should not be unscored
2023-11-02T12:15:44.399Z	INFO	integration/audit_config_base_suite.go:824	Create a Deployment which should be denied in enforcing mode.
    audit_config_base_suite.go:1071: 
        	Error Trace:	/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:1071
        	            				/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:838
        	            				/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:450
        	            				/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:393
        	            				/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_test.go:52
        	Error:      	Should not be: "U"
        	Test:       	TestAuditConfigSuite/TestReconcile_AdmissionEnforcing
        	Messages:   	CI/CD job passing-deployment should not be unscored
    audit_config_base_suite.go:1071: 
        	Error Trace:	/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:1071
        	            				/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:838
        	            				/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:450
        	            				/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:393
        	            				/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_test.go:52
        	Error:      	Should not be: "U"
        	Test:       	TestAuditConfigSuite/TestReconcile_AdmissionEnforcing
        	Messages:   	CI/CD job passing-deployment should not be unscored
    audit_config_base_suite.go:1071: 
        	Error Trace:	/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:1071
        	            				/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:838
        	            				/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:450
        	            				/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:393
        	            				/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_test.go:52
        	Error:      	Should not be: "U"
        	Test:       	TestAuditConfigSuite/TestReconcile_AdmissionEnforcing
        	Messages:   	CI/CD job passing-deployment should not be unscored
2023-11-02T12:15:53.878Z	INFO	utils/k8s_helper.go:341	Resource /, Kind= mondoo-operator/passing-deployment deleted.
2023-11-02T12:15:53.881Z	INFO	utils/k8s_helper.go:341	Resource /, Kind= mondoo-operator/failing-deployment deleted.
2023-11-02T12:15:54.077Z	INFO	installer/installer.go:173	gathering all logs from the test
2023-11-02T12:15:54.077Z	INFO	utils/k8s_helper.go:256	Gathering logs for all pods in namespace mondoo-operator
2023-11-02T12:15:54.083Z	DEBUG	utils/k8s_helper.go:461	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/TestReconcile_AdmissionEnforcing_mondoo-operator_mondoo-operator-controller-manager-85867466ff-5btjm_1698927354.log
2023-11-02T12:15:54.096Z	DEBUG	utils/k8s_helper.go:461	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/TestReconcile_AdmissionEnforcing_mondoo-operator_mondoo-operator-controller-manager-85867466ff-5btjm_previous_1698927354.log
2023-11-02T12:15:54.100Z	DEBUG	utils/executor.go:271	Running command: kubectl -n mondoo-operator logs mondoo-operator-controller-manager-85867466ff-5btjm -c manager
2023-11-02T12:15:54.175Z	DEBUG	utils/k8s_helper.go:461	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/TestReconcile_AdmissionEnforcing_mondoo-operator_mondoo-client-scan-api-554844f59f-t6c9g_1698927354.log
2023-11-02T12:15:54.181Z	DEBUG	utils/k8s_helper.go:461	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/TestReconcile_AdmissionEnforcing_mondoo-operator_mondoo-client-webhook-manager-684565594b-98djp_1698927354.log
2023-11-02T12:15:54.187Z	INFO	utils/k8s_helper.go:267	Gathering pod describe for all pods in namespace mondoo-operator
2023-11-02T12:15:54.192Z	DEBUG	utils/k8s_helper.go:461	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/mondoo-operator_describe_TestReconcile_AdmissionEnforcing_1698927354.log
2023-11-02T12:15:54.192Z	DEBUG	utils/executor.go:271	Running command: kubectl get pod -o yaml -n mondoo-operator mondoo-operator-controller-manager-85867466ff-5btjm
2023-11-02T12:15:54.261Z	DEBUG	utils/executor.go:271	Running command: kubectl get pod -o yaml -n mondoo-operator mondoo-client-scan-api-554844f59f-t6c9g
2023-11-02T12:15:54.346Z	DEBUG	utils/executor.go:271	Running command: kubectl get pod -o yaml -n mondoo-operator mondoo-client-webhook-manager-684565594b-98djp
2023-11-02T12:15:54.428Z	DEBUG	utils/executor.go:271	Running command: kubectl get deployment -o yaml -n mondoo-operator mondoo-operator-controller-manager
2023-11-02T12:15:54.500Z	DEBUG	utils/executor.go:271	Running command: kubectl get deployment -o yaml -n mondoo-operator mondoo-client-scan-api
2023-11-02T12:15:54.572Z	DEBUG	utils/executor.go:271	Running command: kubectl get deployment -o yaml -n mondoo-operator mondoo-client-webhook-manager
2023-11-02T12:15:54.647Z	DEBUG	utils/executor.go:271	Running command: kubectl get mondooauditconfig -o yaml -n mondoo-operator mondoo-client
2023-11-02T12:15:54.721Z	INFO	utils/k8s_helper.go:308	Gathering events in namespace "mondoo-operator"
2023-11-02T12:15:54.721Z	DEBUG	utils/k8s_helper.go:461	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/mondoo-operator_events_TestReconcile_AdmissionEnforcing_1698927354.log
2023-11-02T12:15:54.721Z	DEBUG	utils/executor.go:271	Running command: kubectl get events -n mondoo-operator
2023-11-02T12:15:54.816Z	INFO	utils/k8s_helper.go:337	Resource k8s.mondoo.com/v1alpha2, Kind=MondooAuditConfig mondoo-operator/mondoo-client still exists.
2023-11-02T12:15:56.821Z	INFO	utils/k8s_helper.go:341	Resource k8s.mondoo.com/v1alpha2, Kind=MondooAuditConfig mondoo-operator/mondoo-client deleted.
2023-11-02T12:15:56.829Z	INFO	integration/audit_config_base_suite.go:116	Waiting for cleanup of the test cluster.
2023-11-02T12:15:56.844Z	INFO	integration/audit_config_base_suite.go:141	Cleanup done. Cluster should be good to go for the next test.
2023-11-02T12:15:57.791Z	DEBUG	utils/executor.go:271	Running command: kubectl delete pods -n default --all --wait
    --- FAIL: TestAuditConfigSuite/TestReconcile_AdmissionEnforcing (108.51s)

Check failure on line 0 in integration-tests-k3d-v1.24.16.xml

See this annotation in the file changed.

@github-actions github-actions / Report test results

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

Failed test found in:
  integration-tests-k3d-v1.24.16.xml
Error:
  === RUN   TestAuditConfigSuite/TestReconcile_AdmissionEnforcingScaleDownScanApi
Raw output
=== RUN   TestAuditConfigSuite/TestReconcile_AdmissionEnforcingScaleDownScanApi
2023-11-02T12:15:58.132Z	INFO	integration/audit_config_base_suite.go:405	Create an audit config that enables only admission control.
2023-11-02T12:15:58.142Z	INFO	integration/audit_config_base_suite.go:413	Waiting for webhook Pod to become ready.
2023-11-02T12:16:10.189Z	INFO	integration/audit_config_base_suite.go:418	Webhook Pod is ready.
2023-11-02T12:16:10.189Z	INFO	integration/audit_config_base_suite.go:659	Waiting for scan API Pod to become ready.
2023-11-02T12:16:10.193Z	INFO	integration/audit_config_base_suite.go:663	Scan API Pod is ready.
2023-11-02T12:16:10.196Z	INFO	integration/audit_config_base_suite.go:680	Waiting for good condition of Scan API
2023-11-02T12:16:10.266Z	INFO	integration/audit_config_base_suite.go:922	Update the webhook with the CA data.
2023-11-02T12:16:10.282Z	INFO	integration/audit_config_base_suite.go:931	Restart the webhook pods such that it is certain the CA secret has been reloaded.
2023-11-02T12:16:22.323Z	INFO	integration/audit_config_base_suite.go:941	Webhook Pod is ready.
2023-11-02T12:16:22.332Z	INFO	integration/audit_config_base_suite.go:959	Getting endpoints for webhook.
2023-11-02T12:16:22.335Z	INFO	integration/audit_config_base_suite.go:965	endpoints Addresses: [{10.42.0.25  0xc000848d70 &ObjectReference{Kind:Pod,Namespace:mondoo-operator,Name:mondoo-client-webhook-manager-684565594b-hpsfz,UID:36cca2aa-901b-48c2-b213-58a303d643e1,APIVersion:,ResourceVersion:,FieldPath:,}}]
2023-11-02T12:16:22.335Z	INFO	integration/audit_config_base_suite.go:966	endpoints NotReadyAddresses: []
2023-11-02T12:16:22.335Z	INFO	integration/audit_config_base_suite.go:973	Wait for webhook to start working.
2023-11-02T12:16:22.343Z	INFO	integration/audit_config_base_suite.go:446	Waiting for Webhook to accept connections (max 120s).
2023-11-02T12:16:22.344Z	INFO	integration/audit_config_base_suite.go:994	Created port-forward via kubectl for webhook with pid: 22973
2023-11-02T12:16:24.364Z	INFO	integration/audit_config_base_suite.go:1007	Webhook is available: 200 OK
2023-11-02T12:16:24.364Z	DEBUG	integration/audit_config_base_suite.go:1034	Trying to stop port-forward with pid: 22973
2023-11-02T12:16:24.366Z	INFO	integration/audit_config_base_suite.go:449	Webhook should be working by now.
2023-11-02T12:16:24.366Z	INFO	integration/audit_config_base_suite.go:802	Create a Deployment which should pass. (max. 5 retries)
2023-11-02T12:16:37.825Z	INFO	integration/audit_config_base_suite.go:824	Create a Deployment which should be denied in enforcing mode.
    audit_config_base_suite.go:1071: 
        	Error Trace:	/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:1071
        	            				/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:838
        	            				/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:450
        	            				/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:465
        	            				/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_test.go:60
        	Error:      	Should not be: "U"
        	Test:       	TestAuditConfigSuite/TestReconcile_AdmissionEnforcingScaleDownScanApi
        	Messages:   	CI/CD job failing-deployment should not be unscored
2023-11-02T12:16:48.569Z	INFO	utils/k8s_helper.go:341	Resource /, Kind= mondoo-operator/passing-deployment deleted.
2023-11-02T12:16:48.571Z	INFO	utils/k8s_helper.go:341	Resource /, Kind= mondoo-operator/failing-deployment deleted.
2023-11-02T12:16:49.567Z	INFO	utils/k8s_helper.go:337	Resource /, Kind= mondoo-operator/mondoo-client-scan-api-554844f59f-m8zf2 still exists.
2023-11-02T12:16:51.571Z	INFO	utils/k8s_helper.go:341	Resource /, Kind= mondoo-operator/mondoo-client-scan-api-554844f59f-m8zf2 deleted.
2023-11-02T12:16:51.571Z	INFO	integration/audit_config_base_suite.go:482	MondooAuditConfig condition should be updated to degraded.
2023-11-02T12:16:51.610Z	INFO	installer/installer.go:173	gathering all logs from the test
2023-11-02T12:16:51.610Z	INFO	utils/k8s_helper.go:256	Gathering logs for all pods in namespace mondoo-operator
2023-11-02T12:16:51.615Z	DEBUG	utils/k8s_helper.go:461	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/TestReconcile_AdmissionEnforcingScaleDownScanApi_mondoo-operator_mondoo-operator-controller-manager-85867466ff-5btjm_1698927411.log
2023-11-02T12:16:51.625Z	DEBUG	utils/k8s_helper.go:461	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/TestReconcile_AdmissionEnforcingScaleDownScanApi_mondoo-operator_mondoo-operator-controller-manager-85867466ff-5btjm_previous_1698927411.log
2023-11-02T12:16:51.630Z	DEBUG	utils/executor.go:271	Running command: kubectl -n mondoo-operator logs mondoo-operator-controller-manager-85867466ff-5btjm -c manager
2023-11-02T12:16:51.716Z	DEBUG	utils/k8s_helper.go:461	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/TestReconcile_AdmissionEnforcingScaleDownScanApi_mondoo-operator_mondoo-client-webhook-manager-684565594b-hpsfz_1698927411.log
2023-11-02T12:16:51.723Z	INFO	utils/k8s_helper.go:267	Gathering pod describe for all pods in namespace mondoo-operator
2023-11-02T12:16:51.727Z	DEBUG	utils/k8s_helper.go:461	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/mondoo-operator_describe_TestReconcile_AdmissionEnforcingScaleDownScanApi_1698927411.log
2023-11-02T12:16:51.727Z	DEBUG	utils/executor.go:271	Running command: kubectl get pod -o yaml -n mondoo-operator mondoo-operator-controller-manager-85867466ff-5btjm
2023-11-02T12:16:51.797Z	DEBUG	utils/executor.go:271	Running command: kubectl get pod -o yaml -n mondoo-operator mondoo-client-webhook-manager-684565594b-hpsfz
2023-11-02T12:16:51.869Z	DEBUG	utils/executor.go:271	Running command: kubectl get deployment -o yaml -n mondoo-operator mondoo-operator-controller-manager
2023-11-02T12:16:51.942Z	DEBUG	utils/executor.go:271	Running command: kubectl get deployment -o yaml -n mondoo-operator mondoo-client-webhook-manager
2023-11-02T12:16:52.015Z	DEBUG	utils/executor.go:271	Running command: kubectl get deployment -o yaml -n mondoo-operator mondoo-client-scan-api
2023-11-02T12:16:52.095Z	DEBUG	utils/executor.go:271	Running command: kubectl get mondooauditconfig -o yaml -n mondoo-operator mondoo-client
2023-11-02T12:16:52.171Z	INFO	utils/k8s_helper.go:308	Gathering events in namespace "mondoo-operator"
2023-11-02T12:16:52.172Z	DEBUG	utils/k8s_helper.go:461	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/mondoo-operator_events_TestReconcile_AdmissionEnforcingScaleDownScanApi_1698927412.log
2023-11-02T12:16:52.172Z	DEBUG	utils/executor.go:271	Running command: kubectl get events -n mondoo-operator
2023-11-02T12:16:52.266Z	INFO	utils/k8s_helper.go:337	Resource k8s.mondoo.com/v1alpha2, Kind=MondooAuditConfig mondoo-operator/mondoo-client still exists.
2023-11-02T12:16:54.271Z	INFO	utils/k8s_helper.go:341	Resource k8s.mondoo.com/v1alpha2, Kind=MondooAuditConfig mondoo-operator/mondoo-client deleted.
2023-11-02T12:16:54.279Z	INFO	integration/audit_config_base_suite.go:116	Waiting for cleanup of the test cluster.
2023-11-02T12:16:54.293Z	INFO	integration/audit_config_base_suite.go:141	Cleanup done. Cluster should be good to go for the next test.
2023-11-02T12:16:58.387Z	DEBUG	utils/executor.go:271	Running command: kubectl delete pods -n default --all --wait
    --- FAIL: TestAuditConfigSuite/TestReconcile_AdmissionEnforcingScaleDownScanApi (60.59s)

Check failure on line 0 in integration-tests-k3d-v1.24.16.xml

See this annotation in the file changed.

@github-actions github-actions / Report test results

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

Failed test found in:
  integration-tests-k3d-v1.24.16.xml
Error:
  === RUN   TestAuditConfigSuite/TestReconcile_AdmissionPermissive
Raw output
=== RUN   TestAuditConfigSuite/TestReconcile_AdmissionPermissive
2023-11-02T12:16:59.465Z	INFO	integration/audit_config_base_suite.go:405	Create an audit config that enables only admission control.
2023-11-02T12:16:59.477Z	INFO	integration/audit_config_base_suite.go:413	Waiting for webhook Pod to become ready.
2023-11-02T12:17:11.514Z	INFO	integration/audit_config_base_suite.go:418	Webhook Pod is ready.
2023-11-02T12:17:11.514Z	INFO	integration/audit_config_base_suite.go:659	Waiting for scan API Pod to become ready.
2023-11-02T12:17:11.518Z	INFO	integration/audit_config_base_suite.go:663	Scan API Pod is ready.
2023-11-02T12:17:11.521Z	INFO	integration/audit_config_base_suite.go:680	Waiting for good condition of Scan API
2023-11-02T12:17:11.534Z	INFO	integration/audit_config_base_suite.go:922	Update the webhook with the CA data.
2023-11-02T12:17:11.543Z	INFO	integration/audit_config_base_suite.go:931	Restart the webhook pods such that it is certain the CA secret has been reloaded.
2023-11-02T12:17:23.581Z	INFO	integration/audit_config_base_suite.go:941	Webhook Pod is ready.
2023-11-02T12:17:23.589Z	INFO	integration/audit_config_base_suite.go:959	Getting endpoints for webhook.
2023-11-02T12:17:23.592Z	INFO	integration/audit_config_base_suite.go:965	endpoints Addresses: [{10.42.0.28  0xc000a397a0 &ObjectReference{Kind:Pod,Namespace:mondoo-operator,Name:mondoo-client-webhook-manager-868dcd5944-f9bbg,UID:df5d25b2-e9aa-4f4b-becd-11559f539a7b,APIVersion:,ResourceVersion:,FieldPath:,}}]
2023-11-02T12:17:23.592Z	INFO	integration/audit_config_base_suite.go:966	endpoints NotReadyAddresses: []
2023-11-02T12:17:23.592Z	INFO	integration/audit_config_base_suite.go:973	Wait for webhook to start working.
2023-11-02T12:17:23.602Z	INFO	integration/audit_config_base_suite.go:446	Waiting for Webhook to accept connections (max 120s).
2023-11-02T12:17:23.603Z	INFO	integration/audit_config_base_suite.go:994	Created port-forward via kubectl for webhook with pid: 24376
2023-11-02T12:17:25.626Z	INFO	integration/audit_config_base_suite.go:1007	Webhook is available: 200 OK
2023-11-02T12:17:25.626Z	DEBUG	integration/audit_config_base_suite.go:1034	Trying to stop port-forward with pid: 24376
2023-11-02T12:17:25.628Z	INFO	integration/audit_config_base_suite.go:449	Webhook should be working by now.
2023-11-02T12:17:25.628Z	INFO	integration/audit_config_base_suite.go:802	Create a Deployment which should pass. (max. 5 retries)
    audit_config_base_suite.go:1071: 
        	Error Trace:	/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:1071
        	            				/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:822
        	            				/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:450
        	            				/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:393
        	            				/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_test.go:46
        	Error:      	Should not be: "U"
        	Test:       	TestAuditConfigSuite/TestReconcile_AdmissionPermissive
        	Messages:   	CI/CD job passing-deployment should not be unscored
2023-11-02T12:17:41.564Z	INFO	integration/audit_config_base_suite.go:824	Create a Deployment which should be denied in enforcing mode.
    audit_config_base_suite.go:1071: 
        	Error Trace:	/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:1071
        	            				/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:838
        	            				/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:450
        	            				/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:393
        	            				/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_test.go:46
        	Error:      	Should not be: "U"
        	Test:       	TestAuditConfigSuite/TestReconcile_AdmissionPermissive
        	Messages:   	CI/CD job failing-deployment should not be unscored
    audit_config_base_suite.go:1071: 
        	Error Trace:	/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:1071
        	            				/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:838
        	            				/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:450
        	            				/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:393
        	            				/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_test.go:46
        	Error:      	Should not be: "U"
        	Test:       	TestAuditConfigSuite/TestReconcile_AdmissionPermissive
        	Messages:   	CI/CD job passing-deployment should not be unscored
2023-11-02T12:17:53.575Z	INFO	utils/k8s_helper.go:341	Resource /, Kind= mondoo-operator/passing-deployment deleted.
2023-11-02T12:17:53.581Z	INFO	utils/k8s_helper.go:341	Resource /, Kind= mondoo-operator/failing-deployment deleted.
2023-11-02T12:17:54.061Z	INFO	installer/installer.go:173	gathering all logs from the test
2023-11-02T12:17:54.061Z	INFO	utils/k8s_helper.go:256	Gathering logs for all pods in namespace mondoo-operator
2023-11-02T12:17:54.067Z	DEBUG	utils/k8s_helper.go:461	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/TestReconcile_AdmissionPermissive_mondoo-operator_mondoo-operator-controller-manager-85867466ff-5btjm_1698927474.log
2023-11-02T12:17:54.079Z	DEBUG	utils/k8s_helper.go:461	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/TestReconcile_AdmissionPermissive_mondoo-operator_mondoo-operator-controller-manager-85867466ff-5btjm_previous_1698927474.log
2023-11-02T12:17:54.084Z	DEBUG	utils/executor.go:271	Running command: kubectl -n mondoo-operator logs mondoo-operator-controller-manager-85867466ff-5btjm -c manager
2023-11-02T12:17:54.174Z	DEBUG	utils/k8s_helper.go:461	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/TestReconcile_AdmissionPermissive_mondoo-operator_mondoo-client-scan-api-554844f59f-6fxnq_1698927474.log
2023-11-02T12:17:54.180Z	DEBUG	utils/k8s_helper.go:461	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/TestReconcile_AdmissionPermissive_mondoo-operator_mondoo-client-webhook-manager-868dcd5944-f9bbg_1698927474.log
2023-11-02T12:17:54.186Z	DEBUG	utils/k8s_helper.go:461	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/TestReconcile_AdmissionPermissive_mondoo-operator_failing-deployment-6d7f454d48-f2882_1698927474.log
2023-11-02T12:17:54.192Z	DEBUG	utils/k8s_helper.go:461	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/TestReconcile_AdmissionPermissive_mondoo-operator_passing-deployment-54b87d48cf-hdtmw_1698927474.log
2023-11-02T12:17:54.197Z	INFO	utils/k8s_helper.go:267	Gathering pod describe for all pods in namespace mondoo-operator
2023-11-02T12:17:54.203Z	DEBUG	utils/k8s_helper.go:461	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/mondoo-operator_describe_TestReconcile_AdmissionPermissive_1698927474.log
2023-11-02T12:17:54.203Z	DEBUG	utils/executor.go:271	Running command: kubectl get pod -o yaml -n mondoo-operator mondoo-operator-controller-manager-85867466ff-5btjm
2023-11-02T12:17:54.276Z	DEBUG	utils/executor.go:271	Running command: kubectl get pod -o yaml -n mondoo-operator mondoo-client-scan-api-554844f59f-6fxnq
2023-11-02T12:17:54.348Z	DEBUG	utils/executor.go:271	Running command: kubectl get pod -o yaml -n mondoo-operator mondoo-client-webhook-manager-868dcd5944-f9bbg
2023-11-02T12:17:54.472Z	DEBUG	utils/executor.go:271	Running command: kubectl get pod -o yaml -n mondoo-operator failing-deployment-6d7f454d48-f2882
2023-11-02T12:17:54.562Z	DEBUG	utils/executor.go:271	Running command: kubectl get pod -o yaml -n mondoo-operator passing-deployment-54b87d48cf-hdtmw
2023-11-02T12:17:54.635Z	ERROR	utils/k8s_helper.go:105	failed to execute: kubectl [get pod -o yaml -n mondoo-operator passing-deployment-54b87d48cf-hdtmw] : exit status 1. Error from server (NotFound): pods "passing-deployment-54b87d48cf-hdtmw" not found
go.mondoo.com/mondoo-operator/tests/framework/utils.(*K8sHelper).Kubectl
	/home/runner/work/mondoo-operator/mondoo-operator/tests/framework/utils/k8s_helper.go:105
go.mondoo.com/mondoo-operator/tests/framework/utils.(*K8sHelper).getPodDescribe
	/home/runner/work/mondoo-operator/mondoo-operator/tests/framework/utils/k8s_helper.go:413
go.mondoo.com/mondoo-operator/tests/framework/utils.(*K8sHelper).appendPodDescribe
	/home/runner/work/mondoo-operator/mondoo-operator/tests/framework/utils/k8s_helper.go:374
go.mondoo.com/mondoo-operator/tests/framework/utils.(*K8sHelper).GetDescribeFromNamespace
	/home/runner/work/mondoo-operator/mondoo-operator/tests/framework/utils/k8s_helper.go:281
go.mondoo.com/mondoo-operator/tests/framework/installer.(*MondooInstaller).GatherAllMondooLogs
	/home/runner/work/mondoo-operator/mondoo-operator/tests/framework/installer/installer.go:176
go.mondoo.com/mondoo-operator/tests/integration.(*AuditConfigBaseSuite).AfterTest
	/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:104
github.com/stretchr/testify/suite.Run.func1.1
	/home/runner/go/pkg/mod/github.com/stretchr/[email protected]/suite/suite.go:175
github.com/stretchr/testify/suite.Run.func1
	/home/runner/go/pkg/mod/github.com/stretchr/[email protected]/suite/suite.go:198
testing.tRunner
	/opt/hostedtoolcache/go/1.21.3/x64/src/testing/testing.go:1595
2023-11-02T12:17:54.635Z	ERROR	utils/k8s_helper.go:415	failed to describe pod. [get pod -o yaml -n mondoo-operator passing-deployment-54b87d48cf-hdtmw] failed to run: kubectl [get pod -o yaml -n mondoo-operator passing-deployment-54b87d48cf-hdtmw] : exit status 1
go.mondoo.com/mondoo-operator/tests/framework/utils.(*K8sHelper).getPodDescribe
	/home/runner/work/mondoo-operator/mondoo-operator/tests/framework/utils/k8s_helper.go:415
go.mondoo.com/mondoo-operator/tests/framework/utils.(*K8sHelper).appendPodDescribe
	/home/runner/work/mondoo-operator/mondoo-operator/tests/framework/utils/k8s_helper.go:374
go.mondoo.com/mondoo-operator/tests/framework/utils.(*K8sHelper).GetDescribeFromNamespace
	/home/runner/work/mondoo-operator/mondoo-operator/tests/framework/utils/k8s_helper.go:281
go.mondoo.com/mondoo-operator/tests/framework/installer.(*MondooInstaller).GatherAllMondooLogs
	/home/runner/work/mondoo-operator/mondoo-operator/tests/framework/installer/installer.go:176
go.mondoo.com/mondoo-operator/tests/integration.(*AuditConfigBaseSuite).AfterTest
	/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:104
github.com/stretchr/testify/suite.Run.func1.1
	/home/runner/go/pkg/mod/github.com/stretchr/[email protected]/suite/suite.go:175
github.com/stretchr/testify/suite.Run.func1
	/home/runner/go/pkg/mod/github.com/stretchr/[email protected]/suite/suite.go:198
testing.tRunner
	/opt/hostedtoolcache/go/1.21.3/x64/src/testing/testing.go:1595
2023-11-02T12:17:54.640Z	DEBUG	utils/executor.go:271	Running command: kubectl get deployment -o yaml -n mondoo-operator mondoo-operator-controller-manager
2023-11-02T12:17:54.712Z	DEBUG	utils/executor.go:271	Running command: kubectl get deployment -o yaml -n mondoo-operator mondoo-client-scan-api
2023-11-02T12:17:54.786Z	DEBUG	utils/executor.go:271	Running command: kubectl get deployment -o yaml -n mondoo-operator mondoo-client-webhook-manager
2023-11-02T12:17:54.860Z	DEBUG	utils/executor.go:271	Running command: kubectl get mondooauditconfig -o yaml -n mondoo-operator mondoo-client
2023-11-02T12:17:54.926Z	INFO	utils/k8s_helper.go:308	Gathering events in namespace "mondoo-operator"
2023-11-02T12:17:54.926Z	DEBUG	utils/k8s_helper.go:461	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/mondoo-operator_events_TestReconcile_AdmissionPermissive_1698927474.log
2023-11-02T12:17:54.926Z	DEBUG	utils/executor.go:271	Running command: kubectl get events -n mondoo-operator
2023-11-02T12:17:55.042Z	INFO	utils/k8s_helper.go:337	Resource k8s.mondoo.com/v1alpha2, Kind=MondooAuditConfig mondoo-operator/mondoo-client still exists.
2023-11-02T12:17:57.046Z	INFO	utils/k8s_helper.go:341	Resource k8s.mondoo.com/v1alpha2, Kind=MondooAuditConfig mondoo-operator/mondoo-client deleted.
2023-11-02T12:17:57.055Z	INFO	integration/audit_config_base_suite.go:116	Waiting for cleanup of the test cluster.
2023-11-02T12:17:57.068Z	INFO	integration/audit_config_base_suite.go:141	Cleanup done. Cluster should be good to go for the next test.
2023-11-02T12:17:58.832Z	DEBUG	utils/executor.go:271	Running command: kubectl delete pods -n default --all --wait
    --- FAIL: TestAuditConfigSuite/TestReconcile_AdmissionPermissive (60.44s)

Check failure on line 0 in integration-tests-k3d-v1.24.16.xml

See this annotation in the file changed.

@github-actions github-actions / Report test results

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

Failed test found in:
  integration-tests-k3d-v1.24.16.xml
Error:
  === RUN   TestAuditConfigSuite/TestReconcile_KubernetesResources
Raw output
=== RUN   TestAuditConfigSuite/TestReconcile_KubernetesResources
2023-11-02T12:20:32.014Z	INFO	integration/audit_config_base_suite.go:158	Create an audit config that enables only workloads scanning.
2023-11-02T12:20:32.032Z	INFO	integration/audit_config_base_suite.go:659	Waiting for scan API Pod to become ready.
2023-11-02T12:20:44.069Z	INFO	integration/audit_config_base_suite.go:663	Scan API Pod is ready.
2023-11-02T12:20:44.071Z	INFO	integration/audit_config_base_suite.go:680	Waiting for good condition of Scan API
2023-11-02T12:20:44.079Z	INFO	integration/audit_config_base_suite.go:169	Make sure the Mondoo k8s resources scan CronJob is created.
    audit_config_base_suite.go:182: 
        	Error Trace:	/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:182
        	            				/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_test.go:27
        	Error:      	Should be true
        	Test:       	TestAuditConfigSuite/TestReconcile_KubernetesResources
        	Messages:   	Kubernetes resources scan CronJob did not run successfully.
    audit_config_base_suite.go:206: 
        	Error Trace:	/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:206
        	            				/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_test.go:27
        	Error:      	elements differ
        	            	
        	            	extra elements in list A:
        	            	([]interface {}) (len=1) {
        	            	 (string) (len=61) "mondoo-operator/mondoo-operator-controller-manager-85867466ff"
        	            	}
        	            	
        	            	
        	            	listA:
        	            	([]string) (len=18) {
        	            	 (string) (len=51) "kube-system/local-path-provisioner-597bc7dccd-sf4wd",
        	            	 (string) (len=36) "kube-system/coredns-74448699cf-j5gtk",
        	            	 (string) (len=42) "kube-system/metrics-server-749b574fc-qzq7k",
        	            	 (string) (len=67) "mondoo-operator/mondoo-operator-controller-manager-85867466ff-5btjm",
        	            	 (string) (len=55) "mondoo-operator/mondoo-client-scan-api-75fb94fbcf-xkgh4",
        	            	 (string) (len=53) "mondoo-operator/mondoo-client-k8s-scan-28315461-z8lrb",
        	            	 (string) (len=47) "mondoo-operator/mondoo-client-k8s-scan-28315461",
        	            	 (string) (len=38) "mondoo-operator/mondoo-client-k8s-scan",
        	            	 (string) (len=34) "kube-system/local-path-provisioner",
        	            	 (string) (len=19) "kube-system/coredns",
        	            	 (string) (len=26) "kube-system/metrics-server",
        	            	 (string) (len=50) "mondoo-operator/mondoo-operator-controller-manager",
        	            	 (string) (len=38) "mondoo-operator/mondoo-client-scan-api",
        	            	 (string) (len=45) "kube-system/local-path-provisioner-597bc7dccd",
        	            	 (string) (len=30) "kube-system/coredns-74448699cf",
        	            	 (string) (len=36) "kube-system/metrics-server-749b574fc",
        	            	 (string) (len=61) "mondoo-operator/mondoo-operator-controller-manager-85867466ff",
        	            	 (string) (len=49) "mondoo-operator/mondoo-client-scan-api-75fb94fbcf"
        	            	}
        	            	
        	            	
        	            	listB:
        	            	([]string) (len=17) {
        	            	 (string) (len=38) "mondoo-operator/mondoo-client-scan-api",
        	            	 (string) (len=49) "mondoo-operator/mondoo-client-scan-api-75fb94fbcf",
        	            	 (string) (len=55) "mondoo-operator/mondoo-client-scan-api-75fb94fbcf-xkgh4",
        	            	 (string) (len=47) "mondoo-operator/mondoo-client-k8s-scan-28315461",
        	            	 (string) (len=53) "mondoo-operator/mondoo-client-k8s-scan-28315461-z8lrb",
        	            	 (string) (len=38) "mondoo-operator/mondoo-client-k8s-scan",
        	            	 (string) (len=42) "kube-system/metrics-server-749b574fc-qzq7k",
        	            	 (string) (len=26) "kube-system/metrics-server",
        	            	 (string) (len=36) "kube-system/coredns-74448699cf-j5gtk",
        	            	 (string) (len=50) "mondoo-operator/mondoo-operator-controller-manager",
        	            	 (string) (len=19) "kube-system/coredns",
        	            	 (string) (len=51) "kube-system/local-path-provisioner-597bc7dccd-sf4wd",
        	            	 (string) (len=34) "kube-system/local-path-provisioner",
        	            	 (string) (len=36) "kube-system/metrics-server-749b574fc",
        	            	 (string) (len=67) "mondoo-operator/mondoo-operator-controller-manager-85867466ff-5btjm",
        	            	 (string) (len=45) "kube-system/local-path-provisioner-597bc7dccd",
        	            	 (string) (len=30) "kube-system/coredns-74448699cf"
        	            	}
        	Test:       	TestAuditConfigSuite/TestReconcile_KubernetesResources
        	Messages:   	Workloads were not sent upstream.
2023-11-02T12:24:21.249Z	INFO	integration/audit_config_base_suite.go:1061	Asset kube-system/metrics-server-749b574fc has no score
    audit_config_base_suite.go:1063: 
        	Error Trace:	/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:1063
        	            				/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:208
        	            				/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_test.go:27
        	Error:      	Should not be: "U"
        	Test:       	TestAuditConfigSuite/TestReconcile_KubernetesResources
        	Messages:   	Asset kube-system/metrics-server-749b574fc should not be unscored
2023-11-02T12:24:21.249Z	INFO	integration/audit_config_base_suite.go:1061	Asset mondoo-operator/mondoo-operator-controller-manager-85867466ff-5btjm has no score
    audit_config_base_suite.go:1063: 
        	Error Trace:	/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:1063
        	            				/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:208
        	            				/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_test.go:27
        	Error:      	Should not be: "U"
        	Test:       	TestAuditConfigSuite/TestReconcile_KubernetesResources
        	Messages:   	Asset mondoo-operator/mondoo-operator-controller-manager-85867466ff-5btjm should not be unscored
2023-11-02T12:24:21.249Z	INFO	integration/audit_config_base_suite.go:1061	Asset kube-system/local-path-provisioner-597bc7dccd has no score
    audit_config_base_suite.go:1063: 
        	Error Trace:	/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:1063
        	            				/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:208
        	            				/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_test.go:27
        	Error:      	Should not be: "U"
        	Test:       	TestAuditConfigSuite/TestReconcile_KubernetesResources
        	Messages:   	Asset kube-system/local-path-provisioner-597bc7dccd should not be unscored
2023-11-02T12:24:21.249Z	INFO	integration/audit_config_base_suite.go:1061	Asset kube-system/coredns-74448699cf has no score
    audit_config_base_suite.go:1063: 
        	Error Trace:	/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:1063
        	            				/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:208
        	            				/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_test.go:27
        	Error:      	Should not be: "U"
        	Test:       	TestAuditConfigSuite/TestReconcile_KubernetesResources
        	Messages:   	Asset kube-system/coredns-74448699cf should not be unscored
2023-11-02T12:24:22.683Z	INFO	installer/installer.go:173	gathering all logs from the test
2023-11-02T12:24:22.683Z	INFO	utils/k8s_helper.go:256	Gathering logs for all pods in namespace mondoo-operator
2023-11-02T12:24:22.688Z	DEBUG	utils/k8s_helper.go:461	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/TestReconcile_KubernetesResources_mondoo-operator_mondoo-operator-controller-manager-85867466ff-5btjm_1698927862.log
2023-11-02T12:24:22.723Z	DEBUG	utils/k8s_helper.go:461	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/TestReconcile_KubernetesResources_mondoo-operator_mondoo-operator-controller-manager-85867466ff-5btjm_previous_1698927862.log
2023-11-02T12:24:22.728Z	DEBUG	utils/executor.go:271	Running command: kubectl -n mondoo-operator logs mondoo-operator-controller-manager-85867466ff-5btjm -c manager
2023-11-02T12:24:22.812Z	DEBUG	utils/k8s_helper.go:461	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/TestReconcile_KubernetesResources_mondoo-operator_mondoo-client-scan-api-75fb94fbcf-xkgh4_1698927862.log
2023-11-02T12:24:22.818Z	DEBUG	utils/k8s_helper.go:461	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/TestReconcile_KubernetesResources_mondoo-operator_mondoo-client-k8s-scan-28315461-z8lrb_1698927862.log
2023-11-02T12:24:22.824Z	INFO	utils/k8s_helper.go:267	Gathering pod describe for all pods in namespace mondoo-operator
2023-11-02T12:24:22.828Z	DEBUG	utils/k8s_helper.go:461	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/mondoo-operator_describe_TestReconcile_KubernetesResources_1698927862.log
2023-11-02T12:24:22.828Z	DEBUG	utils/executor.go:271	Running command: kubectl get pod -o yaml -n mondoo-operator mondoo-operator-controller-manager-85867466ff-5btjm
2023-11-02T12:24:22.898Z	DEBUG	utils/executor.go:271	Running command: kubectl get pod -o yaml -n mondoo-operator mondoo-client-scan-api-75fb94fbcf-xkgh4
2023-11-02T12:24:22.975Z	DEBUG	utils/executor.go:271	Running command: kubectl get pod -o yaml -n mondoo-operator mondoo-client-k8s-scan-28315461-z8lrb
2023-11-02T12:24:23.052Z	DEBUG	utils/executor.go:271	Running command: kubectl get deployment -o yaml -n mondoo-operator mondoo-operator-controller-manager
2023-11-02T12:24:23.129Z	DEBUG	utils/executor.go:271	Running command: kubectl get deployment -o yaml -n mondoo-operator mondoo-client-scan-api
2023-11-02T12:24:23.214Z	DEBUG	utils/executor.go:271	Running command: kubectl get mondooauditconfig -o yaml -n mondoo-operator mondoo-client
2023-11-02T12:24:23.288Z	INFO	utils/k8s_helper.go:308	Gathering events in namespace "mondoo-operator"
2023-11-02T12:24:23.289Z	DEBUG	utils/k8s_helper.go:461	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/mondoo-operator_events_TestReconcile_KubernetesResources_1698927863.log
2023-11-02T12:24:23.289Z	DEBUG	utils/executor.go:271	Running command: kubectl get events -n mondoo-operator
2023-11-02T12:24:23.414Z	INFO	utils/k8s_helper.go:337	Resource k8s.mondoo.com/v1alpha2, Kind=MondooAuditConfig mondoo-operator/mondoo-client still exists.
2023-11-02T12:24:25.418Z	INFO	utils/k8s_helper.go:341	Resource k8s.mondoo.com/v1alpha2, Kind=MondooAuditConfig mondoo-operator/mondoo-client deleted.
2023-11-02T12:24:25.425Z	INFO	integration/audit_config_base_suite.go:116	Waiting for cleanup of the test cluster.
2023-11-02T12:24:25.438Z	INFO	integration/audit_config_base_suite.go:141	Cleanup done. Cluster should be good to go for the next test.
2023-11-02T12:24:30.008Z	DEBUG	utils/executor.go:271	Running command: kubectl delete pods -n default --all --wait
    --- FAIL: TestAuditConfigSuite/TestReconcile_KubernetesResources (238.07s)

Check failure on line 0 in integration-tests-k3d-v1.24.16.xml

See this annotation in the file changed.

@github-actions github-actions / Report test results

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

Failed test found in:
  integration-tests-k3d-v1.24.16.xml
Error:
  === RUN   TestAuditConfigSuite
Raw output
=== RUN   TestAuditConfigSuite
2023-11-02T12:13:55.810Z	INFO	installer/installer.go:84	Installing Mondoo operator with local manifest
2023-11-02T12:13:55.810Z	INFO	utils/manifest_utils.go:54	Reading file: /home/runner/work/mondoo-operator/mondoo-operator/mondoo-operator-manifests.yaml
2023-11-02T12:13:55.811Z	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
2023-11-02T12:13:57.320Z	INFO	installer/installer.go:165	Created Мondoo client secret "mondoo-token".
2023-11-02T12:14:09.359Z	INFO	installer/installer.go:100	Mondoo operator is ready.
--- FAIL: TestAuditConfigSuite (719.36s)

Check failure on line 0 in integration-tests-k3d-v1.25.12.xml

See this annotation in the file changed.

@github-actions github-actions / Report test results

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

Failed test found in:
  integration-tests-k3d-v1.25.12.xml
Error:
  === RUN   TestAuditConfigCustomNamespaceSuite/TestReconcile_KubernetesResources
Raw output
=== RUN   TestAuditConfigCustomNamespaceSuite/TestReconcile_KubernetesResources
2023-11-02T12:07:52.434Z	INFO	integration/audit_config_base_suite.go:158	Create an audit config that enables only workloads scanning.
2023-11-02T12:07:52.447Z	INFO	integration/audit_config_base_suite.go:659	Waiting for scan API Pod to become ready.
2023-11-02T12:08:00.475Z	INFO	integration/audit_config_base_suite.go:663	Scan API Pod is ready.
2023-11-02T12:08:00.479Z	INFO	integration/audit_config_base_suite.go:680	Waiting for good condition of Scan API
2023-11-02T12:08:00.491Z	INFO	integration/audit_config_base_suite.go:169	Make sure the Mondoo k8s resources scan CronJob is created.
    audit_config_base_suite.go:182: 
        	Error Trace:	/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:182
        	            				/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_namespace_test.go:84
        	Error:      	Should be true
        	Test:       	TestAuditConfigCustomNamespaceSuite/TestReconcile_KubernetesResources
        	Messages:   	Kubernetes resources scan CronJob did not run successfully.
2023-11-02T12:11:34.868Z	INFO	installer/installer.go:173	gathering all logs from the test
2023-11-02T12:11:34.868Z	INFO	utils/k8s_helper.go:256	Gathering logs for all pods in namespace some-namespace
2023-11-02T12:11:34.874Z	DEBUG	utils/k8s_helper.go:461	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/TestReconcile_KubernetesResources_some-namespace_mondoo-client-scan-api-85755c4f76-fvx62_1698927094.log
2023-11-02T12:11:34.888Z	DEBUG	utils/k8s_helper.go:461	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/TestReconcile_KubernetesResources_some-namespace_mondoo-client-k8s-scan-28315448-ktbpx_1698927094.log
2023-11-02T12:11:34.896Z	INFO	utils/k8s_helper.go:267	Gathering pod describe for all pods in namespace some-namespace
2023-11-02T12:11:34.900Z	DEBUG	utils/k8s_helper.go:461	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/some-namespace_describe_TestReconcile_KubernetesResources_1698927094.log
2023-11-02T12:11:34.900Z	DEBUG	utils/executor.go:271	Running command: kubectl get pod -o yaml -n some-namespace mondoo-client-scan-api-85755c4f76-fvx62
2023-11-02T12:11:34.992Z	DEBUG	utils/executor.go:271	Running command: kubectl get pod -o yaml -n some-namespace mondoo-client-k8s-scan-28315448-ktbpx
2023-11-02T12:11:35.086Z	DEBUG	utils/executor.go:271	Running command: kubectl get deployment -o yaml -n some-namespace mondoo-client-scan-api
2023-11-02T12:11:35.171Z	DEBUG	utils/executor.go:271	Running command: kubectl get mondooauditconfig -o yaml -n some-namespace mondoo-client
2023-11-02T12:11:35.237Z	INFO	utils/k8s_helper.go:308	Gathering events in namespace "some-namespace"
2023-11-02T12:11:35.237Z	DEBUG	utils/k8s_helper.go:461	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/some-namespace_events_TestReconcile_KubernetesResources_1698927095.log
2023-11-02T12:11:35.237Z	DEBUG	utils/executor.go:271	Running command: kubectl get events -n some-namespace
2023-11-02T12:11:35.327Z	INFO	installer/installer.go:173	gathering all logs from the test
2023-11-02T12:11:35.327Z	INFO	utils/k8s_helper.go:256	Gathering logs for all pods in namespace mondoo-operator
2023-11-02T12:11:35.332Z	DEBUG	utils/k8s_helper.go:461	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/TestReconcile_KubernetesResources_mondoo-operator_mondoo-operator-controller-manager-d88987896-wlsr4_1698927095.log
2023-11-02T12:11:35.345Z	DEBUG	utils/k8s_helper.go:461	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/TestReconcile_KubernetesResources_mondoo-operator_mondoo-operator-controller-manager-d88987896-wlsr4_previous_1698927095.log
2023-11-02T12:11:35.350Z	DEBUG	utils/executor.go:271	Running command: kubectl -n mondoo-operator logs mondoo-operator-controller-manager-d88987896-wlsr4 -c manager
2023-11-02T12:11:35.442Z	INFO	utils/k8s_helper.go:267	Gathering pod describe for all pods in namespace mondoo-operator
2023-11-02T12:11:35.446Z	DEBUG	utils/k8s_helper.go:461	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/mondoo-operator_describe_TestReconcile_KubernetesResources_1698927095.log
2023-11-02T12:11:35.446Z	DEBUG	utils/executor.go:271	Running command: kubectl get pod -o yaml -n mondoo-operator mondoo-operator-controller-manager-d88987896-wlsr4
2023-11-02T12:11:35.534Z	DEBUG	utils/executor.go:271	Running command: kubectl get deployment -o yaml -n mondoo-operator mondoo-operator-controller-manager
2023-11-02T12:11:35.650Z	INFO	utils/k8s_helper.go:308	Gathering events in namespace "mondoo-operator"
2023-11-02T12:11:35.651Z	DEBUG	utils/k8s_helper.go:461	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/mondoo-operator_events_TestReconcile_KubernetesResources_1698927095.log
2023-11-02T12:11:35.651Z	DEBUG	utils/executor.go:271	Running command: kubectl get events -n mondoo-operator
2023-11-02T12:11:35.763Z	INFO	utils/k8s_helper.go:337	Resource k8s.mondoo.com/v1alpha2, Kind=MondooAuditConfig some-namespace/mondoo-client still exists.
2023-11-02T12:11:37.767Z	INFO	utils/k8s_helper.go:341	Resource k8s.mondoo.com/v1alpha2, Kind=MondooAuditConfig some-namespace/mondoo-client deleted.
2023-11-02T12:11:37.772Z	INFO	integration/audit_config_base_suite.go:116	Waiting for cleanup of the test cluster.
2023-11-02T12:11:37.789Z	INFO	integration/audit_config_base_suite.go:141	Cleanup done. Cluster should be good to go for the next test.
2023-11-02T12:11:44.116Z	DEBUG	utils/executor.go:271	Running command: kubectl delete pods -n default --all --wait
    --- FAIL: TestAuditConfigCustomNamespaceSuite/TestReconcile_KubernetesResources (231.76s)

Check failure on line 0 in integration-tests-k3d-v1.25.12.xml

See this annotation in the file changed.

@github-actions github-actions / Report test results

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

Failed test found in:
  integration-tests-k3d-v1.25.12.xml
Error:
  === RUN   TestAuditConfigCustomNamespaceSuite
Raw output
=== RUN   TestAuditConfigCustomNamespaceSuite
2023-11-02T12:03:39.524Z	INFO	installer/installer.go:84	Installing Mondoo operator with local manifest
2023-11-02T12:03:39.524Z	INFO	utils/manifest_utils.go:54	Reading file: /home/runner/work/mondoo-operator/mondoo-operator/mondoo-operator-manifests.yaml
2023-11-02T12:03:39.524Z	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
2023-11-02T12:03:41.302Z	INFO	installer/installer.go:165	Created Мondoo client secret "mondoo-token".
2023-11-02T12:03:53.341Z	INFO	installer/installer.go:100	Mondoo operator is ready.
2023-11-02T12:03:53.348Z	INFO	integration/audit_config_namespace_test.go:34	Created test namespace.
2023-11-02T12:03:53.378Z	INFO	installer/installer.go:165	Created Мondoo client secret "mondoo-token".
2023-11-02T12:03:53.378Z	INFO	integration/audit_config_namespace_test.go:37	Created client secret in namespace "some-namespace".
2023-11-02T12:03:53.385Z	INFO	integration/audit_config_namespace_test.go:44	Created webhook ServiceAccount "webhook-sa" in namespace "some-namespace".
2023-11-02T12:03:53.388Z	INFO	integration/audit_config_namespace_test.go:51	Created service account "mondoo-sa" in namespace "some-namespace".
2023-11-02T12:03:53.393Z	INFO	integration/audit_config_namespace_test.go:64	Created cluster role binding "mondoo-operator-k8s-resources-scanning2".
--- FAIL: TestAuditConfigCustomNamespaceSuite (572.70s)

Check failure on line 0 in integration-tests-k3d-v1.25.12.xml

See this annotation in the file changed.

@github-actions github-actions / Report test results

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

Failed test found in:
  integration-tests-k3d-v1.25.12.xml
Error:
  === RUN   TestAuditConfigSuite/TestReconcile_AdmissionEnforcing
Raw output
=== RUN   TestAuditConfigSuite/TestReconcile_AdmissionEnforcing
2023-11-02T12:13:33.245Z	INFO	integration/audit_config_base_suite.go:405	Create an audit config that enables only admission control.
2023-11-02T12:13:39.270Z	INFO	integration/audit_config_base_suite.go:413	Waiting for webhook Pod to become ready.
2023-11-02T12:13:49.305Z	INFO	integration/audit_config_base_suite.go:418	Webhook Pod is ready.
2023-11-02T12:13:49.305Z	INFO	integration/audit_config_base_suite.go:659	Waiting for scan API Pod to become ready.
2023-11-02T12:13:49.308Z	INFO	integration/audit_config_base_suite.go:663	Scan API Pod is ready.
2023-11-02T12:13:49.311Z	INFO	integration/audit_config_base_suite.go:680	Waiting for good condition of Scan API
2023-11-02T12:13:49.346Z	INFO	integration/audit_config_base_suite.go:922	Update the webhook with the CA data.
2023-11-02T12:13:49.356Z	INFO	integration/audit_config_base_suite.go:931	Restart the webhook pods such that it is certain the CA secret has been reloaded.
2023-11-02T12:14:01.396Z	INFO	integration/audit_config_base_suite.go:941	Webhook Pod is ready.
2023-11-02T12:14:01.406Z	INFO	integration/audit_config_base_suite.go:959	Getting endpoints for webhook.
2023-11-02T12:14:01.409Z	INFO	integration/audit_config_base_suite.go:965	endpoints Addresses: [{10.42.0.23  0xc000a9c080 &ObjectReference{Kind:Pod,Namespace:mondoo-operator,Name:mondoo-client-webhook-manager-d6d9b8757-gdt7p,UID:74bc8081-5046-4aa8-b949-f537328dae22,APIVersion:,ResourceVersion:,FieldPath:,}}]
2023-11-02T12:14:01.409Z	INFO	integration/audit_config_base_suite.go:966	endpoints NotReadyAddresses: []
2023-11-02T12:14:01.409Z	INFO	integration/audit_config_base_suite.go:973	Wait for webhook to start working.
2023-11-02T12:14:01.418Z	INFO	integration/audit_config_base_suite.go:446	Waiting for Webhook to accept connections (max 120s).
2023-11-02T12:14:01.418Z	INFO	integration/audit_config_base_suite.go:994	Created port-forward via kubectl for webhook with pid: 22004
2023-11-02T12:14:03.438Z	INFO	integration/audit_config_base_suite.go:1007	Webhook is available: 200 OK
2023-11-02T12:14:03.438Z	DEBUG	integration/audit_config_base_suite.go:1034	Trying to stop port-forward with pid: 22004
2023-11-02T12:14:03.440Z	INFO	integration/audit_config_base_suite.go:449	Webhook should be working by now.
2023-11-02T12:14:03.441Z	INFO	integration/audit_config_base_suite.go:802	Create a Deployment which should pass. (max. 5 retries)
    audit_config_base_suite.go:1071: 
        	Error Trace:	/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:1071
        	            				/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:822
        	            				/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:450
        	            				/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:393
        	            				/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_test.go:52
        	Error:      	Should not be: "U"
        	Test:       	TestAuditConfigSuite/TestReconcile_AdmissionEnforcing
        	Messages:   	CI/CD job passing-deployment should not be unscored
2023-11-02T12:14:43.559Z	INFO	integration/audit_config_base_suite.go:824	Create a Deployment which should be denied in enforcing mode.
    audit_config_base_suite.go:1071: 
        	Error Trace:	/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:1071
        	            				/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:838
        	            				/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:450
        	            				/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:393
        	            				/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_test.go:52
        	Error:      	Should not be: "U"
        	Test:       	TestAuditConfigSuite/TestReconcile_AdmissionEnforcing
        	Messages:   	CI/CD job failing-deployment should not be unscored
    audit_config_base_suite.go:1071: 
        	Error Trace:	/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:1071
        	            				/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:838
        	            				/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:450
        	            				/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:393
        	            				/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_test.go:52
        	Error:      	Should not be: "U"
        	Test:       	TestAuditConfigSuite/TestReconcile_AdmissionEnforcing
        	Messages:   	CI/CD job passing-deployment should not be unscored
2023-11-02T12:14:56.857Z	INFO	utils/k8s_helper.go:341	Resource /, Kind= mondoo-operator/passing-deployment deleted.
2023-11-02T12:14:56.859Z	INFO	utils/k8s_helper.go:341	Resource /, Kind= mondoo-operator/failing-deployment deleted.
2023-11-02T12:14:57.578Z	INFO	installer/installer.go:173	gathering all logs from the test
2023-11-02T12:14:57.578Z	INFO	utils/k8s_helper.go:256	Gathering logs for all pods in namespace mondoo-operator
2023-11-02T12:14:57.584Z	DEBUG	utils/k8s_helper.go:461	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/TestReconcile_AdmissionEnforcing_mondoo-operator_mondoo-operator-controller-manager-d88987896-vhr47_1698927297.log
2023-11-02T12:14:57.601Z	DEBUG	utils/k8s_helper.go:461	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/TestReconcile_AdmissionEnforcing_mondoo-operator_mondoo-operator-controller-manager-d88987896-vhr47_previous_1698927297.log
2023-11-02T12:14:57.606Z	DEBUG	utils/executor.go:271	Running command: kubectl -n mondoo-operator logs mondoo-operator-controller-manager-d88987896-vhr47 -c manager
2023-11-02T12:14:57.690Z	DEBUG	utils/k8s_helper.go:461	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/TestReconcile_AdmissionEnforcing_mondoo-operator_mondoo-client-scan-api-7b8dc7ccbd-tqrwp_1698927297.log
2023-11-02T12:14:57.695Z	DEBUG	utils/k8s_helper.go:461	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/TestReconcile_AdmissionEnforcing_mondoo-operator_mondoo-client-webhook-manager-d6d9b8757-gdt7p_1698927297.log
2023-11-02T12:14:57.702Z	INFO	utils/k8s_helper.go:267	Gathering pod describe for all pods in namespace mondoo-operator
2023-11-02T12:14:57.707Z	DEBUG	utils/k8s_helper.go:461	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/mondoo-operator_describe_TestReconcile_AdmissionEnforcing_1698927297.log
2023-11-02T12:14:57.707Z	DEBUG	utils/executor.go:271	Running command: kubectl get pod -o yaml -n mondoo-operator mondoo-operator-controller-manager-d88987896-vhr47
2023-11-02T12:14:57.778Z	DEBUG	utils/executor.go:271	Running command: kubectl get pod -o yaml -n mondoo-operator mondoo-client-scan-api-7b8dc7ccbd-tqrwp
2023-11-02T12:14:57.851Z	DEBUG	utils/executor.go:271	Running command: kubectl get pod -o yaml -n mondoo-operator mondoo-client-webhook-manager-d6d9b8757-gdt7p
2023-11-02T12:14:57.921Z	DEBUG	utils/executor.go:271	Running command: kubectl get deployment -o yaml -n mondoo-operator mondoo-operator-controller-manager
2023-11-02T12:14:57.986Z	DEBUG	utils/executor.go:271	Running command: kubectl get deployment -o yaml -n mondoo-operator mondoo-client-scan-api
2023-11-02T12:14:58.061Z	DEBUG	utils/executor.go:271	Running command: kubectl get deployment -o yaml -n mondoo-operator mondoo-client-webhook-manager
2023-11-02T12:14:58.137Z	DEBUG	utils/executor.go:271	Running command: kubectl get mondooauditconfig -o yaml -n mondoo-operator mondoo-client
2023-11-02T12:14:58.202Z	INFO	utils/k8s_helper.go:308	Gathering events in namespace "mondoo-operator"
2023-11-02T12:14:58.203Z	DEBUG	utils/k8s_helper.go:461	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/mondoo-operator_events_TestReconcile_AdmissionEnforcing_1698927298.log
2023-11-02T12:14:58.203Z	DEBUG	utils/executor.go:271	Running command: kubectl get events -n mondoo-operator
2023-11-02T12:14:58.313Z	INFO	utils/k8s_helper.go:337	Resource k8s.mondoo.com/v1alpha2, Kind=MondooAuditConfig mondoo-operator/mondoo-client still exists.
2023-11-02T12:15:00.316Z	INFO	utils/k8s_helper.go:341	Resource k8s.mondoo.com/v1alpha2, Kind=MondooAuditConfig mondoo-operator/mondoo-client deleted.
2023-11-02T12:15:00.323Z	INFO	integration/audit_config_base_suite.go:116	Waiting for cleanup of the test cluster.
2023-11-02T12:15:00.337Z	INFO	integration/audit_config_base_suite.go:141	Cleanup done. Cluster should be good to go for the next test.
2023-11-02T12:15:03.105Z	DEBUG	utils/executor.go:271	Running command: kubectl delete pods -n default --all --wait
    --- FAIL: TestAuditConfigSuite/TestReconcile_AdmissionEnforcing (90.39s)

Check failure on line 0 in integration-tests-k3d-v1.25.12.xml

See this annotation in the file changed.

@github-actions github-actions / Report test results

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

Failed test found in:
  integration-tests-k3d-v1.25.12.xml
Error:
  === RUN   TestAuditConfigSuite/TestReconcile_KubernetesResources
Raw output
=== RUN   TestAuditConfigSuite/TestReconcile_KubernetesResources
2023-11-02T12:19:21.760Z	INFO	integration/audit_config_base_suite.go:158	Create an audit config that enables only workloads scanning.
2023-11-02T12:19:21.773Z	INFO	integration/audit_config_base_suite.go:659	Waiting for scan API Pod to become ready.
2023-11-02T12:19:29.797Z	INFO	integration/audit_config_base_suite.go:663	Scan API Pod is ready.
2023-11-02T12:19:29.800Z	INFO	integration/audit_config_base_suite.go:680	Waiting for good condition of Scan API
2023-11-02T12:19:29.807Z	INFO	integration/audit_config_base_suite.go:169	Make sure the Mondoo k8s resources scan CronJob is created.
    audit_config_base_suite.go:182: 
        	Error Trace:	/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:182
        	            				/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_test.go:27
        	Error:      	Should be true
        	Test:       	TestAuditConfigSuite/TestReconcile_KubernetesResources
        	Messages:   	Kubernetes resources scan CronJob did not run successfully.
2023-11-02T12:23:10.690Z	INFO	integration/audit_config_base_suite.go:1061	Asset mondoo-operator/mondoo-client-k8s-scan has no score
    audit_config_base_suite.go:1063: 
        	Error Trace:	/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:1063
        	            				/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:208
        	            				/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_test.go:27
        	Error:      	Should not be: "U"
        	Test:       	TestAuditConfigSuite/TestReconcile_KubernetesResources
        	Messages:   	Asset mondoo-operator/mondoo-client-k8s-scan should not be unscored
2023-11-02T12:23:10.691Z	INFO	integration/audit_config_base_suite.go:1061	Asset mondoo-operator/mondoo-operator-controller-manager-d88987896-vhr47 has no score
    audit_config_base_suite.go:1063: 
        	Error Trace:	/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:1063
        	            				/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:208
        	            				/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_test.go:27
        	Error:      	Should not be: "U"
        	Test:       	TestAuditConfigSuite/TestReconcile_KubernetesResources
        	Messages:   	Asset mondoo-operator/mondoo-operator-controller-manager-d88987896-vhr47 should not be unscored
2023-11-02T12:23:10.691Z	INFO	integration/audit_config_base_suite.go:1061	Asset mondoo-operator/mondoo-operator-controller-manager-d88987896 has no score
    audit_config_base_suite.go:1063: 
        	Error Trace:	/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:1063
        	            				/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:208
        	            				/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_test.go:27
        	Error:      	Should not be: "U"
        	Test:       	TestAuditConfigSuite/TestReconcile_KubernetesResources
        	Messages:   	Asset mondoo-operator/mondoo-operator-controller-manager-d88987896 should not be unscored
2023-11-02T12:23:10.692Z	INFO	integration/audit_config_base_suite.go:1061	Asset kube-system/metrics-server-854c559bd has no score
    audit_config_base_suite.go:1063: 
        	Error Trace:	/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:1063
        	            				/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:208
        	            				/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_test.go:27
        	Error:      	Should not be: "U"
        	Test:       	TestAuditConfigSuite/TestReconcile_KubernetesResources
        	Messages:   	Asset kube-system/metrics-server-854c559bd should not be unscored
2023-11-02T12:23:10.692Z	INFO	integration/audit_config_base_suite.go:1061	Asset kube-system/local-path-provisioner-69dff9496c has no score
    audit_config_base_suite.go:1063: 
        	Error Trace:	/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:1063
        	            				/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:208
        	            				/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_test.go:27
        	Error:      	Should not be: "U"
        	Test:       	TestAuditConfigSuite/TestReconcile_KubernetesResources
        	Messages:   	Asset kube-system/local-path-provisioner-69dff9496c should not be unscored
2023-11-02T12:23:10.692Z	INFO	integration/audit_config_base_suite.go:1061	Asset kube-system/coredns-8b9777675 has no score
    audit_config_base_suite.go:1063: 
        	Error Trace:	/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:1063
        	            				/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:208
        	            				/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_test.go:27
        	Error:      	Should not be: "U"
        	Test:       	TestAuditConfigSuite/TestReconcile_KubernetesResources
        	Messages:   	Asset kube-system/coredns-8b9777675 should not be unscored
2023-11-02T12:23:15.655Z	INFO	installer/installer.go:173	gathering all logs from the test
2023-11-02T12:23:15.655Z	INFO	utils/k8s_helper.go:256	Gathering logs for all pods in namespace mondoo-operator
2023-11-02T12:23:15.660Z	DEBUG	utils/k8s_helper.go:461	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/TestReconcile_KubernetesResources_mondoo-operator_mondoo-operator-controller-manager-d88987896-vhr47_1698927795.log
2023-11-02T12:23:15.679Z	DEBUG	utils/k8s_helper.go:461	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/TestReconcile_KubernetesResources_mondoo-operator_mondoo-operator-controller-manager-d88987896-vhr47_previous_1698927795.log
2023-11-02T12:23:15.683Z	DEBUG	utils/executor.go:271	Running command: kubectl -n mondoo-operator logs mondoo-operator-controller-manager-d88987896-vhr47 -c manager
2023-11-02T12:23:15.771Z	DEBUG	utils/k8s_helper.go:461	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/TestReconcile_KubernetesResources_mondoo-operator_mondoo-client-scan-api-7b8dc7ccbd-7dcrw_1698927795.log
2023-11-02T12:23:15.777Z	DEBUG	utils/k8s_helper.go:461	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/TestReconcile_KubernetesResources_mondoo-operator_mondoo-client-k8s-scan-28315460-kt4s5_1698927795.log
2023-11-02T12:23:15.781Z	INFO	utils/k8s_helper.go:267	Gathering pod describe for all pods in namespace mondoo-operator
2023-11-02T12:23:15.786Z	DEBUG	utils/k8s_helper.go:461	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/mondoo-operator_describe_TestReconcile_KubernetesResources_1698927795.log
2023-11-02T12:23:15.786Z	DEBUG	utils/executor.go:271	Running command: kubectl get pod -o yaml -n mondoo-operator mondoo-operator-controller-manager-d88987896-vhr47
2023-11-02T12:23:15.851Z	DEBUG	utils/executor.go:271	Running command: kubectl get pod -o yaml -n mondoo-operator mondoo-client-scan-api-7b8dc7ccbd-7dcrw
2023-11-02T12:23:15.934Z	DEBUG	utils/executor.go:271	Running command: kubectl get pod -o yaml -n mondoo-operator mondoo-client-k8s-scan-28315460-kt4s5
2023-11-02T12:23:16.018Z	DEBUG	utils/executor.go:271	Running command: kubectl get deployment -o yaml -n mondoo-operator mondoo-operator-controller-manager
2023-11-02T12:23:16.098Z	DEBUG	utils/executor.go:271	Running command: kubectl get deployment -o yaml -n mondoo-operator mondoo-client-scan-api
2023-11-02T12:23:16.173Z	DEBUG	utils/executor.go:271	Running command: kubectl get mondooauditconfig -o yaml -n mondoo-operator mondoo-client
2023-11-02T12:23:16.256Z	INFO	utils/k8s_helper.go:308	Gathering events in namespace "mondoo-operator"
2023-11-02T12:23:16.257Z	DEBUG	utils/k8s_helper.go:461	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/mondoo-operator_events_TestReconcile_KubernetesResources_1698927796.log
2023-11-02T12:23:16.257Z	DEBUG	utils/executor.go:271	Running command: kubectl get events -n mondoo-operator
2023-11-02T12:23:16.368Z	INFO	utils/k8s_helper.go:337	Resource k8s.mondoo.com/v1alpha2, Kind=MondooAuditConfig mondoo-operator/mondoo-client still exists.
2023-11-02T12:23:18.372Z	INFO	utils/k8s_helper.go:341	Resource k8s.mondoo.com/v1alpha2, Kind=MondooAuditConfig mondoo-operator/mondoo-client deleted.
2023-11-02T12:23:18.378Z	INFO	integration/audit_config_base_suite.go:116	Waiting for cleanup of the test cluster.
2023-11-02T12:23:18.391Z	INFO	integration/audit_config_base_suite.go:141	Cleanup done. Cluster should be good to go for the next test.
2023-11-02T12:23:21.674Z	DEBUG	utils/executor.go:271	Running command: kubectl delete pods -n default --all --wait
    --- FAIL: TestAuditConfigSuite/TestReconcile_KubernetesResources (239.99s)