Skip to content

Bump github.com/go-logr/logr from 1.2.4 to 1.3.0 #1717

Bump github.com/go-logr/logr from 1.2.4 to 1.3.0

Bump github.com/go-logr/logr from 1.2.4 to 1.3.0 #1717

GitHub Actions / Report test results failed Oct 30, 2023 in 0s

Report test results ❌

Tests failed

Report Passed Failed Skipped Time
integration-tests-k3d-v1.24.16.xml 13✅ 3❌ 1329s
integration-tests-k3d-v1.25.12.xml 11✅ 5❌ 1271s
integration-tests-k3d-v1.26.7.xml 10✅ 6❌ 1391s
integration-tests-k3d-v1.27.4.xml 11✅ 5❌ 1247s
integration-tests-minikube-v1.24.16.xml 9✅ 7❌ 1355s
integration-tests-minikube-v1.25.12.xml 9✅ 7❌ 1344s
integration-tests-minikube-v1.26.7.xml 9✅ 7❌ 1305s
integration-tests-minikube-v1.27.4.xml 11✅ 5❌ 1332s
unit-tests.xml 214✅ 62s

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

16 tests were completed in 1329s with 13 passed, 3 failed and 0 skipped.

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

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

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

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

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

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

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

❌ 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_KubernetesResources
✅ TestAuditConfigCustomNamespaceSuite/TestReconcile_Nodes
✅ TestAuditConfigCustomNamespaceSuite
✅ TestAuditConfigSuite/TestReconcile_AllDisabled
✅ TestAuditConfigSuite/TestReconcile_Containers
✅ TestAuditConfigSuite/TestReconcile_Nodes
✅ TestAuditConfigUpgradeSuite/TestUpgradePreviousReleaseToLatest
✅ TestAuditConfigUpgradeSuite

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

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

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

❌ 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-k3d-v1.27.4.xml

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

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

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

❌ 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_KubernetesResources
✅ TestAuditConfigCustomNamespaceSuite/TestReconcile_Nodes
✅ TestAuditConfigCustomNamespaceSuite
✅ TestAuditConfigSuite/TestReconcile_AllDisabled
✅ TestAuditConfigSuite/TestReconcile_Containers
✅ TestAuditConfigSuite/TestReconcile_Nodes
✅ TestAuditConfigUpgradeSuite/TestUpgradePreviousReleaseToLatest
✅ TestAuditConfigUpgradeSuite

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

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

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

❌ 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 1344s with 9 passed, 7 failed and 0 skipped.

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

❌ 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.26.7.xml

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

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

❌ 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.27.4.xml

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

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

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

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

✅ unit-tests.xml

214 tests were completed in 62s 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✅ 946ms
go.mondoo.com/mondoo-operator/controllers/admission 14✅ 85ms
go.mondoo.com/mondoo-operator/controllers/container_image 8✅ 75ms
go.mondoo.com/mondoo-operator/controllers/integration 6✅ 201ms
go.mondoo.com/mondoo-operator/controllers/k8s_scan 6✅ 68ms
go.mondoo.com/mondoo-operator/controllers/metrics 2✅ 26ms
go.mondoo.com/mondoo-operator/controllers/nodes 23✅ 96ms
go.mondoo.com/mondoo-operator/controllers/resource_monitor 3✅ 46ms
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✅ 39ms
go.mondoo.com/mondoo-operator/controllers/resource_monitor/scan_api_store/mock 0ms
go.mondoo.com/mondoo-operator/controllers/scanapi 14✅ 59ms
go.mondoo.com/mondoo-operator/controllers/status 7✅ 50ms
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✅ 51ms
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✅ 5ms
go.mondoo.com/mondoo-operator/pkg/utils 9✅ 4ms
go.mondoo.com/mondoo-operator/pkg/utils/k8s 66✅ 41ms
go.mondoo.com/mondoo-operator/pkg/utils/logger 0ms
go.mondoo.com/mondoo-operator/pkg/utils/mondoo 9✅ 1s
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✅ 82ms
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 ► 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-10-30T18:07:45.310Z	INFO	integration/audit_config_base_suite.go:405	Create an audit config that enables only admission control.
2023-10-30T18:07:47.325Z	INFO	integration/audit_config_base_suite.go:413	Waiting for webhook Pod to become ready.
2023-10-30T18:07:57.360Z	INFO	integration/audit_config_base_suite.go:418	Webhook Pod is ready.
2023-10-30T18:07:57.360Z	INFO	integration/audit_config_base_suite.go:659	Waiting for scan API Pod to become ready.
2023-10-30T18:07:57.364Z	INFO	integration/audit_config_base_suite.go:663	Scan API Pod is ready.
2023-10-30T18:07:57.366Z	INFO	integration/audit_config_base_suite.go:680	Waiting for good condition of Scan API
2023-10-30T18:07:59.407Z	INFO	integration/audit_config_base_suite.go:922	Update the webhook with the CA data.
2023-10-30T18:07:59.415Z	INFO	integration/audit_config_base_suite.go:931	Restart the webhook pods such that it is certain the CA secret has been reloaded.
2023-10-30T18:08:11.457Z	INFO	integration/audit_config_base_suite.go:941	Webhook Pod is ready.
2023-10-30T18:08:11.466Z	INFO	integration/audit_config_base_suite.go:959	Getting endpoints for webhook.
2023-10-30T18:08:11.469Z	INFO	integration/audit_config_base_suite.go:965	endpoints Addresses: [{10.42.0.22  0xc000c6f9d0 &ObjectReference{Kind:Pod,Namespace:mondoo-operator,Name:mondoo-client-webhook-manager-d9746ddf-6klnk,UID:115567a1-1c1e-4b51-816a-68fe8c7044dd,APIVersion:,ResourceVersion:,FieldPath:,}}]
2023-10-30T18:08:11.469Z	INFO	integration/audit_config_base_suite.go:966	endpoints NotReadyAddresses: []
2023-10-30T18:08:11.469Z	INFO	integration/audit_config_base_suite.go:973	Wait for webhook to start working.
2023-10-30T18:08:11.476Z	INFO	integration/audit_config_base_suite.go:446	Waiting for Webhook to accept connections (max 120s).
2023-10-30T18:08:11.477Z	INFO	integration/audit_config_base_suite.go:994	Created port-forward via kubectl for webhook with pid: 15765
2023-10-30T18:08:13.491Z	INFO	integration/audit_config_base_suite.go:1007	Webhook is available: 200 OK
2023-10-30T18:08:13.491Z	DEBUG	integration/audit_config_base_suite.go:1034	Trying to stop port-forward with pid: 15765
2023-10-30T18:08:13.493Z	INFO	integration/audit_config_base_suite.go:449	Webhook should be working by now.
2023-10-30T18:08:13.494Z	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
    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-10-30T18:09:19.488Z	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
    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-10-30T18:09:34.166Z	INFO	utils/k8s_helper.go:341	Resource /, Kind= mondoo-operator/passing-deployment deleted.
