Skip to content

mondoo-operator-1.17.2 (#913) #2247

mondoo-operator-1.17.2 (#913)

mondoo-operator-1.17.2 (#913) #2247

This check has been archived and is scheduled for deletion. Learn more about checks retention
GitHub Actions / Report OLM test results failed Nov 3, 2023 in 0s

Report OLM test results ❌

Tests failed

❌ integration-tests.xml

14 tests were completed in 2155s with 4 passed, 10 failed and 0 skipped.

Test suite Passed Failed Skipped Time
go.mondoo.com/mondoo-operator/tests/integration 4✅ 10❌ 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-03T18:30:06Z","message":"can't find any paths for providers, none are configured"}
❌ TestAuditConfigCustomNamespaceSuite/TestReconcile_KubernetesResources
	=== RUN   TestAuditConfigCustomNamespaceSuite/TestReconcile_KubernetesResources
❌ TestAuditConfigCustomNamespaceSuite
	=== RUN   TestAuditConfigCustomNamespaceSuite
❌ TestAuditConfigSuite/TestReconcile_Containers
	=== RUN   TestAuditConfigSuite/TestReconcile_Containers
❌ TestAuditConfigSuite/TestReconcile_KubernetesResources
	=== RUN   TestAuditConfigSuite/TestReconcile_KubernetesResources
❌ 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_Nodes

Annotations

Check failure on line 0 in integration-tests.xml

See this annotation in the file changed.

@github-actions github-actions / Report OLM 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-03T18:30:06Z","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-03T18:30:06Z","message":"can't find any paths for providers, none are configured"}
{"level":"debug","time":"2023-11-03T18:30:06Z","message":"Started a new runtime (1 total)"}
panic: test timed out after 35m0s
running tests:
	TestAuditConfigSuite (24m40s)
	TestAuditConfigSuite/TestReconcile_KubernetesResources (41s)

goroutine 1880 [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, 24 minutes]:
testing.(*T).Run(0xc0006cd860, {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(0xc0006cd860, 0xc00068fc48)
	/opt/hostedtoolcache/go/1.21.3/x64/src/testing/testing.go:1595 +0xff
testing.runTests(0xc0003c20a0?, {0x3e7d6a0, 0x3, 0x3}, {0x80?, 0xc00068fd08?, 0x3eabd20?})
	/opt/hostedtoolcache/go/1.21.3/x64/src/testing/testing.go:2052 +0x445
testing.(*M).Run(0xc0003c20a0)
	/opt/hostedtoolcache/go/1.21.3/x64/src/testing/testing.go:1925 +0x636
main.main()
	_testmain.go:51 +0x19c

goroutine 6 [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 7 [IO wait, 35 minutes]:
internal/poll.runtime_pollWait(0x7fa71b895e58, 0x72)
	/opt/hostedtoolcache/go/1.21.3/x64/src/runtime/netpoll.go:343 +0x85
internal/poll.(*pollDesc).wait(0xc0001b6a80?, 0xc0001608e0?, 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(0xc0001b6a80, {0xc0001608e0, 0x10, 0x10}, {0xc000369320, 0x1000, 0x1000}, 0xc00035e470?)
	/opt/hostedtoolcache/go/1.21.3/x64/src/internal/poll/fd_unix.go:301 +0x38a
net.(*netFD).readMsg(0xc0001b6a80, {0xc0001608e0?, 0xc000285ce0?, 0x41b953?}, {0xc000369320?, 0x0?, 0x100000001?}, 0x5?)
	/opt/hostedtoolcache/go/1.21.3/x64/src/net/fd_posix.go:78 +0x31
net.(*UnixConn).readMsg(0xc00011c808, {0xc0001608e0?, 0x42743c?, 0x3eea5a0?}, {0xc000369320?, 0x7fa71b856bf8?, 0xc000214720?})
	/opt/hostedtoolcache/go/1.21.3/x64/src/net/unixsock_posix.go:115 +0x45
net.(*UnixConn).ReadMsgUnix(0xc00011c808, {0xc0001608e0?, 0x2a504c0?, 0x101c000214720?}, {0xc000369320?, 0x412785?, 0xc00011aed0?})
	/opt/hostedtoolcache/go/1.21.3/x64/src/net/unixsock.go:143 +0x36
github.com/godbus/dbus.(*oobReader).Read(0xc000369300, {0xc0001608e0?, 0xc000285e30?, 0x412b05?})
	/home/runner/go/pkg/mod/github.com/godbus/[email protected]/transport_unix.go:21 +0x3c
io.ReadAtLeast({0x2a5c3e0, 0xc000369300}, {0xc0001608e0, 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(0xc000012948)
	/home/runner/go/pkg/mod/github.com/godbus/[email protected]/transport_unix.go:91 +0xfe
github.com/godbus/dbus.(*Conn).inWorker(0xc0001ac510)
	/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 801 [chan receive]:
testing.(*T).Run(0xc000b761a0, {0x20ad240?, 0xc000b761a0?}, 0xc0009cea20)
	/opt/hostedtoolcache/go/1.21.3/x64/src/testing/testing.go:1649 +0x3c8
github.com/stretchr/testify/suite.runTests({0x2a8dc50, 0xc000b761a0}, {0xc0006e5ec0?, 0x7, 0x8})
	/home/runner/go/pkg/mod/github.com/stretchr/[email protected]/suite/suite.go:242 +0x106
github.com/stretchr/testify/suite.Run(0xc000b761a0, {0x2a6b790, 0xc00083ee00})
	/home/runner/go/pkg/mod/github.com/stretchr/[email protected]/suite/suite.go:215 +0x705
go.mondoo.com/mondoo-operator/tests/integration.TestAuditConfigSuite(0xc000b76000?)
	/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_test.go:77 +0x7e
testing.tRunner(0xc000b761a0, 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 [chan receive]:
k8s.io/client-go/util/workqueue.(*Type).updateUnfinishedWorkLoop(0xc000864600)
	/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 36
	/home/runner/go/pkg/mod/k8s.io/[email protected]/util/workqueue/queue.go:106 +0x1ba

goroutine 55 [select]:
k8s.io/client-go/util/workqueue.(*delayingType).waitingLoop(0xc000864780)
	/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 36
	/home/runner/go/pkg/mod/k8s.io/[email protected]/util/workqueue/delaying_queue.go:113 +0x21f

goroutine 42 [sync.Cond.Wait, 6 minutes]:
sync.runtime_notifyListWait(0xc00070a410, 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(0xc000864600)
	/home/runner/go/pkg/mod/k8s.io/[email protected]/util/workqueue/queue.go:200 +0x99
k8s.io/client-go/transport.(*dynamicClientCert).processNextWorkItem(0xc00070a4c0)
	/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, 0xc000942030}, 0x1, 0xc0001026c0)
	/home/runner/go/pkg/mod/k8s.io/[email protected]/pkg/util/wait/backoff.go:227 +0xaf
k8s.io/apimachinery/pkg/util/wait.JitterUntil(0x0?, 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(0x0?, 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 56
	/home/runner/go/pkg/mod/k8s.io/[email protected]/transport/cert_rotation.go:140 +0x1ef

goroutine 56 [chan receive, 34 minutes]:
k8s.io/client-go/transport.(*dynamicClientCert).Run(0xc00070a4c0, 0xc0001026c0)
	/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 36
	/home/runner/go/pkg/mod/k8s.io/[email protected]/transport/cache.go:122 +0x594

goroutine 43 [select, 6 minutes]:
k8s.io/apimachinery/pkg/util/wait.waitForWithContext({0x2a7c260, 0xc0001026c0}, 0xc000097f50, 0x0?)
	/home/runner/go/pkg/mod/k8s.io/[email protected]/pkg/util/wait/wait.go:205 +0xd7
k8s.io/apimachinery/pkg/util/wait.poll({0x2a7c260, 0xc0001026c0}, 0x0?, 0x0?, 0x0?)
	/home/runner/go/pkg/mod/k8s.io/[email protected]/pkg/util/wait/poll.go:260 +0x89
k8s.io/apimachinery/pkg/util/wait.PollImmediateUntilWithContext({0x2a7c260?, 0xc0001026c0?}, 0x0?, 0x0?)
	/home/runner/go/pkg/mod/k8s.io/[email protected]/pkg/util/wait/poll.go:200 +0x53
k8s.io/apimachinery/pkg/util/wait.PollImmediateUntil(0x0?, 0x0?, 0x0?)
	/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 56
	/home/runner/go/pkg/mod/k8s.io/[email protected]/transport/cert_rotation.go:142 +0x29a

goroutine 44 [select, 6 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 43
	/home/runner/go/pkg/mod/k8s.io/[email protected]/pkg/util/wait/poll.go:280 +0xc5

goroutine 61 [IO wait]:
internal/poll.runtime_pollWait(0x7fa71b895d60, 0x72)
	/opt/hostedtoolcache/go/1.21.3/x64/src/runtime/netpoll.go:343 +0x85
internal/poll.(*pollDesc).wait(0xc00076ce80?, 0xc000c0c000?, 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(0xc00076ce80, {0xc000c0c000, 0xa000, 0xa000})
	/opt/hostedtoolcache/go/1.21.3/x64/src/internal/poll/fd_unix.go:164 +0x27a
net.(*netFD).Read(0xc00076ce80, {0xc000c0c000?, 0x9fa1?, 0xc00074bfe0?})
	/opt/hostedtoolcache/go/1.21.3/x64/src/net/fd_posix.go:55 +0x25
net.(*conn).Read(0xc00011da50, {0xc000c0c000?, 0xc000c0c05a?, 0x5?})
	/opt/hostedtoolcache/go/1.21.3/x64/src/net/net.go:179 +0x45
crypto/tls.(*atLeastReader).Read(0xc00092a2a0, {0xc000c0c000?, 0xc00092a2a0?, 0x0?})
	/opt/hostedtoolcache/go/1.21.3/x64/src/crypto/tls/conn.go:805 +0x3b
bytes.(*Buffer).ReadFrom(0xc0002e17a8, {0x2a50360, 0xc00092a2a0})
	/opt/hostedtoolcache/go/1.21.3/x64/src/bytes/buffer.go:211 +0x98
crypto/tls.(*Conn).readFromUntil(0xc0002e1500, {0x7fa6d07fd4f8?, 0xc000783500}, 0x9fa6?)
	/opt/hostedtoolcache/go/1.21.3/x64/src/crypto/tls/conn.go:827 +0xde
crypto/tls.(*Conn).readRecordOrCCS(0xc0002e1500, 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(0xc0002e1500, {0xc0008ba000, 0x1000, 0xa02f25?})
	/opt/hostedtoolcache/go/1.21.3/x64/src/crypto/tls/conn.go:1369 +0x158
bufio.(*Reader).Read(0xc0008aecc0, {0xc00087c3c0, 0x9, 0x3e68b00?})
	/opt/hostedtoolcache/go/1.21.3/x64/src/bufio/bufio.go:244 +0x197
io.ReadAtLeast({0x2a501a0, 0xc0008aecc0}, {0xc00087c3c0, 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({0xc00087c3c0, 0x9, 0x88800?}, {0x2a501a0?, 0xc0008aecc0?})
	/home/runner/go/pkg/mod/golang.org/x/[email protected]/http2/frame.go:237 +0x65
golang.org/x/net/http2.(*Framer).ReadFrame(0xc00087c380)
	/home/runner/go/pkg/mod/golang.org/x/[email protected]/http2/frame.go:498 +0x85
golang.org/x/net/http2.(*clientConnReadLoop).run(0xc00094ff98)
	/home/runner/go/pkg/mod/golang.org/x/[email protected]/http2/transport.go:2275 +0x11f
golang.org/x/net/http2.(*ClientConn).readLoop(0xc0005b1680)
	/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 60
	/home/runner/go/pkg/mod/golang.org/x/[email protected]/http2/transport.go:821 +0xcbe

goroutine 1793 [IO wait, 2 minutes]:
internal/poll.runtime_pollWait(0x7fa71b895980, 0x72)
	/opt/hostedtoolcache/go/1.21.3/x64/src/runtime/netpoll.go:343 +0x85
internal/poll.(*pollDesc).wait(0xc0001b7600?, 0xc00097a000?, 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(0xc0001b7600, {0xc00097a000, 0x1800, 0x1800})
	/opt/hostedtoolcache/go/1.21.3/x64/src/internal/poll/fd_unix.go:164 +0x27a
net.(*netFD).Read(0xc0001b7600, {0xc00097a000?, 0xc00097a4dd?, 0x19?})
	/opt/hostedtoolcache/go/1.21.3/x64/src/net/fd_posix.go:55 +0x25
net.(*conn).Read(0xc00011df40, {0xc00097a000?, 0x1323?, 0xc00097a4d5?})
	/opt/hostedtoolcache/go/1.21.3/x64/src/net/net.go:179 +0x45
crypto/tls.(*atLeastReader).Read(0xc000a4b0c8, {0xc00097a000?, 0xc000a4b0c8?, 0x0?})
	/opt/hostedtoolcache/go/1.21.3/x64/src/crypto/tls/conn.go:805 +0x3b
bytes.(*Buffer).ReadFrom(0xc000a0c2a8, {0x2a50360, 0xc000a4b0c8})
	/opt/hostedtoolcache/go/1.21.3/x64/src/bytes/buffer.go:211 +0x98
crypto/tls.(*Conn).readFromUntil(0xc000a0c000, {0x2a51ca0?, 0xc00011df40}, 0x1330?)
	/opt/hostedtoolcache/go/1.21.3/x64/src/crypto/tls/conn.go:827 +0xde
crypto/tls.(*Conn).readRecordOrCCS(0xc000a0c000, 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(0xc000a0c000, {0xc000a0f000, 0x1000, 0x775665?})
	/opt/hostedtoolcache/go/1.21.3/x64/src/crypto/tls/conn.go:1369 +0x158
bufio.(*Reader).Read(0xc00077c2a0, {0xc00071c120, 0x9, 0x3e68b00?})
	/opt/hostedtoolcache/go/1.21.3/x64/src/bufio/bufio.go:244 +0x197
io.ReadAtLeast({0x2a501a0, 0xc00077c2a0}, {0xc00071c120, 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({0xc00071c120, 0x9, 0xc0007607e0?}, {0x2a501a0?, 0xc00077c2a0?})
	/opt/hostedtoolcache/go/1.21.3/x64/src/net/http/h2_bundle.go:1635 +0x65
net/http.(*http2Framer).ReadFrame(0xc00071c0e0)
	/opt/hostedtoolcache/go/1.21.3/x64/src/net/http/h2_bundle.go:1899 +0x85
net/http.(*http2clientConnReadLoop).run(0xc000098f98)
	/opt/hostedtoolcache/go/1.21.3/x64/src/net/http/h2_bundle.go:9338 +0x11f
net/http.(*http2ClientConn).readLoop(0xc0006eb200)
	/opt/hostedtoolcache/go/1.21.3/x64/src/net/http/h2_bundle.go:9233 +0x65
created by net/http.(*http2Transport).newClientConn in goroutine 1792
	/opt/hostedtoolcache/go/1.21.3/x64/src/net/http/h2_bundle.go:7905 +0xcbe

goroutine 1858 [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(0xc000b77520?, 0xc000406730)
	/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(0xc00083ee00?, {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).testMondooAuditConfigKubernetesResources(_, {{{0x0, 0x0}, {0x0, 0x0}}, {{0x26dbb37, 0xd}, {0x0, 0x0}, {0x26dee22, ...}, ...}, ...})
	/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:163 +0x22e
go.mondoo.com/mondoo-operator/tests/integration.(*AuditConfigSuite).TestReconcile_KubernetesResources(0xc00083ee00)
	/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_test.go:27 +0xa5
reflect.Value.call({0xc000b80f00?, 0xc0005f9e50?, 0x0?}, {0x26cbe42, 0x4}, {0xc000932e70, 0x1, 0xc000932d78?})
	/opt/hostedtoolcache/go/1.21.3/x64/src/reflect/value.go:596 +0xce7
reflect.Value.Call({0xc000b80f00?, 0xc0005f9e50?, 0xc00083ee00?}, {0xc000932e70?, 0x53632d?, 0x36ca678?})
	/opt/hostedtoolcache/go/1.21.3/x64/src/reflect/value.go:380 +0xb9
github.com/stretchr/testify/suite.Run.func1(0xc000b77520)
	/home/runner/go/pkg/mod/github.com/stretchr/[email protected]/suite/suite.go:197 +0x467
testing.tRunner(0xc000b77520, 0xc0009cea20)
	/opt/hostedtoolcache/go/1.21.3/x64/src/testing/testing.go:1595 +0xff
created by testing.(*T).Run in goroutine 801
	/opt/hostedtoolcache/go/1.21.3/x64/src/testing/testing.go:1648 +0x3ad

goroutine 1805 [IO wait]:
internal/poll.runtime_pollWait(0x7fa71b895c68, 0x72)
	/opt/hostedtoolcache/go/1.21.3/x64/src/runtime/netpoll.go:343 +0x85
internal/poll.(*pollDesc).wait(0xc0001b7a80?, 0xc000a16000?, 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(0xc0001b7a80, {0xc000a16000, 0x1500, 0x1500})
	/opt/hostedtoolcache/go/1.21.3/x64/src/internal/poll/fd_unix.go:164 +0x27a
net.(*netFD).Read(0xc0001b7a80, {0xc000a16000?, 0xc0007717b0?, 0x12?})
	/opt/hostedtoolcache/go/1.21.3/x64/src/net/fd_posix.go:55 +0x25
net.(*conn).Read(0xc00011dfd8, {0xc000a16000?, 0xc000b769c0?, 0x27?})
	/opt/hostedtoolcache/go/1.21.3/x64/src/net/net.go:179 +0x45
crypto/tls.(*atLeastReader).Read(0xc00084b4d0, {0xc000a16000?, 0xc00084b4d0?, 0x0?})
	/opt/hostedtoolcache/go/1.21.3/x64/src/crypto/tls/conn.go:805 +0x3b
bytes.(*Buffer).ReadFrom(0xc000a0c628, {0x2a50360, 0xc00084b4d0})
	/opt/hostedtoolcache/go/1.21.3/x64/src/bytes/buffer.go:211 +0x98
crypto/tls.(*Conn).readFromUntil(0xc000a0c380, {0x2a51ca0?, 0xc00011dfd8}, 0xc000771948?)
	/opt/hostedtoolcache/go/1.21.3/x64/src/crypto/tls/conn.go:827 +0xde
crypto/tls.(*Conn).readRecordOrCCS(0xc000a0c380, 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(0xc000a0c380, {0xc000a8b000, 0x1000, 0x2a83958?})
	/opt/hostedtoolcache/go/1.21.3/x64/src/crypto/tls/conn.go:1369 +0x158
bufio.(*Reader).Read(0xc0008ae300, {0xc00071c4a0, 0x9, 0x7a032e?})
	/opt/hostedtoolcache/go/1.21.3/x64/src/bufio/bufio.go:244 +0x197
io.ReadAtLeast({0x2a501a0, 0xc0008ae300}, {0xc00071c4a0, 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({0xc00071c4a0, 0x9, 0x776b72?}, {0x2a501a0?, 0xc0008ae300?})
	/opt/hostedtoolcache/go/1.21.3/x64/src/net/http/h2_bundle.go:1635 +0x65
net/http.(*http2Framer).ReadFrame(0xc00071c460)
	/opt/hostedtoolcache/go/1.21.3/x64/src/net/http/h2_bundle.go:1899 +0x85
net/http.(*http2clientConnReadLoop).run(0xc000771f98)
	/opt/hostedtoolcache/go/1.21.3/x64/src/net/http/h2_bundle.go:9338 +0x11f
net/http.(*http2ClientConn).readLoop(0xc0006ebb00)
	/opt/hostedtoolcache/go/1.21.3/x64/src/net/http/h2_bundle.go:9233 +0x65
created by net/http.(*http2Transport).newClientConn in goroutine 1804
	/opt/hostedtoolcache/go/1.21.3/x64/src/net/http/h2_bundle.go:7905 +0xcbe
FAIL	go.mondoo.com/mondoo-operator/tests/integration	2100.049s

Check failure on line 0 in integration-tests.xml

See this annotation in the file changed.

@github-actions github-actions / Report OLM test results

go.mondoo.com/mondoo-operator/tests/integration ► TestAuditConfigCustomNamespaceSuite/TestReconcile_KubernetesResources

Failed test found in:
  integration-tests.xml
Error:
  === RUN   TestAuditConfigCustomNamespaceSuite/TestReconcile_KubernetesResources
Raw output
=== RUN   TestAuditConfigCustomNamespaceSuite/TestReconcile_KubernetesResources
2023-11-03T18:35:58.336Z	INFO	integration/audit_config_base_suite.go:158	Create an audit config that enables only workloads scanning.
2023-11-03T18:35:58.359Z	INFO	integration/audit_config_base_suite.go:659	Waiting for scan API Pod to become ready.
2023-11-03T18:36:10.388Z	INFO	integration/audit_config_base_suite.go:663	Scan API Pod is ready.
2023-11-03T18:36:10.390Z	INFO	integration/audit_config_base_suite.go:680	Waiting for good condition of Scan API
2023-11-03T18:36:10.402Z	INFO	integration/audit_config_base_suite.go:169	Make sure the Mondoo k8s resources scan CronJob is created.
    audit_config_base_suite.go:182: 
        	Error Trace:	/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:182
        	            				/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_namespace_test.go:84
        	Error:      	Should be true
        	Test:       	TestAuditConfigCustomNamespaceSuite/TestReconcile_KubernetesResources
        	Messages:   	Kubernetes resources scan CronJob did not run successfully.
    audit_config_base_suite.go:203: 
        	Error Trace:	/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:203
        	            				/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_namespace_test.go:84
        	Error:      	Not equal: 
        	            	expected: 24
        	            	actual  : 25
        	Test:       	TestAuditConfigCustomNamespaceSuite/TestReconcile_KubernetesResources
        	Messages:   	Cluster asset was sent upstream.
    audit_config_base_suite.go:206: 
        	Error Trace:	/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_base_suite.go:206
        	            				/home/runner/work/mondoo-operator/mondoo-operator/tests/integration/audit_config_namespace_test.go:84
        	Error:      	elements differ
        	            	
        	            	extra elements in list A:
        	            	([]interface {}) (len=8) {
        	            	 (string) (len=35) "kube-system/kube-apiserver-minikube",
        	            	 (string) (len=28) "kube-system/kube-proxy-p8268",
        	            	 (string) (len=31) "kube-system/storage-provisioner",
        	            	 (string) (len=30) "kube-system/coredns-787d4945fb",
        	            	 (string) (len=61) "mondoo-operator/mondoo-operator-controller-manager-5f556d68c9",
        	            	 (string) (len=31) "olm/catalog-operator-5d76954c7b",
        	            	 (string) (len=27) "olm/olm-operator-75bfdb99df",
        	            	 (string) (len=27) "olm/packageserver-dfdff494d"
        	            	}
        	            	
        	            	
        	            	listA:
        	            	([]string) (len=33) {
        	            	 (string) (len=36) "kube-system/coredns-787d4945fb-ltdqr",
        	            	 (string) (len=25) "kube-system/etcd-minikube",
        	            	 (string) (len=35) "kube-system/kube-apiserver-minikube",
        	            	 (string) (len=44) "kube-system/kube-controller-manager-minikube",
        	            	 (string) (len=28) "kube-system/kube-proxy-p8268",
        	            	 (string) (len=35) "kube-system/kube-scheduler-minikube",
        	            	 (string) (len=31) "kube-system/storage-provisioner",
        	            	 (string) (len=79) "mondoo-operator/ceebbf7a6ae509237c37527567c5138333236c8a7a4bb688b3e44de2bcqc2v6",
        	            	 (string) (len=63) "mondoo-operator/ghcr-io-mondoohq-mondoo-operator-bundle-v1-17-2",
        	            	 (string) (len=67) "mondoo-operator/mondoo-operator-controller-manager-5f556d68c9-qkl7w",
        	            	 (string) (len=37) "olm/catalog-operator-5d76954c7b-qqkjl",
        	            	 (string) (len=33) "olm/olm-operator-75bfdb99df-5zts8",
        	            	 (string) (len=31) "olm/operatorhubio-catalog-8cvfq",
        	            	 (string) (len=33) "olm/packageserver-dfdff494d-ng8pt",
        	            	 (string) (len=33) "olm/packageserver-dfdff494d-tf86t",
        	            	 (string) (len=52) "some-namespace/mondoo-client-k8s-scan-28317276-qdz8j",
        	            	 (string) (len=54) "some-namespace/mondoo-client-scan-api-65c64f87d6-29ptp",
        	            	 (string) (len=79) "mondoo-operator/ceebbf7a6ae509237c37527567c5138333236c8a7a4bb688b3e44de2bc5e78d",
        	            	 (string) (len=46) "some-namespace/mondoo-client-k8s-scan-28317276",
        	            	 (string) (len=37) "some-namespace/mondoo-client-k8s-scan",
        	            	 (string) (len=19) "kube-system/coredns",
        	            	 (string) (len=50) "mondoo-operator/mondoo-operator-controller-manager",
        	            	 (string) (len=20) "olm/catalog-operator",
        	            	 (string) (len=16) "olm/olm-operator",
        	            	 (string) (len=17) "olm/packageserver",
        	            	 (string) (len=37) "some-namespace/mondoo-client-scan-api",
        	            	 (string) (len=22) "kube-system/kube-proxy",
        	            	 (string) (len=30) "kube-system/coredns-787d4945fb",
        	            	 (string) (len=61) "mondoo-operator/mondoo-operator-controller-manager-5f556d68c9",
        	            	 (string) (len=31) "olm/catalog-operator-5d76954c7b",
        	            	 (string) (len=27) "olm/olm-operator-75bfdb99df",
        	            	 (string) (len=27) "olm/packageserver-dfdff494d",
        	            	 (string) (len=48) "some-namespace/mondoo-client-scan-api-65c64f87d6"
        	            	}
        	            	
        	            	
        	            	listB:
        	            	([]string) (len=25) {
        	            	 (string) (len=48) "some-namespace/mondoo-client-scan-api-65c64f87d6",
        	            	 (string) (len=54) "some-namespace/mondoo-client-scan-api-65c64f87d6-29ptp",
        	            	 (string) (len=37) "some-namespace/mondoo-client-scan-api",
        	            	 (string) (len=33) "olm/packageserver-dfdff494d-tf86t",
        	            	 (string) (len=33) "olm/packageserver-dfdff494d-ng8pt",
        	            	 (string) (len=37) "some-namespace/mondoo-client-k8s-scan",
        	            	 (string) (len=37) "olm/catalog-operator-5d76954c7b-qqkjl",
        	            	 (string) (len=67) "mondoo-operator/mondoo-operator-controller-manager-5f556d68c9-qkl7w",
        	            	 (string) (len=31) "olm/operatorhubio-catalog-8cvfq",
        	            	 (string) (len=33) "olm/olm-operator-75bfdb99df-5zts8",
        	            	 (string) (len=52) "some-namespace/mondoo-client-k8s-scan-28317276-qdz8j",
        	            	 (string) (len=46) "some-namespace/mondoo-client-k8s-scan-28317276",
        	            	 (string) (len=79) "mondoo-operator/ceebbf7a6ae509237c37527567c5138333236c8a7a4bb688b3e44de2bc5e78d",
        	            	 (string) (len=79) "mondoo-operator/ceebbf7a6ae509237c37527567c5138333236c8a7a4bb688b3e44de2bcqc2v6",
        	            	 (string) (len=36) "kube-system/coredns-787d4945fb-ltdqr",
        	            	 (string) (len=50) "mondoo-operator/mondoo-operator-controller-manager",
        	            	 (string) (len=20) "olm/catalog-operator",
        	            	 (string) (len=19) "kube-system/coredns",
        	            	 (string) (len=16) "olm/olm-operator",
        	            	 (string) (len=17) "olm/packageserver",
        	            	 (string) (len=35) "kube-system/kube-scheduler-minikube",
        	            	 (string) (len=63) "mondoo-operator/ghcr-io-mondoohq-mondoo-operator-bundle-v1-17-2",
        	            	 (string) (len=25) "kube-system/etcd-minikube",
        	            	 (string) (len=22) "kube-system/kube-proxy",
        	            	 (string) (len=44) "kube-system/kube-controller-manager-minikube"
        	            	}
        	Test:       	TestAuditConfigCustomNamespaceSuite/TestReconcile_KubernetesResources
        	Messages:   	Workloads were not sent upstream.
2023-11-03T18:39:46.670Z	INFO	installer/installer.go:173	gathering all logs from the test
2023-11-03T18:39:46.671Z	INFO	utils/k8s_helper.go:256	Gathering logs for all pods in namespace some-namespace
2023-11-03T18:39:46.675Z	DEBUG	utils/k8s_helper.go:461	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/TestReconcile_KubernetesResources_some-namespace_mondoo-client-k8s-scan-28317276-qdz8j_1699036786.log
2023-11-03T18:39:46.728Z	DEBUG	utils/k8s_helper.go:461	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/TestReconcile_KubernetesResources_some-namespace_mondoo-client-scan-api-65c64f87d6-29ptp_1699036786.log
2023-11-03T18:39:46.746Z	INFO	utils/k8s_helper.go:267	Gathering pod describe for all pods in namespace some-namespace
2023-11-03T18:39:46.757Z	DEBUG	utils/k8s_helper.go:461	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/some-namespace_describe_TestReconcile_KubernetesResources_1699036786.log
2023-11-03T18:39:46.757Z	DEBUG	utils/executor.go:271	Running command: kubectl get pod -o yaml -n some-namespace mondoo-client-k8s-scan-28317276-qdz8j
2023-11-03T18:39:46.865Z	DEBUG	utils/executor.go:271	Running command: kubectl get pod -o yaml -n some-namespace mondoo-client-scan-api-65c64f87d6-29ptp
2023-11-03T18:39:46.962Z	DEBUG	utils/executor.go:271	Running command: kubectl get deployment -o yaml -n some-namespace mondoo-client-scan-api
2023-11-03T18:39:47.051Z	DEBUG	utils/executor.go:271	Running command: kubectl get mondooauditconfig -o yaml -n some-namespace mondoo-client
2023-11-03T18:39:47.153Z	INFO	utils/k8s_helper.go:308	Gathering events in namespace "some-namespace"
2023-11-03T18:39:47.153Z	DEBUG	utils/k8s_helper.go:461	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/some-namespace_events_TestReconcile_KubernetesResources_1699036787.log
2023-11-03T18:39:47.153Z	DEBUG	utils/executor.go:271	Running command: kubectl get events -n some-namespace
2023-11-03T18:39:47.246Z	INFO	installer/installer.go:173	gathering all logs from the test
2023-11-03T18:39:47.246Z	INFO	utils/k8s_helper.go:256	Gathering logs for all pods in namespace mondoo-operator
2023-11-03T18:39:47.250Z	DEBUG	utils/k8s_helper.go:461	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/TestReconcile_KubernetesResources_mondoo-operator_ceebbf7a6ae509237c37527567c5138333236c8a7a4bb688b3e44de2bcqc2v6_1699036787.log
2023-11-03T18:39:47.268Z	DEBUG	utils/k8s_helper.go:461	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/TestReconcile_KubernetesResources_mondoo-operator_ghcr-io-mondoohq-mondoo-operator-bundle-v1-17-2_1699036787.log
2023-11-03T18:39:47.273Z	DEBUG	utils/k8s_helper.go:461	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/TestReconcile_KubernetesResources_mondoo-operator_ghcr-io-mondoohq-mondoo-operator-bundle-v1-17-2_previous_1699036787.log
2023-11-03T18:39:47.276Z	DEBUG	utils/executor.go:271	Running command: kubectl -n mondoo-operator logs ghcr-io-mondoohq-mondoo-operator-bundle-v1-17-2 -c registry-grpc
2023-11-03T18:39:47.369Z	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-5f556d68c9-qkl7w_1699036787.log
2023-11-03T18:39:47.382Z	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-5f556d68c9-qkl7w_previous_1699036787.log
2023-11-03T18:39:47.386Z	DEBUG	utils/executor.go:271	Running command: kubectl -n mondoo-operator logs mondoo-operator-controller-manager-5f556d68c9-qkl7w -c manager
2023-11-03T18:39:47.475Z	INFO	utils/k8s_helper.go:267	Gathering pod describe for all pods in namespace mondoo-operator
2023-11-03T18:39:47.480Z	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_1699036787.log
2023-11-03T18:39:47.480Z	DEBUG	utils/executor.go:271	Running command: kubectl get pod -o yaml -n mondoo-operator ceebbf7a6ae509237c37527567c5138333236c8a7a4bb688b3e44de2bcqc2v6
2023-11-03T18:39:47.569Z	DEBUG	utils/executor.go:271	Running command: kubectl get pod -o yaml -n mondoo-operator ghcr-io-mondoohq-mondoo-operator-bundle-v1-17-2
2023-11-03T18:39:47.650Z	DEBUG	utils/executor.go:271	Running command: kubectl get pod -o yaml -n mondoo-operator mondoo-operator-controller-manager-5f556d68c9-qkl7w
2023-11-03T18:39:47.732Z	DEBUG	utils/executor.go:271	Running command: kubectl get deployment -o yaml -n mondoo-operator mondoo-operator-controller-manager
2023-11-03T18:39:47.814Z	INFO	utils/k8s_helper.go:308	Gathering events in namespace "mondoo-operator"
2023-11-03T18:39:47.814Z	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_1699036787.log
2023-11-03T18:39:47.814Z	DEBUG	utils/executor.go:271	Running command: kubectl get events -n mondoo-operator
2023-11-03T18:39:47.918Z	INFO	utils/k8s_helper.go:337	Resource k8s.mondoo.com/v1alpha2, Kind=MondooAuditConfig some-namespace/mondoo-client still exists.
2023-11-03T18:39:49.922Z	INFO	utils/k8s_helper.go:341	Resource k8s.mondoo.com/v1alpha2, Kind=MondooAuditConfig some-namespace/mondoo-client deleted.
2023-11-03T18:39:49.926Z	INFO	integration/audit_config_base_suite.go:116	Waiting for cleanup of the test cluster.
2023-11-03T18:39:49.934Z	INFO	integration/audit_config_base_suite.go:141	Cleanup done. Cluster should be good to go for the next test.
2023-11-03T18:39:50.273Z	DEBUG	utils/executor.go:271	Running command: kubectl delete pods -n default --all --wait
    --- FAIL: TestAuditConfigCustomNamespaceSuite/TestReconcile_KubernetesResources (232.01s)

Check failure on line 0 in integration-tests.xml

See this annotation in the file changed.

@github-actions github-actions / Report OLM test results

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

Failed test found in:
  integration-tests.xml
Error:
  === RUN   TestAuditConfigCustomNamespaceSuite
Raw output
=== RUN   TestAuditConfigCustomNamespaceSuite
2023-11-03T18:30:08.255Z	INFO	installer/installer.go:165	Created Мondoo client secret "mondoo-token".
2023-11-03T18:30:08.255Z	INFO	installer/installer.go:66	The Mondoo operator is installed externally. Skipping installation...
2023-11-03T18:30:08.260Z	INFO	integration/audit_config_namespace_test.go:34	Created test namespace.
2023-11-03T18:30:08.268Z	INFO	installer/installer.go:165	Created Мondoo client secret "mondoo-token".
2023-11-03T18:30:08.268Z	INFO	integration/audit_config_namespace_test.go:37	Created client secret in namespace "some-namespace".
2023-11-03T18:30:08.272Z	INFO	integration/audit_config_namespace_test.go:44	Created webhook ServiceAccount "webhook-sa" in namespace "some-namespace".
2023-11-03T18:30:08.277Z	INFO	integration/audit_config_namespace_test.go:51	Created service account "mondoo-sa" in namespace "some-namespace".
2023-11-03T18:30:08.284Z	INFO	integration/audit_config_namespace_test.go:64	Created cluster role binding "mondoo-operator-k8s-resources-scanning2".
--- FAIL: TestAuditConfigCustomNamespaceSuite (620.32s)

Check failure on line 0 in integration-tests.xml

See this annotation in the file changed.

@github-actions github-actions / Report OLM 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-03T18:54:04.287Z	DEBUG	utils/executor.go:271	Running command: kubectl run -n default nginx --image nginx -l app.kubernetes.io/name=nginx
2023-11-03T18:54:04.372Z	DEBUG	utils/executor.go:271	Running command: kubectl run -n default redis --image redis -l app.kubernetes.io/name=redis
2023-11-03T18:54:08.474Z	INFO	integration/audit_config_base_suite.go:231	Create an audit config that enables only workloads scanning.
2023-11-03T18:54:08.486Z	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-03T19:04:21.622Z	INFO	installer/installer.go:173	gathering all logs from the test
2023-11-03T19:04:21.622Z	INFO	utils/k8s_helper.go:256	Gathering logs for all pods in namespace mondoo-operator
2023-11-03T19:04:21.626Z	DEBUG	utils/k8s_helper.go:461	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/TestReconcile_Containers_mondoo-operator_ceebbf7a6ae509237c37527567c5138333236c8a7a4bb688b3e44de2bcqc2v6_1699038261.log
2023-11-03T19:04:21.653Z	DEBUG	utils/k8s_helper.go:461	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/TestReconcile_Containers_mondoo-operator_ghcr-io-mondoohq-mondoo-operator-bundle-v1-17-2_1699038261.log
2023-11-03T19:04:21.659Z	DEBUG	utils/k8s_helper.go:461	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/TestReconcile_Containers_mondoo-operator_ghcr-io-mondoohq-mondoo-operator-bundle-v1-17-2_previous_1699038261.log
2023-11-03T19:04:21.662Z	DEBUG	utils/executor.go:271	Running command: kubectl -n mondoo-operator logs ghcr-io-mondoohq-mondoo-operator-bundle-v1-17-2 -c registry-grpc
2023-11-03T19:04:21.750Z	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-5f556d68c9-qkl7w_1699038261.log
2023-11-03T19:04:21.778Z	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-5f556d68c9-qkl7w_previous_1699038261.log
2023-11-03T19:04:21.782Z	DEBUG	utils/executor.go:271	Running command: kubectl -n mondoo-operator logs mondoo-operator-controller-manager-5f556d68c9-qkl7w -c manager
2023-11-03T19:04:21.908Z	INFO	utils/k8s_helper.go:267	Gathering pod describe for all pods in namespace mondoo-operator
2023-11-03T19:04:21.913Z	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_1699038261.log
2023-11-03T19:04:21.913Z	DEBUG	utils/executor.go:271	Running command: kubectl get pod -o yaml -n mondoo-operator ceebbf7a6ae509237c37527567c5138333236c8a7a4bb688b3e44de2bcqc2v6
2023-11-03T19:04:21.999Z	DEBUG	utils/executor.go:271	Running command: kubectl get pod -o yaml -n mondoo-operator ghcr-io-mondoohq-mondoo-operator-bundle-v1-17-2
2023-11-03T19:04:22.097Z	DEBUG	utils/executor.go:271	Running command: kubectl get pod -o yaml -n mondoo-operator mondoo-operator-controller-manager-5f556d68c9-qkl7w
2023-11-03T19:04:22.182Z	DEBUG	utils/executor.go:271	Running command: kubectl get deployment -o yaml -n mondoo-operator mondoo-operator-controller-manager
2023-11-03T19:04:22.263Z	DEBUG	utils/executor.go:271	Running command: kubectl get mondooauditconfig -o yaml -n mondoo-operator mondoo-client
2023-11-03T19:04:22.335Z	INFO	utils/k8s_helper.go:308	Gathering events in namespace "mondoo-operator"
2023-11-03T19:04:22.335Z	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_1699038262.log
2023-11-03T19:04:22.335Z	DEBUG	utils/executor.go:271	Running command: kubectl get events -n mondoo-operator
2023-11-03T19:04:22.445Z	INFO	utils/k8s_helper.go:337	Resource k8s.mondoo.com/v1alpha2, Kind=MondooAuditConfig mondoo-operator/mondoo-client still exists.
2023-11-03T19:04:24.448Z	INFO	utils/k8s_helper.go:341	Resource k8s.mondoo.com/v1alpha2, Kind=MondooAuditConfig mondoo-operator/mondoo-client deleted.
2023-11-03T19:04:24.462Z	INFO	integration/audit_config_base_suite.go:116	Waiting for cleanup of the test cluster.
2023-11-03T19:04:24.472Z	INFO	integration/audit_config_base_suite.go:141	Cleanup done. Cluster should be good to go for the next test.
2023-11-03T19:04:24.601Z	DEBUG	utils/executor.go:271	Running command: kubectl delete pods -n default --all --wait

Check failure on line 0 in integration-tests.xml

See this annotation in the file changed.

@github-actions github-actions / Report OLM 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-03T19:04:25.522Z	INFO	integration/audit_config_base_suite.go:158	Create an audit config that enables only workloads scanning.

Check failure on line 0 in integration-tests.xml

See this annotation in the file changed.

@github-actions github-actions / Report OLM 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-03T18:40:29.153Z	INFO	installer/installer.go:167	Мondoo client secret mondoo-operator/mondoo-token already exists.
2023-11-03T18:40:29.154Z	INFO	installer/installer.go:66	The Mondoo operator is installed externally. Skipping installation...
=== RUN   TestAuditConfigSuite/TestReconcile_AdmissionEnforcing
2023-11-03T18:40:29.658Z	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-03T18:43:50.017Z	INFO	installer/installer.go:173	gathering all logs from the test
2023-11-03T18:43:50.018Z	INFO	utils/k8s_helper.go:256	Gathering logs for all pods in namespace mondoo-operator
2023-11-03T18:43:50.021Z	DEBUG	utils/k8s_helper.go:461	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/TestReconcile_AdmissionEnforcing_mondoo-operator_ceebbf7a6ae509237c37527567c5138333236c8a7a4bb688b3e44de2bcqc2v6_1699037030.log
2023-11-03T18:43:50.050Z	DEBUG	utils/k8s_helper.go:461	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/TestReconcile_AdmissionEnforcing_mondoo-operator_ghcr-io-mondoohq-mondoo-operator-bundle-v1-17-2_1699037030.log
2023-11-03T18:43:50.056Z	DEBUG	utils/k8s_helper.go:461	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/TestReconcile_AdmissionEnforcing_mondoo-operator_ghcr-io-mondoohq-mondoo-operator-bundle-v1-17-2_previous_1699037030.log
2023-11-03T18:43:50.060Z	DEBUG	utils/executor.go:271	Running command: kubectl -n mondoo-operator logs ghcr-io-mondoohq-mondoo-operator-bundle-v1-17-2 -c registry-grpc
2023-11-03T18:43:50.145Z	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-5f556d68c9-qkl7w_1699037030.log
2023-11-03T18:43:50.159Z	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-5f556d68c9-qkl7w_previous_1699037030.log
2023-11-03T18:43:50.163Z	DEBUG	utils/executor.go:271	Running command: kubectl -n mondoo-operator logs mondoo-operator-controller-manager-5f556d68c9-qkl7w -c manager
2023-11-03T18:43:50.261Z	INFO	utils/k8s_helper.go:267	Gathering pod describe for all pods in namespace mondoo-operator
2023-11-03T18:43:50.264Z	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_1699037030.log
2023-11-03T18:43:50.264Z	DEBUG	utils/executor.go:271	Running command: kubectl get pod -o yaml -n mondoo-operator ceebbf7a6ae509237c37527567c5138333236c8a7a4bb688b3e44de2bcqc2v6
2023-11-03T18:43:50.346Z	DEBUG	utils/executor.go:271	Running command: kubectl get pod -o yaml -n mondoo-operator ghcr-io-mondoohq-mondoo-operator-bundle-v1-17-2
2023-11-03T18:43:50.428Z	DEBUG	utils/executor.go:271	Running command: kubectl get pod -o yaml -n mondoo-operator mondoo-operator-controller-manager-5f556d68c9-qkl7w
2023-11-03T18:43:50.522Z	DEBUG	utils/executor.go:271	Running command: kubectl get deployment -o yaml -n mondoo-operator mondoo-operator-controller-manager
2023-11-03T18:43:50.600Z	DEBUG	utils/executor.go:271	Running command: kubectl get mondooauditconfig -o yaml -n mondoo-operator mondoo-client
2023-11-03T18:43:50.686Z	INFO	utils/k8s_helper.go:308	Gathering events in namespace "mondoo-operator"
2023-11-03T18:43:50.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_1699037030.log
2023-11-03T18:43:50.686Z	DEBUG	utils/executor.go:271	Running command: kubectl get events -n mondoo-operator
2023-11-03T18:43:50.797Z	INFO	utils/k8s_helper.go:337	Resource k8s.mondoo.com/v1alpha2, Kind=MondooAuditConfig mondoo-operator/mondoo-client still exists.
2023-11-03T18:43:52.801Z	INFO	utils/k8s_helper.go:341	Resource k8s.mondoo.com/v1alpha2, Kind=MondooAuditConfig mondoo-operator/mondoo-client deleted.
2023-11-03T18:43:52.806Z	INFO	integration/audit_config_base_suite.go:116	Waiting for cleanup of the test cluster.
2023-11-03T18:43:52.817Z	INFO	integration/audit_config_base_suite.go:141	Cleanup done. Cluster should be good to go for the next test.
2023-11-03T18:43:53.011Z	DEBUG	utils/executor.go:271	Running command: kubectl delete pods -n default --all --wait
=== RUN   TestAuditConfigSuite/TestReconcile_AdmissionEnforcingScaleDownScanApi
2023-11-03T18:43:53.387Z	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-03T18:47:13.733Z	INFO	installer/installer.go:173	gathering all logs from the test
2023-11-03T18:47:13.733Z	INFO	utils/k8s_helper.go:256	Gathering logs for all pods in namespace mondoo-operator
2023-11-03T18:47:13.737Z	DEBUG	utils/k8s_helper.go:461	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/TestReconcile_AdmissionEnforcingScaleDownScanApi_mondoo-operator_ceebbf7a6ae509237c37527567c5138333236c8a7a4bb688b3e44de2bcqc2v6_1699037233.log
2023-11-03T18:47:13.770Z	DEBUG	utils/k8s_helper.go:461	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/TestReconcile_AdmissionEnforcingScaleDownScanApi_mondoo-operator_ghcr-io-mondoohq-mondoo-operator-bundle-v1-17-2_1699037233.log
2023-11-03T18:47:13.775Z	DEBUG	utils/k8s_helper.go:461	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/TestReconcile_AdmissionEnforcingScaleDownScanApi_mondoo-operator_ghcr-io-mondoohq-mondoo-operator-bundle-v1-17-2_previous_1699037233.log
2023-11-03T18:47:13.779Z	DEBUG	utils/executor.go:271	Running command: kubectl -n mondoo-operator logs ghcr-io-mondoohq-mondoo-operator-bundle-v1-17-2 -c registry-grpc
2023-11-03T18:47:13.866Z	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-5f556d68c9-qkl7w_1699037233.log
2023-11-03T18:47:13.889Z	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-5f556d68c9-qkl7w_previous_1699037233.log
2023-11-03T18:47:13.892Z	DEBUG	utils/executor.go:271	Running command: kubectl -n mondoo-operator logs mondoo-operator-controller-manager-5f556d68c9-qkl7w -c manager
2023-11-03T18:47:14.019Z	INFO	utils/k8s_helper.go:267	Gathering pod describe for all pods in namespace mondoo-operator
2023-11-03T18:47:14.024Z	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_1699037234.log
2023-11-03T18:47:14.024Z	DEBUG	utils/executor.go:271	Running command: kubectl get pod -o yaml -n mondoo-operator ceebbf7a6ae509237c37527567c5138333236c8a7a4bb688b3e44de2bcqc2v6
2023-11-03T18:47:14.104Z	DEBUG	utils/executor.go:271	Running command: kubectl get pod -o yaml -n mondoo-operator ghcr-io-mondoohq-mondoo-operator-bundle-v1-17-2
2023-11-03T18:47:14.181Z	DEBUG	utils/executor.go:271	Running command: kubectl get pod -o yaml -n mondoo-operator mondoo-operator-controller-manager-5f556d68c9-qkl7w
2023-11-03T18:47:14.296Z	DEBUG	utils/executor.go:271	Running command: kubectl get deployment -o yaml -n mondoo-operator mondoo-operator-controller-manager
2023-11-03T18:47:14.421Z	DEBUG	utils/executor.go:271	Running command: kubectl get mondooauditconfig -o yaml -n mondoo-operator mondoo-client
2023-11-03T18:47:14.541Z	INFO	utils/k8s_helper.go:308	Gathering events in namespace "mondoo-operator"
2023-11-03T18:47:14.541Z	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_1699037234.log
2023-11-03T18:47:14.541Z	DEBUG	utils/executor.go:271	Running command: kubectl get events -n mondoo-operator
2023-11-03T18:47:14.697Z	INFO	utils/k8s_helper.go:337	Resource k8s.mondoo.com/v1alpha2, Kind=MondooAuditConfig mondoo-operator/mondoo-client still exists.
2023-11-03T18:47:16.700Z	INFO	utils/k8s_helper.go:341	Resource k8s.mondoo.com/v1alpha2, Kind=MondooAuditConfig mondoo-operator/mondoo-client deleted.
2023-11-03T18:47:16.706Z	INFO	integration/audit_config_base_suite.go:116	Waiting for cleanup of the test cluster.
2023-11-03T18:47:16.717Z	INFO	integration/audit_config_base_suite.go:141	Cleanup done. Cluster should be good to go for the next test.
2023-11-03T18:47:16.850Z	DEBUG	utils/executor.go:271	Running command: kubectl delete pods -n default --all --wait
=== RUN   TestAuditConfigSuite/TestReconcile_AdmissionPermissive
2023-11-03T18:47:17.259Z	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-03T18:50:37.607Z	INFO	installer/installer.go:173	gathering all logs from the test
2023-11-03T18:50:37.607Z	INFO	utils/k8s_helper.go:256	Gathering logs for all pods in namespace mondoo-operator
2023-11-03T18:50:37.611Z	DEBUG	utils/k8s_helper.go:461	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/TestReconcile_AdmissionPermissive_mondoo-operator_ceebbf7a6ae509237c37527567c5138333236c8a7a4bb688b3e44de2bcqc2v6_1699037437.log
2023-11-03T18:50:37.637Z	DEBUG	utils/k8s_helper.go:461	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/TestReconcile_AdmissionPermissive_mondoo-operator_ghcr-io-mondoohq-mondoo-operator-bundle-v1-17-2_1699037437.log
2023-11-03T18:50:37.643Z	DEBUG	utils/k8s_helper.go:461	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/TestReconcile_AdmissionPermissive_mondoo-operator_ghcr-io-mondoohq-mondoo-operator-bundle-v1-17-2_previous_1699037437.log
2023-11-03T18:50:37.647Z	DEBUG	utils/executor.go:271	Running command: kubectl -n mondoo-operator logs ghcr-io-mondoohq-mondoo-operator-bundle-v1-17-2 -c registry-grpc
2023-11-03T18:50:37.731Z	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-5f556d68c9-qkl7w_1699037437.log
2023-11-03T18:50:37.750Z	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-5f556d68c9-qkl7w_previous_1699037437.log
2023-11-03T18:50:37.754Z	DEBUG	utils/executor.go:271	Running command: kubectl -n mondoo-operator logs mondoo-operator-controller-manager-5f556d68c9-qkl7w -c manager
2023-11-03T18:50:37.856Z	INFO	utils/k8s_helper.go:267	Gathering pod describe for all pods in namespace mondoo-operator
2023-11-03T18:50:37.860Z	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_1699037437.log
2023-11-03T18:50:37.860Z	DEBUG	utils/executor.go:271	Running command: kubectl get pod -o yaml -n mondoo-operator ceebbf7a6ae509237c37527567c5138333236c8a7a4bb688b3e44de2bcqc2v6
2023-11-03T18:50:37.939Z	DEBUG	utils/executor.go:271	Running command: kubectl get pod -o yaml -n mondoo-operator ghcr-io-mondoohq-mondoo-operator-bundle-v1-17-2
2023-11-03T18:50:38.019Z	DEBUG	utils/executor.go:271	Running command: kubectl get pod -o yaml -n mondoo-operator mondoo-operator-controller-manager-5f556d68c9-qkl7w
2023-11-03T18:50:38.102Z	DEBUG	utils/executor.go:271	Running command: kubectl get deployment -o yaml -n mondoo-operator mondoo-operator-controller-manager
2023-11-03T18:50:38.184Z	DEBUG	utils/executor.go:271	Running command: kubectl get mondooauditconfig -o yaml -n mondoo-operator mondoo-client
2023-11-03T18:50:38.262Z	INFO	utils/k8s_helper.go:308	Gathering events in namespace "mondoo-operator"
2023-11-03T18:50:38.262Z	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_1699037438.log
2023-11-03T18:50:38.262Z	DEBUG	utils/executor.go:271	Running command: kubectl get events -n mondoo-operator
2023-11-03T18:50:38.369Z	INFO	utils/k8s_helper.go:337	Resource k8s.mondoo.com/v1alpha2, Kind=MondooAuditConfig mondoo-operator/mondoo-client still exists.
2023-11-03T18:50:40.373Z	INFO	utils/k8s_helper.go:341	Resource k8s.mondoo.com/v1alpha2, Kind=MondooAuditConfig mondoo-operator/mondoo-client deleted.
2023-11-03T18:50:40.381Z	INFO	integration/audit_config_base_suite.go:116	Waiting for cleanup of the test cluster.
2023-11-03T18:50:40.391Z	INFO	integration/audit_config_base_suite.go:141	Cleanup done. Cluster should be good to go for the next test.
2023-11-03T18:50:40.622Z	DEBUG	utils/executor.go:271	Running command: kubectl delete pods -n default --all --wait
=== RUN   TestAuditConfigSuite/TestReconcile_AllDisabled
2023-11-03T18:50:40.706Z	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-03T18:54:01.226Z	INFO	installer/installer.go:173	gathering all logs from the test
2023-11-03T18:54:01.226Z	INFO	utils/k8s_helper.go:256	Gathering logs for all pods in namespace mondoo-operator
2023-11-03T18:54:01.231Z	DEBUG	utils/k8s_helper.go:461	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/TestReconcile_AllDisabled_mondoo-operator_ceebbf7a6ae509237c37527567c5138333236c8a7a4bb688b3e44de2bcqc2v6_1699037641.log
2023-11-03T18:54:01.259Z	DEBUG	utils/k8s_helper.go:461	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/TestReconcile_AllDisabled_mondoo-operator_ghcr-io-mondoohq-mondoo-operator-bundle-v1-17-2_1699037641.log
2023-11-03T18:54:01.265Z	DEBUG	utils/k8s_helper.go:461	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/TestReconcile_AllDisabled_mondoo-operator_ghcr-io-mondoohq-mondoo-operator-bundle-v1-17-2_previous_1699037641.log
2023-11-03T18:54:01.268Z	DEBUG	utils/executor.go:271	Running command: kubectl -n mondoo-operator logs ghcr-io-mondoohq-mondoo-operator-bundle-v1-17-2 -c registry-grpc
2023-11-03T18:54:01.358Z	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-5f556d68c9-qkl7w_1699037641.log
2023-11-03T18:54:01.393Z	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-5f556d68c9-qkl7w_previous_1699037641.log
2023-11-03T18:54:01.399Z	DEBUG	utils/executor.go:271	Running command: kubectl -n mondoo-operator logs mondoo-operator-controller-manager-5f556d68c9-qkl7w -c manager
2023-11-03T18:54:01.509Z	INFO	utils/k8s_helper.go:267	Gathering pod describe for all pods in namespace mondoo-operator
2023-11-03T18:54:01.515Z	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_1699037641.log
2023-11-03T18:54:01.515Z	DEBUG	utils/executor.go:271	Running command: kubectl get pod -o yaml -n mondoo-operator ceebbf7a6ae509237c37527567c5138333236c8a7a4bb688b3e44de2bcqc2v6
2023-11-03T18:54:01.592Z	DEBUG	utils/executor.go:271	Running command: kubectl get pod -o yaml -n mondoo-operator ghcr-io-mondoohq-mondoo-operator-bundle-v1-17-2
2023-11-03T18:54:01.666Z	DEBUG	utils/executor.go:271	Running command: kubectl get pod -o yaml -n mondoo-operator mondoo-operator-controller-manager-5f556d68c9-qkl7w
2023-11-03T18:54:01.745Z	DEBUG	utils/executor.go:271	Running command: kubectl get deployment -o yaml -n mondoo-operator mondoo-operator-controller-manager
2023-11-03T18:54:01.823Z	DEBUG	utils/executor.go:271	Running command: kubectl get mondooauditconfig -o yaml -n mondoo-operator mondoo-client
2023-11-03T18:54:01.908Z	INFO	utils/k8s_helper.go:308	Gathering events in namespace "mondoo-operator"
2023-11-03T18:54:01.908Z	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_1699037641.log
2023-11-03T18:54:01.908Z	DEBUG	utils/executor.go:271	Running command: kubectl get events -n mondoo-operator
2023-11-03T18:54:02.038Z	INFO	utils/k8s_helper.go:337	Resource k8s.mondoo.com/v1alpha2, Kind=MondooAuditConfig mondoo-operator/mondoo-client still exists.
2023-11-03T18:54:04.041Z	INFO	utils/k8s_helper.go:341	Resource k8s.mondoo.com/v1alpha2, Kind=MondooAuditConfig mondoo-operator/mondoo-client deleted.
2023-11-03T18:54:04.047Z	INFO	integration/audit_config_base_suite.go:116	Waiting for cleanup of the test cluster.
2023-11-03T18:54:04.058Z	INFO	integration/audit_config_base_suite.go:141	Cleanup done. Cluster should be good to go for the next test.
2023-11-03T18:54:04.197Z	DEBUG	utils/executor.go:271	Running command: kubectl delete pods -n default --all --wait
=== RUN   TestAuditConfigSuite/TestReconcile_Containers
2023-11-03T18:54:04.287Z	DEBUG	utils/executor.go:271	Running command: kubectl run -n default nginx --image nginx -l app.kubernetes.io/name=nginx
2023-11-03T18:54:04.372Z	DEBUG	utils/executor.go:271	Running command: kubectl run -n default redis --image redis -l app.kubernetes.io/name=redis
2023-11-03T18:54:08.474Z	INFO	integration/audit_config_base_suite.go:231	Create an audit config that enables only workloads scanning.
2023-11-03T18:54:08.486Z	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-03T19:04:21.622Z	INFO	installer/installer.go:173	gathering all logs from the test
2023-11-03T19:04:21.622Z	INFO	utils/k8s_helper.go:256	Gathering logs for all pods in namespace mondoo-operator
2023-11-03T19:04:21.626Z	DEBUG	utils/k8s_helper.go:461	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/TestReconcile_Containers_mondoo-operator_ceebbf7a6ae509237c37527567c5138333236c8a7a4bb688b3e44de2bcqc2v6_1699038261.log
2023-11-03T19:04:21.653Z	DEBUG	utils/k8s_helper.go:461	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/TestReconcile_Containers_mondoo-operator_ghcr-io-mondoohq-mondoo-operator-bundle-v1-17-2_1699038261.log
2023-11-03T19:04:21.659Z	DEBUG	utils/k8s_helper.go:461	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/TestReconcile_Containers_mondoo-operator_ghcr-io-mondoohq-mondoo-operator-bundle-v1-17-2_previous_1699038261.log
2023-11-03T19:04:21.662Z	DEBUG	utils/executor.go:271	Running command: kubectl -n mondoo-operator logs ghcr-io-mondoohq-mondoo-operator-bundle-v1-17-2 -c registry-grpc
2023-11-03T19:04:21.750Z	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-5f556d68c9-qkl7w_1699038261.log
2023-11-03T19:04:21.778Z	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-5f556d68c9-qkl7w_previous_1699038261.log
2023-11-03T19:04:21.782Z	DEBUG	utils/executor.go:271	Running command: kubectl -n mondoo-operator logs mondoo-operator-controller-manager-5f556d68c9-qkl7w -c manager
2023-11-03T19:04:21.908Z	INFO	utils/k8s_helper.go:267	Gathering pod describe for all pods in namespace mondoo-operator
2023-11-03T19:04:21.913Z	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_1699038261.log
2023-11-03T19:04:21.913Z	DEBUG	utils/executor.go:271	Running command: kubectl get pod -o yaml -n mondoo-operator ceebbf7a6ae509237c37527567c5138333236c8a7a4bb688b3e44de2bcqc2v6
2023-11-03T19:04:21.999Z	DEBUG	utils/executor.go:271	Running command: kubectl get pod -o yaml -n mondoo-operator ghcr-io-mondoohq-mondoo-operator-bundle-v1-17-2
2023-11-03T19:04:22.097Z	DEBUG	utils/executor.go:271	Running command: kubectl get pod -o yaml -n mondoo-operator mondoo-operator-controller-manager-5f556d68c9-qkl7w
2023-11-03T19:04:22.182Z	DEBUG	utils/executor.go:271	Running command: kubectl get deployment -o yaml -n mondoo-operator mondoo-operator-controller-manager
2023-11-03T19:04:22.263Z	DEBUG	utils/executor.go:271	Running command: kubectl get mondooauditconfig -o yaml -n mondoo-operator mondoo-client
2023-11-03T19:04:22.335Z	INFO	utils/k8s_helper.go:308	Gathering events in namespace "mondoo-operator"
2023-11-03T19:04:22.335Z	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_1699038262.log
2023-11-03T19:04:22.335Z	DEBUG	utils/executor.go:271	Running command: kubectl get events -n mondoo-operator
2023-11-03T19:04:22.445Z	INFO	utils/k8s_helper.go:337	Resource k8s.mondoo.com/v1alpha2, Kind=MondooAuditConfig mondoo-operator/mondoo-client still exists.
2023-11-03T19:04:24.448Z	INFO	utils/k8s_helper.go:341	Resource k8s.mondoo.com/v1alpha2, Kind=MondooAuditConfig mondoo-operator/mondoo-client deleted.
2023-11-03T19:04:24.462Z	INFO	integration/audit_config_base_suite.go:116	Waiting for cleanup of the test cluster.
2023-11-03T19:04:24.472Z	INFO	integration/audit_config_base_suite.go:141	Cleanup done. Cluster should be good to go for the next test.
2023-11-03T19:04:24.601Z	DEBUG	utils/executor.go:271	Running command: kubectl delete pods -n default --all --wait
=== RUN   TestAuditConfigSuite/TestReconcile_KubernetesResources
2023-11-03T19:04:25.522Z	INFO	integration/audit_config_base_suite.go:158	Create an audit config that enables only workloads scanning.

Check failure on line 0 in integration-tests.xml

See this annotation in the file changed.

@github-actions github-actions / Report OLM 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-03T18:40:29.658Z	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-03T18:43:50.017Z	INFO	installer/installer.go:173	gathering all logs from the test
2023-11-03T18:43:50.018Z	INFO	utils/k8s_helper.go:256	Gathering logs for all pods in namespace mondoo-operator
2023-11-03T18:43:50.021Z	DEBUG	utils/k8s_helper.go:461	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/TestReconcile_AdmissionEnforcing_mondoo-operator_ceebbf7a6ae509237c37527567c5138333236c8a7a4bb688b3e44de2bcqc2v6_1699037030.log
2023-11-03T18:43:50.050Z	DEBUG	utils/k8s_helper.go:461	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/TestReconcile_AdmissionEnforcing_mondoo-operator_ghcr-io-mondoohq-mondoo-operator-bundle-v1-17-2_1699037030.log
2023-11-03T18:43:50.056Z	DEBUG	utils/k8s_helper.go:461	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/TestReconcile_AdmissionEnforcing_mondoo-operator_ghcr-io-mondoohq-mondoo-operator-bundle-v1-17-2_previous_1699037030.log
2023-11-03T18:43:50.060Z	DEBUG	utils/executor.go:271	Running command: kubectl -n mondoo-operator logs ghcr-io-mondoohq-mondoo-operator-bundle-v1-17-2 -c registry-grpc
2023-11-03T18:43:50.145Z	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-5f556d68c9-qkl7w_1699037030.log
2023-11-03T18:43:50.159Z	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-5f556d68c9-qkl7w_previous_1699037030.log
2023-11-03T18:43:50.163Z	DEBUG	utils/executor.go:271	Running command: kubectl -n mondoo-operator logs mondoo-operator-controller-manager-5f556d68c9-qkl7w -c manager
2023-11-03T18:43:50.261Z	INFO	utils/k8s_helper.go:267	Gathering pod describe for all pods in namespace mondoo-operator
2023-11-03T18:43:50.264Z	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_1699037030.log
2023-11-03T18:43:50.264Z	DEBUG	utils/executor.go:271	Running command: kubectl get pod -o yaml -n mondoo-operator ceebbf7a6ae509237c37527567c5138333236c8a7a4bb688b3e44de2bcqc2v6
2023-11-03T18:43:50.346Z	DEBUG	utils/executor.go:271	Running command: kubectl get pod -o yaml -n mondoo-operator ghcr-io-mondoohq-mondoo-operator-bundle-v1-17-2
2023-11-03T18:43:50.428Z	DEBUG	utils/executor.go:271	Running command: kubectl get pod -o yaml -n mondoo-operator mondoo-operator-controller-manager-5f556d68c9-qkl7w
2023-11-03T18:43:50.522Z	DEBUG	utils/executor.go:271	Running command: kubectl get deployment -o yaml -n mondoo-operator mondoo-operator-controller-manager
2023-11-03T18:43:50.600Z	DEBUG	utils/executor.go:271	Running command: kubectl get mondooauditconfig -o yaml -n mondoo-operator mondoo-client
2023-11-03T18:43:50.686Z	INFO	utils/k8s_helper.go:308	Gathering events in namespace "mondoo-operator"
2023-11-03T18:43:50.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_1699037030.log
2023-11-03T18:43:50.686Z	DEBUG	utils/executor.go:271	Running command: kubectl get events -n mondoo-operator
2023-11-03T18:43:50.797Z	INFO	utils/k8s_helper.go:337	Resource k8s.mondoo.com/v1alpha2, Kind=MondooAuditConfig mondoo-operator/mondoo-client still exists.
2023-11-03T18:43:52.801Z	INFO	utils/k8s_helper.go:341	Resource k8s.mondoo.com/v1alpha2, Kind=MondooAuditConfig mondoo-operator/mondoo-client deleted.
2023-11-03T18:43:52.806Z	INFO	integration/audit_config_base_suite.go:116	Waiting for cleanup of the test cluster.
2023-11-03T18:43:52.817Z	INFO	integration/audit_config_base_suite.go:141	Cleanup done. Cluster should be good to go for the next test.
2023-11-03T18:43:53.011Z	DEBUG	utils/executor.go:271	Running command: kubectl delete pods -n default --all --wait

Check failure on line 0 in integration-tests.xml

See this annotation in the file changed.

@github-actions github-actions / Report OLM 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-03T18:43:53.387Z	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-03T18:47:13.733Z	INFO	installer/installer.go:173	gathering all logs from the test
2023-11-03T18:47:13.733Z	INFO	utils/k8s_helper.go:256	Gathering logs for all pods in namespace mondoo-operator
2023-11-03T18:47:13.737Z	DEBUG	utils/k8s_helper.go:461	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/TestReconcile_AdmissionEnforcingScaleDownScanApi_mondoo-operator_ceebbf7a6ae509237c37527567c5138333236c8a7a4bb688b3e44de2bcqc2v6_1699037233.log
2023-11-03T18:47:13.770Z	DEBUG	utils/k8s_helper.go:461	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/TestReconcile_AdmissionEnforcingScaleDownScanApi_mondoo-operator_ghcr-io-mondoohq-mondoo-operator-bundle-v1-17-2_1699037233.log
2023-11-03T18:47:13.775Z	DEBUG	utils/k8s_helper.go:461	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/TestReconcile_AdmissionEnforcingScaleDownScanApi_mondoo-operator_ghcr-io-mondoohq-mondoo-operator-bundle-v1-17-2_previous_1699037233.log
2023-11-03T18:47:13.779Z	DEBUG	utils/executor.go:271	Running command: kubectl -n mondoo-operator logs ghcr-io-mondoohq-mondoo-operator-bundle-v1-17-2 -c registry-grpc
2023-11-03T18:47:13.866Z	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-5f556d68c9-qkl7w_1699037233.log
2023-11-03T18:47:13.889Z	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-5f556d68c9-qkl7w_previous_1699037233.log
2023-11-03T18:47:13.892Z	DEBUG	utils/executor.go:271	Running command: kubectl -n mondoo-operator logs mondoo-operator-controller-manager-5f556d68c9-qkl7w -c manager
2023-11-03T18:47:14.019Z	INFO	utils/k8s_helper.go:267	Gathering pod describe for all pods in namespace mondoo-operator
2023-11-03T18:47:14.024Z	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_1699037234.log
2023-11-03T18:47:14.024Z	DEBUG	utils/executor.go:271	Running command: kubectl get pod -o yaml -n mondoo-operator ceebbf7a6ae509237c37527567c5138333236c8a7a4bb688b3e44de2bcqc2v6
2023-11-03T18:47:14.104Z	DEBUG	utils/executor.go:271	Running command: kubectl get pod -o yaml -n mondoo-operator ghcr-io-mondoohq-mondoo-operator-bundle-v1-17-2
2023-11-03T18:47:14.181Z	DEBUG	utils/executor.go:271	Running command: kubectl get pod -o yaml -n mondoo-operator mondoo-operator-controller-manager-5f556d68c9-qkl7w
2023-11-03T18:47:14.296Z	DEBUG	utils/executor.go:271	Running command: kubectl get deployment -o yaml -n mondoo-operator mondoo-operator-controller-manager
2023-11-03T18:47:14.421Z	DEBUG	utils/executor.go:271	Running command: kubectl get mondooauditconfig -o yaml -n mondoo-operator mondoo-client
2023-11-03T18:47:14.541Z	INFO	utils/k8s_helper.go:308	Gathering events in namespace "mondoo-operator"
2023-11-03T18:47:14.541Z	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_1699037234.log
2023-11-03T18:47:14.541Z	DEBUG	utils/executor.go:271	Running command: kubectl get events -n mondoo-operator
2023-11-03T18:47:14.697Z	INFO	utils/k8s_helper.go:337	Resource k8s.mondoo.com/v1alpha2, Kind=MondooAuditConfig mondoo-operator/mondoo-client still exists.
2023-11-03T18:47:16.700Z	INFO	utils/k8s_helper.go:341	Resource k8s.mondoo.com/v1alpha2, Kind=MondooAuditConfig mondoo-operator/mondoo-client deleted.
2023-11-03T18:47:16.706Z	INFO	integration/audit_config_base_suite.go:116	Waiting for cleanup of the test cluster.
2023-11-03T18:47:16.717Z	INFO	integration/audit_config_base_suite.go:141	Cleanup done. Cluster should be good to go for the next test.
2023-11-03T18:47:16.850Z	DEBUG	utils/executor.go:271	Running command: kubectl delete pods -n default --all --wait

Check failure on line 0 in integration-tests.xml

See this annotation in the file changed.

@github-actions github-actions / Report OLM 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-03T18:47:17.259Z	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-03T18:50:37.607Z	INFO	installer/installer.go:173	gathering all logs from the test
2023-11-03T18:50:37.607Z	INFO	utils/k8s_helper.go:256	Gathering logs for all pods in namespace mondoo-operator
2023-11-03T18:50:37.611Z	DEBUG	utils/k8s_helper.go:461	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/TestReconcile_AdmissionPermissive_mondoo-operator_ceebbf7a6ae509237c37527567c5138333236c8a7a4bb688b3e44de2bcqc2v6_1699037437.log
2023-11-03T18:50:37.637Z	DEBUG	utils/k8s_helper.go:461	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/TestReconcile_AdmissionPermissive_mondoo-operator_ghcr-io-mondoohq-mondoo-operator-bundle-v1-17-2_1699037437.log
2023-11-03T18:50:37.643Z	DEBUG	utils/k8s_helper.go:461	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/TestReconcile_AdmissionPermissive_mondoo-operator_ghcr-io-mondoohq-mondoo-operator-bundle-v1-17-2_previous_1699037437.log
2023-11-03T18:50:37.647Z	DEBUG	utils/executor.go:271	Running command: kubectl -n mondoo-operator logs ghcr-io-mondoohq-mondoo-operator-bundle-v1-17-2 -c registry-grpc
2023-11-03T18:50:37.731Z	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-5f556d68c9-qkl7w_1699037437.log
2023-11-03T18:50:37.750Z	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-5f556d68c9-qkl7w_previous_1699037437.log
2023-11-03T18:50:37.754Z	DEBUG	utils/executor.go:271	Running command: kubectl -n mondoo-operator logs mondoo-operator-controller-manager-5f556d68c9-qkl7w -c manager
2023-11-03T18:50:37.856Z	INFO	utils/k8s_helper.go:267	Gathering pod describe for all pods in namespace mondoo-operator
2023-11-03T18:50:37.860Z	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_1699037437.log
2023-11-03T18:50:37.860Z	DEBUG	utils/executor.go:271	Running command: kubectl get pod -o yaml -n mondoo-operator ceebbf7a6ae509237c37527567c5138333236c8a7a4bb688b3e44de2bcqc2v6
2023-11-03T18:50:37.939Z	DEBUG	utils/executor.go:271	Running command: kubectl get pod -o yaml -n mondoo-operator ghcr-io-mondoohq-mondoo-operator-bundle-v1-17-2
2023-11-03T18:50:38.019Z	DEBUG	utils/executor.go:271	Running command: kubectl get pod -o yaml -n mondoo-operator mondoo-operator-controller-manager-5f556d68c9-qkl7w
2023-11-03T18:50:38.102Z	DEBUG	utils/executor.go:271	Running command: kubectl get deployment -o yaml -n mondoo-operator mondoo-operator-controller-manager
2023-11-03T18:50:38.184Z	DEBUG	utils/executor.go:271	Running command: kubectl get mondooauditconfig -o yaml -n mondoo-operator mondoo-client
2023-11-03T18:50:38.262Z	INFO	utils/k8s_helper.go:308	Gathering events in namespace "mondoo-operator"
2023-11-03T18:50:38.262Z	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_1699037438.log
2023-11-03T18:50:38.262Z	DEBUG	utils/executor.go:271	Running command: kubectl get events -n mondoo-operator
2023-11-03T18:50:38.369Z	INFO	utils/k8s_helper.go:337	Resource k8s.mondoo.com/v1alpha2, Kind=MondooAuditConfig mondoo-operator/mondoo-client still exists.
2023-11-03T18:50:40.373Z	INFO	utils/k8s_helper.go:341	Resource k8s.mondoo.com/v1alpha2, Kind=MondooAuditConfig mondoo-operator/mondoo-client deleted.
2023-11-03T18:50:40.381Z	INFO	integration/audit_config_base_suite.go:116	Waiting for cleanup of the test cluster.
2023-11-03T18:50:40.391Z	INFO	integration/audit_config_base_suite.go:141	Cleanup done. Cluster should be good to go for the next test.
2023-11-03T18:50:40.622Z	DEBUG	utils/executor.go:271	Running command: kubectl delete pods -n default --all --wait

Check failure on line 0 in integration-tests.xml

See this annotation in the file changed.

@github-actions github-actions / Report OLM 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-03T18:50:40.706Z	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-03T18:54:01.226Z	INFO	installer/installer.go:173	gathering all logs from the test
2023-11-03T18:54:01.226Z	INFO	utils/k8s_helper.go:256	Gathering logs for all pods in namespace mondoo-operator
2023-11-03T18:54:01.231Z	DEBUG	utils/k8s_helper.go:461	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/TestReconcile_AllDisabled_mondoo-operator_ceebbf7a6ae509237c37527567c5138333236c8a7a4bb688b3e44de2bcqc2v6_1699037641.log
2023-11-03T18:54:01.259Z	DEBUG	utils/k8s_helper.go:461	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/TestReconcile_AllDisabled_mondoo-operator_ghcr-io-mondoohq-mondoo-operator-bundle-v1-17-2_1699037641.log
2023-11-03T18:54:01.265Z	DEBUG	utils/k8s_helper.go:461	created log file: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/tests/TestReconcile_AllDisabled_mondoo-operator_ghcr-io-mondoohq-mondoo-operator-bundle-v1-17-2_previous_1699037641.log
2023-11-03T18:54:01.268Z	DEBUG	utils/executor.go:271	Running command: kubectl -n mondoo-operator logs ghcr-io-mondoohq-mondoo-operator-bundle-v1-17-2 -c registry-grpc
2023-11-03T18:54:01.358Z	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-5f556d68c9-qkl7w_1699037641.log
2023-11-03T18:54:01.393Z	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-5f556d68c9-qkl7w_previous_1699037641.log
2023-11-03T18:54:01.399Z	DEBUG	utils/executor.go:271	Running command: kubectl -n mondoo-operator logs mondoo-operator-controller-manager-5f556d68c9-qkl7w -c manager
2023-11-03T18:54:01.509Z	INFO	utils/k8s_helper.go:267	Gathering pod describe for all pods in namespace mondoo-operator
2023-11-03T18:54:01.515Z	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_1699037641.log
2023-11-03T18:54:01.515Z	DEBUG	utils/executor.go:271	Running command: kubectl get pod -o yaml -n mondoo-operator ceebbf7a6ae509237c37527567c5138333236c8a7a4bb688b3e44de2bcqc2v6
2023-11-03T18:54:01.592Z	DEBUG	utils/executor.go:271	Running command: kubectl get pod -o yaml -n mondoo-operator ghcr-io-mondoohq-mondoo-operator-bundle-v1-17-2
2023-11-03T18:54:01.666Z	DEBUG	utils/executor.go:271	Running command: kubectl get pod -o yaml -n mondoo-operator mondoo-operator-controller-manager-5f556d68c9-qkl7w
2023-11-03T18:54:01.745Z	DEBUG	utils/executor.go:271	Running command: kubectl get deployment -o yaml -n mondoo-operator mondoo-operator-controller-manager
2023-11-03T18:54:01.823Z	DEBUG	utils/executor.go:271	Running command: kubectl get mondooauditconfig -o yaml -n mondoo-operator mondoo-client
2023-11-03T18:54:01.908Z	INFO	utils/k8s_helper.go:308	Gathering events in namespace "mondoo-operator"
2023-11-03T18:54:01.908Z	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_1699037641.log
2023-11-03T18:54:01.908Z	DEBUG	utils/executor.go:271	Running command: kubectl get events -n mondoo-operator
2023-11-03T18:54:02.038Z	INFO	utils/k8s_helper.go:337	Resource k8s.mondoo.com/v1alpha2, Kind=MondooAuditConfig mondoo-operator/mondoo-client still exists.
2023-11-03T18:54:04.041Z	INFO	utils/k8s_helper.go:341	Resource k8s.mondoo.com/v1alpha2, Kind=MondooAuditConfig mondoo-operator/mondoo-client deleted.
2023-11-03T18:54:04.047Z	INFO	integration/audit_config_base_suite.go:116	Waiting for cleanup of the test cluster.
2023-11-03T18:54:04.058Z	INFO	integration/audit_config_base_suite.go:141	Cleanup done. Cluster should be good to go for the next test.
2023-11-03T18:54:04.197Z	DEBUG	utils/executor.go:271	Running command: kubectl delete pods -n default --all --wait