Fix dead docs links (#1077) #5
4 fail, 19 pass in 6h 29m 32s
8 files 8 suites 6h 29m 32s ⏱️
23 tests 19 ✅ 0 💤 4 ❌
184 runs 172 ✅ 0 💤 12 ❌
Results for commit e6cd59f.
Annotations
Check warning on line 0 in go.mondoo.com/mondoo-operator/tests/integration
github-actions / Test Results
3 out of 8 runs failed: TestAuditConfigCustomNamespaceSuite/TestReconcile_Containers (go.mondoo.com/mondoo-operator/tests/integration)
integration-tests-gke-1.27.xml [took 1m 44s]
integration-tests-gke-1.28.xml [took 2m 34s]
integration-tests-gke-1.29.xml [took 1m 50s]
Raw output
Failed
=== RUN TestAuditConfigCustomNamespaceSuite/TestReconcile_Containers
2024-05-05T23:18:30.484Z INFO utils/audit_config.go:71 Using image ghcr.io/mondoohq/mondoo-operator/cnspec:latest-rootless for mondoo-client
2024-05-05T23:18:30.484Z DEBUG utils/executor.go:271 Running command: kubectl run -n default nginx --image nginx -l app.kubernetes.io/name=nginx
2024-05-05T23:18:30.603Z DEBUG utils/executor.go:271 Running command: kubectl run -n default redis --image redis -l app.kubernetes.io/name=redis
2024-05-05T23:18:36.813Z INFO integration/audit_config_base_suite.go:252 Create an audit config that enables only workloads scanning.
2024-05-05T23:18:36.889Z INFO integration/audit_config_base_suite.go:262 Make sure the Mondoo k8s container image scan CronJob is created.
audit_config_base_suite.go:1269:
Error Trace: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:1269
/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:313
/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_namespace_test.go:96
Error: elements differ
extra elements in list A:
([]interface {}) (len=1) {
(string) (len=59) "//policy.api.mondoo.app/policies/mondoo-kubernetes-security"
}
listA:
([]string) (len=3) {
(string) (len=45) "//policy.api.mondoo.app/policies/platform-eol",
(string) (len=59) "//policy.api.mondoo.app/policies/mondoo-kubernetes-security",
(string) (len=54) "//policy.api.mondoo.app/policies/mondoo-linux-security"
}
listB:
([]string) (len=2) {
(string) (len=54) "//policy.api.mondoo.app/policies/mondoo-linux-security",
(string) (len=45) "//policy.api.mondoo.app/policies/platform-eol"
}
Test: TestAuditConfigCustomNamespaceSuite/TestReconcile_Containers
Messages: Scored policies for asset gke.gcr.io/prometheus-engine/rule-evaluator@1f43e65c4c12 should be the default k8s policies
audit_config_base_suite.go:1269:
Error Trace: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:1269
/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:313
/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_namespace_test.go:96
Error: elements differ
extra elements in list A:
([]interface {}) (len=1) {
(string) (len=59) "//policy.api.mondoo.app/policies/mondoo-kubernetes-security"
}
listA:
([]string) (len=3) {
(string) (len=45) "//policy.api.mondoo.app/policies/platform-eol",
(string) (len=59) "//policy.api.mondoo.app/policies/mondoo-kubernetes-security",
(string) (len=54) "//policy.api.mondoo.app/policies/mondoo-linux-security"
}
listB:
([]string) (len=2) {
(string) (len=54) "//policy.api.mondoo.app/policies/mondoo-linux-security",
(string) (len=45) "//policy.api.mondoo.app/policies/platform-eol"
}
Test: TestAuditConfigCustomNamespaceSuite/TestReconcile_Containers
Messages: Scored policies for asset gke.gcr.io/prometheus-engine/operator@007b1eb9afba should be the default k8s policies
audit_config_base_suite.go:1269:
Error Trace: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:1269
/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:313
/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_namespace_test.go:96
Error: elements differ
extra elements in list A:
([]interface {}) (len=1) {
(string) (len=59) "//policy.api.mondoo.app/policies/mondoo-kubernetes-security"
}
listA:
([]string) (len=3) {
(string) (len=45) "//policy.api.mondoo.app/policies/platform-eol",
(string) (len=59) "//policy.api.mondoo.app/policies/mondoo-kubernetes-security",
(string) (len=54) "//policy.api.mondoo.app/policies/mondoo-linux-security"
}
listB:
([]string) (len=2) {
(string) (len=54) "//policy.api.mondoo.app/policies/mondoo-linux-security",
(string) (len=45) "//policy.api.mondoo.app/policies/platform-eol"
}
Test: TestAuditConfigCustomNamespaceSuite/TestReconcile_Containers
Messages: Scored policies for asset gke.gcr.io/prometheus-engine/prometheus@4e54e60a9de0 should be the default k8s policies
audit_config_base_suite.go:1269:
Error Trace: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:1269
/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:313
/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_namespace_test.go:96
Error: elements differ
extra elements in list A:
([]interface {}) (len=1) {
(string) (len=59) "//policy.api.mondoo.app/policies/mondoo-kubernetes-security"
}
listA:
([]string) (len=3) {
(string) (len=45) "//policy.api.mondoo.app/policies/platform-eol",
(string) (len=59) "//policy.api.mondoo.app/policies/mondoo-kubernetes-security",
(string) (len=54) "//policy.api.mondoo.app/policies/mondoo-linux-security"
}
listB:
([]string) (len=2) {
(string) (len=54) "//policy.api.mondoo.app/policies/mondoo-linux-security",
(string) (len=45) "//policy.api.mondoo.app/policies/platform-eol"
}
Test: TestAuditConfigCustomNamespaceSuite/TestReconcile_Containers
Messages: Scored policies for asset gke.gcr.io/prometheus-engine/config-reloader@5a852aebfbd9 should be the default k8s policies
audit_config_base_suite.go:1269:
Error Trace: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:1269
/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:313
/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_namespace_test.go:96
Error: elements differ
extra elements in list A:
([]interface {}) (len=1) {
(string) (len=59) "//policy.api.mondoo.app/policies/mondoo-kubernetes-security"
}
listA:
([]string) (len=3) {
(string) (len=45) "//policy.api.mondoo.app/policies/platform-eol",
(string) (len=59) "//policy.api.mondoo.app/policies/mondoo-kubernetes-security",
(string) (len=54) "//policy.api.mondoo.app/policies/mondoo-linux-security"
}
listB:
([]string) (len=2) {
(string) (len=54) "//policy.api.mondoo.app/policies/mondoo-linux-security",
(string) (len=45) "//policy.api.mondoo.app/policies/platform-eol"
}
Test: TestAuditConfigCustomNamespaceSuite/TestReconcile_Containers
Messages: Scored policies for asset gke.gcr.io/gke-distroless/bash@17d23aa1d2cc should be the default k8s policies
2024-05-05T23:20:16.107Z INFO installer/installer.go:212 gathering all logs from the test
2024-05-05T23:20:16.107Z INFO utils/k8s_helper.go:256 Gathering logs for all pods in namespace some-namespace
2024-05-05T23:20:16.150Z DEBUG utils/k8s_helper.go:545 created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/AuditConfigCustomNamespaceSuite/TestReconcile_Containers/some-namespace_mondoo-client-containers-scan-28582519-b727r_1714951216.log
2024-05-05T23:20:16.258Z INFO utils/k8s_helper.go:267 Gathering pod describe for all pods in namespace some-namespace
2024-05-05T23:20:16.275Z DEBUG utils/k8s_helper.go:545 created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/AuditConfigCustomNamespaceSuite/TestReconcile_Containers/describe_some-namespace_1714951216.log
2024-05-05T23:20:16.275Z DEBUG utils/executor.go:271 Running command: kubectl get pod -o yaml -n some-namespace mondoo-client-containers-scan-28582519-b727r
2024-05-05T23:20:16.427Z DEBUG utils/executor.go:271 Running command: kubectl get cronjob -o yaml -n some-namespace mondoo-client-containers-scan
2024-05-05T23:20:16.550Z DEBUG utils/executor.go:271 Running command: kubectl get mondooauditconfig -o yaml -n some-namespace mondoo-client
2024-05-05T23:20:16.640Z INFO utils/k8s_helper.go:318 Gathering events in namespace "some-namespace"
2024-05-05T23:20:16.640Z DEBUG utils/k8s_helper.go:545 created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/AuditConfigCustomNamespaceSuite/TestReconcile_Containers/events_some-namespace_1714951216.log
2024-05-05T23:20:16.640Z DEBUG utils/executor.go:271 Running command: kubectl get events -n some-namespace
2024-05-05T23:20:16.765Z INFO installer/installer.go:212 gathering all logs from the test
2024-05-05T23:20:16.765Z INFO utils/k8s_helper.go:256 Gathering logs for all pods in namespace mondoo-operator
2024-05-05T23:20:16.802Z DEBUG utils/k8s_helper.go:545 created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/AuditConfigCustomNamespaceSuite/TestReconcile_Containers/mondoo-operator_mondoo-operator-controller-manager-8646559c78-g884x_1714951216.log
2024-05-05T23:20:16.853Z DEBUG utils/k8s_helper.go:545 created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/AuditConfigCustomNamespaceSuite/TestReconcile_Containers/mondoo-operator_mondoo-operator-controller-manager-8646559c78-g884x_previous_1714951216.log
2024-05-05T23:20:16.875Z DEBUG utils/executor.go:271 Running command: kubectl -n mondoo-operator logs mondoo-operator-controller-manager-8646559c78-g884x -c manager
2024-05-05T23:20:17.014Z INFO utils/k8s_helper.go:267 Gathering pod describe for all pods in namespace mondoo-operator
2024-05-05T23:20:17.034Z DEBUG utils/k8s_helper.go:545 created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/AuditConfigCustomNamespaceSuite/TestReconcile_Containers/describe_mondoo-operator_1714951217.log
2024-05-05T23:20:17.035Z DEBUG utils/executor.go:271 Running command: kubectl get pod -o yaml -n mondoo-operator mondoo-operator-controller-manager-8646559c78-g884x
2024-05-05T23:20:17.158Z DEBUG utils/executor.go:271 Running command: kubectl get deployment -o yaml -n mondoo-operator mondoo-operator-controller-manager
2024-05-05T23:20:17.318Z INFO utils/k8s_helper.go:318 Gathering events in namespace "mondoo-operator"
2024-05-05T23:20:17.318Z DEBUG utils/k8s_helper.go:545 created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/AuditConfigCustomNamespaceSuite/TestReconcile_Containers/events_mondoo-operator_1714951217.log
2024-05-05T23:20:17.318Z DEBUG utils/executor.go:271 Running command: kubectl get events -n mondoo-operator
2024-05-05T23:20:17.555Z INFO utils/k8s_helper.go:347 Resource k8s.mondoo.com/v1alpha2, Kind=MondooAuditConfig some-namespace/mondoo-client still exists.
2024-05-05T23:20:19.572Z INFO utils/k8s_helper.go:351 Resource k8s.mondoo.com/v1alpha2, Kind=MondooAuditConfig some-namespace/mondoo-client deleted.
2024-05-05T23:20:19.572Z INFO installer/installer.go:192 Deleted MondooAuditConfig some-namespace/mondoo-client.
2024-05-05T23:20:19.621Z INFO integration/audit_config_base_suite.go:117 Waiting for cleanup of the test cluster.
2024-05-05T23:20:19.703Z INFO integration/audit_config_base_suite.go:142 Cleanup done. Cluster should be good to go for the next test.
2024-05-05T23:20:19.988Z DEBUG utils/executor.go:271 Running command: kubectl delete pods -n default --all --wait
--- FAIL: TestAuditConfigCustomNamespaceSuite/TestReconcile_Containers (110.80s)
Check warning on line 0 in go.mondoo.com/mondoo-operator/tests/integration
github-actions / Test Results
3 out of 8 runs failed: TestAuditConfigCustomNamespaceSuite (go.mondoo.com/mondoo-operator/tests/integration)
integration-tests-gke-1.27.xml [took 10m 58s]
integration-tests-gke-1.28.xml [took 9m 9s]
integration-tests-gke-1.29.xml [took 8m 48s]
Raw output
Failed
=== RUN TestAuditConfigCustomNamespaceSuite
Using GraphQL endpoint https://api.mondoo.com/query
Using org MRN //captain.api.mondoo.app/organizations/mondoo-operator-testing
2024-05-05T23:16:57Z INFO Created Nexus space {"space": "//captain.api.mondoo.app/spaces/friendly-ganguly-315771"}
2024-05-05T23:16:58.178Z INFO installer/installer.go:91 Installing Mondoo operator with local manifest
2024-05-05T23:16:58.178Z INFO utils/manifest_utils.go:54 Reading file: /home/runner/work/mondoo-operator/mondoo-operator/mondoo-operator-manifests.yaml
2024-05-05T23:16:58.178Z INFO utils/exec_utils.go:45 Running kubectl [apply -f -]
namespace/mondoo-operator created
customresourcedefinition.apiextensions.k8s.io/mondooauditconfigs.k8s.mondoo.com created
customresourcedefinition.apiextensions.k8s.io/mondoooperatorconfigs.k8s.mondoo.com created
serviceaccount/mondoo-operator-controller-manager created
serviceaccount/mondoo-operator-k8s-resources-scanning created
serviceaccount/mondoo-operator-webhook created
role.rbac.authorization.k8s.io/mondoo-operator-leader-election-role created
clusterrole.rbac.authorization.k8s.io/mondoo-operator-k8s-resources-scanning created
clusterrole.rbac.authorization.k8s.io/mondoo-operator-manager-role created
rolebinding.rbac.authorization.k8s.io/mondoo-operator-leader-election-rolebinding created
clusterrolebinding.rbac.authorization.k8s.io/mondoo-operator-k8s-resources-scanning created
clusterrolebinding.rbac.authorization.k8s.io/mondoo-operator-manager-rolebinding created
configmap/mondoo-operator-manager-config created
service/mondoo-operator-controller-manager-metrics-service created
deployment.apps/mondoo-operator-controller-manager created
2024-05-05T23:17:02.389Z INFO installer/installer.go:204 Created Мondoo client secret "mondoo-token".
2024-05-05T23:17:12.577Z INFO installer/installer.go:130 Mondoo operator is ready.
2024-05-05T23:17:12.601Z INFO integration/audit_config_namespace_test.go:36 Created test namespace.
2024-05-05T23:17:12.672Z INFO installer/installer.go:204 Created Мondoo client secret "mondoo-token".
2024-05-05T23:17:12.673Z INFO integration/audit_config_namespace_test.go:39 Created client secret in namespace "some-namespace".
2024-05-05T23:17:12.705Z INFO integration/audit_config_namespace_test.go:46 Created webhook ServiceAccount "webhook-sa" in namespace "some-namespace".
2024-05-05T23:17:12.736Z INFO integration/audit_config_namespace_test.go:53 Created service account "mondoo-sa" in namespace "some-namespace".
2024-05-05T23:17:12.791Z INFO integration/audit_config_namespace_test.go:66 Created cluster role binding "mondoo-operator-k8s-resources-scanning2".
--- FAIL: TestAuditConfigCustomNamespaceSuite (528.15s)
Check warning on line 0 in go.mondoo.com/mondoo-operator/tests/integration
github-actions / Test Results
3 out of 8 runs failed: TestAuditConfigSuite/TestReconcile_Containers (go.mondoo.com/mondoo-operator/tests/integration)
integration-tests-gke-1.27.xml [took 1m 52s]
integration-tests-gke-1.28.xml [took 2m 24s]
integration-tests-gke-1.29.xml [took 2m 2s]
Raw output
Failed
=== RUN TestAuditConfigSuite/TestReconcile_Containers
2024-05-05T23:33:14.184Z INFO utils/audit_config.go:71 Using image ghcr.io/mondoohq/mondoo-operator/cnspec:latest-rootless for mondoo-client
2024-05-05T23:33:14.184Z DEBUG utils/executor.go:271 Running command: kubectl run -n default nginx --image nginx -l app.kubernetes.io/name=nginx
2024-05-05T23:33:14.304Z DEBUG utils/executor.go:271 Running command: kubectl run -n default redis --image redis -l app.kubernetes.io/name=redis
2024-05-05T23:33:16.475Z INFO integration/audit_config_base_suite.go:252 Create an audit config that enables only workloads scanning.
2024-05-05T23:33:16.541Z INFO integration/audit_config_base_suite.go:262 Make sure the Mondoo k8s container image scan CronJob is created.
audit_config_base_suite.go:1269:
Error Trace: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:1269
/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:313
/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_test.go:41
Error: elements differ
extra elements in list A:
([]interface {}) (len=1) {
(string) (len=59) "//policy.api.mondoo.app/policies/mondoo-kubernetes-security"
}
listA:
([]string) (len=3) {
(string) (len=45) "//policy.api.mondoo.app/policies/platform-eol",
(string) (len=59) "//policy.api.mondoo.app/policies/mondoo-kubernetes-security",
(string) (len=54) "//policy.api.mondoo.app/policies/mondoo-linux-security"
}
listB:
([]string) (len=2) {
(string) (len=54) "//policy.api.mondoo.app/policies/mondoo-linux-security",
(string) (len=45) "//policy.api.mondoo.app/policies/platform-eol"
}
Test: TestAuditConfigSuite/TestReconcile_Containers
Messages: Scored policies for asset gke.gcr.io/prometheus-engine/prometheus@4e54e60a9de0 should be the default k8s policies
audit_config_base_suite.go:1269:
Error Trace: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:1269
/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:313
/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_test.go:41
Error: elements differ
extra elements in list A:
([]interface {}) (len=1) {
(string) (len=59) "//policy.api.mondoo.app/policies/mondoo-kubernetes-security"
}
listA:
([]string) (len=3) {
(string) (len=45) "//policy.api.mondoo.app/policies/platform-eol",
(string) (len=59) "//policy.api.mondoo.app/policies/mondoo-kubernetes-security",
(string) (len=54) "//policy.api.mondoo.app/policies/mondoo-linux-security"
}
listB:
([]string) (len=2) {
(string) (len=54) "//policy.api.mondoo.app/policies/mondoo-linux-security",
(string) (len=45) "//policy.api.mondoo.app/policies/platform-eol"
}
Test: TestAuditConfigSuite/TestReconcile_Containers
Messages: Scored policies for asset gke.gcr.io/prometheus-engine/config-reloader@5a852aebfbd9 should be the default k8s policies
audit_config_base_suite.go:1269:
Error Trace: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:1269
/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:313
/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_test.go:41
Error: elements differ
extra elements in list A:
([]interface {}) (len=1) {
(string) (len=59) "//policy.api.mondoo.app/policies/mondoo-kubernetes-security"
}
listA:
([]string) (len=3) {
(string) (len=45) "//policy.api.mondoo.app/policies/platform-eol",
(string) (len=59) "//policy.api.mondoo.app/policies/mondoo-kubernetes-security",
(string) (len=54) "//policy.api.mondoo.app/policies/mondoo-linux-security"
}
listB:
([]string) (len=2) {
(string) (len=54) "//policy.api.mondoo.app/policies/mondoo-linux-security",
(string) (len=45) "//policy.api.mondoo.app/policies/platform-eol"
}
Test: TestAuditConfigSuite/TestReconcile_Containers
Messages: Scored policies for asset gke.gcr.io/gke-distroless/bash@17d23aa1d2cc should be the default k8s policies
audit_config_base_suite.go:1269:
Error Trace: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:1269
/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:313
/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_test.go:41
Error: elements differ
extra elements in list A:
([]interface {}) (len=1) {
(string) (len=59) "//policy.api.mondoo.app/policies/mondoo-kubernetes-security"
}
listA:
([]string) (len=3) {
(string) (len=45) "//policy.api.mondoo.app/policies/platform-eol",
(string) (len=59) "//policy.api.mondoo.app/policies/mondoo-kubernetes-security",
(string) (len=54) "//policy.api.mondoo.app/policies/mondoo-linux-security"
}
listB:
([]string) (len=2) {
(string) (len=54) "//policy.api.mondoo.app/policies/mondoo-linux-security",
(string) (len=45) "//policy.api.mondoo.app/policies/platform-eol"
}
Test: TestAuditConfigSuite/TestReconcile_Containers
Messages: Scored policies for asset gke.gcr.io/prometheus-engine/rule-evaluator@1f43e65c4c12 should be the default k8s policies
audit_config_base_suite.go:1269:
Error Trace: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:1269
/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:313
/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_test.go:41
Error: elements differ
extra elements in list A:
([]interface {}) (len=1) {
(string) (len=59) "//policy.api.mondoo.app/policies/mondoo-kubernetes-security"
}
listA:
([]string) (len=3) {
(string) (len=45) "//policy.api.mondoo.app/policies/platform-eol",
(string) (len=59) "//policy.api.mondoo.app/policies/mondoo-kubernetes-security",
(string) (len=54) "//policy.api.mondoo.app/policies/mondoo-linux-security"
}
listB:
([]string) (len=2) {
(string) (len=54) "//policy.api.mondoo.app/policies/mondoo-linux-security",
(string) (len=45) "//policy.api.mondoo.app/policies/platform-eol"
}
Test: TestAuditConfigSuite/TestReconcile_Containers
Messages: Scored policies for asset gke.gcr.io/prometheus-engine/operator@007b1eb9afba should be the default k8s policies
2024-05-05T23:35:11.398Z INFO installer/installer.go:212 gathering all logs from the test
2024-05-05T23:35:11.398Z INFO utils/k8s_helper.go:256 Gathering logs for all pods in namespace mondoo-operator
2024-05-05T23:35:11.434Z DEBUG utils/k8s_helper.go:545 created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/AuditConfigSuite/TestReconcile_Containers/mondoo-operator_mondoo-client-containers-scan-28582534-pjfr7_1714952111.log
2024-05-05T23:35:11.539Z DEBUG utils/k8s_helper.go:545 created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/AuditConfigSuite/TestReconcile_Containers/mondoo-operator_mondoo-operator-controller-manager-8646559c78-5dgvj_1714952111.log
2024-05-05T23:35:11.606Z DEBUG utils/k8s_helper.go:545 created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/AuditConfigSuite/TestReconcile_Containers/mondoo-operator_mondoo-operator-controller-manager-8646559c78-5dgvj_previous_1714952111.log
2024-05-05T23:35:11.648Z DEBUG utils/executor.go:271 Running command: kubectl -n mondoo-operator logs mondoo-operator-controller-manager-8646559c78-5dgvj -c manager
2024-05-05T23:35:11.789Z INFO utils/k8s_helper.go:267 Gathering pod describe for all pods in namespace mondoo-operator
2024-05-05T23:35:11.810Z DEBUG utils/k8s_helper.go:545 created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/AuditConfigSuite/TestReconcile_Containers/describe_mondoo-operator_1714952111.log
2024-05-05T23:35:11.810Z DEBUG utils/executor.go:271 Running command: kubectl get pod -o yaml -n mondoo-operator mondoo-client-containers-scan-28582534-pjfr7
2024-05-05T23:35:11.916Z DEBUG utils/executor.go:271 Running command: kubectl get pod -o yaml -n mondoo-operator mondoo-operator-controller-manager-8646559c78-5dgvj
2024-05-05T23:35:12.040Z DEBUG utils/executor.go:271 Running command: kubectl get deployment -o yaml -n mondoo-operator mondoo-operator-controller-manager
2024-05-05T23:35:12.163Z DEBUG utils/executor.go:271 Running command: kubectl get cronjob -o yaml -n mondoo-operator mondoo-client-containers-scan
2024-05-05T23:35:12.282Z DEBUG utils/executor.go:271 Running command: kubectl get mondooauditconfig -o yaml -n mondoo-operator mondoo-client
2024-05-05T23:35:12.369Z INFO utils/k8s_helper.go:318 Gathering events in namespace "mondoo-operator"
2024-05-05T23:35:12.370Z DEBUG utils/k8s_helper.go:545 created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/AuditConfigSuite/TestReconcile_Containers/events_mondoo-operator_1714952112.log
2024-05-05T23:35:12.370Z DEBUG utils/executor.go:271 Running command: kubectl get events -n mondoo-operator
2024-05-05T23:35:12.602Z INFO utils/k8s_helper.go:347 Resource k8s.mondoo.com/v1alpha2, Kind=MondooAuditConfig mondoo-operator/mondoo-client still exists.
2024-05-05T23:35:14.619Z INFO utils/k8s_helper.go:351 Resource k8s.mondoo.com/v1alpha2, Kind=MondooAuditConfig mondoo-operator/mondoo-client deleted.
2024-05-05T23:35:14.619Z INFO installer/installer.go:192 Deleted MondooAuditConfig mondoo-operator/mondoo-client.
2024-05-05T23:35:14.669Z INFO integration/audit_config_base_suite.go:117 Waiting for cleanup of the test cluster.
2024-05-05T23:35:14.758Z INFO integration/audit_config_base_suite.go:142 Cleanup done. Cluster should be good to go for the next test.
2024-05-05T23:35:15.027Z DEBUG utils/executor.go:271 Running command: kubectl delete pods -n default --all --wait
--- FAIL: TestAuditConfigSuite/TestReconcile_Containers (122.40s)
Check warning on line 0 in go.mondoo.com/mondoo-operator/tests/integration
github-actions / Test Results
3 out of 8 runs failed: TestAuditConfigSuite (go.mondoo.com/mondoo-operator/tests/integration)
integration-tests-gke-1.27.xml [took 10m 23s]
integration-tests-gke-1.28.xml [took 10m 31s]
integration-tests-gke-1.29.xml [took 10m 52s]
Raw output
Failed
=== RUN TestAuditConfigSuite
Using GraphQL endpoint https://api.mondoo.com/query
Using org MRN //captain.api.mondoo.app/organizations/mondoo-operator-testing
2024-05-05T23:30:06Z INFO Created Nexus space {"space": "//captain.api.mondoo.app/spaces/modest-benz-455365"}
2024-05-05T23:30:06.491Z INFO installer/installer.go:91 Installing Mondoo operator with local manifest
2024-05-05T23:30:06.491Z INFO utils/manifest_utils.go:54 Reading file: /home/runner/work/mondoo-operator/mondoo-operator/mondoo-operator-manifests.yaml
2024-05-05T23:30:06.491Z INFO utils/exec_utils.go:45 Running kubectl [apply -f -]
namespace/mondoo-operator created
customresourcedefinition.apiextensions.k8s.io/mondooauditconfigs.k8s.mondoo.com created
customresourcedefinition.apiextensions.k8s.io/mondoooperatorconfigs.k8s.mondoo.com created
serviceaccount/mondoo-operator-controller-manager created
serviceaccount/mondoo-operator-k8s-resources-scanning created
serviceaccount/mondoo-operator-webhook created
role.rbac.authorization.k8s.io/mondoo-operator-leader-election-role created
clusterrole.rbac.authorization.k8s.io/mondoo-operator-k8s-resources-scanning created
clusterrole.rbac.authorization.k8s.io/mondoo-operator-manager-role created
rolebinding.rbac.authorization.k8s.io/mondoo-operator-leader-election-rolebinding created
clusterrolebinding.rbac.authorization.k8s.io/mondoo-operator-k8s-resources-scanning created
clusterrolebinding.rbac.authorization.k8s.io/mondoo-operator-manager-rolebinding created
configmap/mondoo-operator-manager-config created
service/mondoo-operator-controller-manager-metrics-service created
deployment.apps/mondoo-operator-controller-manager created
2024-05-05T23:30:11.235Z INFO installer/installer.go:204 Created Мondoo client secret "mondoo-token".
2024-05-05T23:30:21.354Z INFO installer/installer.go:130 Mondoo operator is ready.
--- FAIL: TestAuditConfigSuite (652.83s)
Check notice on line 0 in .github
github-actions / Test Results
23 tests found
There are 23 tests, see "Raw output" for the full list of tests.
Raw output
go.mondoo.com/mondoo-operator/tests/integration ‑ TestAuditConfigCustomNamespaceSuite
go.mondoo.com/mondoo-operator/tests/integration ‑ TestAuditConfigCustomNamespaceSuite/TestReconcile_Admission
go.mondoo.com/mondoo-operator/tests/integration ‑ TestAuditConfigCustomNamespaceSuite/TestReconcile_AdmissionMissingSA
go.mondoo.com/mondoo-operator/tests/integration ‑ TestAuditConfigCustomNamespaceSuite/TestReconcile_Containers
go.mondoo.com/mondoo-operator/tests/integration ‑ TestAuditConfigCustomNamespaceSuite/TestReconcile_KubernetesResources
go.mondoo.com/mondoo-operator/tests/integration ‑ TestAuditConfigCustomNamespaceSuite/TestReconcile_Nodes_CronJobs
go.mondoo.com/mondoo-operator/tests/integration ‑ TestAuditConfigCustomNamespaceSuite/TestReconcile_Nodes_Deployments
go.mondoo.com/mondoo-operator/tests/integration ‑ TestAuditConfigOOMSuite
go.mondoo.com/mondoo-operator/tests/integration ‑ TestAuditConfigOOMSuite/TestOOMControllerReporting
go.mondoo.com/mondoo-operator/tests/integration ‑ TestAuditConfigOOMSuite/TestOOMNodeScan_CronJob
go.mondoo.com/mondoo-operator/tests/integration ‑ TestAuditConfigOOMSuite/TestOOMNodeScan_Deployment
go.mondoo.com/mondoo-operator/tests/integration ‑ TestAuditConfigOOMSuite/TestOOMScanAPI
go.mondoo.com/mondoo-operator/tests/integration ‑ TestAuditConfigSuite
go.mondoo.com/mondoo-operator/tests/integration ‑ TestAuditConfigSuite/TestReconcile_AdmissionEnforcing
go.mondoo.com/mondoo-operator/tests/integration ‑ TestAuditConfigSuite/TestReconcile_AdmissionEnforcingScaleDownScanApi
go.mondoo.com/mondoo-operator/tests/integration ‑ TestAuditConfigSuite/TestReconcile_AdmissionPermissive
go.mondoo.com/mondoo-operator/tests/integration ‑ TestAuditConfigSuite/TestReconcile_AllDisabled
go.mondoo.com/mondoo-operator/tests/integration ‑ TestAuditConfigSuite/TestReconcile_Containers
go.mondoo.com/mondoo-operator/tests/integration ‑ TestAuditConfigSuite/TestReconcile_KubernetesResources
go.mondoo.com/mondoo-operator/tests/integration ‑ TestAuditConfigSuite/TestReconcile_Nodes_CronJobs
go.mondoo.com/mondoo-operator/tests/integration ‑ TestAuditConfigSuite/TestReconcile_Nodes_Deployments
go.mondoo.com/mondoo-operator/tests/integration ‑ TestAuditConfigUpgradeSuite
go.mondoo.com/mondoo-operator/tests/integration ‑ TestAuditConfigUpgradeSuite/TestUpgradePreviousReleaseToLatest