From 6dae13128eafb5af753d1a9fa1689816e906150b Mon Sep 17 00:00:00 2001 From: "halil.cakal" Date: Tue, 5 Dec 2023 17:09:42 +0000 Subject: Uplift Guava dependency - upgrade Guava to the latest version to fix critial vulnerability Issue-ID: CPS-1987 Change-Id: I6ea314407133dea229e9626fdf2d9c938f7c7e08 Signed-off-by: halil.cakal --- .../cps/integration/functional/CpsAdminServiceIntegrationSpec.groovy | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'integration-test/src/test') diff --git a/integration-test/src/test/groovy/org/onap/cps/integration/functional/CpsAdminServiceIntegrationSpec.groovy b/integration-test/src/test/groovy/org/onap/cps/integration/functional/CpsAdminServiceIntegrationSpec.groovy index bdd894c31f..f8eca61990 100644 --- a/integration-test/src/test/groovy/org/onap/cps/integration/functional/CpsAdminServiceIntegrationSpec.groovy +++ b/integration-test/src/test/groovy/org/onap/cps/integration/functional/CpsAdminServiceIntegrationSpec.groovy @@ -174,7 +174,8 @@ class CpsAdminServiceIntegrationSpec extends CpsIntegrationSpecBase { def updatedTreeJsonData = readResourceDataFile('tree/updated-test-tree.json') cpsDataService.updateNodeLeaves(GENERAL_TEST_DATASPACE, "anchor4", "/test-tree/branch[@name='left']", updatedTreeJsonData, OffsetDateTime.now()) then: 'updated tree data node can be retrieved by its normalized xpath' - def birdsName = cpsDataService.getDataNodes(GENERAL_TEST_DATASPACE, 'anchor4',"/test-tree/branch[@name='left']/nest", FetchDescendantsOption.DIRECT_CHILDREN_ONLY)[0].leaves['birds'] - assert birdsName as String == '[Raven, Night Owl, Crow]' + def birdsName = cpsDataService.getDataNodes(GENERAL_TEST_DATASPACE, 'anchor4',"/test-tree/branch[@name='left']/nest", FetchDescendantsOption.DIRECT_CHILDREN_ONLY)[0].leaves['birds'] as List + assert birdsName.size() == 3 + assert birdsName.containsAll('Night Owl', 'Raven', 'Crow') } } -- cgit 1.2.3-korg