Fix intermittent error in integration test 09/139009/1
authorToineSiebelink <toine.siebelink@est.tech>
Tue, 24 Sep 2024 17:16:31 +0000 (18:16 +0100)
committerToineSiebelink <toine.siebelink@est.tech>
Tue, 24 Sep 2024 17:16:31 +0000 (18:16 +0100)
- make collection verification order independent

Issue-ID: CPS-475
Change-Id: Ib070fd5360463c93ba6193a84a1dfcd11cd802fa
Signed-off-by: ToineSiebelink <toine.siebelink@est.tech>
integration-test/src/test/groovy/org/onap/cps/integration/functional/cps/ModuleServiceIntegrationSpec.groovy

index 0e465d8..5f4ba34 100644 (file)
@@ -215,7 +215,8 @@ class ModuleServiceIntegrationSpec extends FunctionalSpecBase {
         when: 'all schema sets are retrieved'
             def result = objectUnderTest.getSchemaSets(FUNCTIONAL_TEST_DATASPACE_1)
         then: 'the result contains all expected schema sets'
-            assert result.name == [ 'bookstoreSchemaSet', 'newSchema1' ]
+            assert result.name.size() == 2
+            assert result.name.containsAll('bookstoreSchemaSet', 'newSchema1')
         cleanup:
             objectUnderTest.deleteSchemaSetsWithCascade(FUNCTIONAL_TEST_DATASPACE_1, ['newSchema1'])
     }