2023-10-30T18:09:34.170Z	INFO	utils/k8s_helper.go:341	Resource /, Kind= mondoo-operator/failing-deployment deleted.
2023-10-30T18:09:34.975Z	INFO	installer/installer.go:173	gathering all logs from the test
2023-10-30T18:09:34.975Z	INFO	utils/k8s_helper.go:256	Gathering logs for all pods in namespace mondoo-operator
2023-10-30T18:09:34.981Z	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-f8b454769-fmp9s_1698689374.log
2023-10-30T18:09:34.994Z	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-f8b454769-fmp9s_previous_1698689374.log
2023-10-30T18:09:35.004Z	DEBUG	utils/executor.go:271	Running command: kubectl -n mondoo-operator logs mondoo-operator-controller-manager-f8b454769-fmp9s -c manager
2023-10-30T18:09:35.112Z	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-54d54cd8fc-hzmqt_1698689375.log
2023-10-30T18:09:35.120Z	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-d9746ddf-6klnk_1698689375.log
2023-10-30T18:09:35.127Z	INFO	utils/k8s_helper.go:267	Gathering pod describe for all pods in namespace mondoo-operator
2023-10-30T18:09:35.132Z	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_1698689375.log
2023-10-30T18:09:35.132Z	DEBUG	utils/executor.go:271	Running command: kubectl get pod -o yaml -n mondoo-operator mondoo-operator-controller-manager-f8b454769-fmp9s
2023-10-30T18:09:35.225Z	DEBUG	utils/executor.go:271	Running command: kubectl get pod -o yaml -n mondoo-operator mondoo-client-scan-api-54d54cd8fc-hzmqt
2023-10-30T18:09:35.312Z	DEBUG	utils/executor.go:271	Running command: kubectl get pod -o yaml -n mondoo-operator mondoo-client-webhook-manager-d9746ddf-6klnk
2023-10-30T18:09:35.404Z	DEBUG	utils/executor.go:271	Running command: kubectl get deployment -o yaml -n mondoo-operator mondoo-operator-controller-manager
2023-10-30T18:09:35.478Z	DEBUG	utils/executor.go:271	Running command: kubectl get deployment -o yaml -n mondoo-operator mondoo-client-scan-api
2023-10-30T18:09:35.566Z	DEBUG	utils/executor.go:271	Running command: kubectl get deployment -o yaml -n mondoo-operator mondoo-client-webhook-manager
2023-10-30T18:09:35.651Z	DEBUG	utils/executor.go:271	Running command: kubectl get mondooauditconfig -o yaml -n mondoo-operator mondoo-client
2023-10-30T18:09:35.728Z	INFO	utils/k8s_helper.go:308	Gathering events in namespace "mondoo-operator"
2023-10-30T18:09:35.728Z	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_1698689375.log
2023-10-30T18:09:35.729Z	DEBUG	utils/executor.go:271	Running command: kubectl get events -n mondoo-operator
2023-10-30T18:09:35.837Z	INFO	utils/k8s_helper.go:337	Resource k8s.mondoo.com/v1alpha2, Kind=MondooAuditConfig mondoo-operator/mondoo-client still exists.
2023-10-30T18:09:37.842Z	INFO	utils/k8s_helper.go:341	Resource k8s.mondoo.com/v1alpha2, Kind=MondooAuditConfig mondoo-operator/mondoo-client deleted.
2023-10-30T18:09:37.851Z	INFO	integration/audit_config_base_suite.go:116	Waiting for cleanup of the test cluster.
2023-10-30T18:09:37.866Z	INFO	integration/audit_config_base_suite.go:141	Cleanup done. Cluster should be good to go for the next test.
2023-10-30T18:09:42.016Z	DEBUG	utils/executor.go:271	Running command: kubectl delete pods -n default --all --wait
    --- FAIL: TestAuditConfigSuite/TestReconcile_AdmissionEnforcing (117.52s)

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-10-30T18:10:44.439Z	INFO	integration/audit_config_base_suite.go:405	Create an audit config that enables only admission control.
2023-10-30T18:10:44.452Z	INFO	integration/audit_config_base_suite.go:413	Waiting for webhook Pod to become ready.
2023-10-30T18:10:56.493Z	INFO	integration/audit_config_base_suite.go:418	Webhook Pod is ready.
2023-10-30T18:10:56.493Z	INFO	integration/audit_config_base_suite.go:659	Waiting for scan API Pod to become ready.
2023-10-30T18:10:56.496Z	INFO	integration/audit_config_base_suite.go:663	Scan API Pod is ready.
2023-10-30T18:10:56.499Z	INFO	integration/audit_config_base_suite.go:680	Waiting for good condition of Scan API
2023-10-30T18:10:56.515Z	INFO	integration/audit_config_base_suite.go:922	Update the webhook with the CA data.
2023-10-30T18:10:56.525Z	INFO	integration/audit_config_base_suite.go:931	Restart the webhook pods such that it is certain the CA secret has been reloaded.
2023-10-30T18:11:08.569Z	INFO	integration/audit_config_base_suite.go:941	Webhook Pod is ready.
2023-10-30T18:11:08.577Z	INFO	integration/audit_config_base_suite.go:959	Getting endpoints for webhook.
2023-10-30T18:11:08.580Z	INFO	integration/audit_config_base_suite.go:965	endpoints Addresses: [{10.42.0.28  0xc0009fb950 &ObjectReference{Kind:Pod,Namespace:mondoo-operator,Name:mondoo-client-webhook-manager-fbd5df695-99bqs,UID:3d361811-a870-4615-a734-8a31ff28cd59,APIVersion:,ResourceVersion:,FieldPath:,}}]
2023-10-30T18:11:08.580Z	INFO	integration/audit_config_base_suite.go:966	endpoints NotReadyAddresses: []
2023-10-30T18:11:08.580Z	INFO	integration/audit_config_base_suite.go:973	Wait for webhook to start working.
2023-10-30T18:11:08.586Z	INFO	integration/audit_config_base_suite.go:446	Waiting for Webhook to accept connections (max 120s).
2023-10-30T18:11:08.587Z	INFO	integration/audit_config_base_suite.go:994	Created port-forward via kubectl for webhook with pid: 18648
2023-10-30T18:11:10.609Z	INFO	integration/audit_config_base_suite.go:1007	Webhook is available: 200 OK
2023-10-30T18:11:10.609Z	DEBUG	integration/audit_config_base_suite.go:1034	Trying to stop port-forward with pid: 18648
2023-10-30T18:11:10.612Z	INFO	integration/audit_config_base_suite.go:449	Webhook should be working by now.
2023-10-30T18:11:10.613Z	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-10-30T18:11:32.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: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-10-30T18:11:43.765Z	INFO	utils/k8s_helper.go:341	Resource /, Kind= mondoo-operator/passing-deployment deleted.
2023-10-30T18:11:43.774Z	INFO	utils/k8s_helper.go:341	Resource /, Kind= mondoo-operator/failing-deployment deleted.
2023-10-30T18:11:43.940Z	INFO	installer/installer.go:173	gathering all logs from the test
2023-10-30T18:11:43.940Z	INFO	utils/k8s_helper.go:256	Gathering logs for all pods in namespace mondoo-operator
2023-10-30T18:11:43.947Z	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-f8b454769-fmp9s_1698689503.log
2023-10-30T18:11:43.959Z	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-f8b454769-fmp9s_previous_1698689503.log
2023-10-30T18:11:43.963Z	DEBUG	utils/executor.go:271	Running command: kubectl -n mondoo-operator logs mondoo-operator-controller-manager-f8b454769-fmp9s -c manager
2023-10-30T18:11:44.058Z	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-gkwmq_1698689504.log
2023-10-30T18:11:44.064Z	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-fbd5df695-99bqs_1698689504.log
2023-10-30T18:11:44.070Z	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-jnqm9_1698689504.log
2023-10-30T18:11:44.075Z	INFO	utils/k8s_helper.go:501	Cannot get logs for pod failing-deployment-6d7f454d48-jnqm9 and container ubuntu. Container is in state ContainerCreating
2023-10-30T18:11:44.075Z	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-6bmzx_1698689504.log
2023-10-30T18:11:44.080Z	INFO	utils/k8s_helper.go:267	Gathering pod describe for all pods in namespace mondoo-operator
2023-10-30T18:11:44.086Z	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_1698689504.log
2023-10-30T18:11:44.086Z	DEBUG	utils/executor.go:271	Running command: kubectl get pod -o yaml -n mondoo-operator mondoo-operator-controller-manager-f8b454769-fmp9s
2023-10-30T18:11:44.162Z	DEBUG	utils/executor.go:271	Running command: kubectl get pod -o yaml -n mondoo-operator mondoo-client-scan-api-554844f59f-gkwmq
2023-10-30T18:11:44.233Z	DEBUG	utils/executor.go:271	Running command: kubectl get pod -o yaml -n mondoo-operator mondoo-client-webhook-manager-fbd5df695-99bqs
2023-10-30T18:11:44.311Z	DEBUG	utils/executor.go:271	Running command: kubectl get pod -o yaml -n mondoo-operator failing-deployment-6d7f454d48-jnqm9
2023-10-30T18:11:44.390Z	DEBUG	utils/executor.go:271	Running command: kubectl get pod -o yaml -n mondoo-operator passing-deployment-54b87d48cf-6bmzx
2023-10-30T18:11:44.476Z	DEBUG	utils/executor.go:271	Running command: kubectl get deployment -o yaml -n mondoo-operator mondoo-operator-controller-manager
2023-10-30T18:11:44.580Z	DEBUG	utils/executor.go:271	Running command: kubectl get deployment -o yaml -n mondoo-operator mondoo-client-scan-api
2023-10-30T18:11:44.677Z	DEBUG	utils/executor.go:271	Running command: kubectl get deployment -o yaml -n mondoo-operator mondoo-client-webhook-manager
2023-10-30T18:11:44.763Z	DEBUG	utils/executor.go:271	Running command: kubectl get mondooauditconfig -o yaml -n mondoo-operator mondoo-client
2023-10-30T18:11:44.844Z	INFO	utils/k8s_helper.go:308	Gathering events in namespace "mondoo-operator"
2023-10-30T18:11:44.844Z	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_1698689504.log
2023-10-30T18:11:44.844Z	DEBUG	utils/executor.go:271	Running command: kubectl get events -n mondoo-operator
2023-10-30T18:11:44.976Z	INFO	utils/k8s_helper.go:337	Resource k8s.mondoo.com/v1alpha2, Kind=MondooAuditConfig mondoo-operator/mondoo-client still exists.
2023-10-30T18:11:46.983Z	INFO	utils/k8s_helper.go:341	Resource k8s.mondoo.com/v1alpha2, Kind=MondooAuditConfig mondoo-operator/mondoo-client deleted.
2023-10-30T18:11:46.993Z	INFO	integration/audit_config_base_suite.go:116	Waiting for cleanup of the test cluster.
2023-10-30T18:11:47.013Z	INFO	integration/audit_config_base_suite.go:141	Cleanup done. Cluster should be good to go for the next test.
2023-10-30T18:11:52.425Z	DEBUG	utils/executor.go:271	Running command: kubectl delete pods -n default --all --wait
    --- FAIL: TestAuditConfigSuite/TestReconcile_AdmissionPermissive (68.71s)

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-10-30T18:07:30.759Z	INFO	installer/installer.go:84	Installing Mondoo operator with local manifest
2023-10-30T18:07:30.760Z	INFO	utils/manifest_utils.go:54	Reading file: /home/runner/work/mondoo-operator/mondoo-operator/mondoo-operator-manifests.yaml
2023-10-30T18:07:30.760Z	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-10-30T18:07:32.518Z	INFO	installer/installer.go:165	Created Мondoo client secret "mondoo-token".
2023-10-30T18:07:44.568Z	INFO	installer/installer.go:100	Mondoo operator is ready.
--- FAIL: TestAuditConfigSuite (730.79s)

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-10-30T18:06:19.302Z	INFO	integration/audit_config_base_suite.go:405	Create an audit config that enables only admission control.
2023-10-30T18:06:23.321Z	INFO	integration/audit_config_base_suite.go:413	Waiting for webhook Pod to become ready.
2023-10-30T18:06:35.351Z	INFO	integration/audit_config_base_suite.go:418	Webhook Pod is ready.
2023-10-30T18:06:35.351Z	INFO	integration/audit_config_base_suite.go:659	Waiting for scan API Pod to become ready.
2023-10-30T18:06:35.355Z	INFO	integration/audit_config_base_suite.go:663	Scan API Pod is ready.
2023-10-30T18:06:35.357Z	INFO	integration/audit_config_base_suite.go:680	Waiting for good condition of Scan API
2023-10-30T18:06:35.387Z	INFO	integration/audit_config_base_suite.go:922	Update the webhook with the CA data.
2023-10-30T18:06:35.393Z	INFO	integration/audit_config_base_suite.go:931	Restart the webhook pods such that it is certain the CA secret has been reloaded.
2023-10-30T18:06:47.428Z	INFO	integration/audit_config_base_suite.go:941	Webhook Pod is ready.
2023-10-30T18:06:47.434Z	INFO	integration/audit_config_base_suite.go:959	Getting endpoints for webhook.
2023-10-30T18:06:47.437Z	INFO	integration/audit_config_base_suite.go:965	endpoints Addresses: [{10.42.0.22  0xc000adeb50 &ObjectReference{Kind:Pod,Namespace:mondoo-operator,Name:mondoo-client-webhook-manager-888664c54-tmqzz,UID:66e8713d-7f76-4daa-9d0b-24c4dcd229d1,APIVersion:,ResourceVersion:,FieldPath:,}}]
2023-10-30T18:06:47.437Z	INFO	integration/audit_config_base_suite.go:966	endpoints NotReadyAddresses: []
2023-10-30T18:06:47.437Z	INFO	integration/audit_config_base_suite.go:973	Wait for webhook to start working.
2023-10-30T18:06:47.443Z	INFO	integration/audit_config_base_suite.go:446	Waiting for Webhook to accept connections (max 120s).
2023-10-30T18:06:47.444Z	INFO	integration/audit_config_base_suite.go:994	Created port-forward via kubectl for webhook with pid: 15884
2023-10-30T18:06:49.456Z	INFO	integration/audit_config_base_suite.go:1007	Webhook is available: 200 OK
2023-10-30T18:06:49.456Z	DEBUG	integration/audit_config_base_suite.go:1034	Trying to stop port-forward with pid: 15884
2023-10-30T18:06:49.458Z	INFO	integration/audit_config_base_suite.go:449	Webhook should be working by now.
2023-10-30T18:06:49.458Z	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
    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-10-30T18:07:55.488Z	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
    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-10-30T18:07:59.212Z	INFO	utils/k8s_helper.go:341	Resource /, Kind= mondoo-operator/passing-deployment deleted.
