From b0e3827ed4cb952a7e82564af460123c9d79f5ba Mon Sep 17 00:00:00 2001 From: Michael Burman Date: Tue, 17 Oct 2023 13:24:04 +0300 Subject: [PATCH] Verify in the test_all_the_things that the cleanup task has completed --- tests/test_all_the_things/test_all_the_things_suite_test.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/test_all_the_things/test_all_the_things_suite_test.go b/tests/test_all_the_things/test_all_the_things_suite_test.go index 79eb86c6..68946e5a 100644 --- a/tests/test_all_the_things/test_all_the_things_suite_test.go +++ b/tests/test_all_the_things/test_all_the_things_suite_test.go @@ -96,6 +96,9 @@ var _ = Describe(testName, func() { ns.ExpectDatacenterNameStatusUpdated(dcName, dcNameOverride) + // Ensure we have a single CassandraTask created which is a cleanup (and it succeeded) + ns.WaitForCompletedCassandraTasks(dcName, "cleanup", 1) + step = "stopping the dc" json = "{\"spec\": {\"stopped\": true}}" k = kubectl.PatchMerge(dcResource, json)