🚀 1.17.1 (#881) #2177
Report Helm test results ❌
❌ integration-tests.xml
18 tests were completed in 694s with 15 passed, 3 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
go.mondoo.com/mondoo-operator/tests/integration | 15✅ | 3❌ | 688s |
❌ go.mondoo.com/mondoo-operator/tests/integration
❌ TestAuditConfigSuite/TestReconcile_AdmissionEnforcing
=== RUN TestAuditConfigSuite/TestReconcile_AdmissionEnforcing
❌ TestAuditConfigSuite/TestReconcile_AdmissionEnforcingScaleDownScanApi
=== RUN TestAuditConfigSuite/TestReconcile_AdmissionEnforcingScaleDownScanApi
❌ TestAuditConfigSuite
=== RUN TestAuditConfigSuite
✅ TestAuditConfigCustomNamespaceSuite/TestReconcile_Admission
✅ TestAuditConfigCustomNamespaceSuite/TestReconcile_AdmissionMissingSA
✅ TestAuditConfigCustomNamespaceSuite/TestReconcile_Containers
✅ TestAuditConfigCustomNamespaceSuite/TestReconcile_KubernetesResources
✅ TestAuditConfigCustomNamespaceSuite/TestReconcile_Nodes
✅ TestAuditConfigCustomNamespaceSuite
✅ TestAuditConfigSuite/TestReconcile_AdmissionPermissive
✅ TestAuditConfigSuite/TestReconcile_AllDisabled
✅ TestAuditConfigSuite/TestReconcile_Containers
✅ TestAuditConfigSuite/TestReconcile_KubernetesResources
✅ TestAuditConfigSuite/TestReconcile_Nodes
✅ TestAuditConfigUpgradeSuite/TestUpgradePreviousReleaseToLatest
✅ TestAuditConfigUpgradeSuite
✅ TestE2eTestSuite/TestE2e_NodeScan
✅ TestE2eTestSuite
Annotations
Check failure on line 0 in integration-tests.xml
github-actions / Report Helm test results
go.mondoo.com/mondoo-operator/tests/integration ► TestAuditConfigSuite/TestReconcile_AdmissionEnforcing
Failed test found in:
integration-tests.xml
Error:
=== RUN TestAuditConfigSuite/TestReconcile_AdmissionEnforcing
Raw output
=== RUN TestAuditConfigSuite/TestReconcile_AdmissionEnforcing
2023-10-06T09:51:12.689Z INFO integration/audit_config_base_suite.go:278 Create an audit config that enables only admission control.
2023-10-06T09:51:12.693Z INFO integration/audit_config_base_suite.go:284 Waiting for webhook Pod to become ready.
2023-10-06T09:51:24.713Z INFO integration/audit_config_base_suite.go:289 Webhook Pod is ready.
2023-10-06T09:51:24.713Z INFO integration/audit_config_base_suite.go:510 Waiting for scan API Pod to become ready.
2023-10-06T09:51:24.715Z INFO integration/audit_config_base_suite.go:514 Scan API Pod is ready.
2023-10-06T09:51:24.717Z INFO integration/audit_config_base_suite.go:531 Waiting for good condition of Scan API
2023-10-06T09:51:24.770Z INFO integration/audit_config_base_suite.go:755 Update the webhook with the CA data.
2023-10-06T09:51:24.775Z INFO integration/audit_config_base_suite.go:764 Restart the webhook pods such that it is certain the CA secret has been reloaded.
2023-10-06T09:51:36.796Z INFO integration/audit_config_base_suite.go:774 Webhook Pod is ready.
2023-10-06T09:51:36.802Z INFO integration/audit_config_base_suite.go:792 Getting endpoints for webhook.
2023-10-06T09:51:36.805Z INFO integration/audit_config_base_suite.go:798 endpoints Addresses: [{10.244.0.17 0xc0006fc6b0 &ObjectReference{Kind:Pod,Namespace:mondoo-operator,Name:mondoo-client-webhook-manager-5794df6d6d-2lb4q,UID:11ec3b2b-a869-4f1e-aee1-3c51f5af33d3,APIVersion:,ResourceVersion:,FieldPath:,}}]
2023-10-06T09:51:36.805Z INFO integration/audit_config_base_suite.go:799 endpoints NotReadyAddresses: []
2023-10-06T09:51:36.805Z INFO integration/audit_config_base_suite.go:806 Wait for webhook to start working.
2023-10-06T09:51:36.814Z INFO integration/audit_config_base_suite.go:317 Waiting for Webhook to accept connections (max 120s).
2023-10-06T09:51:36.815Z INFO integration/audit_config_base_suite.go:827 Created port-forward via kubectl for webhook with pid: 21048
2023-10-06T09:51:38.830Z INFO integration/audit_config_base_suite.go:840 Webhook is available: 200 OK
2023-10-06T09:51:38.830Z DEBUG integration/audit_config_base_suite.go:867 Trying to stop port-forward with pid: 21048
2023-10-06T09:51:38.831Z INFO integration/audit_config_base_suite.go:320 Webhook should be working by now.
2023-10-06T09:51:38.831Z INFO integration/audit_config_base_suite.go:653 Create a Deployment which should pass. (max. 5 retries)
audit_config_base_suite.go:662:
Error Trace: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:662
/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:321
/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:266
/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_test.go:51
Error: Received unexpected error:
admission webhook "policy.k8s.mondoo.com" denied the request: FAILED MONDOO SCAN
Test: TestAuditConfigSuite/TestReconcile_AdmissionEnforcing
Messages: Failed to create Deployment which should pass.
2023-10-06T09:51:49.604Z INFO integration/audit_config_base_suite.go:664 Create a Deployment which should be denied in enforcing mode.
2023-10-06T09:51:49.729Z INFO utils/k8s_helper.go:322 Resource /, Kind= mondoo-operator/passing-deployment deleted.
2023-10-06T09:51:49.731Z INFO utils/k8s_helper.go:322 Resource /, Kind= mondoo-operator/failing-deployment deleted.
2023-10-06T09:51:49.734Z INFO installer/installer.go:174 gathering all logs from the test
2023-10-06T09:51:49.734Z INFO utils/k8s_helper.go:237 Gathering logs for all pods in namespace mondoo-operator
2023-10-06T09:51:49.737Z DEBUG utils/k8s_helper.go:442 created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/TestReconcile_AdmissionEnforcing_mondoo-operator_mondoo-client-scan-api-576f5f4ddb-w2lk9_1696585909.log
2023-10-06T09:51:49.745Z DEBUG utils/k8s_helper.go:442 created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/TestReconcile_AdmissionEnforcing_mondoo-operator_mondoo-client-webhook-manager-5794df6d6d-2lb4q_1696585909.log
2023-10-06T09:51:49.751Z DEBUG utils/k8s_helper.go:442 created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/TestReconcile_AdmissionEnforcing_mondoo-operator_mondoo-operator-controller-manager-85698c857b-bzzn2_1696585909.log
2023-10-06T09:51:49.763Z DEBUG utils/k8s_helper.go:442 created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/TestReconcile_AdmissionEnforcing_mondoo-operator_mondoo-operator-controller-manager-85698c857b-bzzn2_previous_1696585909.log
2023-10-06T09:51:49.766Z DEBUG utils/executor.go:271 Running command: kubectl -n mondoo-operator logs mondoo-operator-controller-manager-85698c857b-bzzn2 -c manager
2023-10-06T09:51:49.842Z INFO utils/k8s_helper.go:248 Gathering pod describe for all pods in namespace mondoo-operator
2023-10-06T09:51:49.845Z DEBUG utils/k8s_helper.go:442 created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/mondoo-operator_describe_TestReconcile_AdmissionEnforcing_1696585909.log
2023-10-06T09:51:49.845Z DEBUG utils/executor.go:271 Running command: kubectl get pod -o yaml -n mondoo-operator mondoo-client-scan-api-576f5f4ddb-w2lk9
2023-10-06T09:51:49.918Z DEBUG utils/executor.go:271 Running command: kubectl get pod -o yaml -n mondoo-operator mondoo-client-webhook-manager-5794df6d6d-2lb4q
2023-10-06T09:51:49.978Z DEBUG utils/executor.go:271 Running command: kubectl get pod -o yaml -n mondoo-operator mondoo-operator-controller-manager-85698c857b-bzzn2
2023-10-06T09:51:50.044Z DEBUG utils/executor.go:271 Running command: kubectl get deployment -o yaml -n mondoo-operator mondoo-client-scan-api
2023-10-06T09:51:50.107Z DEBUG utils/executor.go:271 Running command: kubectl get deployment -o yaml -n mondoo-operator mondoo-client-webhook-manager
2023-10-06T09:51:50.174Z DEBUG utils/executor.go:271 Running command: kubectl get deployment -o yaml -n mondoo-operator mondoo-operator-controller-manager
2023-10-06T09:51:50.242Z DEBUG utils/executor.go:271 Running command: kubectl get mondooauditconfig -o yaml -n mondoo-operator mondoo-client
2023-10-06T09:51:50.303Z INFO utils/k8s_helper.go:289 Gathering events in namespace "mondoo-operator"
2023-10-06T09:51:50.303Z DEBUG utils/k8s_helper.go:442 created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/mondoo-operator_events_TestReconcile_AdmissionEnforcing_1696585910.log
2023-10-06T09:51:50.303Z DEBUG utils/executor.go:271 Running command: kubectl get events -n mondoo-operator
2023-10-06T09:51:50.384Z INFO utils/k8s_helper.go:318 Resource k8s.mondoo.com/v1alpha2, Kind=MondooAuditConfig mondoo-operator/mondoo-client still exists.
2023-10-06T09:51:52.387Z INFO utils/k8s_helper.go:322 Resource k8s.mondoo.com/v1alpha2, Kind=MondooAuditConfig mondoo-operator/mondoo-client deleted.
2023-10-06T09:51:52.392Z INFO integration/audit_config_base_suite.go:85 Waiting for cleanup of the test cluster.
2023-10-06T09:51:52.395Z INFO integration/audit_config_base_suite.go:99 Cleanup done. Cluster should be good to go for the next test.
--- FAIL: TestAuditConfigSuite/TestReconcile_AdmissionEnforcing (40.29s)
Check failure on line 0 in integration-tests.xml
github-actions / Report Helm test results
go.mondoo.com/mondoo-operator/tests/integration ► TestAuditConfigSuite/TestReconcile_AdmissionEnforcingScaleDownScanApi
Failed test found in:
integration-tests.xml
Error:
=== RUN TestAuditConfigSuite/TestReconcile_AdmissionEnforcingScaleDownScanApi
Raw output
=== RUN TestAuditConfigSuite/TestReconcile_AdmissionEnforcingScaleDownScanApi
2023-10-06T09:51:52.723Z INFO integration/audit_config_base_suite.go:278 Create an audit config that enables only admission control.
2023-10-06T09:51:52.727Z INFO integration/audit_config_base_suite.go:284 Waiting for webhook Pod to become ready.
2023-10-06T09:52:04.747Z INFO integration/audit_config_base_suite.go:289 Webhook Pod is ready.
2023-10-06T09:52:04.747Z INFO integration/audit_config_base_suite.go:510 Waiting for scan API Pod to become ready.
2023-10-06T09:52:04.749Z INFO integration/audit_config_base_suite.go:514 Scan API Pod is ready.
2023-10-06T09:52:04.751Z INFO integration/audit_config_base_suite.go:531 Waiting for good condition of Scan API
2023-10-06T09:52:04.766Z INFO integration/audit_config_base_suite.go:755 Update the webhook with the CA data.
2023-10-06T09:52:04.771Z INFO integration/audit_config_base_suite.go:764 Restart the webhook pods such that it is certain the CA secret has been reloaded.
2023-10-06T09:52:16.792Z INFO integration/audit_config_base_suite.go:774 Webhook Pod is ready.
2023-10-06T09:52:16.797Z INFO integration/audit_config_base_suite.go:792 Getting endpoints for webhook.
2023-10-06T09:52:16.799Z INFO integration/audit_config_base_suite.go:798 endpoints Addresses: [{10.244.0.20 0xc000858120 &ObjectReference{Kind:Pod,Namespace:mondoo-operator,Name:mondoo-client-webhook-manager-5794df6d6d-qwxwb,UID:43b33204-eafb-40eb-b463-1427c2c439ba,APIVersion:,ResourceVersion:,FieldPath:,}}]
2023-10-06T09:52:16.799Z INFO integration/audit_config_base_suite.go:799 endpoints NotReadyAddresses: []
2023-10-06T09:52:16.799Z INFO integration/audit_config_base_suite.go:806 Wait for webhook to start working.
2023-10-06T09:52:16.804Z INFO integration/audit_config_base_suite.go:317 Waiting for Webhook to accept connections (max 120s).
2023-10-06T09:52:16.804Z INFO integration/audit_config_base_suite.go:827 Created port-forward via kubectl for webhook with pid: 22509
2023-10-06T09:52:18.820Z INFO integration/audit_config_base_suite.go:840 Webhook is available: 200 OK
2023-10-06T09:52:18.820Z DEBUG integration/audit_config_base_suite.go:867 Trying to stop port-forward with pid: 22509
2023-10-06T09:52:18.821Z INFO integration/audit_config_base_suite.go:320 Webhook should be working by now.
2023-10-06T09:52:18.821Z INFO integration/audit_config_base_suite.go:653 Create a Deployment which should pass. (max. 5 retries)
audit_config_base_suite.go:662:
Error Trace: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:662
/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:321
/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:332
/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_test.go:59
Error: Received unexpected error:
admission webhook "policy.k8s.mondoo.com" denied the request: FAILED MONDOO SCAN
Test: TestAuditConfigSuite/TestReconcile_AdmissionEnforcingScaleDownScanApi
Messages: Failed to create Deployment which should pass.
2023-10-06T09:52:29.614Z INFO integration/audit_config_base_suite.go:664 Create a Deployment which should be denied in enforcing mode.
2023-10-06T09:52:29.756Z INFO utils/k8s_helper.go:322 Resource /, Kind= mondoo-operator/passing-deployment deleted.
2023-10-06T09:52:29.757Z INFO utils/k8s_helper.go:322 Resource /, Kind= mondoo-operator/failing-deployment deleted.
2023-10-06T09:52:29.771Z INFO utils/k8s_helper.go:318 Resource /, Kind= mondoo-operator/mondoo-client-scan-api-6cbfb7766b-8nlpz still exists.
2023-10-06T09:52:31.773Z INFO utils/k8s_helper.go:322 Resource /, Kind= mondoo-operator/mondoo-client-scan-api-6cbfb7766b-8nlpz deleted.
2023-10-06T09:52:31.773Z INFO integration/audit_config_base_suite.go:349 MondooAuditConfig condition should be updated to degraded.
2023-10-06T09:52:31.798Z INFO installer/installer.go:174 gathering all logs from the test
2023-10-06T09:52:31.798Z INFO utils/k8s_helper.go:237 Gathering logs for all pods in namespace mondoo-operator
2023-10-06T09:52:31.801Z DEBUG utils/k8s_helper.go:442 created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/TestReconcile_AdmissionEnforcingScaleDownScanApi_mondoo-operator_mondoo-client-webhook-manager-5794df6d6d-qwxwb_1696585951.log
2023-10-06T09:52:31.808Z DEBUG utils/k8s_helper.go:442 created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/TestReconcile_AdmissionEnforcingScaleDownScanApi_mondoo-operator_mondoo-operator-controller-manager-85698c857b-bzzn2_1696585951.log
2023-10-06T09:52:31.831Z DEBUG utils/k8s_helper.go:442 created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/TestReconcile_AdmissionEnforcingScaleDownScanApi_mondoo-operator_mondoo-operator-controller-manager-85698c857b-bzzn2_previous_1696585951.log
2023-10-06T09:52:31.835Z DEBUG utils/executor.go:271 Running command: kubectl -n mondoo-operator logs mondoo-operator-controller-manager-85698c857b-bzzn2 -c manager
2023-10-06T09:52:31.908Z INFO utils/k8s_helper.go:248 Gathering pod describe for all pods in namespace mondoo-operator
2023-10-06T09:52:31.911Z DEBUG utils/k8s_helper.go:442 created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/mondoo-operator_describe_TestReconcile_AdmissionEnforcingScaleDownScanApi_1696585951.log
2023-10-06T09:52:31.911Z DEBUG utils/executor.go:271 Running command: kubectl get pod -o yaml -n mondoo-operator mondoo-client-webhook-manager-5794df6d6d-qwxwb
2023-10-06T09:52:31.973Z DEBUG utils/executor.go:271 Running command: kubectl get pod -o yaml -n mondoo-operator mondoo-operator-controller-manager-85698c857b-bzzn2
2023-10-06T09:52:32.042Z DEBUG utils/executor.go:271 Running command: kubectl get deployment -o yaml -n mondoo-operator mondoo-client-scan-api
2023-10-06T09:52:32.100Z DEBUG utils/executor.go:271 Running command: kubectl get deployment -o yaml -n mondoo-operator mondoo-client-webhook-manager
2023-10-06T09:52:32.161Z DEBUG utils/executor.go:271 Running command: kubectl get deployment -o yaml -n mondoo-operator mondoo-operator-controller-manager
2023-10-06T09:52:32.232Z DEBUG utils/executor.go:271 Running command: kubectl get mondooauditconfig -o yaml -n mondoo-operator mondoo-client
2023-10-06T09:52:32.296Z INFO utils/k8s_helper.go:289 Gathering events in namespace "mondoo-operator"
2023-10-06T09:52:32.296Z DEBUG utils/k8s_helper.go:442 created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/mondoo-operator_events_TestReconcile_AdmissionEnforcingScaleDownScanApi_1696585952.log
2023-10-06T09:52:32.296Z DEBUG utils/executor.go:271 Running command: kubectl get events -n mondoo-operator
2023-10-06T09:52:32.383Z INFO utils/k8s_helper.go:318 Resource k8s.mondoo.com/v1alpha2, Kind=MondooAuditConfig mondoo-operator/mondoo-client still exists.
2023-10-06T09:52:34.385Z INFO utils/k8s_helper.go:322 Resource k8s.mondoo.com/v1alpha2, Kind=MondooAuditConfig mondoo-operator/mondoo-client deleted.
2023-10-06T09:52:34.390Z INFO integration/audit_config_base_suite.go:85 Waiting for cleanup of the test cluster.
2023-10-06T09:52:34.395Z INFO integration/audit_config_base_suite.go:99 Cleanup done. Cluster should be good to go for the next test.
--- FAIL: TestAuditConfigSuite/TestReconcile_AdmissionEnforcingScaleDownScanApi (42.00s)
Check failure on line 0 in integration-tests.xml
github-actions / Report Helm test results
go.mondoo.com/mondoo-operator/tests/integration ► TestAuditConfigSuite
Failed test found in:
integration-tests.xml
Error:
=== RUN TestAuditConfigSuite
Raw output
=== RUN TestAuditConfigSuite
[controller-runtime] log.SetLogger(...) was never called; logs will not be displayed.
Detected at:
> goroutine 481 [running]:
> runtime/debug.Stack()
> /opt/hostedtoolcache/go/1.21.1/x64/src/runtime/debug/stack.go:24 +0x5e
> sigs.k8s.io/controller-runtime/pkg/log.eventuallyFulfillRoot()
> /home/runner/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/log/log.go:60 +0xcd
> sigs.k8s.io/controller-runtime/pkg/log.(*delegatingLogSink).WithName(0xc0000b0c80, {0x221deb2, 0x14})
> /home/runner/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/log/deleg.go:147 +0x45
> github.com/go-logr/logr.Logger.WithName({{0x253b360, 0xc0000b0c80}, 0x0}, {0x221deb2?, 0x0?})
> /home/runner/go/pkg/mod/github.com/go-logr/[email protected]/logr.go:336 +0x3d
> sigs.k8s.io/controller-runtime/pkg/client.newClient(0x2520d90?, {0x0, 0x0, {0x0, 0x0}, 0x0, {0x0, 0x0}, 0x0})
> /home/runner/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/client/client.go:122 +0xec
> sigs.k8s.io/controller-runtime/pkg/client.New(0x0?, {0x0, 0x0, {0x0, 0x0}, 0x0, {0x0, 0x0}, 0x0})
> /home/runner/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/client/client.go:103 +0x7d
> go.mondoo.com/mondoo-operator/tests/framework/utils.CreateK8sHelper()
> /home/runner/work/mondoo-operator/mondoo-operator/tests/framework/utils/k8s_helper.go:73 +0x99
> go.mondoo.com/mondoo-operator/tests/framework/installer.NewMondooInstaller({{0x2213891, 0xf}, {0x0, 0x0}, 0x0}, 0xc0006fdd40)
> /home/runner/work/mondoo-operator/mondoo-operator/tests/framework/installer/installer.go:44 +0x35
> go.mondoo.com/mondoo-operator/tests/integration.StartTestCluster({0x25373a8, 0x37ac020}, {{0x2213891, 0xf}, {0x0, 0x0}, 0x0}, 0xc0006fdd40)
> /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/test_cluster.go:28 +0x105
> go.mondoo.com/mondoo-operator/tests/integration.(*AuditConfigBaseSuite).SetupSuite(0xc0007c6380)
> /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:64 +0xfe
> github.com/stretchr/testify/suite.Run(0xc00064f1e0, {0x2527600, 0xc0007c6380})
> /home/runner/go/pkg/mod/github.com/stretchr/[email protected]/suite/suite.go:154 +0x3a3
> go.mondoo.com/mondoo-operator/tests/integration.TestAuditConfigSuite(0x6c69666c75662065?)
> /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_test.go:71 +0x7e
> testing.tRunner(0xc00064f1e0, 0x232d538)
> /opt/hostedtoolcache/go/1.21.1/x64/src/testing/testing.go:1595 +0xff
> created by testing.(*T).Run in goroutine 1
> /opt/hostedtoolcache/go/1.21.1/x64/src/testing/testing.go:1648 +0x3ad
2023-10-06T09:51:12.102Z INFO utils/manifest_utils.go:54 Reading file: /home/runner/work/mondoo-operator/mondoo-operator/creds.json
2023-10-06T09:51:12.108Z INFO installer/installer.go:166 Created Мondoo client secret "mondoo-client".
2023-10-06T09:51:12.108Z INFO installer/installer.go:67 The Mondoo operator is installed externally. Skipping installation...
--- FAIL: TestAuditConfigSuite (298.85s)