2023-10-30T18:07:59.214Z	INFO	utils/k8s_helper.go:341	Resource /, Kind= mondoo-operator/failing-deployment deleted.
2023-10-30T18:07:59.459Z	INFO	installer/installer.go:173	gathering all logs from the test
2023-10-30T18:07:59.459Z	INFO	utils/k8s_helper.go:256	Gathering logs for all pods in namespace mondoo-operator
2023-10-30T18:07:59.464Z	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-85d557c5bb-bp5nn_1698689279.log
2023-10-30T18:07:59.473Z	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-85d557c5bb-bp5nn_previous_1698689279.log
2023-10-30T18:07:59.477Z	DEBUG	utils/executor.go:271	Running command: kubectl -n mondoo-operator logs mondoo-operator-controller-manager-85d557c5bb-bp5nn -c manager
2023-10-30T18:07:59.549Z	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-vkw6r_1698689279.log
2023-10-30T18:07:59.554Z	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-888664c54-tmqzz_1698689279.log
2023-10-30T18:07:59.559Z	INFO	utils/k8s_helper.go:267	Gathering pod describe for all pods in namespace mondoo-operator
2023-10-30T18:07:59.564Z	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_1698689279.log
2023-10-30T18:07:59.564Z	DEBUG	utils/executor.go:271	Running command: kubectl get pod -o yaml -n mondoo-operator mondoo-operator-controller-manager-85d557c5bb-bp5nn
2023-10-30T18:07:59.624Z	DEBUG	utils/executor.go:271	Running command: kubectl get pod -o yaml -n mondoo-operator mondoo-client-scan-api-7b8dc7ccbd-vkw6r
2023-10-30T18:07:59.690Z	DEBUG	utils/executor.go:271	Running command: kubectl get pod -o yaml -n mondoo-operator mondoo-client-webhook-manager-888664c54-tmqzz
2023-10-30T18:07:59.753Z	DEBUG	utils/executor.go:271	Running command: kubectl get deployment -o yaml -n mondoo-operator mondoo-operator-controller-manager
2023-10-30T18:07:59.824Z	DEBUG	utils/executor.go:271	Running command: kubectl get deployment -o yaml -n mondoo-operator mondoo-client-scan-api
2023-10-30T18:07:59.888Z	DEBUG	utils/executor.go:271	Running command: kubectl get deployment -o yaml -n mondoo-operator mondoo-client-webhook-manager
2023-10-30T18:07:59.955Z	DEBUG	utils/executor.go:271	Running command: kubectl get mondooauditconfig -o yaml -n mondoo-operator mondoo-client
2023-10-30T18:08:00.018Z	INFO	utils/k8s_helper.go:308	Gathering events in namespace "mondoo-operator"
2023-10-30T18:08:00.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_AdmissionEnforcing_1698689280.log
2023-10-30T18:08:00.018Z	DEBUG	utils/executor.go:271	Running command: kubectl get events -n mondoo-operator
2023-10-30T18:08:00.098Z	INFO	utils/k8s_helper.go:337	Resource k8s.mondoo.com/v1alpha2, Kind=MondooAuditConfig mondoo-operator/mondoo-client still exists.
2023-10-30T18:08:02.102Z	INFO	utils/k8s_helper.go:341	Resource k8s.mondoo.com/v1alpha2, Kind=MondooAuditConfig mondoo-operator/mondoo-client deleted.
2023-10-30T18:08:02.109Z	INFO	integration/audit_config_base_suite.go:116	Waiting for cleanup of the test cluster.
2023-10-30T18:08:02.120Z	INFO	integration/audit_config_base_suite.go:141	Cleanup done. Cluster should be good to go for the next test.
2023-10-30T18:08:02.897Z	DEBUG	utils/executor.go:271	Running command: kubectl delete pods -n default --all --wait
    --- FAIL: TestAuditConfigSuite/TestReconcile_AdmissionEnforcing (104.28s)

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_AdmissionEnforcingScaleDownScanApi

