mondoo-operator-1.17.2 (#913) #2247
Report Helm test results ❌
❌ integration-tests.xml
15 tests were completed in 2146s with 6 passed, 9 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
go.mondoo.com/mondoo-operator/tests/integration | 6✅ | 9❌ | 2100s |
❌ go.mondoo.com/mondoo-operator/tests/integration
❌ TestMain
{"level":"warn","system-path":"/opt/mondoo/providers","home-path":"/home/runner/.config/mondoo/providers","time":"2023-11-03T17:15:09Z","message":"can't find any paths for providers, none are configured"}
❌ TestAuditConfigSuite/TestReconcile_Containers
=== RUN TestAuditConfigSuite/TestReconcile_Containers
❌ TestAuditConfigSuite/TestReconcile_KubernetesResources
=== RUN TestAuditConfigSuite/TestReconcile_KubernetesResources
❌ TestAuditConfigSuite/TestReconcile_Nodes
=== RUN TestAuditConfigSuite/TestReconcile_Nodes
❌ TestAuditConfigSuite
=== RUN TestAuditConfigSuite
❌ TestAuditConfigSuite/TestReconcile_AdmissionEnforcing
=== RUN TestAuditConfigSuite/TestReconcile_AdmissionEnforcing
❌ TestAuditConfigSuite/TestReconcile_AdmissionEnforcingScaleDownScanApi
=== RUN TestAuditConfigSuite/TestReconcile_AdmissionEnforcingScaleDownScanApi
❌ TestAuditConfigSuite/TestReconcile_AdmissionPermissive
=== RUN TestAuditConfigSuite/TestReconcile_AdmissionPermissive
❌ TestAuditConfigSuite/TestReconcile_AllDisabled
=== RUN TestAuditConfigSuite/TestReconcile_AllDisabled
✅ TestAuditConfigCustomNamespaceSuite/TestReconcile_Admission
✅ TestAuditConfigCustomNamespaceSuite/TestReconcile_AdmissionMissingSA
✅ TestAuditConfigCustomNamespaceSuite/TestReconcile_Containers
✅ TestAuditConfigCustomNamespaceSuite/TestReconcile_KubernetesResources
✅ TestAuditConfigCustomNamespaceSuite/TestReconcile_Nodes
✅ TestAuditConfigCustomNamespaceSuite
Annotations
Check failure on line 0 in integration-tests.xml
github-actions / Report Helm test results
go.mondoo.com/mondoo-operator/tests/integration ► TestMain
Failed test found in:
integration-tests.xml
Error:
{"level":"warn","system-path":"/opt/mondoo/providers","home-path":"/home/runner/.config/mondoo/providers","time":"2023-11-03T17:15:09Z","message":"can't find any paths for providers, none are configured"}
Raw output
{"level":"warn","system-path":"/opt/mondoo/providers","home-path":"/home/runner/.config/mondoo/providers","time":"2023-11-03T17:15:09Z","message":"can't find any paths for providers, none are configured"}
{"level":"debug","time":"2023-11-03T17:15:09Z","message":"Started a new runtime (1 total)"}
panic: test timed out after 35m0s
running tests:
TestAuditConfigSuite (28m44s)
TestAuditConfigSuite/TestReconcile_Nodes (1m28s)
goroutine 1766 [running]:
testing.(*M).startAlarm.func1()
/opt/hostedtoolcache/go/1.21.3/x64/src/testing/testing.go:2259 +0x3b9
created by time.goFunc
/opt/hostedtoolcache/go/1.21.3/x64/src/time/sleep.go:176 +0x2d
goroutine 1 [chan receive, 28 minutes]:
testing.(*T).Run(0xc0004fc4e0, {0x26e9fd5?, 0x535cdc?}, 0x280c098)
/opt/hostedtoolcache/go/1.21.3/x64/src/testing/testing.go:1649 +0x3c8
testing.runTests.func1(0x3ead780?)
/opt/hostedtoolcache/go/1.21.3/x64/src/testing/testing.go:2054 +0x3e
testing.tRunner(0xc0004fc4e0, 0xc00070fc48)
/opt/hostedtoolcache/go/1.21.3/x64/src/testing/testing.go:1595 +0xff
testing.runTests(0xc0000ba820?, {0x3e7d6a0, 0x3, 0x3}, {0xc00068f070?, 0xc00070fd08?, 0x3eabd20?})
/opt/hostedtoolcache/go/1.21.3/x64/src/testing/testing.go:2052 +0x445
testing.(*M).Run(0xc0000ba820)
/opt/hostedtoolcache/go/1.21.3/x64/src/testing/testing.go:1925 +0x636
main.main()
_testmain.go:51 +0x19c
goroutine 22 [select]:
go.opencensus.io/stats/view.(*worker).start(0xc0002c7980)
/home/runner/go/pkg/mod/[email protected]/stats/view/worker.go:292 +0x9f
created by go.opencensus.io/stats/view.init.0 in goroutine 1
/home/runner/go/pkg/mod/[email protected]/stats/view/worker.go:34 +0x8d
goroutine 23 [IO wait, 35 minutes]:
internal/poll.runtime_pollWait(0x7fb721844e58, 0x72)
/opt/hostedtoolcache/go/1.21.3/x64/src/runtime/netpoll.go:343 +0x85
internal/poll.(*pollDesc).wait(0xc0001b8a80?, 0xc0001648f0?, 0x0)
/opt/hostedtoolcache/go/1.21.3/x64/src/internal/poll/fd_poll_runtime.go:84 +0x27
internal/poll.(*pollDesc).waitRead(...)
/opt/hostedtoolcache/go/1.21.3/x64/src/internal/poll/fd_poll_runtime.go:89
internal/poll.(*FD).ReadMsg(0xc0001b8a80, {0xc0001648f0, 0x10, 0x10}, {0xc000369320, 0x1000, 0x1000}, 0xc00035e470?)
/opt/hostedtoolcache/go/1.21.3/x64/src/internal/poll/fd_unix.go:301 +0x38a
net.(*netFD).readMsg(0xc0001b8a80, {0xc0001648f0?, 0xc0000d1ce0?, 0x41b953?}, {0xc000369320?, 0x0?, 0x100000001?}, 0x5?)
/opt/hostedtoolcache/go/1.21.3/x64/src/net/fd_posix.go:78 +0x31
net.(*UnixConn).readMsg(0xc000124800, {0xc0001648f0?, 0x42743c?, 0x3eea5a0?}, {0xc000369320?, 0x7fb6d8a52d08?, 0xc000218510?})
/opt/hostedtoolcache/go/1.21.3/x64/src/net/unixsock_posix.go:115 +0x45
net.(*UnixConn).ReadMsgUnix(0xc000124800, {0xc0001648f0?, 0x2a504c0?, 0x101c000218510?}, {0xc000369320?, 0x412785?, 0xc000122ee8?})
/opt/hostedtoolcache/go/1.21.3/x64/src/net/unixsock.go:143 +0x36
github.com/godbus/dbus.(*oobReader).Read(0xc000369300, {0xc0001648f0?, 0xc0000d1e30?, 0x412b05?})
/home/runner/go/pkg/mod/github.com/godbus/[email protected]/transport_unix.go:21 +0x3c
io.ReadAtLeast({0x2a5c3e0, 0xc000369300}, {0xc0001648f0, 0x10, 0x10}, 0x10)
/opt/hostedtoolcache/go/1.21.3/x64/src/io/io.go:335 +0x90
io.ReadFull(...)
/opt/hostedtoolcache/go/1.21.3/x64/src/io/io.go:354
github.com/godbus/dbus.(*unixTransport).ReadMessage(0xc000012930)
/home/runner/go/pkg/mod/github.com/godbus/[email protected]/transport_unix.go:91 +0xfe
github.com/godbus/dbus.(*Conn).inWorker(0xc0001ae480)
/home/runner/go/pkg/mod/github.com/godbus/[email protected]/conn.go:294 +0x35
created by github.com/godbus/dbus.(*Conn).Auth in goroutine 1
/home/runner/go/pkg/mod/github.com/godbus/[email protected]/auth.go:118 +0x9a5
goroutine 42 [chan receive]:
k8s.io/client-go/util/workqueue.(*Type).updateUnfinishedWorkLoop(0xc0008707e0)
/home/runner/go/pkg/mod/k8s.io/[email protected]/util/workqueue/queue.go:314 +0x9c
created by k8s.io/client-go/util/workqueue.newQueue in goroutine 29
/home/runner/go/pkg/mod/k8s.io/[email protected]/util/workqueue/queue.go:106 +0x1ba
goroutine 602 [chan receive]:
testing.(*T).Run(0xc0002b0680, {0x205da88?, 0xc0002b0680?}, 0xc0009bfe60)
/opt/hostedtoolcache/go/1.21.3/x64/src/testing/testing.go:1649 +0x3c8
github.com/stretchr/testify/suite.runTests({0x2a8dc50, 0xc0002b0680}, {0xc00087c780?, 0x7, 0x8})
/home/runner/go/pkg/mod/github.com/stretchr/[email protected]/suite/suite.go:242 +0x106
github.com/stretchr/testify/suite.Run(0xc0002b0680, {0x2a6b790, 0xc0003e0000})
/home/runner/go/pkg/mod/github.com/stretchr/[email protected]/suite/suite.go:215 +0x705
go.mondoo.com/mondoo-operator/tests/integration.TestAuditConfigSuite(0x0?)
/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_test.go:77 +0x7e
testing.tRunner(0xc0002b0680, 0x280c098)
/opt/hostedtoolcache/go/1.21.3/x64/src/testing/testing.go:1595 +0xff
created by testing.(*T).Run in goroutine 1
/opt/hostedtoolcache/go/1.21.3/x64/src/testing/testing.go:1648 +0x3ad
goroutine 54 [sync.Cond.Wait, 5 minutes]:
sync.runtime_notifyListWait(0xc0000e36d0, 0x6)
/opt/hostedtoolcache/go/1.21.3/x64/src/runtime/sema.go:527 +0x159
sync.(*Cond).Wait(0x2a4d8f0?)
/opt/hostedtoolcache/go/1.21.3/x64/src/sync/cond.go:70 +0x85
k8s.io/client-go/util/workqueue.(*Type).Get(0xc0008707e0)
/home/runner/go/pkg/mod/k8s.io/[email protected]/util/workqueue/queue.go:200 +0x99
k8s.io/client-go/transport.(*dynamicClientCert).processNextWorkItem(0xc0000e3780)
/home/runner/go/pkg/mod/k8s.io/[email protected]/transport/cert_rotation.go:156 +0x47
k8s.io/client-go/transport.(*dynamicClientCert).runWorker(...)
/home/runner/go/pkg/mod/k8s.io/[email protected]/transport/cert_rotation.go:151
k8s.io/apimachinery/pkg/util/wait.BackoffUntil.func1(0x30?)
/home/runner/go/pkg/mod/k8s.io/[email protected]/pkg/util/wait/backoff.go:226 +0x33
k8s.io/apimachinery/pkg/util/wait.BackoffUntil(0x0?, {0x2a556e0, 0xc0009cac90}, 0x1, 0xc00010ce40)
/home/runner/go/pkg/mod/k8s.io/[email protected]/pkg/util/wait/backoff.go:227 +0xaf
k8s.io/apimachinery/pkg/util/wait.JitterUntil(0xc000094fb0?, 0x3b9aca00, 0x0, 0x0?, 0x0?)
/home/runner/go/pkg/mod/k8s.io/[email protected]/pkg/util/wait/backoff.go:204 +0x7f
k8s.io/apimachinery/pkg/util/wait.Until(0x76d305?, 0x0?, 0x0?)
/home/runner/go/pkg/mod/k8s.io/[email protected]/pkg/util/wait/backoff.go:161 +0x1e
created by k8s.io/client-go/transport.(*dynamicClientCert).Run in goroutine 44
/home/runner/go/pkg/mod/k8s.io/[email protected]/transport/cert_rotation.go:140 +0x1ef
goroutine 55 [select, 5 minutes]:
k8s.io/apimachinery/pkg/util/wait.waitForWithContext({0x2a7c260, 0xc00010ce40}, 0xc000092f50, 0xc0004fcea0?)
/home/runner/go/pkg/mod/k8s.io/[email protected]/pkg/util/wait/wait.go:205 +0xd7
k8s.io/apimachinery/pkg/util/wait.poll({0x2a7c260, 0xc00010ce40}, 0x17?, 0x2176500?, 0xc00005c2d4?)
/home/runner/go/pkg/mod/k8s.io/[email protected]/pkg/util/wait/poll.go:260 +0x89
k8s.io/apimachinery/pkg/util/wait.PollImmediateUntilWithContext({0x2a7c260?, 0xc00010ce40?}, 0xc0004101e8?, 0x5364c0?)
/home/runner/go/pkg/mod/k8s.io/[email protected]/pkg/util/wait/poll.go:200 +0x53
k8s.io/apimachinery/pkg/util/wait.PollImmediateUntil(0xc0003c4a20?, 0x17?, 0x1c?)
/home/runner/go/pkg/mod/k8s.io/[email protected]/pkg/util/wait/poll.go:187 +0x3c
created by k8s.io/client-go/transport.(*dynamicClientCert).Run in goroutine 44
/home/runner/go/pkg/mod/k8s.io/[email protected]/transport/cert_rotation.go:142 +0x29a
goroutine 56 [select, 5 minutes]:
k8s.io/apimachinery/pkg/util/wait.PollImmediateUntilWithContext.poller.func1.1()
/home/runner/go/pkg/mod/k8s.io/[email protected]/pkg/util/wait/poll.go:297 +0x1c5
created by k8s.io/apimachinery/pkg/util/wait.PollImmediateUntilWithContext.poller.func1 in goroutine 55
/home/runner/go/pkg/mod/k8s.io/[email protected]/pkg/util/wait/poll.go:280 +0xc5
goroutine 43 [select]:
k8s.io/client-go/util/workqueue.(*delayingType).waitingLoop(0xc000870960)
/home/runner/go/pkg/mod/k8s.io/[email protected]/util/workqueue/delaying_queue.go:276 +0x305
created by k8s.io/client-go/util/workqueue.newDelayingQueue in goroutine 29
/home/runner/go/pkg/mod/k8s.io/[email protected]/util/workqueue/delaying_queue.go:113 +0x21f
goroutine 44 [chan receive, 34 minutes]:
k8s.io/client-go/transport.(*dynamicClientCert).Run(0xc0000e3780, 0xc00010ce40)
/home/runner/go/pkg/mod/k8s.io/[email protected]/transport/cert_rotation.go:147 +0x2a9
created by k8s.io/client-go/transport.(*tlsTransportCache).get in goroutine 29
/home/runner/go/pkg/mod/k8s.io/[email protected]/transport/cache.go:122 +0x594
goroutine 58 [IO wait]:
internal/poll.runtime_pollWait(0x7fb721844d60, 0x72)
/opt/hostedtoolcache/go/1.21.3/x64/src/runtime/netpoll.go:343 +0x85
internal/poll.(*pollDesc).wait(0xc0006c0d80?, 0xc000da0000?, 0x0)
/opt/hostedtoolcache/go/1.21.3/x64/src/internal/poll/fd_poll_runtime.go:84 +0x27
internal/poll.(*pollDesc).waitRead(...)
/opt/hostedtoolcache/go/1.21.3/x64/src/internal/poll/fd_poll_runtime.go:89
internal/poll.(*FD).Read(0xc0006c0d80, {0xc000da0000, 0xa000, 0xa000})
/opt/hostedtoolcache/go/1.21.3/x64/src/internal/poll/fd_unix.go:164 +0x27a
net.(*netFD).Read(0xc0006c0d80, {0xc000da0000?, 0x9fa1?, 0xc0004fe540?})
/opt/hostedtoolcache/go/1.21.3/x64/src/net/fd_posix.go:55 +0x25
net.(*conn).Read(0xc0004e07d0, {0xc000da0000?, 0xc000da005a?, 0x5?})
/opt/hostedtoolcache/go/1.21.3/x64/src/net/net.go:179 +0x45
crypto/tls.(*atLeastReader).Read(0xc00085e198, {0xc000da0000?, 0xc00085e198?, 0x0?})
/opt/hostedtoolcache/go/1.21.3/x64/src/crypto/tls/conn.go:805 +0x3b
bytes.(*Buffer).ReadFrom(0xc00068a2a8, {0x2a50360, 0xc00085e198})
/opt/hostedtoolcache/go/1.21.3/x64/src/bytes/buffer.go:211 +0x98
crypto/tls.(*Conn).readFromUntil(0xc00068a000, {0x7fb6d883bf80?, 0xc00085f308}, 0x9fa6?)
/opt/hostedtoolcache/go/1.21.3/x64/src/crypto/tls/conn.go:827 +0xde
crypto/tls.(*Conn).readRecordOrCCS(0xc00068a000, 0x0)
/opt/hostedtoolcache/go/1.21.3/x64/src/crypto/tls/conn.go:625 +0x250
crypto/tls.(*Conn).readRecord(...)
/opt/hostedtoolcache/go/1.21.3/x64/src/crypto/tls/conn.go:587
crypto/tls.(*Conn).Read(0xc00068a000, {0xc000a13000, 0x1000, 0xa02f25?})
/opt/hostedtoolcache/go/1.21.3/x64/src/crypto/tls/conn.go:1369 +0x158
bufio.(*Reader).Read(0xc000a10060, {0xc0009bcd60, 0x9, 0x3e68b00?})
/opt/hostedtoolcache/go/1.21.3/x64/src/bufio/bufio.go:244 +0x197
io.ReadAtLeast({0x2a501a0, 0xc000a10060}, {0xc0009bcd60, 0x9, 0x9}, 0x9)
/opt/hostedtoolcache/go/1.21.3/x64/src/io/io.go:335 +0x90
io.ReadFull(...)
/opt/hostedtoolcache/go/1.21.3/x64/src/io/io.go:354
golang.org/x/net/http2.readFrameHeader({0xc0009bcd60, 0x9, 0x3ead780?}, {0x2a501a0?, 0xc000a10060?})
/home/runner/go/pkg/mod/golang.org/x/[email protected]/http2/frame.go:237 +0x65
golang.org/x/net/http2.(*Framer).ReadFrame(0xc0009bcd20)
/home/runner/go/pkg/mod/golang.org/x/[email protected]/http2/frame.go:498 +0x85
golang.org/x/net/http2.(*clientConnReadLoop).run(0xc000ac7f98)
/home/runner/go/pkg/mod/golang.org/x/[email protected]/http2/transport.go:2275 +0x11f
golang.org/x/net/http2.(*ClientConn).readLoop(0xc000768480)
/home/runner/go/pkg/mod/golang.org/x/[email protected]/http2/transport.go:2170 +0x65
created by golang.org/x/net/http2.(*Transport).newClientConn in goroutine 57
/home/runner/go/pkg/mod/golang.org/x/[email protected]/http2/transport.go:821 +0xcbe
goroutine 1719 [sleep]:
time.Sleep(0x77359400)
/opt/hostedtoolcache/go/1.21.3/x64/src/runtime/time.go:195 +0x125
go.mondoo.com/mondoo-operator/tests/framework/utils.(*K8sHelper).ExecuteWithRetries(0xc0002b1ba0?, 0xc0005d7768)
/home/runner/work/mondoo-operator/mondoo-operator/tests/framework/utils/k8s_helper.go:358 +0x25
go.mondoo.com/mondoo-operator/tests/framework/utils.(*K8sHelper).WaitUntilMondooClientSecretExists(0xc0003e0000?, {0x2a7ba78?, 0x3ee7d20?}, {0x26dee22?, 0x25?})
/home/runner/work/mondoo-operator/mondoo-operator/tests/framework/utils/k8s_helper.go:199 +0x5e
go.mondoo.com/mondoo-operator/tests/integration.(*AuditConfigBaseSuite).testMondooAuditConfigNodes(_, {{{0x0, 0x0}, {0x0, 0x0}}, {{0x26dbb37, 0xd}, {0x0, 0x0}, {0x26dee22, ...}, ...}, ...})
/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:295 +0x228
go.mondoo.com/mondoo-operator/tests/integration.(*AuditConfigSuite).TestReconcile_Nodes(0xc0003e0000)
/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_test.go:41 +0xa5
reflect.Value.call({0xc000aea940?, 0xc0005e6e00?, 0x0?}, {0x26cbe42, 0x4}, {0xc000857e70, 0x1, 0xc000857d78?})
/opt/hostedtoolcache/go/1.21.3/x64/src/reflect/value.go:596 +0xce7
reflect.Value.Call({0xc000aea940?, 0xc0005e6e00?, 0xc0003e0000?}, {0xc000857e70?, 0x53632d?, 0x36ca678?})
/opt/hostedtoolcache/go/1.21.3/x64/src/reflect/value.go:380 +0xb9
github.com/stretchr/testify/suite.Run.func1(0xc0002b1ba0)
/home/runner/go/pkg/mod/github.com/stretchr/[email protected]/suite/suite.go:197 +0x467
testing.tRunner(0xc0002b1ba0, 0xc0009bfe60)
/opt/hostedtoolcache/go/1.21.3/x64/src/testing/testing.go:1595 +0xff
created by testing.(*T).Run in goroutine 602
/opt/hostedtoolcache/go/1.21.3/x64/src/testing/testing.go:1648 +0x3ad
goroutine 1711 [IO wait]:
internal/poll.runtime_pollWait(0x7fb721844980, 0x72)
/opt/hostedtoolcache/go/1.21.3/x64/src/runtime/netpoll.go:343 +0x85
internal/poll.(*pollDesc).wait(0xc0006b5600?, 0xc000452a00?, 0x0)
/opt/hostedtoolcache/go/1.21.3/x64/src/internal/poll/fd_poll_runtime.go:84 +0x27
internal/poll.(*pollDesc).waitRead(...)
/opt/hostedtoolcache/go/1.21.3/x64/src/internal/poll/fd_poll_runtime.go:89
internal/poll.(*FD).Read(0xc0006b5600, {0xc000452a00, 0x1500, 0x1500})
/opt/hostedtoolcache/go/1.21.3/x64/src/internal/poll/fd_unix.go:164 +0x27a
net.(*netFD).Read(0xc0006b5600, {0xc000452a00?, 0xc00043b7b0?, 0x12?})
/opt/hostedtoolcache/go/1.21.3/x64/src/net/fd_posix.go:55 +0x25
net.(*conn).Read(0xc000124980, {0xc000452a00?, 0xc0002b1040?, 0x27?})
/opt/hostedtoolcache/go/1.21.3/x64/src/net/net.go:179 +0x45
crypto/tls.(*atLeastReader).Read(0xc0007c62e8, {0xc000452a00?, 0xc0007c62e8?, 0x0?})
/opt/hostedtoolcache/go/1.21.3/x64/src/crypto/tls/conn.go:805 +0x3b
bytes.(*Buffer).ReadFrom(0xc000b0ad28, {0x2a50360, 0xc0007c62e8})
/opt/hostedtoolcache/go/1.21.3/x64/src/bytes/buffer.go:211 +0x98
crypto/tls.(*Conn).readFromUntil(0xc000b0aa80, {0x2a51ca0?, 0xc000124980}, 0xc00043b948?)
/opt/hostedtoolcache/go/1.21.3/x64/src/crypto/tls/conn.go:827 +0xde
crypto/tls.(*Conn).readRecordOrCCS(0xc000b0aa80, 0x0)
/opt/hostedtoolcache/go/1.21.3/x64/src/crypto/tls/conn.go:625 +0x250
crypto/tls.(*Conn).readRecord(...)
/opt/hostedtoolcache/go/1.21.3/x64/src/crypto/tls/conn.go:587
crypto/tls.(*Conn).Read(0xc000b0aa80, {0xc00081b000, 0x1000, 0x2a83958?})
/opt/hostedtoolcache/go/1.21.3/x64/src/crypto/tls/conn.go:1369 +0x158
bufio.(*Reader).Read(0xc00069d5c0, {0xc0001a0ba0, 0x9, 0x7a032e?})
/opt/hostedtoolcache/go/1.21.3/x64/src/bufio/bufio.go:244 +0x197
io.ReadAtLeast({0x2a501a0, 0xc00069d5c0}, {0xc0001a0ba0, 0x9, 0x9}, 0x9)
/opt/hostedtoolcache/go/1.21.3/x64/src/io/io.go:335 +0x90
io.ReadFull(...)
/opt/hostedtoolcache/go/1.21.3/x64/src/io/io.go:354
net/http.http2readFrameHeader({0xc0001a0ba0, 0x9, 0x776b72?}, {0x2a501a0?, 0xc00069d5c0?})
/opt/hostedtoolcache/go/1.21.3/x64/src/net/http/h2_bundle.go:1635 +0x65
net/http.(*http2Framer).ReadFrame(0xc0001a0b60)
/opt/hostedtoolcache/go/1.21.3/x64/src/net/http/h2_bundle.go:1899 +0x85
net/http.(*http2clientConnReadLoop).run(0xc00043bf98)
/opt/hostedtoolcache/go/1.21.3/x64/src/net/http/h2_bundle.go:9338 +0x11f
net/http.(*http2ClientConn).readLoop(0xc000821b00)
/opt/hostedtoolcache/go/1.21.3/x64/src/net/http/h2_bundle.go:9233 +0x65
created by net/http.(*http2Transport).newClientConn in goroutine 1710
/opt/hostedtoolcache/go/1.21.3/x64/src/net/http/h2_bundle.go:7905 +0xcbe
FAIL go.mondoo.com/mondoo-operator/tests/integration 2100.043s
Check failure on line 0 in integration-tests.xml
github-actions / Report Helm test results
go.mondoo.com/mondoo-operator/tests/integration ► TestAuditConfigSuite/TestReconcile_Containers
Failed test found in:
integration-tests.xml
Error:
=== RUN TestAuditConfigSuite/TestReconcile_Containers
Raw output
=== RUN TestAuditConfigSuite/TestReconcile_Containers
2023-11-03T17:35:00.308Z DEBUG utils/executor.go:271 Running command: kubectl run -n default nginx --image nginx -l app.kubernetes.io/name=nginx
2023-11-03T17:35:00.429Z DEBUG utils/executor.go:271 Running command: kubectl run -n default redis --image redis -l app.kubernetes.io/name=redis
2023-11-03T17:35:02.575Z INFO integration/audit_config_base_suite.go:231 Create an audit config that enables only workloads scanning.
2023-11-03T17:35:02.585Z INFO integration/audit_config_base_suite.go:241 Make sure the Mondoo k8s container image scan CronJob is created.
audit_config_base_suite.go:251:
Error Trace: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:251
/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_test.go:36
Error: Received unexpected error:
test did not succeed after 100 retries
Test: TestAuditConfigSuite/TestReconcile_Containers
Messages: Kubernetes container image scanning CronJob was not created.
audit_config_base_suite.go:259:
Error Trace: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:259
/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_test.go:36
Error: Received unexpected error:
test did not succeed after 100 retries
Test: TestAuditConfigSuite/TestReconcile_Containers
Messages: Couldn't find container image scan pod in Podlist of the MondooAuditConfig Status
audit_config_base_suite.go:262:
Error Trace: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:262
/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_test.go:36
Error: Received unexpected error:
test did not succeed after 100 retries
Test: TestAuditConfigSuite/TestReconcile_Containers
Messages: Couldn't find expected version in MondooAuditConfig.Status.ReconciledByOperatorVersion
audit_config_base_suite.go:274:
Error Trace: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:274
/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_test.go:36
Error: []string{} does not contain "index.docker.io/library/nginx@86e53c4c16a6"
Test: TestAuditConfigSuite/TestReconcile_Containers
Messages: Container images were not sent upstream.
audit_config_base_suite.go:280:
Error Trace: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:280
/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_test.go:36
Error: Not equal:
expected: "ACTIVE"
actual : "NOT_READY"
Diff:
--- Expected
+++ Actual
@@ -1 +1 @@
-ACTIVE
+NOT_READY
Test: TestAuditConfigSuite/TestReconcile_Containers
2023-11-03T17:45:14.235Z INFO installer/installer.go:173 gathering all logs from the test
2023-11-03T17:45:14.235Z INFO utils/k8s_helper.go:256 Gathering logs for all pods in namespace mondoo-operator
2023-11-03T17:45:14.238Z DEBUG utils/k8s_helper.go:461 created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/TestReconcile_Containers_mondoo-operator_mondoo-operator-controller-manager-58b759854b-ttfcm_1699033514.log
2023-11-03T17:45:14.286Z DEBUG utils/k8s_helper.go:461 created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/TestReconcile_Containers_mondoo-operator_mondoo-operator-controller-manager-58b759854b-ttfcm_previous_1699033514.log
2023-11-03T17:45:14.289Z DEBUG utils/executor.go:271 Running command: kubectl -n mondoo-operator logs mondoo-operator-controller-manager-58b759854b-ttfcm -c manager
2023-11-03T17:45:14.382Z INFO utils/k8s_helper.go:267 Gathering pod describe for all pods in namespace mondoo-operator
2023-11-03T17:45:14.386Z DEBUG utils/k8s_helper.go:461 created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/mondoo-operator_describe_TestReconcile_Containers_1699033514.log
2023-11-03T17:45:14.386Z DEBUG utils/executor.go:271 Running command: kubectl get pod -o yaml -n mondoo-operator mondoo-operator-controller-manager-58b759854b-ttfcm
2023-11-03T17:45:14.457Z DEBUG utils/executor.go:271 Running command: kubectl get deployment -o yaml -n mondoo-operator mondoo-operator-controller-manager
2023-11-03T17:45:14.530Z DEBUG utils/executor.go:271 Running command: kubectl get mondooauditconfig -o yaml -n mondoo-operator mondoo-client
2023-11-03T17:45:14.602Z INFO utils/k8s_helper.go:308 Gathering events in namespace "mondoo-operator"
2023-11-03T17:45:14.602Z DEBUG utils/k8s_helper.go:461 created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/mondoo-operator_events_TestReconcile_Containers_1699033514.log
2023-11-03T17:45:14.602Z DEBUG utils/executor.go:271 Running command: kubectl get events -n mondoo-operator
2023-11-03T17:45:14.687Z INFO utils/k8s_helper.go:337 Resource k8s.mondoo.com/v1alpha2, Kind=MondooAuditConfig mondoo-operator/mondoo-client still exists.
2023-11-03T17:45:16.691Z INFO utils/k8s_helper.go:341 Resource k8s.mondoo.com/v1alpha2, Kind=MondooAuditConfig mondoo-operator/mondoo-client deleted.
2023-11-03T17:45:16.697Z INFO integration/audit_config_base_suite.go:116 Waiting for cleanup of the test cluster.
2023-11-03T17:45:16.706Z INFO integration/audit_config_base_suite.go:141 Cleanup done. Cluster should be good to go for the next test.
2023-11-03T17:45:16.807Z DEBUG utils/executor.go:271 Running command: kubectl delete pods -n default --all --wait
Check failure on line 0 in integration-tests.xml
github-actions / Report Helm test results
go.mondoo.com/mondoo-operator/tests/integration ► TestAuditConfigSuite/TestReconcile_KubernetesResources
Failed test found in:
integration-tests.xml
Error:
=== RUN TestAuditConfigSuite/TestReconcile_KubernetesResources
Raw output
=== RUN TestAuditConfigSuite/TestReconcile_KubernetesResources
2023-11-03T17:45:18.251Z INFO integration/audit_config_base_suite.go:158 Create an audit config that enables only workloads scanning.
audit_config_base_suite.go:163:
Error Trace: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:163
/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_test.go:27
Error: Should be true
Test: TestAuditConfigSuite/TestReconcile_KubernetesResources
Messages: Mondoo SA not created
2023-11-03T17:48:38.591Z INFO installer/installer.go:173 gathering all logs from the test
2023-11-03T17:48:38.591Z INFO utils/k8s_helper.go:256 Gathering logs for all pods in namespace mondoo-operator
2023-11-03T17:48:38.594Z DEBUG utils/k8s_helper.go:461 created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/TestReconcile_KubernetesResources_mondoo-operator_mondoo-operator-controller-manager-58b759854b-ttfcm_1699033718.log
2023-11-03T17:48:38.631Z DEBUG utils/k8s_helper.go:461 created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/TestReconcile_KubernetesResources_mondoo-operator_mondoo-operator-controller-manager-58b759854b-ttfcm_previous_1699033718.log
2023-11-03T17:48:38.635Z DEBUG utils/executor.go:271 Running command: kubectl -n mondoo-operator logs mondoo-operator-controller-manager-58b759854b-ttfcm -c manager
2023-11-03T17:48:38.769Z INFO utils/k8s_helper.go:267 Gathering pod describe for all pods in namespace mondoo-operator
2023-11-03T17:48:38.772Z DEBUG utils/k8s_helper.go:461 created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/mondoo-operator_describe_TestReconcile_KubernetesResources_1699033718.log
2023-11-03T17:48:38.772Z DEBUG utils/executor.go:271 Running command: kubectl get pod -o yaml -n mondoo-operator mondoo-operator-controller-manager-58b759854b-ttfcm
2023-11-03T17:48:38.840Z DEBUG utils/executor.go:271 Running command: kubectl get deployment -o yaml -n mondoo-operator mondoo-operator-controller-manager
2023-11-03T17:48:38.913Z DEBUG utils/executor.go:271 Running command: kubectl get mondooauditconfig -o yaml -n mondoo-operator mondoo-client
2023-11-03T17:48:38.980Z INFO utils/k8s_helper.go:308 Gathering events in namespace "mondoo-operator"
2023-11-03T17:48:38.980Z DEBUG utils/k8s_helper.go:461 created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/mondoo-operator_events_TestReconcile_KubernetesResources_1699033718.log
2023-11-03T17:48:38.980Z DEBUG utils/executor.go:271 Running command: kubectl get events -n mondoo-operator
2023-11-03T17:48:39.073Z INFO utils/k8s_helper.go:337 Resource k8s.mondoo.com/v1alpha2, Kind=MondooAuditConfig mondoo-operator/mondoo-client still exists.
2023-11-03T17:48:41.076Z INFO utils/k8s_helper.go:341 Resource k8s.mondoo.com/v1alpha2, Kind=MondooAuditConfig mondoo-operator/mondoo-client deleted.
2023-11-03T17:48:41.081Z INFO integration/audit_config_base_suite.go:116 Waiting for cleanup of the test cluster.
2023-11-03T17:48:41.089Z INFO integration/audit_config_base_suite.go:141 Cleanup done. Cluster should be good to go for the next test.
2023-11-03T17:48:41.208Z DEBUG utils/executor.go:271 Running command: kubectl delete pods -n default --all --wait
Check failure on line 0 in integration-tests.xml
github-actions / Report Helm test results
go.mondoo.com/mondoo-operator/tests/integration ► TestAuditConfigSuite/TestReconcile_Nodes
Failed test found in:
integration-tests.xml
Error:
=== RUN TestAuditConfigSuite/TestReconcile_Nodes
Raw output
=== RUN TestAuditConfigSuite/TestReconcile_Nodes
2023-11-03T17:48:41.279Z INFO integration/audit_config_base_suite.go:290 Create an audit config that enables only nodes scanning.
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
2023-11-03T17:21:26.357Z INFO installer/installer.go:167 Мondoo client secret mondoo-operator/mondoo-token already exists.
2023-11-03T17:21:26.357Z INFO installer/installer.go:66 The Mondoo operator is installed externally. Skipping installation...
=== RUN TestAuditConfigSuite/TestReconcile_AdmissionEnforcing
2023-11-03T17:21:27.018Z INFO integration/audit_config_base_suite.go:405 Create an audit config that enables only admission control.
audit_config_base_suite.go:410:
Error Trace: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:410
/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:393
/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_test.go:52
Error: Should be true
Test: TestAuditConfigSuite/TestReconcile_AdmissionEnforcing
Messages: Mondoo SA not created
2023-11-03T17:24:47.352Z INFO installer/installer.go:173 gathering all logs from the test
2023-11-03T17:24:47.352Z INFO utils/k8s_helper.go:256 Gathering logs for all pods in namespace mondoo-operator
2023-11-03T17:24:47.355Z DEBUG utils/k8s_helper.go:461 created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/TestReconcile_AdmissionEnforcing_mondoo-operator_mondoo-operator-controller-manager-58b759854b-ttfcm_1699032287.log
2023-11-03T17:24:47.381Z DEBUG utils/k8s_helper.go:461 created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/TestReconcile_AdmissionEnforcing_mondoo-operator_mondoo-operator-controller-manager-58b759854b-ttfcm_previous_1699032287.log
2023-11-03T17:24:47.384Z DEBUG utils/executor.go:271 Running command: kubectl -n mondoo-operator logs mondoo-operator-controller-manager-58b759854b-ttfcm -c manager
2023-11-03T17:24:47.477Z INFO utils/k8s_helper.go:267 Gathering pod describe for all pods in namespace mondoo-operator
2023-11-03T17:24:47.481Z DEBUG utils/k8s_helper.go:461 created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/mondoo-operator_describe_TestReconcile_AdmissionEnforcing_1699032287.log
2023-11-03T17:24:47.481Z DEBUG utils/executor.go:271 Running command: kubectl get pod -o yaml -n mondoo-operator mondoo-operator-controller-manager-58b759854b-ttfcm
2023-11-03T17:24:47.547Z DEBUG utils/executor.go:271 Running command: kubectl get deployment -o yaml -n mondoo-operator mondoo-operator-controller-manager
2023-11-03T17:24:47.619Z DEBUG utils/executor.go:271 Running command: kubectl get mondooauditconfig -o yaml -n mondoo-operator mondoo-client
2023-11-03T17:24:47.686Z INFO utils/k8s_helper.go:308 Gathering events in namespace "mondoo-operator"
2023-11-03T17:24:47.686Z DEBUG utils/k8s_helper.go:461 created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/mondoo-operator_events_TestReconcile_AdmissionEnforcing_1699032287.log
2023-11-03T17:24:47.686Z DEBUG utils/executor.go:271 Running command: kubectl get events -n mondoo-operator
2023-11-03T17:24:47.769Z INFO utils/k8s_helper.go:337 Resource k8s.mondoo.com/v1alpha2, Kind=MondooAuditConfig mondoo-operator/mondoo-client still exists.
2023-11-03T17:24:49.773Z INFO utils/k8s_helper.go:341 Resource k8s.mondoo.com/v1alpha2, Kind=MondooAuditConfig mondoo-operator/mondoo-client deleted.
2023-11-03T17:24:49.778Z INFO integration/audit_config_base_suite.go:116 Waiting for cleanup of the test cluster.
2023-11-03T17:24:49.786Z INFO integration/audit_config_base_suite.go:141 Cleanup done. Cluster should be good to go for the next test.
2023-11-03T17:24:49.959Z DEBUG utils/executor.go:271 Running command: kubectl delete pods -n default --all --wait
=== RUN TestAuditConfigSuite/TestReconcile_AdmissionEnforcingScaleDownScanApi
2023-11-03T17:24:50.500Z INFO integration/audit_config_base_suite.go:405 Create an audit config that enables only admission control.
audit_config_base_suite.go:410:
Error Trace: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:410
/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:465
/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_test.go:60
Error: Should be true
Test: TestAuditConfigSuite/TestReconcile_AdmissionEnforcingScaleDownScanApi
Messages: Mondoo SA not created
2023-11-03T17:28:10.849Z INFO installer/installer.go:173 gathering all logs from the test
2023-11-03T17:28:10.849Z INFO utils/k8s_helper.go:256 Gathering logs for all pods in namespace mondoo-operator
2023-11-03T17:28:10.852Z DEBUG utils/k8s_helper.go:461 created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/TestReconcile_AdmissionEnforcingScaleDownScanApi_mondoo-operator_mondoo-operator-controller-manager-58b759854b-ttfcm_1699032490.log
2023-11-03T17:28:10.881Z DEBUG utils/k8s_helper.go:461 created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/TestReconcile_AdmissionEnforcingScaleDownScanApi_mondoo-operator_mondoo-operator-controller-manager-58b759854b-ttfcm_previous_1699032490.log
2023-11-03T17:28:10.885Z DEBUG utils/executor.go:271 Running command: kubectl -n mondoo-operator logs mondoo-operator-controller-manager-58b759854b-ttfcm -c manager
2023-11-03T17:28:10.975Z INFO utils/k8s_helper.go:267 Gathering pod describe for all pods in namespace mondoo-operator
2023-11-03T17:28:10.978Z DEBUG utils/k8s_helper.go:461 created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/mondoo-operator_describe_TestReconcile_AdmissionEnforcingScaleDownScanApi_1699032490.log
2023-11-03T17:28:10.978Z DEBUG utils/executor.go:271 Running command: kubectl get pod -o yaml -n mondoo-operator mondoo-operator-controller-manager-58b759854b-ttfcm
2023-11-03T17:28:11.055Z DEBUG utils/executor.go:271 Running command: kubectl get deployment -o yaml -n mondoo-operator mondoo-operator-controller-manager
2023-11-03T17:28:11.130Z DEBUG utils/executor.go:271 Running command: kubectl get mondooauditconfig -o yaml -n mondoo-operator mondoo-client
2023-11-03T17:28:11.199Z INFO utils/k8s_helper.go:308 Gathering events in namespace "mondoo-operator"
2023-11-03T17:28:11.199Z DEBUG utils/k8s_helper.go:461 created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/mondoo-operator_events_TestReconcile_AdmissionEnforcingScaleDownScanApi_1699032491.log
2023-11-03T17:28:11.199Z DEBUG utils/executor.go:271 Running command: kubectl get events -n mondoo-operator
2023-11-03T17:28:11.285Z INFO utils/k8s_helper.go:337 Resource k8s.mondoo.com/v1alpha2, Kind=MondooAuditConfig mondoo-operator/mondoo-client still exists.
2023-11-03T17:28:13.289Z INFO utils/k8s_helper.go:341 Resource k8s.mondoo.com/v1alpha2, Kind=MondooAuditConfig mondoo-operator/mondoo-client deleted.
2023-11-03T17:28:13.295Z INFO integration/audit_config_base_suite.go:116 Waiting for cleanup of the test cluster.
2023-11-03T17:28:13.303Z INFO integration/audit_config_base_suite.go:141 Cleanup done. Cluster should be good to go for the next test.
2023-11-03T17:28:13.418Z DEBUG utils/executor.go:271 Running command: kubectl delete pods -n default --all --wait
=== RUN TestAuditConfigSuite/TestReconcile_AdmissionPermissive
2023-11-03T17:28:14.026Z INFO integration/audit_config_base_suite.go:405 Create an audit config that enables only admission control.
audit_config_base_suite.go:410:
Error Trace: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:410
/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:393
/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_test.go:46
Error: Should be true
Test: TestAuditConfigSuite/TestReconcile_AdmissionPermissive
Messages: Mondoo SA not created
2023-11-03T17:31:34.363Z INFO installer/installer.go:173 gathering all logs from the test
2023-11-03T17:31:34.363Z INFO utils/k8s_helper.go:256 Gathering logs for all pods in namespace mondoo-operator
2023-11-03T17:31:34.367Z DEBUG utils/k8s_helper.go:461 created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/TestReconcile_AdmissionPermissive_mondoo-operator_mondoo-operator-controller-manager-58b759854b-ttfcm_1699032694.log
2023-11-03T17:31:34.393Z DEBUG utils/k8s_helper.go:461 created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/TestReconcile_AdmissionPermissive_mondoo-operator_mondoo-operator-controller-manager-58b759854b-ttfcm_previous_1699032694.log
2023-11-03T17:31:34.397Z DEBUG utils/executor.go:271 Running command: kubectl -n mondoo-operator logs mondoo-operator-controller-manager-58b759854b-ttfcm -c manager
2023-11-03T17:31:34.483Z INFO utils/k8s_helper.go:267 Gathering pod describe for all pods in namespace mondoo-operator
2023-11-03T17:31:34.486Z DEBUG utils/k8s_helper.go:461 created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/mondoo-operator_describe_TestReconcile_AdmissionPermissive_1699032694.log
2023-11-03T17:31:34.486Z DEBUG utils/executor.go:271 Running command: kubectl get pod -o yaml -n mondoo-operator mondoo-operator-controller-manager-58b759854b-ttfcm
2023-11-03T17:31:34.569Z DEBUG utils/executor.go:271 Running command: kubectl get deployment -o yaml -n mondoo-operator mondoo-operator-controller-manager
2023-11-03T17:31:34.639Z DEBUG utils/executor.go:271 Running command: kubectl get mondooauditconfig -o yaml -n mondoo-operator mondoo-client
2023-11-03T17:31:34.715Z INFO utils/k8s_helper.go:308 Gathering events in namespace "mondoo-operator"
2023-11-03T17:31:34.715Z DEBUG utils/k8s_helper.go:461 created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/mondoo-operator_events_TestReconcile_AdmissionPermissive_1699032694.log
2023-11-03T17:31:34.715Z DEBUG utils/executor.go:271 Running command: kubectl get events -n mondoo-operator
2023-11-03T17:31:34.792Z INFO utils/k8s_helper.go:337 Resource k8s.mondoo.com/v1alpha2, Kind=MondooAuditConfig mondoo-operator/mondoo-client still exists.
2023-11-03T17:31:36.795Z INFO utils/k8s_helper.go:341 Resource k8s.mondoo.com/v1alpha2, Kind=MondooAuditConfig mondoo-operator/mondoo-client deleted.
2023-11-03T17:31:36.801Z INFO integration/audit_config_base_suite.go:116 Waiting for cleanup of the test cluster.
2023-11-03T17:31:36.809Z INFO integration/audit_config_base_suite.go:141 Cleanup done. Cluster should be good to go for the next test.
2023-11-03T17:31:36.954Z DEBUG utils/executor.go:271 Running command: kubectl delete pods -n default --all --wait
=== RUN TestAuditConfigSuite/TestReconcile_AllDisabled
2023-11-03T17:31:37.084Z INFO integration/audit_config_base_suite.go:594 Create an audit config that enables nothing.
audit_config_base_suite.go:600:
Error Trace: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:600
/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_test.go:22
Error: Received unexpected error:
test did not succeed after 100 retries
Test: TestAuditConfigSuite/TestReconcile_AllDisabled
Messages: Couldn't find expected version in MondooAuditConfig.Status.ReconciledByOperatorVersion
audit_config_base_suite.go:604:
Error Trace: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:604
/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_test.go:22
Error: Not equal:
expected: "ACTIVE"
actual : "NOT_READY"
Diff:
--- Expected
+++ Actual
@@ -1 +1 @@
-ACTIVE
+NOT_READY
Test: TestAuditConfigSuite/TestReconcile_AllDisabled
2023-11-03T17:34:57.646Z INFO installer/installer.go:173 gathering all logs from the test
2023-11-03T17:34:57.646Z INFO utils/k8s_helper.go:256 Gathering logs for all pods in namespace mondoo-operator
2023-11-03T17:34:57.650Z DEBUG utils/k8s_helper.go:461 created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/TestReconcile_AllDisabled_mondoo-operator_mondoo-operator-controller-manager-58b759854b-ttfcm_1699032897.log
2023-11-03T17:34:57.688Z DEBUG utils/k8s_helper.go:461 created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/TestReconcile_AllDisabled_mondoo-operator_mondoo-operator-controller-manager-58b759854b-ttfcm_previous_1699032897.log
2023-11-03T17:34:57.692Z DEBUG utils/executor.go:271 Running command: kubectl -n mondoo-operator logs mondoo-operator-controller-manager-58b759854b-ttfcm -c manager
2023-11-03T17:34:57.781Z INFO utils/k8s_helper.go:267 Gathering pod describe for all pods in namespace mondoo-operator
2023-11-03T17:34:57.784Z DEBUG utils/k8s_helper.go:461 created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/mondoo-operator_describe_TestReconcile_AllDisabled_1699032897.log
2023-11-03T17:34:57.784Z DEBUG utils/executor.go:271 Running command: kubectl get pod -o yaml -n mondoo-operator mondoo-operator-controller-manager-58b759854b-ttfcm
2023-11-03T17:34:57.853Z DEBUG utils/executor.go:271 Running command: kubectl get deployment -o yaml -n mondoo-operator mondoo-operator-controller-manager
2023-11-03T17:34:57.925Z DEBUG utils/executor.go:271 Running command: kubectl get mondooauditconfig -o yaml -n mondoo-operator mondoo-client
2023-11-03T17:34:57.990Z INFO utils/k8s_helper.go:308 Gathering events in namespace "mondoo-operator"
2023-11-03T17:34:57.990Z DEBUG utils/k8s_helper.go:461 created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/mondoo-operator_events_TestReconcile_AllDisabled_1699032897.log
2023-11-03T17:34:57.990Z DEBUG utils/executor.go:271 Running command: kubectl get events -n mondoo-operator
2023-11-03T17:34:58.075Z INFO utils/k8s_helper.go:337 Resource k8s.mondoo.com/v1alpha2, Kind=MondooAuditConfig mondoo-operator/mondoo-client still exists.
2023-11-03T17:35:00.079Z INFO utils/k8s_helper.go:341 Resource k8s.mondoo.com/v1alpha2, Kind=MondooAuditConfig mondoo-operator/mondoo-client deleted.
2023-11-03T17:35:00.084Z INFO integration/audit_config_base_suite.go:116 Waiting for cleanup of the test cluster.
2023-11-03T17:35:00.094Z INFO integration/audit_config_base_suite.go:141 Cleanup done. Cluster should be good to go for the next test.
2023-11-03T17:35:00.195Z DEBUG utils/executor.go:271 Running command: kubectl delete pods -n default --all --wait
=== RUN TestAuditConfigSuite/TestReconcile_Containers
2023-11-03T17:35:00.308Z DEBUG utils/executor.go:271 Running command: kubectl run -n default nginx --image nginx -l app.kubernetes.io/name=nginx
2023-11-03T17:35:00.429Z DEBUG utils/executor.go:271 Running command: kubectl run -n default redis --image redis -l app.kubernetes.io/name=redis
2023-11-03T17:35:02.575Z INFO integration/audit_config_base_suite.go:231 Create an audit config that enables only workloads scanning.
2023-11-03T17:35:02.585Z INFO integration/audit_config_base_suite.go:241 Make sure the Mondoo k8s container image scan CronJob is created.
audit_config_base_suite.go:251:
Error Trace: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:251
/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_test.go:36
Error: Received unexpected error:
test did not succeed after 100 retries
Test: TestAuditConfigSuite/TestReconcile_Containers
Messages: Kubernetes container image scanning CronJob was not created.
audit_config_base_suite.go:259:
Error Trace: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:259
/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_test.go:36
Error: Received unexpected error:
test did not succeed after 100 retries
Test: TestAuditConfigSuite/TestReconcile_Containers
Messages: Couldn't find container image scan pod in Podlist of the MondooAuditConfig Status
audit_config_base_suite.go:262:
Error Trace: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:262
/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_test.go:36
Error: Received unexpected error:
test did not succeed after 100 retries
Test: TestAuditConfigSuite/TestReconcile_Containers
Messages: Couldn't find expected version in MondooAuditConfig.Status.ReconciledByOperatorVersion
audit_config_base_suite.go:274:
Error Trace: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:274
/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_test.go:36
Error: []string{} does not contain "index.docker.io/library/nginx@86e53c4c16a6"
Test: TestAuditConfigSuite/TestReconcile_Containers
Messages: Container images were not sent upstream.
audit_config_base_suite.go:280:
Error Trace: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:280
/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_test.go:36
Error: Not equal:
expected: "ACTIVE"
actual : "NOT_READY"
Diff:
--- Expected
+++ Actual
@@ -1 +1 @@
-ACTIVE
+NOT_READY
Test: TestAuditConfigSuite/TestReconcile_Containers
2023-11-03T17:45:14.235Z INFO installer/installer.go:173 gathering all logs from the test
2023-11-03T17:45:14.235Z INFO utils/k8s_helper.go:256 Gathering logs for all pods in namespace mondoo-operator
2023-11-03T17:45:14.238Z DEBUG utils/k8s_helper.go:461 created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/TestReconcile_Containers_mondoo-operator_mondoo-operator-controller-manager-58b759854b-ttfcm_1699033514.log
2023-11-03T17:45:14.286Z DEBUG utils/k8s_helper.go:461 created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/TestReconcile_Containers_mondoo-operator_mondoo-operator-controller-manager-58b759854b-ttfcm_previous_1699033514.log
2023-11-03T17:45:14.289Z DEBUG utils/executor.go:271 Running command: kubectl -n mondoo-operator logs mondoo-operator-controller-manager-58b759854b-ttfcm -c manager
2023-11-03T17:45:14.382Z INFO utils/k8s_helper.go:267 Gathering pod describe for all pods in namespace mondoo-operator
2023-11-03T17:45:14.386Z DEBUG utils/k8s_helper.go:461 created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/mondoo-operator_describe_TestReconcile_Containers_1699033514.log
2023-11-03T17:45:14.386Z DEBUG utils/executor.go:271 Running command: kubectl get pod -o yaml -n mondoo-operator mondoo-operator-controller-manager-58b759854b-ttfcm
2023-11-03T17:45:14.457Z DEBUG utils/executor.go:271 Running command: kubectl get deployment -o yaml -n mondoo-operator mondoo-operator-controller-manager
2023-11-03T17:45:14.530Z DEBUG utils/executor.go:271 Running command: kubectl get mondooauditconfig -o yaml -n mondoo-operator mondoo-client
2023-11-03T17:45:14.602Z INFO utils/k8s_helper.go:308 Gathering events in namespace "mondoo-operator"
2023-11-03T17:45:14.602Z DEBUG utils/k8s_helper.go:461 created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/mondoo-operator_events_TestReconcile_Containers_1699033514.log
2023-11-03T17:45:14.602Z DEBUG utils/executor.go:271 Running command: kubectl get events -n mondoo-operator
2023-11-03T17:45:14.687Z INFO utils/k8s_helper.go:337 Resource k8s.mondoo.com/v1alpha2, Kind=MondooAuditConfig mondoo-operator/mondoo-client still exists.
2023-11-03T17:45:16.691Z INFO utils/k8s_helper.go:341 Resource k8s.mondoo.com/v1alpha2, Kind=MondooAuditConfig mondoo-operator/mondoo-client deleted.
2023-11-03T17:45:16.697Z INFO integration/audit_config_base_suite.go:116 Waiting for cleanup of the test cluster.
2023-11-03T17:45:16.706Z INFO integration/audit_config_base_suite.go:141 Cleanup done. Cluster should be good to go for the next test.
2023-11-03T17:45:16.807Z DEBUG utils/executor.go:271 Running command: kubectl delete pods -n default --all --wait
=== RUN TestAuditConfigSuite/TestReconcile_KubernetesResources
2023-11-03T17:45:18.251Z INFO integration/audit_config_base_suite.go:158 Create an audit config that enables only workloads scanning.
audit_config_base_suite.go:163:
Error Trace: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:163
/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_test.go:27
Error: Should be true
Test: TestAuditConfigSuite/TestReconcile_KubernetesResources
Messages: Mondoo SA not created
2023-11-03T17:48:38.591Z INFO installer/installer.go:173 gathering all logs from the test
2023-11-03T17:48:38.591Z INFO utils/k8s_helper.go:256 Gathering logs for all pods in namespace mondoo-operator
2023-11-03T17:48:38.594Z DEBUG utils/k8s_helper.go:461 created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/TestReconcile_KubernetesResources_mondoo-operator_mondoo-operator-controller-manager-58b759854b-ttfcm_1699033718.log
2023-11-03T17:48:38.631Z DEBUG utils/k8s_helper.go:461 created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/TestReconcile_KubernetesResources_mondoo-operator_mondoo-operator-controller-manager-58b759854b-ttfcm_previous_1699033718.log
2023-11-03T17:48:38.635Z DEBUG utils/executor.go:271 Running command: kubectl -n mondoo-operator logs mondoo-operator-controller-manager-58b759854b-ttfcm -c manager
2023-11-03T17:48:38.769Z INFO utils/k8s_helper.go:267 Gathering pod describe for all pods in namespace mondoo-operator
2023-11-03T17:48:38.772Z DEBUG utils/k8s_helper.go:461 created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/mondoo-operator_describe_TestReconcile_KubernetesResources_1699033718.log
2023-11-03T17:48:38.772Z DEBUG utils/executor.go:271 Running command: kubectl get pod -o yaml -n mondoo-operator mondoo-operator-controller-manager-58b759854b-ttfcm
2023-11-03T17:48:38.840Z DEBUG utils/executor.go:271 Running command: kubectl get deployment -o yaml -n mondoo-operator mondoo-operator-controller-manager
2023-11-03T17:48:38.913Z DEBUG utils/executor.go:271 Running command: kubectl get mondooauditconfig -o yaml -n mondoo-operator mondoo-client
2023-11-03T17:48:38.980Z INFO utils/k8s_helper.go:308 Gathering events in namespace "mondoo-operator"
2023-11-03T17:48:38.980Z DEBUG utils/k8s_helper.go:461 created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/mondoo-operator_events_TestReconcile_KubernetesResources_1699033718.log
2023-11-03T17:48:38.980Z DEBUG utils/executor.go:271 Running command: kubectl get events -n mondoo-operator
2023-11-03T17:48:39.073Z INFO utils/k8s_helper.go:337 Resource k8s.mondoo.com/v1alpha2, Kind=MondooAuditConfig mondoo-operator/mondoo-client still exists.
2023-11-03T17:48:41.076Z INFO utils/k8s_helper.go:341 Resource k8s.mondoo.com/v1alpha2, Kind=MondooAuditConfig mondoo-operator/mondoo-client deleted.
2023-11-03T17:48:41.081Z INFO integration/audit_config_base_suite.go:116 Waiting for cleanup of the test cluster.
2023-11-03T17:48:41.089Z INFO integration/audit_config_base_suite.go:141 Cleanup done. Cluster should be good to go for the next test.
2023-11-03T17:48:41.208Z DEBUG utils/executor.go:271 Running command: kubectl delete pods -n default --all --wait
=== RUN TestAuditConfigSuite/TestReconcile_Nodes
2023-11-03T17:48:41.279Z INFO integration/audit_config_base_suite.go:290 Create an audit config that enables only nodes scanning.
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-11-03T17:21:27.018Z INFO integration/audit_config_base_suite.go:405 Create an audit config that enables only admission control.
audit_config_base_suite.go:410:
Error Trace: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:410
/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:393
/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_test.go:52
Error: Should be true
Test: TestAuditConfigSuite/TestReconcile_AdmissionEnforcing
Messages: Mondoo SA not created
2023-11-03T17:24:47.352Z INFO installer/installer.go:173 gathering all logs from the test
2023-11-03T17:24:47.352Z INFO utils/k8s_helper.go:256 Gathering logs for all pods in namespace mondoo-operator
2023-11-03T17:24:47.355Z DEBUG utils/k8s_helper.go:461 created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/TestReconcile_AdmissionEnforcing_mondoo-operator_mondoo-operator-controller-manager-58b759854b-ttfcm_1699032287.log
2023-11-03T17:24:47.381Z DEBUG utils/k8s_helper.go:461 created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/TestReconcile_AdmissionEnforcing_mondoo-operator_mondoo-operator-controller-manager-58b759854b-ttfcm_previous_1699032287.log
2023-11-03T17:24:47.384Z DEBUG utils/executor.go:271 Running command: kubectl -n mondoo-operator logs mondoo-operator-controller-manager-58b759854b-ttfcm -c manager
2023-11-03T17:24:47.477Z INFO utils/k8s_helper.go:267 Gathering pod describe for all pods in namespace mondoo-operator
2023-11-03T17:24:47.481Z DEBUG utils/k8s_helper.go:461 created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/mondoo-operator_describe_TestReconcile_AdmissionEnforcing_1699032287.log
2023-11-03T17:24:47.481Z DEBUG utils/executor.go:271 Running command: kubectl get pod -o yaml -n mondoo-operator mondoo-operator-controller-manager-58b759854b-ttfcm
2023-11-03T17:24:47.547Z DEBUG utils/executor.go:271 Running command: kubectl get deployment -o yaml -n mondoo-operator mondoo-operator-controller-manager
2023-11-03T17:24:47.619Z DEBUG utils/executor.go:271 Running command: kubectl get mondooauditconfig -o yaml -n mondoo-operator mondoo-client
2023-11-03T17:24:47.686Z INFO utils/k8s_helper.go:308 Gathering events in namespace "mondoo-operator"
2023-11-03T17:24:47.686Z DEBUG utils/k8s_helper.go:461 created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/mondoo-operator_events_TestReconcile_AdmissionEnforcing_1699032287.log
2023-11-03T17:24:47.686Z DEBUG utils/executor.go:271 Running command: kubectl get events -n mondoo-operator
2023-11-03T17:24:47.769Z INFO utils/k8s_helper.go:337 Resource k8s.mondoo.com/v1alpha2, Kind=MondooAuditConfig mondoo-operator/mondoo-client still exists.
2023-11-03T17:24:49.773Z INFO utils/k8s_helper.go:341 Resource k8s.mondoo.com/v1alpha2, Kind=MondooAuditConfig mondoo-operator/mondoo-client deleted.
2023-11-03T17:24:49.778Z INFO integration/audit_config_base_suite.go:116 Waiting for cleanup of the test cluster.
2023-11-03T17:24:49.786Z INFO integration/audit_config_base_suite.go:141 Cleanup done. Cluster should be good to go for the next test.
2023-11-03T17:24:49.959Z DEBUG utils/executor.go:271 Running command: kubectl delete pods -n default --all --wait
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-11-03T17:24:50.500Z INFO integration/audit_config_base_suite.go:405 Create an audit config that enables only admission control.
audit_config_base_suite.go:410:
Error Trace: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:410
/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:465
/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_test.go:60
Error: Should be true
Test: TestAuditConfigSuite/TestReconcile_AdmissionEnforcingScaleDownScanApi
Messages: Mondoo SA not created
2023-11-03T17:28:10.849Z INFO installer/installer.go:173 gathering all logs from the test
2023-11-03T17:28:10.849Z INFO utils/k8s_helper.go:256 Gathering logs for all pods in namespace mondoo-operator
2023-11-03T17:28:10.852Z DEBUG utils/k8s_helper.go:461 created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/TestReconcile_AdmissionEnforcingScaleDownScanApi_mondoo-operator_mondoo-operator-controller-manager-58b759854b-ttfcm_1699032490.log
2023-11-03T17:28:10.881Z DEBUG utils/k8s_helper.go:461 created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/TestReconcile_AdmissionEnforcingScaleDownScanApi_mondoo-operator_mondoo-operator-controller-manager-58b759854b-ttfcm_previous_1699032490.log
2023-11-03T17:28:10.885Z DEBUG utils/executor.go:271 Running command: kubectl -n mondoo-operator logs mondoo-operator-controller-manager-58b759854b-ttfcm -c manager
2023-11-03T17:28:10.975Z INFO utils/k8s_helper.go:267 Gathering pod describe for all pods in namespace mondoo-operator
2023-11-03T17:28:10.978Z DEBUG utils/k8s_helper.go:461 created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/mondoo-operator_describe_TestReconcile_AdmissionEnforcingScaleDownScanApi_1699032490.log
2023-11-03T17:28:10.978Z DEBUG utils/executor.go:271 Running command: kubectl get pod -o yaml -n mondoo-operator mondoo-operator-controller-manager-58b759854b-ttfcm
2023-11-03T17:28:11.055Z DEBUG utils/executor.go:271 Running command: kubectl get deployment -o yaml -n mondoo-operator mondoo-operator-controller-manager
2023-11-03T17:28:11.130Z DEBUG utils/executor.go:271 Running command: kubectl get mondooauditconfig -o yaml -n mondoo-operator mondoo-client
2023-11-03T17:28:11.199Z INFO utils/k8s_helper.go:308 Gathering events in namespace "mondoo-operator"
2023-11-03T17:28:11.199Z DEBUG utils/k8s_helper.go:461 created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/mondoo-operator_events_TestReconcile_AdmissionEnforcingScaleDownScanApi_1699032491.log
2023-11-03T17:28:11.199Z DEBUG utils/executor.go:271 Running command: kubectl get events -n mondoo-operator
2023-11-03T17:28:11.285Z INFO utils/k8s_helper.go:337 Resource k8s.mondoo.com/v1alpha2, Kind=MondooAuditConfig mondoo-operator/mondoo-client still exists.
2023-11-03T17:28:13.289Z INFO utils/k8s_helper.go:341 Resource k8s.mondoo.com/v1alpha2, Kind=MondooAuditConfig mondoo-operator/mondoo-client deleted.
2023-11-03T17:28:13.295Z INFO integration/audit_config_base_suite.go:116 Waiting for cleanup of the test cluster.
2023-11-03T17:28:13.303Z INFO integration/audit_config_base_suite.go:141 Cleanup done. Cluster should be good to go for the next test.
2023-11-03T17:28:13.418Z DEBUG utils/executor.go:271 Running command: kubectl delete pods -n default --all --wait
Check failure on line 0 in integration-tests.xml
github-actions / Report Helm test results
go.mondoo.com/mondoo-operator/tests/integration ► TestAuditConfigSuite/TestReconcile_AdmissionPermissive
Failed test found in:
integration-tests.xml
Error:
=== RUN TestAuditConfigSuite/TestReconcile_AdmissionPermissive
Raw output
=== RUN TestAuditConfigSuite/TestReconcile_AdmissionPermissive
2023-11-03T17:28:14.026Z INFO integration/audit_config_base_suite.go:405 Create an audit config that enables only admission control.
audit_config_base_suite.go:410:
Error Trace: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:410
/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:393
/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_test.go:46
Error: Should be true
Test: TestAuditConfigSuite/TestReconcile_AdmissionPermissive
Messages: Mondoo SA not created
2023-11-03T17:31:34.363Z INFO installer/installer.go:173 gathering all logs from the test
2023-11-03T17:31:34.363Z INFO utils/k8s_helper.go:256 Gathering logs for all pods in namespace mondoo-operator
2023-11-03T17:31:34.367Z DEBUG utils/k8s_helper.go:461 created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/TestReconcile_AdmissionPermissive_mondoo-operator_mondoo-operator-controller-manager-58b759854b-ttfcm_1699032694.log
2023-11-03T17:31:34.393Z DEBUG utils/k8s_helper.go:461 created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/TestReconcile_AdmissionPermissive_mondoo-operator_mondoo-operator-controller-manager-58b759854b-ttfcm_previous_1699032694.log
2023-11-03T17:31:34.397Z DEBUG utils/executor.go:271 Running command: kubectl -n mondoo-operator logs mondoo-operator-controller-manager-58b759854b-ttfcm -c manager
2023-11-03T17:31:34.483Z INFO utils/k8s_helper.go:267 Gathering pod describe for all pods in namespace mondoo-operator
2023-11-03T17:31:34.486Z DEBUG utils/k8s_helper.go:461 created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/mondoo-operator_describe_TestReconcile_AdmissionPermissive_1699032694.log
2023-11-03T17:31:34.486Z DEBUG utils/executor.go:271 Running command: kubectl get pod -o yaml -n mondoo-operator mondoo-operator-controller-manager-58b759854b-ttfcm
2023-11-03T17:31:34.569Z DEBUG utils/executor.go:271 Running command: kubectl get deployment -o yaml -n mondoo-operator mondoo-operator-controller-manager
2023-11-03T17:31:34.639Z DEBUG utils/executor.go:271 Running command: kubectl get mondooauditconfig -o yaml -n mondoo-operator mondoo-client
2023-11-03T17:31:34.715Z INFO utils/k8s_helper.go:308 Gathering events in namespace "mondoo-operator"
2023-11-03T17:31:34.715Z DEBUG utils/k8s_helper.go:461 created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/mondoo-operator_events_TestReconcile_AdmissionPermissive_1699032694.log
2023-11-03T17:31:34.715Z DEBUG utils/executor.go:271 Running command: kubectl get events -n mondoo-operator
2023-11-03T17:31:34.792Z INFO utils/k8s_helper.go:337 Resource k8s.mondoo.com/v1alpha2, Kind=MondooAuditConfig mondoo-operator/mondoo-client still exists.
2023-11-03T17:31:36.795Z INFO utils/k8s_helper.go:341 Resource k8s.mondoo.com/v1alpha2, Kind=MondooAuditConfig mondoo-operator/mondoo-client deleted.
2023-11-03T17:31:36.801Z INFO integration/audit_config_base_suite.go:116 Waiting for cleanup of the test cluster.
2023-11-03T17:31:36.809Z INFO integration/audit_config_base_suite.go:141 Cleanup done. Cluster should be good to go for the next test.
2023-11-03T17:31:36.954Z DEBUG utils/executor.go:271 Running command: kubectl delete pods -n default --all --wait
Check failure on line 0 in integration-tests.xml
github-actions / Report Helm test results
go.mondoo.com/mondoo-operator/tests/integration ► TestAuditConfigSuite/TestReconcile_AllDisabled
Failed test found in:
integration-tests.xml
Error:
=== RUN TestAuditConfigSuite/TestReconcile_AllDisabled
Raw output
=== RUN TestAuditConfigSuite/TestReconcile_AllDisabled
2023-11-03T17:31:37.084Z INFO integration/audit_config_base_suite.go:594 Create an audit config that enables nothing.
audit_config_base_suite.go:600:
Error Trace: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:600
/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_test.go:22
Error: Received unexpected error:
test did not succeed after 100 retries
Test: TestAuditConfigSuite/TestReconcile_AllDisabled
Messages: Couldn't find expected version in MondooAuditConfig.Status.ReconciledByOperatorVersion
audit_config_base_suite.go:604:
Error Trace: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:604
/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_test.go:22
Error: Not equal:
expected: "ACTIVE"
actual : "NOT_READY"
Diff:
--- Expected
+++ Actual
@@ -1 +1 @@
-ACTIVE
+NOT_READY
Test: TestAuditConfigSuite/TestReconcile_AllDisabled
2023-11-03T17:34:57.646Z INFO installer/installer.go:173 gathering all logs from the test
2023-11-03T17:34:57.646Z INFO utils/k8s_helper.go:256 Gathering logs for all pods in namespace mondoo-operator
2023-11-03T17:34:57.650Z DEBUG utils/k8s_helper.go:461 created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/TestReconcile_AllDisabled_mondoo-operator_mondoo-operator-controller-manager-58b759854b-ttfcm_1699032897.log
2023-11-03T17:34:57.688Z DEBUG utils/k8s_helper.go:461 created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/TestReconcile_AllDisabled_mondoo-operator_mondoo-operator-controller-manager-58b759854b-ttfcm_previous_1699032897.log
2023-11-03T17:34:57.692Z DEBUG utils/executor.go:271 Running command: kubectl -n mondoo-operator logs mondoo-operator-controller-manager-58b759854b-ttfcm -c manager
2023-11-03T17:34:57.781Z INFO utils/k8s_helper.go:267 Gathering pod describe for all pods in namespace mondoo-operator
2023-11-03T17:34:57.784Z DEBUG utils/k8s_helper.go:461 created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/mondoo-operator_describe_TestReconcile_AllDisabled_1699032897.log
2023-11-03T17:34:57.784Z DEBUG utils/executor.go:271 Running command: kubectl get pod -o yaml -n mondoo-operator mondoo-operator-controller-manager-58b759854b-ttfcm
2023-11-03T17:34:57.853Z DEBUG utils/executor.go:271 Running command: kubectl get deployment -o yaml -n mondoo-operator mondoo-operator-controller-manager
2023-11-03T17:34:57.925Z DEBUG utils/executor.go:271 Running command: kubectl get mondooauditconfig -o yaml -n mondoo-operator mondoo-client
2023-11-03T17:34:57.990Z INFO utils/k8s_helper.go:308 Gathering events in namespace "mondoo-operator"
2023-11-03T17:34:57.990Z DEBUG utils/k8s_helper.go:461 created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/mondoo-operator_events_TestReconcile_AllDisabled_1699032897.log
2023-11-03T17:34:57.990Z DEBUG utils/executor.go:271 Running command: kubectl get events -n mondoo-operator
2023-11-03T17:34:58.075Z INFO utils/k8s_helper.go:337 Resource k8s.mondoo.com/v1alpha2, Kind=MondooAuditConfig mondoo-operator/mondoo-client still exists.
2023-11-03T17:35:00.079Z INFO utils/k8s_helper.go:341 Resource k8s.mondoo.com/v1alpha2, Kind=MondooAuditConfig mondoo-operator/mondoo-client deleted.
2023-11-03T17:35:00.084Z INFO integration/audit_config_base_suite.go:116 Waiting for cleanup of the test cluster.
2023-11-03T17:35:00.094Z INFO integration/audit_config_base_suite.go:141 Cleanup done. Cluster should be good to go for the next test.
2023-11-03T17:35:00.195Z DEBUG utils/executor.go:271 Running command: kubectl delete pods -n default --all --wait