Skip to content

🐛 Prevent CVE-2023-44487 (#885) #2200

🐛 Prevent CVE-2023-44487 (#885)

🐛 Prevent CVE-2023-44487 (#885) #2200

This check has been archived and is scheduled for deletion. Learn more about checks retention
GitHub Actions / Report test results failed Oct 16, 2023 in 1s

Report test results ❌

Tests failed

Report Passed Failed Skipped Time
integration-tests-k3d-v1.24.16.xml 16✅ 2❌ 941s
integration-tests-k3d-v1.25.12.xml 18✅ 842s
integration-tests-k3d-v1.26.7.xml 16✅ 2❌ 949s
integration-tests-k3d-v1.27.4.xml 16✅ 2❌ 947s
integration-tests-minikube-v1.24.16.xml 18✅ 816s
integration-tests-minikube-v1.25.12.xml 16✅ 2❌ 930s
integration-tests-minikube-v1.26.7.xml 16✅ 2❌ 933s
integration-tests-minikube-v1.27.4.xml 16✅ 2❌ 895s
unit-tests.xml 212✅ 60s

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

18 tests were completed in 941s with 16 passed, 2 failed and 0 skipped.

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

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

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

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

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

Test suite Passed Failed Skipped Time
go.mondoo.com/mondoo-operator/tests/integration 18✅ 798s

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

✅ TestAuditConfigCustomNamespaceSuite/TestReconcile_Admission
✅ TestAuditConfigCustomNamespaceSuite/TestReconcile_AdmissionMissingSA
✅ TestAuditConfigCustomNamespaceSuite/TestReconcile_Containers
✅ TestAuditConfigCustomNamespaceSuite/TestReconcile_KubernetesResources
✅ TestAuditConfigCustomNamespaceSuite/TestReconcile_Nodes
✅ TestAuditConfigCustomNamespaceSuite
✅ TestAuditConfigSuite/TestReconcile_AdmissionEnforcing
✅ TestAuditConfigSuite/TestReconcile_AdmissionEnforcingScaleDownScanApi
✅ TestAuditConfigSuite/TestReconcile_AdmissionPermissive
✅ TestAuditConfigSuite/TestReconcile_AllDisabled
✅ TestAuditConfigSuite/TestReconcile_Containers
✅ TestAuditConfigSuite/TestReconcile_KubernetesResources
✅ TestAuditConfigSuite/TestReconcile_Nodes
✅ TestAuditConfigSuite
✅ TestAuditConfigUpgradeSuite/TestUpgradePreviousReleaseToLatest
✅ TestAuditConfigUpgradeSuite
✅ TestE2eTestSuite/TestE2e_NodeScan
✅ TestE2eTestSuite

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

18 tests were completed in 949s with 16 passed, 2 failed and 0 skipped.

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

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

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

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

18 tests were completed in 947s with 16 passed, 2 failed and 0 skipped.

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

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

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

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

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

Test suite Passed Failed Skipped Time
go.mondoo.com/mondoo-operator/tests/integration 18✅ 779s

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

✅ TestAuditConfigCustomNamespaceSuite/TestReconcile_Admission
✅ TestAuditConfigCustomNamespaceSuite/TestReconcile_AdmissionMissingSA
✅ TestAuditConfigCustomNamespaceSuite/TestReconcile_Containers
✅ TestAuditConfigCustomNamespaceSuite/TestReconcile_KubernetesResources
✅ TestAuditConfigCustomNamespaceSuite/TestReconcile_Nodes
✅ TestAuditConfigCustomNamespaceSuite
✅ TestAuditConfigSuite/TestReconcile_AdmissionEnforcing
✅ TestAuditConfigSuite/TestReconcile_AdmissionEnforcingScaleDownScanApi
✅ TestAuditConfigSuite/TestReconcile_AdmissionPermissive
✅ TestAuditConfigSuite/TestReconcile_AllDisabled
✅ TestAuditConfigSuite/TestReconcile_Containers
✅ TestAuditConfigSuite/TestReconcile_KubernetesResources
✅ TestAuditConfigSuite/TestReconcile_Nodes
✅ TestAuditConfigSuite
✅ TestAuditConfigUpgradeSuite/TestUpgradePreviousReleaseToLatest
✅ TestAuditConfigUpgradeSuite
✅ TestE2eTestSuite/TestE2e_NodeScan
✅ TestE2eTestSuite

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

18 tests were completed in 930s with 16 passed, 2 failed and 0 skipped.

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

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

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

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

18 tests were completed in 933s with 16 passed, 2 failed and 0 skipped.

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

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

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

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

18 tests were completed in 895s with 16 passed, 2 failed and 0 skipped.

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

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

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

✅ unit-tests.xml

212 tests were completed in 60s with 212 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✅ 1s
go.mondoo.com/mondoo-operator/controllers/admission 14✅ 44ms
go.mondoo.com/mondoo-operator/controllers/container_image 7✅ 52ms
go.mondoo.com/mondoo-operator/controllers/integration 6✅ 170ms
go.mondoo.com/mondoo-operator/controllers/k8s_scan 6✅ 92ms
go.mondoo.com/mondoo-operator/controllers/metrics 2✅ 32ms
go.mondoo.com/mondoo-operator/controllers/nodes 23✅ 92ms
go.mondoo.com/mondoo-operator/controllers/resource_monitor 2✅ 47ms
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✅ 44ms
go.mondoo.com/mondoo-operator/controllers/resource_monitor/scan_api_store/mock 0ms
go.mondoo.com/mondoo-operator/controllers/scanapi 14✅ 49ms
go.mondoo.com/mondoo-operator/controllers/status 7✅ 40ms
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✅ 48ms
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✅ 8ms
go.mondoo.com/mondoo-operator/pkg/utils/k8s 66✅ 42ms
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✅ 71ms
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/api 0ms
go.mondoo.com/mondoo-operator/tests/framework/nexus/api/captain 0ms
go.mondoo.com/mondoo-operator/tests/framework/nexus/api/integrations 0ms
go.mondoo.com/mondoo-operator/tests/framework/nexus/api/policy 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_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

✅ 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 ► TestE2eTestSuite/TestE2e_NodeScan

Failed test found in:
  integration-tests-k3d-v1.24.16.xml
Error:
  === RUN   TestE2eTestSuite/TestE2e_NodeScan
Raw output
=== RUN   TestE2eTestSuite/TestE2e_NodeScan
2023-10-16T10:26:37.406Z	INFO	integration/e2e_test.go:147	Create an audit config that enables only nodes scanning.
2023-10-16T10:26:37.414Z	INFO	integration/e2e_test.go:152	Verify the nodes scanning cron jobs are created.
    e2e_test.go:188: 
        	Error Trace:	/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/e2e_test.go:188
        	            				/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/e2e_test.go:117
        	Error:      	Should be true
        	Test:       	TestE2eTestSuite/TestE2e_NodeScan
        	Messages:   	Not all CronJobs have run successfully.
{"level":"trace","time":"2023-10-16T10:29:19Z","message":"curl -X 'POST' -d '{\"space_mrn\":\"//captain.api.mondoo.app/spaces/k8s-operator-edge-testing\",\"query_terms\":[\"{ \\\"mondoo.com/integration-mrn\\\": \\\"//integration.api.mondoo.app/spaces/k8s-operator-edge-testing/integrations/2WqF0u9dvQjDstDLlBB8RfAN6m8\\\" }\"]}' -H 'Accept: application/json' -H 'Content-Length: 234' -H 'Content-Type: application/json' 'https://api.edge.mondoo.com/AssetStore/ListAssets'"}
    e2e_test.go:134: 
        	Error Trace:	/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/e2e_test.go:134
        	Error:      	elements differ
        	            	
        	            	extra elements in list A:
        	            	([]interface {}) (len=1) {
        	            	 (string) (len=24) "k3d-k3s-default-server-0"
        	            	}
        	            	
        	            	
        	            	listA:
        	            	([]string) (len=1) {
        	            	 (string) (len=24) "k3d-k3s-default-server-0"
        	            	}
        	            	
        	            	
        	            	listB:
        	            	([]string) {
        	            	}
        	Test:       	TestE2eTestSuite/TestE2e_NodeScan
        	Messages:   	Node names do not match
2023-10-16T10:29:20.281Z	INFO	installer/installer.go:174	gathering all logs from the test
2023-10-16T10:29:20.281Z	INFO	utils/k8s_helper.go:237	Gathering logs for all pods in namespace mondoo-operator
2023-10-16T10:29:20.287Z	DEBUG	utils/k8s_helper.go:442	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/TestE2e_NodeScan_mondoo-operator_mondoo-operator-controller-manager-78f65dccb-64rw8_1697452160.log
2023-10-16T10:29:20.297Z	DEBUG	utils/k8s_helper.go:442	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/TestE2e_NodeScan_mondoo-operator_mondoo-operator-controller-manager-78f65dccb-64rw8_previous_1697452160.log
2023-10-16T10:29:20.301Z	DEBUG	utils/executor.go:271	Running command: kubectl -n mondoo-operator logs mondoo-operator-controller-manager-78f65dccb-64rw8 -c manager
2023-10-16T10:29:20.369Z	DEBUG	utils/k8s_helper.go:442	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/TestE2e_NodeScan_mondoo-operator_mondoo-client-scan-api-554844f59f-t5fjr_1697452160.log
2023-10-16T10:29:20.374Z	DEBUG	utils/k8s_helper.go:442	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/TestE2e_NodeScan_mondoo-operator_mondoo-client-node-gc-28290867-c57sj_1697452160.log
2023-10-16T10:29:20.379Z	DEBUG	utils/k8s_helper.go:442	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/TestE2e_NodeScan_mondoo-operator_mondoo-client-node-k3d-k3s-default-server-0-28290867-xfhht_1697452160.log
2023-10-16T10:29:20.383Z	INFO	utils/k8s_helper.go:248	Gathering pod describe for all pods in namespace mondoo-operator
2023-10-16T10:29:20.387Z	DEBUG	utils/k8s_helper.go:442	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/mondoo-operator_describe_TestE2e_NodeScan_1697452160.log
2023-10-16T10:29:20.387Z	DEBUG	utils/executor.go:271	Running command: kubectl get pod -o yaml -n mondoo-operator mondoo-operator-controller-manager-78f65dccb-64rw8
2023-10-16T10:29:20.444Z	DEBUG	utils/executor.go:271	Running command: kubectl get pod -o yaml -n mondoo-operator mondoo-client-scan-api-554844f59f-t5fjr
2023-10-16T10:29:20.500Z	DEBUG	utils/executor.go:271	Running command: kubectl get pod -o yaml -n mondoo-operator mondoo-client-node-gc-28290867-c57sj
2023-10-16T10:29:20.561Z	DEBUG	utils/executor.go:271	Running command: kubectl get pod -o yaml -n mondoo-operator mondoo-client-node-k3d-k3s-default-server-0-28290867-xfhht
2023-10-16T10:29:20.624Z	DEBUG	utils/executor.go:271	Running command: kubectl get deployment -o yaml -n mondoo-operator mondoo-operator-controller-manager
2023-10-16T10:29:20.691Z	DEBUG	utils/executor.go:271	Running command: kubectl get deployment -o yaml -n mondoo-operator mondoo-client-scan-api
2023-10-16T10:29:20.752Z	DEBUG	utils/executor.go:271	Running command: kubectl get mondooauditconfig -o yaml -n mondoo-operator mondoo-client
2023-10-16T10:29:20.815Z	INFO	utils/k8s_helper.go:289	Gathering events in namespace "mondoo-operator"
2023-10-16T10:29:20.816Z	DEBUG	utils/k8s_helper.go:442	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/mondoo-operator_events_TestE2e_NodeScan_1697452160.log
2023-10-16T10:29:20.816Z	DEBUG	utils/executor.go:271	Running command: kubectl get events -n mondoo-operator
2023-10-16T10:29:20.897Z	INFO	utils/k8s_helper.go:318	Resource k8s.mondoo.com/v1alpha2, Kind=MondooAuditConfig mondoo-operator/mondoo-client still exists.
2023-10-16T10:29:22.901Z	INFO	utils/k8s_helper.go:322	Resource k8s.mondoo.com/v1alpha2, Kind=MondooAuditConfig mondoo-operator/mondoo-client deleted.
2023-10-16T10:29:22.907Z	INFO	integration/e2e_test.go:94	Waiting for cleanup of the test cluster.
2023-10-16T10:29:22.912Z	INFO	integration/e2e_test.go:108	Cleanup done. Cluster should be good to go for the next test.
{"level":"trace","time":"2023-10-16T10:29:22Z","message":"curl -X 'POST' -d '{\"spaceMrn\":\"//captain.api.mondoo.app/spaces/k8s-operator-edge-testing\",\"managed_by\":\"mondoo-operator-595cdd01-b435-4117-9aca-43857d16ef0a\"}' -H 'Accept: application/json' -H 'Content-Length: 140' -H 'Content-Type: application/json' 'https://api.edge.mondoo.com/AssetStore/DeleteAssets'"}
2023-10-16T10:29:23.039Z	INFO	utils/k8s_helper.go:237	Gathering logs for all pods in namespace mondoo-operator
2023-10-16T10:29:23.043Z	DEBUG	utils/k8s_helper.go:442	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/TestE2eTestSuite_mondoo-operator_mondoo-operator-controller-manager-78f65dccb-64rw8_1697452163.log
2023-10-16T10:29:23.050Z	DEBUG	utils/k8s_helper.go:442	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/TestE2eTestSuite_mondoo-operator_mondoo-operator-controller-manager-78f65dccb-64rw8_previous_1697452163.log
2023-10-16T10:29:23.054Z	DEBUG	utils/executor.go:271	Running command: kubectl -n mondoo-operator logs mondoo-operator-controller-manager-78f65dccb-64rw8 -c manager
2023-10-16T10:29:23.128Z	INFO	installer/installer.go:124	Deleted Mondoo client secret mondoo-operator/mondoo-client.
2023-10-16T10:29:23.128Z	INFO	utils/manifest_utils.go:54	Reading file: /home/runner/work/mondoo-operator/mondoo-operator/mondoo-operator-manifests.yaml
2023-10-16T10:29:23.128Z	INFO	utils/exec_utils.go:45	Running kubectl [delete --ignore-not-found=true -f -]
namespace "mondoo-operator" deleted
customresourcedefinition.apiextensions.k8s.io "mondooauditconfigs.k8s.mondoo.com" deleted
customresourcedefinition.apiextensions.k8s.io "mondoooperatorconfigs.k8s.mondoo.com" deleted
serviceaccount "mondoo-operator-controller-manager" deleted
serviceaccount "mondoo-operator-k8s-resources-scanning" deleted
serviceaccount "mondoo-operator-webhook" deleted
role.rbac.authorization.k8s.io "mondoo-operator-leader-election-role" deleted
clusterrole.rbac.authorization.k8s.io "mondoo-operator-k8s-resources-scanning" deleted
clusterrole.rbac.authorization.k8s.io "mondoo-operator-manager-role" deleted
rolebinding.rbac.authorization.k8s.io "mondoo-operator-leader-election-rolebinding" deleted
clusterrolebinding.rbac.authorization.k8s.io "mondoo-operator-k8s-resources-scanning" deleted
clusterrolebinding.rbac.authorization.k8s.io "mondoo-operator-manager-rolebinding" deleted
configmap "mondoo-operator-manager-config" deleted
service "mondoo-operator-controller-manager-metrics-service" deleted
deployment.apps "mondoo-operator-controller-manager" deleted
{"level":"trace","time":"2023-10-16T10:29:29Z","message":"curl -X 'POST' -d '{\"mrn\":\"//integration.api.mondoo.app/spaces/k8s-operator-edge-testing/integrations/2WqF0u9dvQjDstDLlBB8RfAN6m8\"}' -H 'Accept: application/json' -H 'Content-Length: 112' -H 'Content-Type: application/json' 'https://api.edge.mondoo.com/IntegrationsManager/Delete'"}
    --- FAIL: TestE2eTestSuite/TestE2e_NodeScan (165.64s)

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 ► TestE2eTestSuite

Failed test found in:
  integration-tests-k3d-v1.24.16.xml
Error:
  === RUN   TestE2eTestSuite
Raw output
=== RUN   TestE2eTestSuite
{"level":"debug","kid":"//agents.api.mondoo.app/spaces/k8s-operator-edge-testing/serviceaccounts/2IYE5BU3QiNtdjidbRDwyQgXQjd","issuer":"mondoo/ams","time":"2023-10-16T10:26:20Z","message":"initialize client authentication"}
{"level":"trace","time":"2023-10-16T10:26:20Z","message":"curl -X 'POST' -d '{\"space_mrn\":\"//captain.api.mondoo.app/spaces/k8s-operator-edge-testing\",\"name\":\"test-integration-595cdd01-b435-4117-9aca-43857d16ef0a\",\"configuration_input\":{\"ConfigOptions\":{\"K8SOptions\":{\"scan_nodes\":true,\"scan_workloads\":true}}},\"type\":2}' -H 'Accept: application/json' -H 'Content-Length: 242' -H 'Content-Type: application/json' 'https://api.edge.mondoo.com/IntegrationsManager/Create'"}
{"level":"trace","time":"2023-10-16T10:26:23Z","message":"curl -X 'POST' -d '{\"mrn\":\"//integration.api.mondoo.app/spaces/k8s-operator-edge-testing/integrations/2WqF0u9dvQjDstDLlBB8RfAN6m8\"}' -H 'Accept: application/json' -H 'Content-Length: 112' -H 'Content-Type: application/json' 'https://api.edge.mondoo.com/IntegrationsManager/GetTokenForIntegration'"}
2023-10-16T10:26:24.092Z	INFO	installer/installer.go:85	Installing Mondoo operator with local manifest
2023-10-16T10:26:24.092Z	INFO	utils/manifest_utils.go:54	Reading file: /home/runner/work/mondoo-operator/mondoo-operator/mondoo-operator-manifests.yaml
2023-10-16T10:26:24.093Z	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-16T10:26:25.358Z	INFO	installer/installer.go:166	Created Мondoo client secret "mondoo-token".
2023-10-16T10:26:37.400Z	INFO	installer/installer.go:101	Mondoo operator is ready.
--- FAIL: TestE2eTestSuite (188.35s)

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 ► TestE2eTestSuite/TestE2e_NodeScan

Failed test found in:
  integration-tests-k3d-v1.26.7.xml
Error:
  === RUN   TestE2eTestSuite/TestE2e_NodeScan
Raw output
=== RUN   TestE2eTestSuite/TestE2e_NodeScan
2023-10-16T10:26:42.720Z	INFO	integration/e2e_test.go:147	Create an audit config that enables only nodes scanning.
2023-10-16T10:26:42.726Z	INFO	integration/e2e_test.go:152	Verify the nodes scanning cron jobs are created.
    e2e_test.go:188: 
        	Error Trace:	/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/e2e_test.go:188
        	            				/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/e2e_test.go:117
        	Error:      	Should be true
        	Test:       	TestE2eTestSuite/TestE2e_NodeScan
        	Messages:   	Not all CronJobs have run successfully.
{"level":"trace","time":"2023-10-16T10:29:25Z","message":"curl -X 'POST' -d '{\"space_mrn\":\"//captain.api.mondoo.app/spaces/k8s-operator-edge-testing\",\"query_terms\":[\"{ \\\"mondoo.com/integration-mrn\\\": \\\"//integration.api.mondoo.app/spaces/k8s-operator-edge-testing/integrations/2WqF19RJoe021g1CKw2ZSoJDomq\\\" }\"]}' -H 'Accept: application/json' -H 'Content-Length: 234' -H 'Content-Type: application/json' 'https://api.edge.mondoo.com/AssetStore/ListAssets'"}
    e2e_test.go:134: 
        	Error Trace:	/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/e2e_test.go:134
        	Error:      	elements differ
        	            	
        	            	extra elements in list A:
        	            	([]interface {}) (len=1) {
        	            	 (string) (len=24) "k3d-k3s-default-server-0"
        	            	}
        	            	
        	            	
        	            	listA:
        	            	([]string) (len=1) {
        	            	 (string) (len=24) "k3d-k3s-default-server-0"
        	            	}
        	            	
        	            	
        	            	listB:
        	            	([]string) {
        	            	}
        	Test:       	TestE2eTestSuite/TestE2e_NodeScan
        	Messages:   	Node names do not match
2023-10-16T10:29:25.296Z	INFO	installer/installer.go:174	gathering all logs from the test
2023-10-16T10:29:25.296Z	INFO	utils/k8s_helper.go:237	Gathering logs for all pods in namespace mondoo-operator
2023-10-16T10:29:25.300Z	DEBUG	utils/k8s_helper.go:442	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/TestE2e_NodeScan_mondoo-operator_mondoo-operator-controller-manager-5946564f6f-brr7k_1697452165.log
2023-10-16T10:29:25.309Z	DEBUG	utils/k8s_helper.go:442	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/TestE2e_NodeScan_mondoo-operator_mondoo-operator-controller-manager-5946564f6f-brr7k_previous_1697452165.log
2023-10-16T10:29:25.313Z	DEBUG	utils/executor.go:271	Running command: kubectl -n mondoo-operator logs mondoo-operator-controller-manager-5946564f6f-brr7k -c manager
2023-10-16T10:29:25.375Z	DEBUG	utils/k8s_helper.go:442	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/TestE2e_NodeScan_mondoo-operator_mondoo-client-scan-api-5599d9bf6d-w8kmf_1697452165.log
2023-10-16T10:29:25.379Z	DEBUG	utils/k8s_helper.go:442	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/TestE2e_NodeScan_mondoo-operator_mondoo-client-node-gc-28290867-9g7w7_1697452165.log
2023-10-16T10:29:25.383Z	DEBUG	utils/k8s_helper.go:442	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/TestE2e_NodeScan_mondoo-operator_mondoo-client-node-k3d-k3s-default-server-0-28290867-kn7zv_1697452165.log
2023-10-16T10:29:25.387Z	INFO	utils/k8s_helper.go:248	Gathering pod describe for all pods in namespace mondoo-operator
2023-10-16T10:29:25.391Z	DEBUG	utils/k8s_helper.go:442	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/mondoo-operator_describe_TestE2e_NodeScan_1697452165.log
2023-10-16T10:29:25.391Z	DEBUG	utils/executor.go:271	Running command: kubectl get pod -o yaml -n mondoo-operator mondoo-operator-controller-manager-5946564f6f-brr7k
2023-10-16T10:29:25.443Z	DEBUG	utils/executor.go:271	Running command: kubectl get pod -o yaml -n mondoo-operator mondoo-client-scan-api-5599d9bf6d-w8kmf
2023-10-16T10:29:25.499Z	DEBUG	utils/executor.go:271	Running command: kubectl get pod -o yaml -n mondoo-operator mondoo-client-node-gc-28290867-9g7w7
2023-10-16T10:29:25.559Z	DEBUG	utils/executor.go:271	Running command: kubectl get pod -o yaml -n mondoo-operator mondoo-client-node-k3d-k3s-default-server-0-28290867-kn7zv
2023-10-16T10:29:25.615Z	DEBUG	utils/executor.go:271	Running command: kubectl get deployment -o yaml -n mondoo-operator mondoo-operator-controller-manager
2023-10-16T10:29:25.669Z	DEBUG	utils/executor.go:271	Running command: kubectl get deployment -o yaml -n mondoo-operator mondoo-client-scan-api
2023-10-16T10:29:25.727Z	DEBUG	utils/executor.go:271	Running command: kubectl get mondooauditconfig -o yaml -n mondoo-operator mondoo-client
2023-10-16T10:29:25.781Z	INFO	utils/k8s_helper.go:289	Gathering events in namespace "mondoo-operator"
2023-10-16T10:29:25.781Z	DEBUG	utils/k8s_helper.go:442	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/mondoo-operator_events_TestE2e_NodeScan_1697452165.log
2023-10-16T10:29:25.781Z	DEBUG	utils/executor.go:271	Running command: kubectl get events -n mondoo-operator
2023-10-16T10:29:25.851Z	INFO	utils/k8s_helper.go:318	Resource k8s.mondoo.com/v1alpha2, Kind=MondooAuditConfig mondoo-operator/mondoo-client still exists.
2023-10-16T10:29:27.855Z	INFO	utils/k8s_helper.go:322	Resource k8s.mondoo.com/v1alpha2, Kind=MondooAuditConfig mondoo-operator/mondoo-client deleted.
2023-10-16T10:29:27.860Z	INFO	integration/e2e_test.go:94	Waiting for cleanup of the test cluster.
2023-10-16T10:29:27.864Z	INFO	integration/e2e_test.go:108	Cleanup done. Cluster should be good to go for the next test.
{"level":"trace","time":"2023-10-16T10:29:27Z","message":"curl -X 'POST' -d '{\"spaceMrn\":\"//captain.api.mondoo.app/spaces/k8s-operator-edge-testing\",\"managed_by\":\"mondoo-operator-a69af9e3-ae1d-4bf8-93ca-21a8bc6b6253\"}' -H 'Accept: application/json' -H 'Content-Length: 140' -H 'Content-Type: application/json' 'https://api.edge.mondoo.com/AssetStore/DeleteAssets'"}
2023-10-16T10:29:28.020Z	INFO	utils/k8s_helper.go:237	Gathering logs for all pods in namespace mondoo-operator
2023-10-16T10:29:28.023Z	DEBUG	utils/k8s_helper.go:442	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/TestE2eTestSuite_mondoo-operator_mondoo-operator-controller-manager-5946564f6f-brr7k_1697452168.log
2023-10-16T10:29:28.029Z	DEBUG	utils/k8s_helper.go:442	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/TestE2eTestSuite_mondoo-operator_mondoo-operator-controller-manager-5946564f6f-brr7k_previous_1697452168.log
2023-10-16T10:29:28.032Z	DEBUG	utils/executor.go:271	Running command: kubectl -n mondoo-operator logs mondoo-operator-controller-manager-5946564f6f-brr7k -c manager
2023-10-16T10:29:28.098Z	INFO	installer/installer.go:124	Deleted Mondoo client secret mondoo-operator/mondoo-client.
2023-10-16T10:29:28.098Z	INFO	utils/manifest_utils.go:54	Reading file: /home/runner/work/mondoo-operator/mondoo-operator/mondoo-operator-manifests.yaml
2023-10-16T10:29:28.098Z	INFO	utils/exec_utils.go:45	Running kubectl [delete --ignore-not-found=true -f -]
namespace "mondoo-operator" deleted
customresourcedefinition.apiextensions.k8s.io "mondooauditconfigs.k8s.mondoo.com" deleted
customresourcedefinition.apiextensions.k8s.io "mondoooperatorconfigs.k8s.mondoo.com" deleted
serviceaccount "mondoo-operator-controller-manager" deleted
serviceaccount "mondoo-operator-k8s-resources-scanning" deleted
serviceaccount "mondoo-operator-webhook" deleted
role.rbac.authorization.k8s.io "mondoo-operator-leader-election-role" deleted
clusterrole.rbac.authorization.k8s.io "mondoo-operator-k8s-resources-scanning" deleted
clusterrole.rbac.authorization.k8s.io "mondoo-operator-manager-role" deleted
rolebinding.rbac.authorization.k8s.io "mondoo-operator-leader-election-rolebinding" deleted
clusterrolebinding.rbac.authorization.k8s.io "mondoo-operator-k8s-resources-scanning" deleted
clusterrolebinding.rbac.authorization.k8s.io "mondoo-operator-manager-rolebinding" deleted
configmap "mondoo-operator-manager-config" deleted
service "mondoo-operator-controller-manager-metrics-service" deleted
deployment.apps "mondoo-operator-controller-manager" deleted
{"level":"trace","time":"2023-10-16T10:29:34Z","message":"curl -X 'POST' -d '{\"mrn\":\"//integration.api.mondoo.app/spaces/k8s-operator-edge-testing/integrations/2WqF19RJoe021g1CKw2ZSoJDomq\"}' -H 'Accept: application/json' -H 'Content-Length: 112' -H 'Content-Type: application/json' 'https://api.edge.mondoo.com/IntegrationsManager/Delete'"}
    --- FAIL: TestE2eTestSuite/TestE2e_NodeScan (165.30s)

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 ► TestE2eTestSuite

Failed test found in:
  integration-tests-k3d-v1.26.7.xml
Error:
  === RUN   TestE2eTestSuite
Raw output
=== RUN   TestE2eTestSuite
{"level":"debug","kid":"//agents.api.mondoo.app/spaces/k8s-operator-edge-testing/serviceaccounts/2IYE5BU3QiNtdjidbRDwyQgXQjd","issuer":"mondoo/ams","time":"2023-10-16T10:26:24Z","message":"initialize client authentication"}
{"level":"trace","time":"2023-10-16T10:26:24Z","message":"curl -X 'POST' -d '{\"space_mrn\":\"//captain.api.mondoo.app/spaces/k8s-operator-edge-testing\",\"name\":\"test-integration-a69af9e3-ae1d-4bf8-93ca-21a8bc6b6253\",\"configuration_input\":{\"ConfigOptions\":{\"K8SOptions\":{\"scan_nodes\":true,\"scan_workloads\":true}}},\"type\":2}' -H 'Accept: application/json' -H 'Content-Length: 242' -H 'Content-Type: application/json' 'https://api.edge.mondoo.com/IntegrationsManager/Create'"}
{"level":"trace","time":"2023-10-16T10:26:26Z","message":"curl -X 'POST' -d '{\"mrn\":\"//integration.api.mondoo.app/spaces/k8s-operator-edge-testing/integrations/2WqF19RJoe021g1CKw2ZSoJDomq\"}' -H 'Accept: application/json' -H 'Content-Length: 112' -H 'Content-Type: application/json' 'https://api.edge.mondoo.com/IntegrationsManager/GetTokenForIntegration'"}
2023-10-16T10:26:29.556Z	INFO	installer/installer.go:85	Installing Mondoo operator with local manifest
2023-10-16T10:26:29.556Z	INFO	utils/manifest_utils.go:54	Reading file: /home/runner/work/mondoo-operator/mondoo-operator/mondoo-operator-manifests.yaml
2023-10-16T10:26:29.556Z	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-16T10:26:30.681Z	INFO	installer/installer.go:166	Created Мondoo client secret "mondoo-token".
2023-10-16T10:26:42.716Z	INFO	installer/installer.go:101	Mondoo operator is ready.
--- FAIL: TestE2eTestSuite (189.40s)

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

See this annotation in the file changed.

@github-actions github-actions / Report test results

go.mondoo.com/mondoo-operator/tests/integration ► TestE2eTestSuite/TestE2e_NodeScan

Failed test found in:
  integration-tests-k3d-v1.27.4.xml
Error:
  === RUN   TestE2eTestSuite/TestE2e_NodeScan
Raw output
=== RUN   TestE2eTestSuite/TestE2e_NodeScan
2023-10-16T10:26:37.713Z	INFO	integration/e2e_test.go:147	Create an audit config that enables only nodes scanning.
2023-10-16T10:26:37.721Z	INFO	integration/e2e_test.go:152	Verify the nodes scanning cron jobs are created.
    e2e_test.go:188: 
        	Error Trace:	/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/e2e_test.go:188
        	            				/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/e2e_test.go:117
        	Error:      	Should be true
        	Test:       	TestE2eTestSuite/TestE2e_NodeScan
        	Messages:   	Not all CronJobs have run successfully.
{"level":"trace","time":"2023-10-16T10:29:22Z","message":"curl -X 'POST' -d '{\"space_mrn\":\"//captain.api.mondoo.app/spaces/k8s-operator-edge-testing\",\"query_terms\":[\"{ \\\"mondoo.com/integration-mrn\\\": \\\"//integration.api.mondoo.app/spaces/k8s-operator-edge-testing/integrations/2WqF0wPFQASl1xbMinpR8Wb0X6Z\\\" }\"]}' -H 'Accept: application/json' -H 'Content-Length: 234' -H 'Content-Type: application/json' 'https://api.edge.mondoo.com/AssetStore/ListAssets'"}
    e2e_test.go:134: 
        	Error Trace:	/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/e2e_test.go:134
        	Error:      	elements differ
        	            	
        	            	extra elements in list A:
        	            	([]interface {}) (len=1) {
        	            	 (string) (len=24) "k3d-k3s-default-server-0"
        	            	}
        	            	
        	            	
        	            	listA:
        	            	([]string) (len=1) {
        	            	 (string) (len=24) "k3d-k3s-default-server-0"
        	            	}
        	            	
        	            	
        	            	listB:
        	            	([]string) {
        	            	}
        	Test:       	TestE2eTestSuite/TestE2e_NodeScan
        	Messages:   	Node names do not match
2023-10-16T10:29:22.159Z	INFO	installer/installer.go:174	gathering all logs from the test
2023-10-16T10:29:22.159Z	INFO	utils/k8s_helper.go:237	Gathering logs for all pods in namespace mondoo-operator
2023-10-16T10:29:22.164Z	DEBUG	utils/k8s_helper.go:442	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/TestE2e_NodeScan_mondoo-operator_mondoo-operator-controller-manager-6c9db98fdf-c7f9c_1697452162.log
2023-10-16T10:29:22.175Z	DEBUG	utils/k8s_helper.go:442	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/TestE2e_NodeScan_mondoo-operator_mondoo-operator-controller-manager-6c9db98fdf-c7f9c_previous_1697452162.log
2023-10-16T10:29:22.178Z	DEBUG	utils/executor.go:271	Running command: kubectl -n mondoo-operator logs mondoo-operator-controller-manager-6c9db98fdf-c7f9c -c manager
2023-10-16T10:29:22.239Z	DEBUG	utils/k8s_helper.go:442	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/TestE2e_NodeScan_mondoo-operator_mondoo-client-scan-api-c59cbbcd8-4g8xt_1697452162.log
2023-10-16T10:29:22.244Z	DEBUG	utils/k8s_helper.go:442	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/TestE2e_NodeScan_mondoo-operator_mondoo-client-node-gc-28290867-qdl9w_1697452162.log
2023-10-16T10:29:22.248Z	DEBUG	utils/k8s_helper.go:442	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/TestE2e_NodeScan_mondoo-operator_mondoo-client-node-k3d-k3s-default-server-0-28290867-p4rz8_1697452162.log
2023-10-16T10:29:22.253Z	INFO	utils/k8s_helper.go:248	Gathering pod describe for all pods in namespace mondoo-operator
2023-10-16T10:29:22.257Z	DEBUG	utils/k8s_helper.go:442	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/mondoo-operator_describe_TestE2e_NodeScan_1697452162.log
2023-10-16T10:29:22.257Z	DEBUG	utils/executor.go:271	Running command: kubectl get pod -o yaml -n mondoo-operator mondoo-operator-controller-manager-6c9db98fdf-c7f9c
2023-10-16T10:29:22.314Z	DEBUG	utils/executor.go:271	Running command: kubectl get pod -o yaml -n mondoo-operator mondoo-client-scan-api-c59cbbcd8-4g8xt
2023-10-16T10:29:22.372Z	DEBUG	utils/executor.go:271	Running command: kubectl get pod -o yaml -n mondoo-operator mondoo-client-node-gc-28290867-qdl9w
2023-10-16T10:29:22.431Z	DEBUG	utils/executor.go:271	Running command: kubectl get pod -o yaml -n mondoo-operator mondoo-client-node-k3d-k3s-default-server-0-28290867-p4rz8
2023-10-16T10:29:22.490Z	DEBUG	utils/executor.go:271	Running command: kubectl get deployment -o yaml -n mondoo-operator mondoo-operator-controller-manager
2023-10-16T10:29:22.547Z	DEBUG	utils/executor.go:271	Running command: kubectl get deployment -o yaml -n mondoo-operator mondoo-client-scan-api
2023-10-16T10:29:22.614Z	DEBUG	utils/executor.go:271	Running command: kubectl get mondooauditconfig -o yaml -n mondoo-operator mondoo-client
2023-10-16T10:29:22.669Z	INFO	utils/k8s_helper.go:289	Gathering events in namespace "mondoo-operator"
2023-10-16T10:29:22.669Z	DEBUG	utils/k8s_helper.go:442	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/mondoo-operator_events_TestE2e_NodeScan_1697452162.log
2023-10-16T10:29:22.669Z	DEBUG	utils/executor.go:271	Running command: kubectl get events -n mondoo-operator
2023-10-16T10:29:22.743Z	INFO	utils/k8s_helper.go:318	Resource k8s.mondoo.com/v1alpha2, Kind=MondooAuditConfig mondoo-operator/mondoo-client still exists.
2023-10-16T10:29:24.757Z	INFO	utils/k8s_helper.go:322	Resource k8s.mondoo.com/v1alpha2, Kind=MondooAuditConfig mondoo-operator/mondoo-client deleted.
2023-10-16T10:29:24.764Z	INFO	integration/e2e_test.go:94	Waiting for cleanup of the test cluster.
2023-10-16T10:29:24.776Z	INFO	integration/e2e_test.go:108	Cleanup done. Cluster should be good to go for the next test.
{"level":"trace","time":"2023-10-16T10:29:24Z","message":"curl -X 'POST' -d '{\"spaceMrn\":\"//captain.api.mondoo.app/spaces/k8s-operator-edge-testing\",\"managed_by\":\"mondoo-operator-40be39b5-a58d-4d7d-9844-bf6780313d1b\"}' -H 'Accept: application/json' -H 'Content-Length: 140' -H 'Content-Type: application/json' 'https://api.edge.mondoo.com/AssetStore/DeleteAssets'"}
2023-10-16T10:29:24.859Z	INFO	utils/k8s_helper.go:237	Gathering logs for all pods in namespace mondoo-operator
2023-10-16T10:29:24.863Z	DEBUG	utils/k8s_helper.go:442	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/TestE2eTestSuite_mondoo-operator_mondoo-operator-controller-manager-6c9db98fdf-c7f9c_1697452164.log
2023-10-16T10:29:24.871Z	DEBUG	utils/k8s_helper.go:442	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/TestE2eTestSuite_mondoo-operator_mondoo-operator-controller-manager-6c9db98fdf-c7f9c_previous_1697452164.log
2023-10-16T10:29:24.875Z	DEBUG	utils/executor.go:271	Running command: kubectl -n mondoo-operator logs mondoo-operator-controller-manager-6c9db98fdf-c7f9c -c manager
2023-10-16T10:29:24.954Z	INFO	installer/installer.go:124	Deleted Mondoo client secret mondoo-operator/mondoo-client.
2023-10-16T10:29:24.954Z	INFO	utils/manifest_utils.go:54	Reading file: /home/runner/work/mondoo-operator/mondoo-operator/mondoo-operator-manifests.yaml
2023-10-16T10:29:24.954Z	INFO	utils/exec_utils.go:45	Running kubectl [delete --ignore-not-found=true -f -]
namespace "mondoo-operator" deleted
customresourcedefinition.apiextensions.k8s.io "mondooauditconfigs.k8s.mondoo.com" deleted
customresourcedefinition.apiextensions.k8s.io "mondoooperatorconfigs.k8s.mondoo.com" deleted
serviceaccount "mondoo-operator-controller-manager" deleted
serviceaccount "mondoo-operator-k8s-resources-scanning" deleted
serviceaccount "mondoo-operator-webhook" deleted
role.rbac.authorization.k8s.io "mondoo-operator-leader-election-role" deleted
clusterrole.rbac.authorization.k8s.io "mondoo-operator-k8s-resources-scanning" deleted
clusterrole.rbac.authorization.k8s.io "mondoo-operator-manager-role" deleted
rolebinding.rbac.authorization.k8s.io "mondoo-operator-leader-election-rolebinding" deleted
clusterrolebinding.rbac.authorization.k8s.io "mondoo-operator-k8s-resources-scanning" deleted
clusterrolebinding.rbac.authorization.k8s.io "mondoo-operator-manager-rolebinding" deleted
configmap "mondoo-operator-manager-config" deleted
service "mondoo-operator-controller-manager-metrics-service" deleted
deployment.apps "mondoo-operator-controller-manager" deleted
{"level":"trace","time":"2023-10-16T10:29:31Z","message":"curl -X 'POST' -d '{\"mrn\":\"//integration.api.mondoo.app/spaces/k8s-operator-edge-testing/integrations/2WqF0wPFQASl1xbMinpR8Wb0X6Z\"}' -H 'Accept: application/json' -H 'Content-Length: 112' -H 'Content-Type: application/json' 'https://api.edge.mondoo.com/IntegrationsManager/Delete'"}
    --- FAIL: TestE2eTestSuite/TestE2e_NodeScan (167.15s)

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

See this annotation in the file changed.

@github-actions github-actions / Report test results

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

Failed test found in:
  integration-tests-k3d-v1.27.4.xml
Error:
  === RUN   TestE2eTestSuite
Raw output
=== RUN   TestE2eTestSuite
{"level":"debug","kid":"//agents.api.mondoo.app/spaces/k8s-operator-edge-testing/serviceaccounts/2IYE5BU3QiNtdjidbRDwyQgXQjd","issuer":"mondoo/ams","time":"2023-10-16T10:26:22Z","message":"initialize client authentication"}
{"level":"trace","time":"2023-10-16T10:26:22Z","message":"curl -X 'POST' -d '{\"space_mrn\":\"//captain.api.mondoo.app/spaces/k8s-operator-edge-testing\",\"name\":\"test-integration-40be39b5-a58d-4d7d-9844-bf6780313d1b\",\"configuration_input\":{\"ConfigOptions\":{\"K8SOptions\":{\"scan_nodes\":true,\"scan_workloads\":true}}},\"type\":2}' -H 'Accept: application/json' -H 'Content-Length: 242' -H 'Content-Type: application/json' 'https://api.edge.mondoo.com/IntegrationsManager/Create'"}
{"level":"trace","time":"2023-10-16T10:26:23Z","message":"curl -X 'POST' -d '{\"mrn\":\"//integration.api.mondoo.app/spaces/k8s-operator-edge-testing/integrations/2WqF0wPFQASl1xbMinpR8Wb0X6Z\"}' -H 'Accept: application/json' -H 'Content-Length: 112' -H 'Content-Type: application/json' 'https://api.edge.mondoo.com/IntegrationsManager/GetTokenForIntegration'"}
2023-10-16T10:26:24.609Z	INFO	installer/installer.go:85	Installing Mondoo operator with local manifest
2023-10-16T10:26:24.609Z	INFO	utils/manifest_utils.go:54	Reading file: /home/runner/work/mondoo-operator/mondoo-operator/mondoo-operator-manifests.yaml
2023-10-16T10:26:24.609Z	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-16T10:26:25.678Z	INFO	installer/installer.go:166	Created Мondoo client secret "mondoo-token".
2023-10-16T10:26:37.708Z	INFO	installer/installer.go:101	Mondoo operator is ready.
--- FAIL: TestE2eTestSuite (188.65s)

Check failure on line 0 in integration-tests-minikube-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 ► TestE2eTestSuite/TestE2e_NodeScan

Failed test found in:
  integration-tests-minikube-v1.25.12.xml
Error:
  === RUN   TestE2eTestSuite/TestE2e_NodeScan
Raw output
=== RUN   TestE2eTestSuite/TestE2e_NodeScan
2023-10-16T10:29:41.102Z	INFO	integration/e2e_test.go:147	Create an audit config that enables only nodes scanning.
2023-10-16T10:29:41.109Z	INFO	integration/e2e_test.go:152	Verify the nodes scanning cron jobs are created.
{"level":"trace","time":"2023-10-16T10:30:47Z","message":"curl -X 'POST' -d '{\"space_mrn\":\"//captain.api.mondoo.app/spaces/k8s-operator-edge-testing\",\"query_terms\":[\"{ \\\"mondoo.com/integration-mrn\\\": \\\"//integration.api.mondoo.app/spaces/k8s-operator-edge-testing/integrations/2WqFO6ZWJleTJqMMX9iZ6WEYlkm\\\" }\"]}' -H 'Accept: application/json' -H 'Content-Length: 234' -H 'Content-Type: application/json' 'https://api.edge.mondoo.com/AssetStore/ListAssets'"}
{"level":"trace","time":"2023-10-16T10:30:49Z","message":"curl -X 'POST' -d '{\"entity_mrn\":\"//assets.api.mondoo.app/spaces/k8s-operator-edge-testing/assets/2WqFSRUe6zz9rctMF2B629Mzo04\"}' -H 'Accept: application/json' -H 'Content-Length: 108' -H 'Content-Type: application/json' 'https://api.edge.mondoo.com/PolicyResolver/GetReport'"}
    e2e_test.go:128: 
        	Error Trace:	/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/e2e_test.go:128
        	Error:      	Received unexpected error:
        	            	failed to do request: Post "https://api.edge.mondoo.com/PolicyResolver/GetReport": context deadline exceeded (Client.Timeout exceeded while awaiting headers)
        	            	(1) attached stack trace
        	            	  -- stack trace:
        	            	  | go.mondoo.com/ranger-rpc.(*Client).DoClientRequest
        	            	  | 	/home/runner/go/pkg/mod/go.mondoo.com/[email protected]/client.go:88
        	            	  | go.mondoo.com/cnspec/policy.(*PolicyResolverClient).GetReport
        	            	  | 	/home/runner/go/pkg/mod/go.mondoo.com/[email protected]/policy/cnspec_policy.ranger.go:512
        	            	  | go.mondoo.com/mondoo-operator/tests/framework/nexus.(*Space).ListAssetsWithScores
        	            	  | 	/home/runner/work/mondoo-operator/mondoo-operator/tests/framework/nexus/space.go:64
        	            	  | go.mondoo.com/mondoo-operator/tests/integration.(*E2eTestSuite).TestE2e_NodeScan
        	            	  | 	/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/e2e_test.go:127
        	            	  | reflect.Value.call
        	            	  | 	/opt/hostedtoolcache/go/1.21.3/x64/src/reflect/value.go:596
        	            	  | reflect.Value.Call
        	            	  | 	/opt/hostedtoolcache/go/1.21.3/x64/src/reflect/value.go:380
        	            	  | github.com/stretchr/testify/suite.Run.func1
        	            	  | 	/home/runner/go/pkg/mod/github.com/stretchr/[email protected]/suite/suite.go:197
        	            	  | testing.tRunner
        	            	  | 	/opt/hostedtoolcache/go/1.21.3/x64/src/testing/testing.go:1595
        	            	  | runtime.goexit
        	            	  | 	/opt/hostedtoolcache/go/1.21.3/x64/src/runtime/asm_amd64.s:1650
        	            	Wraps: (2) failed to do request
        	            	Wraps: (3) Post "https://api.edge.mondoo.com/PolicyResolver/GetReport"
        	            	Wraps: (4) context deadline exceeded (Client.Timeout exceeded while awaiting headers)
        	            	Error types: (1) *withstack.withStack (2) *errutil.withPrefix (3) *url.Error (4) *http.httpError
        	Test:       	TestE2eTestSuite/TestE2e_NodeScan
        	Messages:   	Failed to list assets
    e2e_test.go:134: 
        	Error Trace:	/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/e2e_test.go:134
        	Error:      	elements differ
        	            	
        	            	extra elements in list A:
        	            	([]interface {}) (len=1) {
        	            	 (string) (len=8) "minikube"
        	            	}
        	            	
        	            	
        	            	listA:
        	            	([]string) (len=1) {
        	            	 (string) (len=8) "minikube"
        	            	}
        	            	
        	            	
        	            	listB:
        	            	([]string) {
        	            	}
        	Test:       	TestE2eTestSuite/TestE2e_NodeScan
        	Messages:   	Node names do not match
2023-10-16T10:31:19.777Z	INFO	installer/installer.go:174	gathering all logs from the test
2023-10-16T10:31:19.777Z	INFO	utils/k8s_helper.go:237	Gathering logs for all pods in namespace mondoo-operator
2023-10-16T10:31:19.785Z	DEBUG	utils/k8s_helper.go:442	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/TestE2e_NodeScan_mondoo-operator_mondoo-client-node-gc-28290870-k76kj_1697452279.log
2023-10-16T10:31:19.800Z	DEBUG	utils/k8s_helper.go:442	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/TestE2e_NodeScan_mondoo-operator_mondoo-client-node-minikube-28290870-hswtf_1697452279.log
2023-10-16T10:31:19.812Z	DEBUG	utils/k8s_helper.go:442	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/TestE2e_NodeScan_mondoo-operator_mondoo-client-scan-api-7c8d6f5654-dkt5f_1697452279.log
2023-10-16T10:31:19.819Z	DEBUG	utils/k8s_helper.go:442	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/TestE2e_NodeScan_mondoo-operator_mondoo-operator-controller-manager-d95cd58bf-2lhcw_1697452279.log
2023-10-16T10:31:19.828Z	DEBUG	utils/k8s_helper.go:442	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/TestE2e_NodeScan_mondoo-operator_mondoo-operator-controller-manager-d95cd58bf-2lhcw_previous_1697452279.log
2023-10-16T10:31:19.833Z	DEBUG	utils/executor.go:271	Running command: kubectl -n mondoo-operator logs mondoo-operator-controller-manager-d95cd58bf-2lhcw -c manager
2023-10-16T10:31:19.930Z	INFO	utils/k8s_helper.go:248	Gathering pod describe for all pods in namespace mondoo-operator
2023-10-16T10:31:19.935Z	DEBUG	utils/k8s_helper.go:442	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/mondoo-operator_describe_TestE2e_NodeScan_1697452279.log
2023-10-16T10:31:19.935Z	DEBUG	utils/executor.go:271	Running command: kubectl get pod -o yaml -n mondoo-operator mondoo-client-node-gc-28290870-k76kj
2023-10-16T10:31:20.024Z	DEBUG	utils/executor.go:271	Running command: kubectl get pod -o yaml -n mondoo-operator mondoo-client-node-minikube-28290870-hswtf
2023-10-16T10:31:20.113Z	DEBUG	utils/executor.go:271	Running command: kubectl get pod -o yaml -n mondoo-operator mondoo-client-scan-api-7c8d6f5654-dkt5f
2023-10-16T10:31:20.215Z	DEBUG	utils/executor.go:271	Running command: kubectl get pod -o yaml -n mondoo-operator mondoo-operator-controller-manager-d95cd58bf-2lhcw
2023-10-16T10:31:20.308Z	DEBUG	utils/executor.go:271	Running command: kubectl get deployment -o yaml -n mondoo-operator mondoo-client-scan-api
2023-10-16T10:31:20.398Z	DEBUG	utils/executor.go:271	Running command: kubectl get deployment -o yaml -n mondoo-operator mondoo-operator-controller-manager
2023-10-16T10:31:20.488Z	DEBUG	utils/executor.go:271	Running command: kubectl get mondooauditconfig -o yaml -n mondoo-operator mondoo-client
2023-10-16T10:31:20.589Z	INFO	utils/k8s_helper.go:289	Gathering events in namespace "mondoo-operator"
2023-10-16T10:31:20.589Z	DEBUG	utils/k8s_helper.go:442	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/mondoo-operator_events_TestE2e_NodeScan_1697452280.log
2023-10-16T10:31:20.589Z	DEBUG	utils/executor.go:271	Running command: kubectl get events -n mondoo-operator
2023-10-16T10:31:20.711Z	INFO	utils/k8s_helper.go:318	Resource k8s.mondoo.com/v1alpha2, Kind=MondooAuditConfig mondoo-operator/mondoo-client still exists.
2023-10-16T10:31:22.714Z	INFO	utils/k8s_helper.go:322	Resource k8s.mondoo.com/v1alpha2, Kind=MondooAuditConfig mondoo-operator/mondoo-client deleted.
2023-10-16T10:31:22.718Z	INFO	integration/e2e_test.go:94	Waiting for cleanup of the test cluster.
2023-10-16T10:31:22.723Z	INFO	integration/e2e_test.go:108	Cleanup done. Cluster should be good to go for the next test.
{"level":"trace","time":"2023-10-16T10:31:22Z","message":"curl -X 'POST' -d '{\"spaceMrn\":\"//captain.api.mondoo.app/spaces/k8s-operator-edge-testing\",\"managed_by\":\"mondoo-operator-b2963872-2f22-4747-af38-fd1a976d8a59\"}' -H 'Accept: application/json' -H 'Content-Length: 140' -H 'Content-Type: application/json' 'https://api.edge.mondoo.com/AssetStore/DeleteAssets'"}
2023-10-16T10:31:25.360Z	INFO	utils/k8s_helper.go:237	Gathering logs for all pods in namespace mondoo-operator
2023-10-16T10:31:25.364Z	DEBUG	utils/k8s_helper.go:442	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/TestE2eTestSuite_mondoo-operator_mondoo-operator-controller-manager-d95cd58bf-2lhcw_1697452285.log
2023-10-16T10:31:25.375Z	DEBUG	utils/k8s_helper.go:442	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/TestE2eTestSuite_mondoo-operator_mondoo-operator-controller-manager-d95cd58bf-2lhcw_previous_1697452285.log
2023-10-16T10:31:25.380Z	DEBUG	utils/executor.go:271	Running command: kubectl -n mondoo-operator logs mondoo-operator-controller-manager-d95cd58bf-2lhcw -c manager
2023-10-16T10:31:25.483Z	INFO	installer/installer.go:124	Deleted Mondoo client secret mondoo-operator/mondoo-client.
2023-10-16T10:31:25.483Z	INFO	utils/manifest_utils.go:54	Reading file: /home/runner/work/mondoo-operator/mondoo-operator/mondoo-operator-manifests.yaml
2023-10-16T10:31:25.483Z	INFO	utils/exec_utils.go:45	Running kubectl [delete --ignore-not-found=true -f -]
namespace "mondoo-operator" deleted
customresourcedefinition.apiextensions.k8s.io "mondooauditconfigs.k8s.mondoo.com" deleted
customresourcedefinition.apiextensions.k8s.io "mondoooperatorconfigs.k8s.mondoo.com" deleted
serviceaccount "mondoo-operator-controller-manager" deleted
serviceaccount "mondoo-operator-k8s-resources-scanning" deleted
serviceaccount "mondoo-operator-webhook" deleted
role.rbac.authorization.k8s.io "mondoo-operator-leader-election-role" deleted
clusterrole.rbac.authorization.k8s.io "mondoo-operator-k8s-resources-scanning" deleted
clusterrole.rbac.authorization.k8s.io "mondoo-operator-manager-role" deleted
rolebinding.rbac.authorization.k8s.io "mondoo-operator-leader-election-rolebinding" deleted
clusterrolebinding.rbac.authorization.k8s.io "mondoo-operator-k8s-resources-scanning" deleted
clusterrolebinding.rbac.authorization.k8s.io "mondoo-operator-manager-rolebinding" deleted
configmap "mondoo-operator-manager-config" deleted
service "mondoo-operator-controller-manager-metrics-service" deleted
deployment.apps "mondoo-operator-controller-manager" deleted
{"level":"trace","time":"2023-10-16T10:31:31Z","message":"curl -X 'POST' -d '{\"mrn\":\"//integration.api.mondoo.app/spaces/k8s-operator-edge-testing/integrations/2WqFO6ZWJleTJqMMX9iZ6WEYlkm\"}' -H 'Accept: application/json' -H 'Content-Length: 112' -H 'Content-Type: application/json' 'https://api.edge.mondoo.com/IntegrationsManager/Delete'"}
    --- FAIL: TestE2eTestSuite/TestE2e_NodeScan (104.26s)

Check failure on line 0 in integration-tests-minikube-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 ► TestE2eTestSuite

Failed test found in:
  integration-tests-minikube-v1.25.12.xml
Error:
  === RUN   TestE2eTestSuite
Raw output
=== RUN   TestE2eTestSuite
{"level":"debug","kid":"//agents.api.mondoo.app/spaces/k8s-operator-edge-testing/serviceaccounts/2IYE5BU3QiNtdjidbRDwyQgXQjd","issuer":"mondoo/ams","time":"2023-10-16T10:29:26Z","message":"initialize client authentication"}
{"level":"trace","time":"2023-10-16T10:29:26Z","message":"curl -X 'POST' -d '{\"space_mrn\":\"//captain.api.mondoo.app/spaces/k8s-operator-edge-testing\",\"name\":\"test-integration-b2963872-2f22-4747-af38-fd1a976d8a59\",\"configuration_input\":{\"ConfigOptions\":{\"K8SOptions\":{\"scan_nodes\":true,\"scan_workloads\":true}}},\"type\":2}' -H 'Accept: application/json' -H 'Content-Length: 242' -H 'Content-Type: application/json' 'https://api.edge.mondoo.com/IntegrationsManager/Create'"}
{"level":"trace","time":"2023-10-16T10:29:27Z","message":"curl -X 'POST' -d '{\"mrn\":\"//integration.api.mondoo.app/spaces/k8s-operator-edge-testing/integrations/2WqFO6ZWJleTJqMMX9iZ6WEYlkm\"}' -H 'Accept: application/json' -H 'Content-Length: 112' -H 'Content-Type: application/json' 'https://api.edge.mondoo.com/IntegrationsManager/GetTokenForIntegration'"}
2023-10-16T10:29:27.357Z	INFO	installer/installer.go:85	Installing Mondoo operator with local manifest
2023-10-16T10:29:27.357Z	INFO	utils/manifest_utils.go:54	Reading file: /home/runner/work/mondoo-operator/mondoo-operator/mondoo-operator-manifests.yaml
2023-10-16T10:29:27.358Z	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-16T10:29:29.067Z	INFO	installer/installer.go:166	Created Мondoo client secret "mondoo-token".
2023-10-16T10:29:41.096Z	INFO	installer/installer.go:101	Mondoo operator is ready.
--- FAIL: TestE2eTestSuite (124.91s)

Check failure on line 0 in integration-tests-minikube-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 ► TestE2eTestSuite/TestE2e_NodeScan

Failed test found in:
  integration-tests-minikube-v1.26.7.xml
Error:
  === RUN   TestE2eTestSuite/TestE2e_NodeScan
Raw output
=== RUN   TestE2eTestSuite/TestE2e_NodeScan
2023-10-16T10:27:41.122Z	INFO	integration/e2e_test.go:147	Create an audit config that enables only nodes scanning.
2023-10-16T10:27:41.129Z	INFO	integration/e2e_test.go:152	Verify the nodes scanning cron jobs are created.
    e2e_test.go:188: 
        	Error Trace:	/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/e2e_test.go:188
        	            				/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/e2e_test.go:117
        	Error:      	Should be true
        	Test:       	TestE2eTestSuite/TestE2e_NodeScan
        	Messages:   	Not all CronJobs have run successfully.
{"level":"trace","time":"2023-10-16T10:30:21Z","message":"curl -X 'POST' -d '{\"space_mrn\":\"//captain.api.mondoo.app/spaces/k8s-operator-edge-testing\",\"query_terms\":[\"{ \\\"mondoo.com/integration-mrn\\\": \\\"//integration.api.mondoo.app/spaces/k8s-operator-edge-testing/integrations/2WqF8sCG4E3rz1SbMeDcSpMaVWT\\\" }\"]}' -H 'Accept: application/json' -H 'Content-Length: 234' -H 'Content-Type: application/json' 'https://api.edge.mondoo.com/AssetStore/ListAssets'"}
    e2e_test.go:134: 
        	Error Trace:	/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/e2e_test.go:134
        	Error:      	elements differ
        	            	
        	            	extra elements in list A:
        	            	([]interface {}) (len=1) {
        	            	 (string) (len=8) "minikube"
        	            	}
        	            	
        	            	
        	            	listA:
        	            	([]string) (len=1) {
        	            	 (string) (len=8) "minikube"
        	            	}
        	            	
        	            	
        	            	listB:
        	            	([]string) {
        	            	}
        	Test:       	TestE2eTestSuite/TestE2e_NodeScan
        	Messages:   	Node names do not match
2023-10-16T10:30:27.093Z	INFO	installer/installer.go:174	gathering all logs from the test
2023-10-16T10:30:27.093Z	INFO	utils/k8s_helper.go:237	Gathering logs for all pods in namespace mondoo-operator
2023-10-16T10:30:27.097Z	DEBUG	utils/k8s_helper.go:442	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/TestE2e_NodeScan_mondoo-operator_mondoo-client-node-gc-28290868-r4hf5_1697452227.log
2023-10-16T10:30:27.114Z	DEBUG	utils/k8s_helper.go:442	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/TestE2e_NodeScan_mondoo-operator_mondoo-client-node-minikube-28290868-sdts9_1697452227.log
2023-10-16T10:30:27.121Z	DEBUG	utils/k8s_helper.go:442	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/TestE2e_NodeScan_mondoo-operator_mondoo-client-scan-api-5f598ddf4d-5f5z8_1697452227.log
2023-10-16T10:30:27.128Z	DEBUG	utils/k8s_helper.go:442	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/TestE2e_NodeScan_mondoo-operator_mondoo-operator-controller-manager-5946564f6f-ck5pm_1697452227.log
2023-10-16T10:30:27.137Z	DEBUG	utils/k8s_helper.go:442	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/TestE2e_NodeScan_mondoo-operator_mondoo-operator-controller-manager-5946564f6f-ck5pm_previous_1697452227.log
2023-10-16T10:30:27.141Z	DEBUG	utils/executor.go:271	Running command: kubectl -n mondoo-operator logs mondoo-operator-controller-manager-5946564f6f-ck5pm -c manager
2023-10-16T10:30:27.237Z	INFO	utils/k8s_helper.go:248	Gathering pod describe for all pods in namespace mondoo-operator
2023-10-16T10:30:27.242Z	DEBUG	utils/k8s_helper.go:442	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/mondoo-operator_describe_TestE2e_NodeScan_1697452227.log
2023-10-16T10:30:27.242Z	DEBUG	utils/executor.go:271	Running command: kubectl get pod -o yaml -n mondoo-operator mondoo-client-node-gc-28290868-r4hf5
2023-10-16T10:30:27.327Z	DEBUG	utils/executor.go:271	Running command: kubectl get pod -o yaml -n mondoo-operator mondoo-client-node-minikube-28290868-sdts9
2023-10-16T10:30:27.422Z	DEBUG	utils/executor.go:271	Running command: kubectl get pod -o yaml -n mondoo-operator mondoo-client-scan-api-5f598ddf4d-5f5z8
2023-10-16T10:30:27.524Z	DEBUG	utils/executor.go:271	Running command: kubectl get pod -o yaml -n mondoo-operator mondoo-operator-controller-manager-5946564f6f-ck5pm
2023-10-16T10:30:27.642Z	DEBUG	utils/executor.go:271	Running command: kubectl get deployment -o yaml -n mondoo-operator mondoo-client-scan-api
2023-10-16T10:30:27.763Z	DEBUG	utils/executor.go:271	Running command: kubectl get deployment -o yaml -n mondoo-operator mondoo-operator-controller-manager
2023-10-16T10:30:27.895Z	DEBUG	utils/executor.go:271	Running command: kubectl get mondooauditconfig -o yaml -n mondoo-operator mondoo-client
2023-10-16T10:30:27.986Z	INFO	utils/k8s_helper.go:289	Gathering events in namespace "mondoo-operator"
2023-10-16T10:30:27.986Z	DEBUG	utils/k8s_helper.go:442	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/mondoo-operator_events_TestE2e_NodeScan_1697452227.log
2023-10-16T10:30:27.986Z	DEBUG	utils/executor.go:271	Running command: kubectl get events -n mondoo-operator
2023-10-16T10:30:28.090Z	INFO	utils/k8s_helper.go:318	Resource k8s.mondoo.com/v1alpha2, Kind=MondooAuditConfig mondoo-operator/mondoo-client still exists.
2023-10-16T10:30:30.093Z	INFO	utils/k8s_helper.go:322	Resource k8s.mondoo.com/v1alpha2, Kind=MondooAuditConfig mondoo-operator/mondoo-client deleted.
2023-10-16T10:30:30.097Z	INFO	integration/e2e_test.go:94	Waiting for cleanup of the test cluster.
2023-10-16T10:30:30.103Z	INFO	integration/e2e_test.go:108	Cleanup done. Cluster should be good to go for the next test.
{"level":"trace","time":"2023-10-16T10:30:30Z","message":"curl -X 'POST' -d '{\"spaceMrn\":\"//captain.api.mondoo.app/spaces/k8s-operator-edge-testing\",\"managed_by\":\"mondoo-operator-46a7ac16-f946-47b7-9082-8093ff5af682\"}' -H 'Accept: application/json' -H 'Content-Length: 140' -H 'Content-Type: application/json' 'https://api.edge.mondoo.com/AssetStore/DeleteAssets'"}
2023-10-16T10:30:31.627Z	INFO	utils/k8s_helper.go:237	Gathering logs for all pods in namespace mondoo-operator
2023-10-16T10:30:31.630Z	DEBUG	utils/k8s_helper.go:442	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/TestE2eTestSuite_mondoo-operator_mondoo-operator-controller-manager-5946564f6f-ck5pm_1697452231.log
2023-10-16T10:30:31.640Z	DEBUG	utils/k8s_helper.go:442	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/TestE2eTestSuite_mondoo-operator_mondoo-operator-controller-manager-5946564f6f-ck5pm_previous_1697452231.log
2023-10-16T10:30:31.643Z	DEBUG	utils/executor.go:271	Running command: kubectl -n mondoo-operator logs mondoo-operator-controller-manager-5946564f6f-ck5pm -c manager
2023-10-16T10:30:31.746Z	INFO	installer/installer.go:124	Deleted Mondoo client secret mondoo-operator/mondoo-client.
2023-10-16T10:30:31.746Z	INFO	utils/manifest_utils.go:54	Reading file: /home/runner/work/mondoo-operator/mondoo-operator/mondoo-operator-manifests.yaml
2023-10-16T10:30:31.746Z	INFO	utils/exec_utils.go:45	Running kubectl [delete --ignore-not-found=true -f -]
namespace "mondoo-operator" deleted
customresourcedefinition.apiextensions.k8s.io "mondooauditconfigs.k8s.mondoo.com" deleted
customresourcedefinition.apiextensions.k8s.io "mondoooperatorconfigs.k8s.mondoo.com" deleted
serviceaccount "mondoo-operator-controller-manager" deleted
serviceaccount "mondoo-operator-k8s-resources-scanning" deleted
serviceaccount "mondoo-operator-webhook" deleted
role.rbac.authorization.k8s.io "mondoo-operator-leader-election-role" deleted
clusterrole.rbac.authorization.k8s.io "mondoo-operator-k8s-resources-scanning" deleted
clusterrole.rbac.authorization.k8s.io "mondoo-operator-manager-role" deleted
rolebinding.rbac.authorization.k8s.io "mondoo-operator-leader-election-rolebinding" deleted
clusterrolebinding.rbac.authorization.k8s.io "mondoo-operator-k8s-resources-scanning" deleted
clusterrolebinding.rbac.authorization.k8s.io "mondoo-operator-manager-rolebinding" deleted
configmap "mondoo-operator-manager-config" deleted
service "mondoo-operator-controller-manager-metrics-service" deleted
deployment.apps "mondoo-operator-controller-manager" deleted
{"level":"trace","time":"2023-10-16T10:30:37Z","message":"curl -X 'POST' -d '{\"mrn\":\"//integration.api.mondoo.app/spaces/k8s-operator-edge-testing/integrations/2WqF8sCG4E3rz1SbMeDcSpMaVWT\"}' -H 'Accept: application/json' -H 'Content-Length: 112' -H 'Content-Type: application/json' 'https://api.edge.mondoo.com/IntegrationsManager/Delete'"}
    --- FAIL: TestE2eTestSuite/TestE2e_NodeScan (170.51s)

Check failure on line 0 in integration-tests-minikube-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 ► TestE2eTestSuite

Failed test found in:
  integration-tests-minikube-v1.26.7.xml
Error:
  === RUN   TestE2eTestSuite
Raw output
=== RUN   TestE2eTestSuite
{"level":"debug","kid":"//agents.api.mondoo.app/spaces/k8s-operator-edge-testing/serviceaccounts/2IYE5BU3QiNtdjidbRDwyQgXQjd","issuer":"mondoo/ams","time":"2023-10-16T10:27:25Z","message":"initialize client authentication"}
{"level":"trace","time":"2023-10-16T10:27:25Z","message":"curl -X 'POST' -d '{\"space_mrn\":\"//captain.api.mondoo.app/spaces/k8s-operator-edge-testing\",\"name\":\"test-integration-46a7ac16-f946-47b7-9082-8093ff5af682\",\"configuration_input\":{\"ConfigOptions\":{\"K8SOptions\":{\"scan_nodes\":true,\"scan_workloads\":true}}},\"type\":2}' -H 'Accept: application/json' -H 'Content-Length: 242' -H 'Content-Type: application/json' 'https://api.edge.mondoo.com/IntegrationsManager/Create'"}
{"level":"trace","time":"2023-10-16T10:27:27Z","message":"curl -X 'POST' -d '{\"mrn\":\"//integration.api.mondoo.app/spaces/k8s-operator-edge-testing/integrations/2WqF8sCG4E3rz1SbMeDcSpMaVWT\"}' -H 'Accept: application/json' -H 'Content-Length: 112' -H 'Content-Type: application/json' 'https://api.edge.mondoo.com/IntegrationsManager/GetTokenForIntegration'"}
2023-10-16T10:27:27.573Z	INFO	installer/installer.go:85	Installing Mondoo operator with local manifest
2023-10-16T10:27:27.573Z	INFO	utils/manifest_utils.go:54	Reading file: /home/runner/work/mondoo-operator/mondoo-operator/mondoo-operator-manifests.yaml
2023-10-16T10:27:27.574Z	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-16T10:27:29.084Z	INFO	installer/installer.go:166	Created Мondoo client secret "mondoo-token".
2023-10-16T10:27:41.114Z	INFO	installer/installer.go:101	Mondoo operator is ready.
--- FAIL: TestE2eTestSuite (193.88s)

Check failure on line 0 in integration-tests-minikube-v1.27.4.xml

See this annotation in the file changed.

@github-actions github-actions / Report test results

go.mondoo.com/mondoo-operator/tests/integration ► TestE2eTestSuite/TestE2e_NodeScan

Failed test found in:
  integration-tests-minikube-v1.27.4.xml
Error:
  === RUN   TestE2eTestSuite/TestE2e_NodeScan
Raw output
=== RUN   TestE2eTestSuite/TestE2e_NodeScan
2023-10-16T10:29:45.247Z	INFO	integration/e2e_test.go:147	Create an audit config that enables only nodes scanning.
2023-10-16T10:29:45.260Z	INFO	integration/e2e_test.go:152	Verify the nodes scanning cron jobs are created.
{"level":"trace","time":"2023-10-16T10:30:51Z","message":"curl -X 'POST' -d '{\"space_mrn\":\"//captain.api.mondoo.app/spaces/k8s-operator-edge-testing\",\"query_terms\":[\"{ \\\"mondoo.com/integration-mrn\\\": \\\"//integration.api.mondoo.app/spaces/k8s-operator-edge-testing/integrations/2WqFOUwDBBnXXfbNFu5WG036ttP\\\" }\"]}' -H 'Accept: application/json' -H 'Content-Length: 234' -H 'Content-Type: application/json' 'https://api.edge.mondoo.com/AssetStore/ListAssets'"}
{"level":"trace","time":"2023-10-16T10:30:51Z","message":"curl -X 'POST' -d '{\"entity_mrn\":\"//assets.api.mondoo.app/spaces/k8s-operator-edge-testing/assets/2WqFSmyTD4jO4AyZsvtDKbbGtsX\"}' -H 'Accept: application/json' -H 'Content-Length: 108' -H 'Content-Type: application/json' 'https://api.edge.mondoo.com/PolicyResolver/GetReport'"}
    e2e_test.go:128: 
        	Error Trace:	/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/e2e_test.go:128
        	Error:      	Received unexpected error:
        	            	failed to do request: Post "https://api.edge.mondoo.com/PolicyResolver/GetReport": context deadline exceeded (Client.Timeout exceeded while awaiting headers)
        	            	(1) attached stack trace
        	            	  -- stack trace:
        	            	  | go.mondoo.com/ranger-rpc.(*Client).DoClientRequest
        	            	  | 	/home/runner/go/pkg/mod/go.mondoo.com/[email protected]/client.go:88
        	            	  | go.mondoo.com/cnspec/policy.(*PolicyResolverClient).GetReport
        	            	  | 	/home/runner/go/pkg/mod/go.mondoo.com/[email protected]/policy/cnspec_policy.ranger.go:512
        	            	  | go.mondoo.com/mondoo-operator/tests/framework/nexus.(*Space).ListAssetsWithScores
        	            	  | 	/home/runner/work/mondoo-operator/mondoo-operator/tests/framework/nexus/space.go:64
        	            	  | go.mondoo.com/mondoo-operator/tests/integration.(*E2eTestSuite).TestE2e_NodeScan
        	            	  | 	/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/e2e_test.go:127
        	            	  | reflect.Value.call
        	            	  | 	/opt/hostedtoolcache/go/1.21.3/x64/src/reflect/value.go:596
        	            	  | reflect.Value.Call
        	            	  | 	/opt/hostedtoolcache/go/1.21.3/x64/src/reflect/value.go:380
        	            	  | github.com/stretchr/testify/suite.Run.func1
        	            	  | 	/home/runner/go/pkg/mod/github.com/stretchr/[email protected]/suite/suite.go:197
        	            	  | testing.tRunner
        	            	  | 	/opt/hostedtoolcache/go/1.21.3/x64/src/testing/testing.go:1595
        	            	  | runtime.goexit
        	            	  | 	/opt/hostedtoolcache/go/1.21.3/x64/src/runtime/asm_amd64.s:1650
        	            	Wraps: (2) failed to do request
        	            	Wraps: (3) Post "https://api.edge.mondoo.com/PolicyResolver/GetReport"
        	            	Wraps: (4) context deadline exceeded (Client.Timeout exceeded while awaiting headers)
        	            	Error types: (1) *withstack.withStack (2) *errutil.withPrefix (3) *url.Error (4) *http.httpError
        	Test:       	TestE2eTestSuite/TestE2e_NodeScan
        	Messages:   	Failed to list assets
    e2e_test.go:134: 
        	Error Trace:	/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/e2e_test.go:134
        	Error:      	elements differ
        	            	
        	            	extra elements in list A:
        	            	([]interface {}) (len=1) {
        	            	 (string) (len=8) "minikube"
        	            	}
        	            	
        	            	
        	            	listA:
        	            	([]string) (len=1) {
        	            	 (string) (len=8) "minikube"
        	            	}
        	            	
        	            	
        	            	listB:
        	            	([]string) {
        	            	}
        	Test:       	TestE2eTestSuite/TestE2e_NodeScan
        	Messages:   	Node names do not match
2023-10-16T10:31:21.604Z	INFO	installer/installer.go:174	gathering all logs from the test
2023-10-16T10:31:21.604Z	INFO	utils/k8s_helper.go:237	Gathering logs for all pods in namespace mondoo-operator
2023-10-16T10:31:21.617Z	DEBUG	utils/k8s_helper.go:442	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/TestE2e_NodeScan_mondoo-operator_mondoo-client-node-gc-28290870-48p44_1697452281.log
2023-10-16T10:31:21.638Z	DEBUG	utils/k8s_helper.go:442	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/TestE2e_NodeScan_mondoo-operator_mondoo-client-node-minikube-28290870-jksrb_1697452281.log
2023-10-16T10:31:21.660Z	DEBUG	utils/k8s_helper.go:442	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/TestE2e_NodeScan_mondoo-operator_mondoo-client-scan-api-7c7766c5bd-tvgl6_1697452281.log
2023-10-16T10:31:21.671Z	DEBUG	utils/k8s_helper.go:442	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/TestE2e_NodeScan_mondoo-operator_mondoo-operator-controller-manager-6c9db98fdf-dt7rr_1697452281.log
2023-10-16T10:31:21.683Z	DEBUG	utils/k8s_helper.go:442	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/TestE2e_NodeScan_mondoo-operator_mondoo-operator-controller-manager-6c9db98fdf-dt7rr_previous_1697452281.log
2023-10-16T10:31:21.692Z	DEBUG	utils/executor.go:271	Running command: kubectl -n mondoo-operator logs mondoo-operator-controller-manager-6c9db98fdf-dt7rr -c manager
2023-10-16T10:31:21.823Z	INFO	utils/k8s_helper.go:248	Gathering pod describe for all pods in namespace mondoo-operator
2023-10-16T10:31:21.834Z	DEBUG	utils/k8s_helper.go:442	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/mondoo-operator_describe_TestE2e_NodeScan_1697452281.log
2023-10-16T10:31:21.834Z	DEBUG	utils/executor.go:271	Running command: kubectl get pod -o yaml -n mondoo-operator mondoo-client-node-gc-28290870-48p44
2023-10-16T10:31:21.946Z	DEBUG	utils/executor.go:271	Running command: kubectl get pod -o yaml -n mondoo-operator mondoo-client-node-minikube-28290870-jksrb
2023-10-16T10:31:22.054Z	DEBUG	utils/executor.go:271	Running command: kubectl get pod -o yaml -n mondoo-operator mondoo-client-scan-api-7c7766c5bd-tvgl6
2023-10-16T10:31:22.159Z	DEBUG	utils/executor.go:271	Running command: kubectl get pod -o yaml -n mondoo-operator mondoo-operator-controller-manager-6c9db98fdf-dt7rr
2023-10-16T10:31:22.265Z	DEBUG	utils/executor.go:271	Running command: kubectl get deployment -o yaml -n mondoo-operator mondoo-client-scan-api
2023-10-16T10:31:22.362Z	DEBUG	utils/executor.go:271	Running command: kubectl get deployment -o yaml -n mondoo-operator mondoo-operator-controller-manager
2023-10-16T10:31:22.478Z	DEBUG	utils/executor.go:271	Running command: kubectl get mondooauditconfig -o yaml -n mondoo-operator mondoo-client
2023-10-16T10:31:22.578Z	INFO	utils/k8s_helper.go:289	Gathering events in namespace "mondoo-operator"
2023-10-16T10:31:22.578Z	DEBUG	utils/k8s_helper.go:442	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/mondoo-operator_events_TestE2e_NodeScan_1697452282.log
2023-10-16T10:31:22.578Z	DEBUG	utils/executor.go:271	Running command: kubectl get events -n mondoo-operator
2023-10-16T10:31:22.700Z	INFO	utils/k8s_helper.go:318	Resource k8s.mondoo.com/v1alpha2, Kind=MondooAuditConfig mondoo-operator/mondoo-client still exists.
2023-10-16T10:31:24.704Z	INFO	utils/k8s_helper.go:322	Resource k8s.mondoo.com/v1alpha2, Kind=MondooAuditConfig mondoo-operator/mondoo-client deleted.
2023-10-16T10:31:24.710Z	INFO	integration/e2e_test.go:94	Waiting for cleanup of the test cluster.
2023-10-16T10:31:24.714Z	INFO	integration/e2e_test.go:108	Cleanup done. Cluster should be good to go for the next test.
{"level":"trace","time":"2023-10-16T10:31:24Z","message":"curl -X 'POST' -d '{\"spaceMrn\":\"//captain.api.mondoo.app/spaces/k8s-operator-edge-testing\",\"managed_by\":\"mondoo-operator-b66cb500-73e9-4991-bdd9-9b530707df75\"}' -H 'Accept: application/json' -H 'Content-Length: 140' -H 'Content-Type: application/json' 'https://api.edge.mondoo.com/AssetStore/DeleteAssets'"}
2023-10-16T10:31:26.857Z	INFO	utils/k8s_helper.go:237	Gathering logs for all pods in namespace mondoo-operator
2023-10-16T10:31:26.861Z	DEBUG	utils/k8s_helper.go:442	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/TestE2eTestSuite_mondoo-operator_mondoo-operator-controller-manager-6c9db98fdf-dt7rr_1697452286.log
2023-10-16T10:31:26.885Z	DEBUG	utils/k8s_helper.go:442	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/TestE2eTestSuite_mondoo-operator_mondoo-operator-controller-manager-6c9db98fdf-dt7rr_previous_1697452286.log
2023-10-16T10:31:26.894Z	DEBUG	utils/executor.go:271	Running command: kubectl -n mondoo-operator logs mondoo-operator-controller-manager-6c9db98fdf-dt7rr -c manager
2023-10-16T10:31:27.014Z	INFO	installer/installer.go:124	Deleted Mondoo client secret mondoo-operator/mondoo-client.
2023-10-16T10:31:27.014Z	INFO	utils/manifest_utils.go:54	Reading file: /home/runner/work/mondoo-operator/mondoo-operator/mondoo-operator-manifests.yaml
2023-10-16T10:31:27.014Z	INFO	utils/exec_utils.go:45	Running kubectl [delete --ignore-not-found=true -f -]
namespace "mondoo-operator" deleted
customresourcedefinition.apiextensions.k8s.io "mondooauditconfigs.k8s.mondoo.com" deleted
customresourcedefinition.apiextensions.k8s.io "mondoooperatorconfigs.k8s.mondoo.com" deleted
serviceaccount "mondoo-operator-controller-manager" deleted
serviceaccount "mondoo-operator-k8s-resources-scanning" deleted
serviceaccount "mondoo-operator-webhook" deleted
role.rbac.authorization.k8s.io "mondoo-operator-leader-election-role" deleted
clusterrole.rbac.authorization.k8s.io "mondoo-operator-k8s-resources-scanning" deleted
clusterrole.rbac.authorization.k8s.io "mondoo-operator-manager-role" deleted
rolebinding.rbac.authorization.k8s.io "mondoo-operator-leader-election-rolebinding" deleted
clusterrolebinding.rbac.authorization.k8s.io "mondoo-operator-k8s-resources-scanning" deleted
clusterrolebinding.rbac.authorization.k8s.io "mondoo-operator-manager-rolebinding" deleted
configmap "mondoo-operator-manager-config" deleted
service "mondoo-operator-controller-manager-metrics-service" deleted
deployment.apps "mondoo-operator-controller-manager" deleted
{"level":"trace","time":"2023-10-16T10:31:33Z","message":"curl -X 'POST' -d '{\"mrn\":\"//integration.api.mondoo.app/spaces/k8s-operator-edge-testing/integrations/2WqFOUwDBBnXXfbNFu5WG036ttP\"}' -H 'Accept: application/json' -H 'Content-Length: 112' -H 'Content-Type: application/json' 'https://api.edge.mondoo.com/IntegrationsManager/Delete'"}
    --- FAIL: TestE2eTestSuite/TestE2e_NodeScan (101.62s)