Failed test found in:
  integration-tests-k3d-v1.25.12.xml
Error:
  === RUN   TestAuditConfigSuite/TestReconcile_AdmissionEnforcingScaleDownScanApi
Raw output
=== RUN   TestAuditConfigSuite/TestReconcile_AdmissionEnforcingScaleDownScanApi
2023-10-30T18:08:03.175Z	INFO	integration/audit_config_base_suite.go:405	Create an audit config that enables only admission control.
2023-10-30T18:08:03.184Z	INFO	integration/audit_config_base_suite.go:413	Waiting for webhook Pod to become ready.
2023-10-30T18:08:15.220Z	INFO	integration/audit_config_base_suite.go:418	Webhook Pod is ready.
2023-10-30T18:08:15.221Z	INFO	integration/audit_config_base_suite.go:659	Waiting for scan API Pod to become ready.
2023-10-30T18:08:15.224Z	INFO	integration/audit_config_base_suite.go:663	Scan API Pod is ready.
2023-10-30T18:08:15.227Z	INFO	integration/audit_config_base_suite.go:680	Waiting for good condition of Scan API
2023-10-30T18:08:15.252Z	INFO	integration/audit_config_base_suite.go:922	Update the webhook with the CA data.
2023-10-30T18:08:15.259Z	INFO	integration/audit_config_base_suite.go:931	Restart the webhook pods such that it is certain the CA secret has been reloaded.
2023-10-30T18:08:27.291Z	INFO	integration/audit_config_base_suite.go:941	Webhook Pod is ready.
2023-10-30T18:08:27.298Z	INFO	integration/audit_config_base_suite.go:959	Getting endpoints for webhook.
2023-10-30T18:08:27.300Z	INFO	integration/audit_config_base_suite.go:965	endpoints Addresses: [{10.42.0.25  0xc000ade290 &ObjectReference{Kind:Pod,Namespace:mondoo-operator,Name:mondoo-client-webhook-manager-888664c54-p4q28,UID:41c144e0-fbd6-4662-bb5a-69ffe41df572,APIVersion:,ResourceVersion:,FieldPath:,}}]
2023-10-30T18:08:27.300Z	INFO	integration/audit_config_base_suite.go:966	endpoints NotReadyAddresses: []
2023-10-30T18:08:27.300Z	INFO	integration/audit_config_base_suite.go:973	Wait for webhook to start working.
2023-10-30T18:08:27.306Z	INFO	integration/audit_config_base_suite.go:446	Waiting for Webhook to accept connections (max 120s).
2023-10-30T18:08:27.307Z	INFO	integration/audit_config_base_suite.go:994	Created port-forward via kubectl for webhook with pid: 17465
2023-10-30T18:08:29.317Z	INFO	integration/audit_config_base_suite.go:1007	Webhook is available: 200 OK
2023-10-30T18:08:29.317Z	DEBUG	integration/audit_config_base_suite.go:1034	Trying to stop port-forward with pid: 17465
2023-10-30T18:08:29.319Z	INFO	integration/audit_config_base_suite.go:449	Webhook should be working by now.
2023-10-30T18:08:29.319Z	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:465
        	            				/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_test.go:60
        	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_AdmissionEnforcingScaleDownScanApi
        	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: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 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: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 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: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 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: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 passing-deployment should not be unscored
2023-10-30T18:09:38.476Z	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
    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 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: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 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: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 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: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 passing-deployment should not be unscored
2023-10-30T18:09:50.968Z	INFO	utils/k8s_helper.go:341	Resource /, Kind= mondoo-operator/passing-deployment deleted.
2023-10-30T18:09:50.971Z	INFO	utils/k8s_helper.go:341	Resource /, Kind= mondoo-operator/failing-deployment deleted.
2023-10-30T18:09:51.185Z	INFO	utils/k8s_helper.go:337	Resource /, Kind= mondoo-operator/mondoo-client-scan-api-5b484b96dd-8n6cx still exists.
2023-10-30T18:09:53.189Z	INFO	utils/k8s_helper.go:341	Resource /, Kind= mondoo-operator/mondoo-client-scan-api-5b484b96dd-8n6cx deleted.
2023-10-30T18:09:53.189Z	INFO	integration/audit_config_base_suite.go:482	MondooAuditConfig condition should be updated to degraded.
2023-10-30T18:09:53.221Z	INFO	installer/installer.go:173	gathering all logs from the test
2023-10-30T18:09:53.221Z	INFO	utils/k8s_helper.go:256	Gathering logs for all pods in namespace mondoo-operator
2023-10-30T18:09:53.225Z	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-85d557c5bb-bp5nn_1698689393.log
2023-10-30T18:09:53.238Z	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-85d557c5bb-bp5nn_previous_1698689393.log
2023-10-30T18:09:53.242Z	DEBUG	utils/executor.go:271	Running command: kubectl -n mondoo-operator logs mondoo-operator-controller-manager-85d557c5bb-bp5nn -c manager
2023-10-30T18:09:53.304Z	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-888664c54-p4q28_1698689393.log
2023-10-30T18:09:53.313Z	INFO	utils/k8s_helper.go:267	Gathering pod describe for all pods in namespace mondoo-operator
2023-10-30T18:09:53.316Z	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_1698689393.log
2023-10-30T18:09:53.316Z	DEBUG	utils/executor.go:271	Running command: kubectl get pod -o yaml -n mondoo-operator mondoo-operator-controller-manager-85d557c5bb-bp5nn
2023-10-30T18:09:53.375Z	DEBUG	utils/executor.go:271	Running command: kubectl get pod -o yaml -n mondoo-operator mondoo-client-webhook-manager-888664c54-p4q28
2023-10-30T18:09:53.442Z	DEBUG	utils/executor.go:271	Running command: kubectl get deployment -o yaml -n mondoo-operator mondoo-operator-controller-manager
2023-10-30T18:09:53.505Z	DEBUG	utils/executor.go:271	Running command: kubectl get deployment -o yaml -n mondoo-operator mondoo-client-webhook-manager
2023-10-30T18:09:53.568Z	DEBUG	utils/executor.go:271	Running command: kubectl get deployment -o yaml -n mondoo-operator mondoo-client-scan-api
2023-10-30T18:09:53.639Z	DEBUG	utils/executor.go:271	Running command: kubectl get mondooauditconfig -o yaml -n mondoo-operator mondoo-client
2023-10-30T18:09:53.699Z	INFO	utils/k8s_helper.go:308	Gathering events in namespace "mondoo-operator"
2023-10-30T18:09:53.699Z	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_1698689393.log
2023-10-30T18:09:53.699Z	DEBUG	utils/executor.go:271	Running command: kubectl get events -n mondoo-operator
2023-10-30T18:09:53.781Z	INFO	utils/k8s_helper.go:337	Resource k8s.mondoo.com/v1alpha2, Kind=MondooAuditConfig mondoo-operator/mondoo-client still exists.
2023-10-30T18:09:55.785Z	INFO	utils/k8s_helper.go:341	Resource k8s.mondoo.com/v1alpha2, Kind=MondooAuditConfig mondoo-operator/mondoo-client deleted.
2023-10-30T18:09:55.792Z	INFO	integration/audit_config_base_suite.go:116	Waiting for cleanup of the test cluster.
2023-10-30T18:09:55.803Z	INFO	integration/audit_config_base_suite.go:141	Cleanup done. Cluster should be good to go for the next test.
2023-10-30T18:09:58.423Z	DEBUG	utils/executor.go:271	Running command: kubectl delete pods -n default --all --wait
    --- FAIL: TestAuditConfigSuite/TestReconcile_AdmissionEnforcingScaleDownScanApi (115.52s)

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_AdmissionPermissive

Failed test found in:
  integration-tests-k3d-v1.25.12.xml
Error:
  === RUN   TestAuditConfigSuite/TestReconcile_AdmissionPermissive
Raw output
=== RUN   TestAuditConfigSuite/TestReconcile_AdmissionPermissive
2023-10-30T18:09:58.831Z	INFO	integration/audit_config_base_suite.go:405	Create an audit config that enables only admission control.
2023-10-30T18:09:58.840Z	INFO	integration/audit_config_base_suite.go:413	Waiting for webhook Pod to become ready.
2023-10-30T18:10:10.874Z	INFO	integration/audit_config_base_suite.go:418	Webhook Pod is ready.
2023-10-30T18:10:10.874Z	INFO	integration/audit_config_base_suite.go:659	Waiting for scan API Pod to become ready.
2023-10-30T18:10:10.877Z	INFO	integration/audit_config_base_suite.go:663	Scan API Pod is ready.
2023-10-30T18:10:10.879Z	INFO	integration/audit_config_base_suite.go:680	Waiting for good condition of Scan API
2023-10-30T18:10:10.890Z	INFO	integration/audit_config_base_suite.go:922	Update the webhook with the CA data.
2023-10-30T18:10:10.896Z	INFO	integration/audit_config_base_suite.go:931	Restart the webhook pods such that it is certain the CA secret has been reloaded.
2023-10-30T18:10:22.929Z	INFO	integration/audit_config_base_suite.go:941	Webhook Pod is ready.
2023-10-30T18:10:22.935Z	INFO	integration/audit_config_base_suite.go:959	Getting endpoints for webhook.
2023-10-30T18:10:22.937Z	INFO	integration/audit_config_base_suite.go:965	endpoints Addresses: [{10.42.0.28  0xc000905380 &ObjectReference{Kind:Pod,Namespace:mondoo-operator,Name:mondoo-client-webhook-manager-7f5d7cf4-dqd6t,UID:161b4f2e-bff2-4707-82e1-2c5e785d958d,APIVersion:,ResourceVersion:,FieldPath:,}}]
2023-10-30T18:10:22.937Z	INFO	integration/audit_config_base_suite.go:966	endpoints NotReadyAddresses: []
2023-10-30T18:10:22.937Z	INFO	integration/audit_config_base_suite.go:973	Wait for webhook to start working.
2023-10-30T18:10:22.943Z	INFO	integration/audit_config_base_suite.go:446	Waiting for Webhook to accept connections (max 120s).
2023-10-30T18:10:22.943Z	INFO	integration/audit_config_base_suite.go:994	Created port-forward via kubectl for webhook with pid: 19063
2023-10-30T18:10:24.953Z	INFO	integration/audit_config_base_suite.go:1007	Webhook is available: 200 OK
2023-10-30T18:10:24.953Z	DEBUG	integration/audit_config_base_suite.go:1034	Trying to stop port-forward with pid: 19063
2023-10-30T18:10:24.955Z	INFO	integration/audit_config_base_suite.go:449	Webhook should be working by now.
2023-10-30T18:10:24.955Z	INFO	integration/audit_config_base_suite.go:802	Create a Deployment which should pass. (max. 5 retries)
2023-10-30T18:10:43.424Z	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
2023-10-30T18:10:55.491Z	INFO	utils/k8s_helper.go:341	Resource /, Kind= mondoo-operator/passing-deployment deleted.
2023-10-30T18:10:55.493Z	INFO	utils/k8s_helper.go:341	Resource /, Kind= mondoo-operator/failing-deployment deleted.
2023-10-30T18:10:56.736Z	INFO	installer/installer.go:173	gathering all logs from the test
2023-10-30T18:10:56.736Z	INFO	utils/k8s_helper.go:256	Gathering logs for all pods in namespace mondoo-operator
2023-10-30T18:10:56.742Z	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-85d557c5bb-bp5nn_1698689456.log
2023-10-30T18:10:56.754Z	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-85d557c5bb-bp5nn_previous_1698689456.log
2023-10-30T18:10:56.758Z	DEBUG	utils/executor.go:271	Running command: kubectl -n mondoo-operator logs mondoo-operator-controller-manager-85d557c5bb-bp5nn -c manager
2023-10-30T18:10:56.831Z	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-5984d76464-hkbzm_1698689456.log
2023-10-30T18:10:56.836Z	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-7f5d7cf4-dqd6t_1698689456.log
2023-10-30T18:10:56.841Z	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-69f7d7574f-zmqn6_1698689456.log
2023-10-30T18:10:56.846Z	INFO	utils/k8s_helper.go:267	Gathering pod describe for all pods in namespace mondoo-operator
2023-10-30T18:10:56.850Z	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_1698689456.log
2023-10-30T18:10:56.850Z	DEBUG	utils/executor.go:271	Running command: kubectl get pod -o yaml -n mondoo-operator mondoo-operator-controller-manager-85d557c5bb-bp5nn
2023-10-30T18:10:56.912Z	DEBUG	utils/executor.go:271	Running command: kubectl get pod -o yaml -n mondoo-operator mondoo-client-scan-api-5984d76464-hkbzm
2023-10-30T18:10:56.977Z	DEBUG	utils/executor.go:271	Running command: kubectl get pod -o yaml -n mondoo-operator mondoo-client-webhook-manager-7f5d7cf4-dqd6t
2023-10-30T18:10:57.064Z	DEBUG	utils/executor.go:271	Running command: kubectl get pod -o yaml -n mondoo-operator failing-deployment-69f7d7574f-zmqn6
2023-10-30T18:10:57.126Z	ERROR	utils/k8s_helper.go:105	failed to execute: kubectl [get pod -o yaml -n mondoo-operator failing-deployment-69f7d7574f-zmqn6] : exit status 1. Error from server (NotFound): pods "failing-deployment-69f7d7574f-zmqn6" 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-10-30T18:10:57.126Z	ERROR	utils/k8s_helper.go:415	failed to describe pod. [get pod -o yaml -n mondoo-operator failing-deployment-69f7d7574f-zmqn6] failed to run: kubectl [get pod -o yaml -n mondoo-operator failing-deployment-69f7d7574f-zmqn6] : 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-10-30T18:10:57.131Z	DEBUG	utils/executor.go:271	Running command: kubectl get deployment -o yaml -n mondoo-operator mondoo-operator-controller-manager
2023-10-30T18:10:57.191Z	DEBUG	utils/executor.go:271	Running command: kubectl get deployment -o yaml -n mondoo-operator mondoo-client-scan-api
2023-10-30T18:10:57.248Z	DEBUG	utils/executor.go:271	Running command: kubectl get deployment -o yaml -n mondoo-operator mondoo-client-webhook-manager
2023-10-30T18:10:57.314Z	DEBUG	utils/executor.go:271	Running command: kubectl get mondooauditconfig -o yaml -n mondoo-operator mondoo-client
2023-10-30T18:10:57.392Z	INFO	utils/k8s_helper.go:308	Gathering events in namespace "mondoo-operator"
2023-10-30T18:10:57.392Z	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_1698689457.log
2023-10-30T18:10:57.392Z	DEBUG	utils/executor.go:271	Running command: kubectl get events -n mondoo-operator
2023-10-30T18:10:57.487Z	INFO	utils/k8s_helper.go:337	Resource k8s.mondoo.com/v1alpha2, Kind=MondooAuditConfig mondoo-operator/mondoo-client still exists.
2023-10-30T18:10:59.490Z	INFO	utils/k8s_helper.go:341	Resource k8s.mondoo.com/v1alpha2, Kind=MondooAuditConfig mondoo-operator/mondoo-client deleted.
2023-10-30T18:10:59.497Z	INFO	integration/audit_config_base_suite.go:116	Waiting for cleanup of the test cluster.
2023-10-30T18:10:59.509Z	INFO	integration/audit_config_base_suite.go:141	Cleanup done. Cluster should be good to go for the next test.
2023-10-30T18:11:05.401Z	DEBUG	utils/executor.go:271	Running command: kubectl delete pods -n default --all --wait
    --- FAIL: TestAuditConfigSuite/TestReconcile_AdmissionPermissive (66.98s)

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-10-30T18:12:54.261Z	INFO	integration/audit_config_base_suite.go:158	Create an audit config that enables only workloads scanning.
2023-10-30T18:12:54.280Z	INFO	integration/audit_config_base_suite.go:659	Waiting for scan API Pod to become ready.
2023-10-30T18:13:06.315Z	INFO	integration/audit_config_base_suite.go:663	Scan API Pod is ready.
2023-10-30T18:13:06.318Z	INFO	integration/audit_config_base_suite.go:680	Waiting for good condition of Scan API
2023-10-30T18:13:06.324Z	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-10-30T18:16:37.241Z	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-10-30T18:16:37.241Z	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-10-30T18:16:37.447Z	INFO	installer/installer.go:173	gathering all logs from the test
2023-10-30T18:16:37.447Z	INFO	utils/k8s_helper.go:256	Gathering logs for all pods in namespace mondoo-operator
2023-10-30T18:16:37.452Z	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-85d557c5bb-bp5nn_1698689797.log
2023-10-30T18:16:37.467Z	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-85d557c5bb-bp5nn_previous_1698689797.log
2023-10-30T18:16:37.471Z	DEBUG	utils/executor.go:271	Running command: kubectl -n mondoo-operator logs mondoo-operator-controller-manager-85d557c5bb-bp5nn -c manager
2023-10-30T18:16:37.539Z	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-7c8d6f5654-z5lkk_1698689797.log
2023-10-30T18:16:37.545Z	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-28311493-9j47t_1698689797.log
2023-10-30T18:16:37.549Z	INFO	utils/k8s_helper.go:267	Gathering pod describe for all pods in namespace mondoo-operator
2023-10-30T18:16:37.553Z	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_1698689797.log
2023-10-30T18:16:37.553Z	DEBUG	utils/executor.go:271	Running command: kubectl get pod -o yaml -n mondoo-operator mondoo-operator-controller-manager-85d557c5bb-bp5nn
2023-10-30T18:16:37.614Z	DEBUG	utils/executor.go:271	Running command: kubectl get pod -o yaml -n mondoo-operator mondoo-client-scan-api-7c8d6f5654-z5lkk
2023-10-30T18:16:37.673Z	DEBUG	utils/executor.go:271	Running command: kubectl get pod -o yaml -n mondoo-operator mondoo-client-k8s-scan-28311493-9j47t
2023-10-30T18:16:37.737Z	DEBUG	utils/executor.go:271	Running command: kubectl get deployment -o yaml -n mondoo-operator mondoo-operator-controller-manager
2023-10-30T18:16:37.806Z	DEBUG	utils/executor.go:271	Running command: kubectl get deployment -o yaml -n mondoo-operator mondoo-client-scan-api
2023-10-30T18:16:37.870Z	DEBUG	utils/executor.go:271	Running command: kubectl get mondooauditconfig -o yaml -n mondoo-operator mondoo-client
2023-10-30T18:16:37.931Z	INFO	utils/k8s_helper.go:308	Gathering events in namespace "mondoo-operator"
2023-10-30T18:16:37.932Z	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_1698689797.log
2023-10-30T18:16:37.932Z	DEBUG	utils/executor.go:271	Running command: kubectl get events -n mondoo-operator
2023-10-30T18:16:38.020Z	INFO	utils/k8s_helper.go:337	Resource k8s.mondoo.com/v1alpha2, Kind=MondooAuditConfig mondoo-operator/mondoo-client still exists.
2023-10-30T18:16:40.023Z	INFO	utils/k8s_helper.go:341	Resource k8s.mondoo.com/v1alpha2, Kind=MondooAuditConfig mondoo-operator/mondoo-client deleted.
2023-10-30T18:16:40.028Z	INFO	integration/audit_config_base_suite.go:116	Waiting for cleanup of the test cluster.
2023-10-30T18:16:40.039Z	INFO	integration/audit_config_base_suite.go:141	Cleanup done. Cluster should be good to go for the next test.
2023-10-30T18:16:44.183Z	DEBUG	utils/executor.go:271	Running command: kubectl delete pods -n default --all --wait
    --- FAIL: TestAuditConfigSuite/TestReconcile_KubernetesResources (229.99s)

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

Failed test found in:
  integration-tests-k3d-v1.25.12.xml
Error:
  === RUN   TestAuditConfigSuite
Raw output
=== RUN   TestAuditConfigSuite
2023-10-30T18:06:05.417Z	INFO	installer/installer.go:84	Installing Mondoo operator with local manifest
2023-10-30T18:06:05.417Z	INFO	utils/manifest_utils.go:54	Reading file: /home/runner/work/mondoo-operator/mondoo-operator/mondoo-operator-manifests.yaml
2023-10-30T18:06:05.418Z	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-10-30T18:06:06.652Z	INFO	installer/installer.go:165	Created Мondoo client secret "mondoo-token".
2023-10-30T18:06:18.681Z	INFO	installer/installer.go:100	Mondoo operator is ready.
--- FAIL: TestAuditConfigSuite (710.76s)

Check failure on line 0 in integration-tests-k3d-v1.26.7.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.26.7.xml
Error:
  === RUN   TestAuditConfigCustomNamespaceSuite/TestReconcile_KubernetesResources
Raw output
=== RUN   TestAuditConfigCustomNamespaceSuite/TestReconcile_KubernetesResources
2023-10-30T18:02:46.162Z	INFO	integration/audit_config_base_suite.go:158	Create an audit config that enables only workloads scanning.
2023-10-30T18:02:46.176Z	INFO	integration/audit_config_base_suite.go:659	Waiting for scan API Pod to become ready.
2023-10-30T18:02:58.210Z	INFO	integration/audit_config_base_suite.go:663	Scan API Pod is ready.
2023-10-30T18:02:58.213Z	INFO	integration/audit_config_base_suite.go:680	Waiting for good condition of Scan API
2023-10-30T18:02:58.220Z	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:203: 
        	Error Trace:	/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:203
        	            				/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_namespace_test.go:84
        	Error:      	Not equal: 
        	            	expected: 18
        	            	actual  : 19
        	Test:       	TestAuditConfigCustomNamespaceSuite/TestReconcile_KubernetesResources
        	Messages:   	Cluster asset was sent upstream.
    audit_config_base_suite.go:206: 
        	Error Trace:	/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:206
        	            				/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_namespace_test.go:84
        	Error:      	elements differ
        	            	
        	            	extra elements in list B:
        	            	([]interface {}) (len=1) {
        	            	 (string) (len=36) "K8s Cluster k3d-k3s-default-server-0"
        	            	}
        	            	
        	            	
        	            	listA:
        	            	([]string) (len=18) {
        	            	 (string) (len=51) "kube-system/local-path-provisioner-76d776f6f9-gdz2p",
        	            	 (string) (len=36) "kube-system/coredns-59b4f5bbd5-xh8tw",
        	            	 (string) (len=43) "kube-system/metrics-server-68cf49699b-tmfvp",
        	            	 (string) (len=67) "mondoo-operator/mondoo-operator-controller-manager-764bd7cbd4-xfvk6",
        	            	 (string) (len=54) "some-namespace/mondoo-client-scan-api-65c64f87d6-gc842",
        	            	 (string) (len=52) "some-namespace/mondoo-client-k8s-scan-28311483-mhlwz",
        	            	 (string) (len=46) "some-namespace/mondoo-client-k8s-scan-28311483",
        	            	 (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-76d776f6f9",
        	            	 (string) (len=30) "kube-system/coredns-59b4f5bbd5",
        	            	 (string) (len=37) "kube-system/metrics-server-68cf49699b",
        	            	 (string) (len=61) "mondoo-operator/mondoo-operator-controller-manager-764bd7cbd4",
        	            	 (string) (len=48) "some-namespace/mondoo-client-scan-api-65c64f87d6"
        	            	}
        	            	
        	            	
        	            	listB:
        	            	([]string) (len=19) {
        	            	 (string) (len=54) "some-namespace/mondoo-client-scan-api-65c64f87d6-gc842",
        	            	 (string) (len=37) "some-namespace/mondoo-client-scan-api",
        	            	 (string) (len=48) "some-namespace/mondoo-client-scan-api-65c64f87d6",
        	            	 (string) (len=67) "mondoo-operator/mondoo-operator-controller-manager-764bd7cbd4-xfvk6",
        	            	 (string) (len=61) "mondoo-operator/mondoo-operator-controller-manager-764bd7cbd4",
        	            	 (string) (len=37) "some-namespace/mondoo-client-k8s-scan",
        	            	 (string) (len=46) "some-namespace/mondoo-client-k8s-scan-28311483",
        	            	 (string) (len=52) "some-namespace/mondoo-client-k8s-scan-28311483-mhlwz",
        	            	 (string) (len=43) "kube-system/metrics-server-68cf49699b-tmfvp",
        	            	 (string) (len=37) "kube-system/metrics-server-68cf49699b",
        	            	 (string) (len=26) "kube-system/metrics-server",
        	            	 (string) (len=50) "mondoo-operator/mondoo-operator-controller-manager",
        	            	 (string) (len=19) "kube-system/coredns",
        	            	 (string) (len=30) "kube-system/coredns-59b4f5bbd5",
        	            	 (string) (len=36) "kube-system/coredns-59b4f5bbd5-xh8tw",
        	            	 (string) (len=51) "kube-system/local-path-provisioner-76d776f6f9-gdz2p",
        	            	 (string) (len=45) "kube-system/local-path-provisioner-76d776f6f9",
        	            	 (string) (len=34) "kube-system/local-path-provisioner",
        	            	 (string) (len=36) "K8s Cluster k3d-k3s-default-server-0"
        	            	}
        	Test:       	TestAuditConfigCustomNamespaceSuite/TestReconcile_KubernetesResources
        	Messages:   	Workloads were not sent upstream.
2023-10-30T18:06:38.988Z	INFO	installer/installer.go:173	gathering all logs from the test
2023-10-30T18:06:38.988Z	INFO	utils/k8s_helper.go:256	Gathering logs for all pods in namespace some-namespace
2023-10-30T18:06:38.993Z	DEBUG	utils/k8s_helper.go:461	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/TestReconcile_KubernetesResources_some-namespace_mondoo-client-scan-api-65c64f87d6-gc842_1698689198.log
2023-10-30T18:06:39.007Z	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-28311483-mhlwz_1698689199.log
2023-10-30T18:06:39.022Z	INFO	utils/k8s_helper.go:267	Gathering pod describe for all pods in namespace some-namespace
2023-10-30T18:06:39.035Z	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_1698689199.log
2023-10-30T18:06:39.035Z	DEBUG	utils/executor.go:271	Running command: kubectl get pod -o yaml -n some-namespace mondoo-client-scan-api-65c64f87d6-gc842
2023-10-30T18:06:39.164Z	DEBUG	utils/executor.go:271	Running command: kubectl get pod -o yaml -n some-namespace mondoo-client-k8s-scan-28311483-mhlwz
2023-10-30T18:06:39.249Z	DEBUG	utils/executor.go:271	Running command: kubectl get deployment -o yaml -n some-namespace mondoo-client-scan-api
2023-10-30T18:06:39.336Z	DEBUG	utils/executor.go:271	Running command: kubectl get mondooauditconfig -o yaml -n some-namespace mondoo-client
2023-10-30T18:06:39.417Z	INFO	utils/k8s_helper.go:308	Gathering events in namespace "some-namespace"
2023-10-30T18:06:39.417Z	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_1698689199.log
2023-10-30T18:06:39.417Z	DEBUG	utils/executor.go:271	Running command: kubectl get events -n some-namespace
2023-10-30T18:06:39.510Z	INFO	installer/installer.go:173	gathering all logs from the test
2023-10-30T18:06:39.511Z	INFO	utils/k8s_helper.go:256	Gathering logs for all pods in namespace mondoo-operator
2023-10-30T18:06:39.515Z	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-764bd7cbd4-xfvk6_1698689199.log
2023-10-30T18:06:39.530Z	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-764bd7cbd4-xfvk6_previous_1698689199.log
2023-10-30T18:06:39.538Z	DEBUG	utils/executor.go:271	Running command: kubectl -n mondoo-operator logs mondoo-operator-controller-manager-764bd7cbd4-xfvk6 -c manager
2023-10-30T18:06:39.630Z	INFO	utils/k8s_helper.go:267	Gathering pod describe for all pods in namespace mondoo-operator
2023-10-30T18:06:39.635Z	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_1698689199.log
2023-10-30T18:06:39.635Z	DEBUG	utils/executor.go:271	Running command: kubectl get pod -o yaml -n mondoo-operator mondoo-operator-controller-manager-764bd7cbd4-xfvk6
2023-10-30T18:06:39.716Z	DEBUG	utils/executor.go:271	Running command: kubectl get deployment -o yaml -n mondoo-operator mondoo-operator-controller-manager
2023-10-30T18:06:39.809Z	INFO	utils/k8s_helper.go:308	Gathering events in namespace "mondoo-operator"
2023-10-30T18:06:39.809Z	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_1698689199.log
2023-10-30T18:06:39.809Z	DEBUG	utils/executor.go:271	Running command: kubectl get events -n mondoo-operator
2023-10-30T18:06:39.919Z	INFO	utils/k8s_helper.go:337	Resource k8s.mondoo.com/v1alpha2, Kind=MondooAuditConfig some-namespace/mondoo-client still exists.
2023-10-30T18:06:41.924Z	INFO	utils/k8s_helper.go:341	Resource k8s.mondoo.com/v1alpha2, Kind=MondooAuditConfig some-namespace/mondoo-client deleted.
2023-10-30T18:06:41.929Z	INFO	integration/audit_config_base_suite.go:116	Waiting for cleanup of the test cluster.
2023-10-30T18:06:41.947Z	INFO	integration/audit_config_base_suite.go:141	Cleanup done. Cluster should be good to go for the next test.
2023-10-30T18:06:46.930Z	DEBUG	utils/executor.go:271	Running command: kubectl delete pods -n default --all --wait
    --- FAIL: TestAuditConfigCustomNamespaceSuite/TestReconcile_KubernetesResources (240.86s)

Check failure on line 0 in integration-tests-k3d-v1.26.7.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.26.7.xml
Error:
  === RUN   TestAuditConfigCustomNamespaceSuite
Raw output
=== RUN   TestAuditConfigCustomNamespaceSuite
2023-10-30T17:58:45.609Z	INFO	installer/installer.go:84	Installing Mondoo operator with local manifest
2023-10-30T17:58:45.609Z	INFO	utils/manifest_utils.go:54	Reading file: /home/runner/work/mondoo-operator/mondoo-operator/mondoo-operator-manifests.yaml
2023-10-30T17:58:45.610Z	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-10-30T17:58:47.294Z	INFO	installer/installer.go:165	Created Мondoo client secret "mondoo-token".
2023-10-30T17:58:59.332Z	INFO	installer/installer.go:100	Mondoo operator is ready.
2023-10-30T17:58:59.341Z	INFO	integration/audit_config_namespace_test.go:34	Created test namespace.
2023-10-30T17:58:59.355Z	INFO	installer/installer.go:165	Created Мondoo client secret "mondoo-token".
2023-10-30T17:58:59.355Z	INFO	integration/audit_config_namespace_test.go:37	Created client secret in namespace "some-namespace".
2023-10-30T17:58:59.368Z	INFO	integration/audit_config_namespace_test.go:44	Created webhook ServiceAccount "webhook-sa" in namespace "some-namespace".
2023-10-30T17:58:59.374Z	INFO	integration/audit_config_namespace_test.go:51	Created service account "mondoo-sa" in namespace "some-namespace".
2023-10-30T17:58:59.382Z	INFO	integration/audit_config_namespace_test.go:64	Created cluster role binding "mondoo-operator-k8s-resources-scanning2".
--- FAIL: TestAuditConfigCustomNamespaceSuite (552.19s)

Check failure on line 0 in integration-tests-k3d-v1.26.7.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.26.7.xml
Error:
  === RUN   TestAuditConfigSuite/TestReconcile_AdmissionEnforcing
Raw output
=== RUN   TestAuditConfigSuite/TestReconcile_AdmissionEnforcing
2023-10-30T18:08:13.177Z	INFO	integration/audit_config_base_suite.go:405	Create an audit config that enables only admission control.
2023-10-30T18:08:17.209Z	INFO	integration/audit_config_base_suite.go:413	Waiting for webhook Pod to become ready.
2023-10-30T18:08:29.244Z	INFO	integration/audit_config_base_suite.go:418	Webhook Pod is ready.
2023-10-30T18:08:29.244Z	INFO	integration/audit_config_base_suite.go:659	Waiting for scan API Pod to become ready.
2023-10-30T18:08:29.248Z	INFO	integration/audit_config_base_suite.go:663	Scan API Pod is ready.
2023-10-30T18:08:29.251Z	INFO	integration/audit_config_base_suite.go:680	Waiting for good condition of Scan API
2023-10-30T18:08:29.292Z	INFO	integration/audit_config_base_suite.go:922	Update the webhook with the CA data.
2023-10-30T18:08:29.308Z	INFO	integration/audit_config_base_suite.go:931	Restart the webhook pods such that it is certain the CA secret has been reloaded.
2023-10-30T18:08:41.353Z	INFO	integration/audit_config_base_suite.go:941	Webhook Pod is ready.
2023-10-30T18:08:41.361Z	INFO	integration/audit_config_base_suite.go:959	Getting endpoints for webhook.
2023-10-30T18:08:41.365Z	INFO	integration/audit_config_base_suite.go:965	endpoints Addresses: [{10.42.0.22  0xc000be2190 &ObjectReference{Kind:Pod,Namespace:mondoo-operator,Name:mondoo-client-webhook-manager-864c7979fc-cwdkx,UID:10a6d52e-4427-467e-b2fb-76b97ed06790,APIVersion:,ResourceVersion:,FieldPath:,}}]
2023-10-30T18:08:41.365Z	INFO	integration/audit_config_base_suite.go:966	endpoints NotReadyAddresses: []
2023-10-30T18:08:41.365Z	INFO	integration/audit_config_base_suite.go:973	Wait for webhook to start working.
2023-10-30T18:08:41.375Z	INFO	integration/audit_config_base_suite.go:446	Waiting for Webhook to accept connections (max 120s).
2023-10-30T18:08:41.376Z	INFO	integration/audit_config_base_suite.go:994	Created port-forward via kubectl for webhook with pid: 15921
2023-10-30T18:08:43.391Z	INFO	integration/audit_config_base_suite.go:1007	Webhook is available: 200 OK
2023-10-30T18:08:43.391Z	DEBUG	integration/audit_config_base_suite.go:1034	Trying to stop port-forward with pid: 15921
2023-10-30T18:08:43.393Z	INFO	integration/audit_config_base_suite.go:449	Webhook should be working by now.
2023-10-30T18:08:43.393Z	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
    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-10-30T18:09:51.903Z	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
    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-10-30T18:10:03.494Z	INFO	utils/k8s_helper.go:341	Resource /, Kind= mondoo-operator/passing-deployment deleted.
2023-10-30T18:10:03.496Z	INFO	utils/k8s_helper.go:341	Resource /, Kind= mondoo-operator/failing-deployment deleted.
2023-10-30T18:10:03.689Z	INFO	installer/installer.go:173	gathering all logs from the test
2023-10-30T18:10:03.689Z	INFO	utils/k8s_helper.go:256	Gathering logs for all pods in namespace mondoo-operator
2023-10-30T18:10:03.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-operator-controller-manager-764bd7cbd4-hsq2t_1698689403.log
2023-10-30T18:10:03.708Z	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-764bd7cbd4-hsq2t_previous_1698689403.log
2023-10-30T18:10:03.714Z	DEBUG	utils/executor.go:271	Running command: kubectl -n mondoo-operator logs mondoo-operator-controller-manager-764bd7cbd4-hsq2t -c manager
2023-10-30T18:10:03.813Z	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-8594fd9dfd-55w79_1698689403.log
2023-10-30T18:10:03.820Z	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-864c7979fc-cwdkx_1698689403.log
2023-10-30T18:10:03.827Z	INFO	utils/k8s_helper.go:267	Gathering pod describe for all pods in namespace mondoo-operator
2023-10-30T18:10:03.832Z	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_1698689403.log
2023-10-30T18:10:03.832Z	DEBUG	utils/executor.go:271	Running command: kubectl get pod -o yaml -n mondoo-operator mondoo-operator-controller-manager-764bd7cbd4-hsq2t
2023-10-30T18:10:03.911Z	DEBUG	utils/executor.go:271	Running command: kubectl get pod -o yaml -n mondoo-operator mondoo-client-scan-api-8594fd9dfd-55w79
2023-10-30T18:10:03.995Z	DEBUG	utils/executor.go:271	Running command: kubectl get pod -o yaml -n mondoo-operator mondoo-client-webhook-manager-864c7979fc-cwdkx
2023-10-30T18:10:04.090Z	DEBUG	utils/executor.go:271	Running command: kubectl get deployment -o yaml -n mondoo-operator mondoo-operator-controller-manager
2023-10-30T18:10:04.173Z	DEBUG	utils/executor.go:271	Running command: kubectl get deployment -o yaml -n mondoo-operator mondoo-client-scan-api
2023-10-30T18:10:04.260Z	DEBUG	utils/executor.go:271	Running command: kubectl get deployment -o yaml -n mondoo-operator mondoo-client-webhook-manager
2023-10-30T18:10:04.351Z	DEBUG	utils/executor.go:271	Running command: kubectl get mondooauditconfig -o yaml -n mondoo-operator mondoo-client
2023-10-30T18:10:04.429Z	INFO	utils/k8s_helper.go:308	Gathering events in namespace "mondoo-operator"
2023-10-30T18:10:04.430Z	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_1698689404.log
2023-10-30T18:10:04.430Z	DEBUG	utils/executor.go:271	Running command: kubectl get events -n mondoo-operator
2023-10-30T18:10:04.525Z	INFO	utils/k8s_helper.go:337	Resource k8s.mondoo.com/v1alpha2, Kind=MondooAuditConfig mondoo-operator/mondoo-client still exists.
2023-10-30T18:10:06.529Z	INFO	utils/k8s_helper.go:341	Resource k8s.mondoo.com/v1alpha2, Kind=MondooAuditConfig mondoo-operator/mondoo-client deleted.
2023-10-30T18:10:06.539Z	INFO	integration/audit_config_base_suite.go:116	Waiting for cleanup of the test cluster.
2023-10-30T18:10:06.553Z	INFO	integration/audit_config_base_suite.go:141	Cleanup done. Cluster should be good to go for the next test.
2023-10-30T18:10:07.514Z	DEBUG	utils/executor.go:271	Running command: kubectl delete pods -n default --all --wait
    --- FAIL: TestAuditConfigSuite/TestReconcile_AdmissionEnforcing (114.82s)