diff options
author | niamhcore <niamh.core@est.tech> | 2021-09-07 10:27:18 +0100 |
---|---|---|
committer | niamhcore <niamh.core@est.tech> | 2021-09-07 16:39:34 +0100 |
commit | c309f24909510ebd11737efc3eadb055c91e304e (patch) | |
tree | b32da09e7af35aad888da8686660285ab791bc61 /cps-ri/src/test | |
parent | d0422226b45f752086c9920bdead753c644d9289 (diff) |
P2 - Get module names and revisions rest layer
Issue-ID: CPS-485
Signed-off-by: niamhcore <niamh.core@est.tech>
Change-Id: I1bcf45902207d0dba6b5dfe8277cb06571694db3
Diffstat (limited to 'cps-ri/src/test')
-rw-r--r-- | cps-ri/src/test/groovy/org/onap/cps/spi/impl/CpsModulePersistenceServiceIntegrationSpec.groovy | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cps-ri/src/test/groovy/org/onap/cps/spi/impl/CpsModulePersistenceServiceIntegrationSpec.groovy b/cps-ri/src/test/groovy/org/onap/cps/spi/impl/CpsModulePersistenceServiceIntegrationSpec.groovy index a139830a2b..7e42200799 100644 --- a/cps-ri/src/test/groovy/org/onap/cps/spi/impl/CpsModulePersistenceServiceIntegrationSpec.groovy +++ b/cps-ri/src/test/groovy/org/onap/cps/spi/impl/CpsModulePersistenceServiceIntegrationSpec.groovy @@ -140,7 +140,7 @@ class CpsModulePersistenceServiceIntegrationSpec extends CpsPersistenceSpecBase given: 'a dataspace name' def dataspaceName = 'DATASPACE-002' when: 'all yang resources module references are retrieved for the given dataspace name' - def result = objectUnderTest.getAllYangResourceModuleReferences(dataspaceName) + def result = objectUnderTest.getYangResourceModuleReferences(dataspaceName) then: 'the correct resources are returned' result.sort() == [new ModuleReference(moduleName: 'MODULE-NAME-005', revision: 'REVISION-002'), new ModuleReference(moduleName: 'MODULE-NAME-006', revision: 'REVISION-006')] @@ -152,7 +152,7 @@ class CpsModulePersistenceServiceIntegrationSpec extends CpsPersistenceSpecBase def dataspaceName = 'DATASPACE-001' def anchorName = 'ANCHOR1' when: 'all yang resources module references are retrieved for the given anchor' - def result = objectUnderTest.getAllYangResourceModuleReferences(dataspaceName, anchorName) + def result = objectUnderTest.getYangResourceModuleReferences(dataspaceName, anchorName) then: 'the correct module names and revisions are returned' result.sort() == [new ModuleReference(moduleName: null, revision: null), new ModuleReference(moduleName: 'MODULE-NAME-002', revision: 'REVISION-002'), new ModuleReference(moduleName: 'MODULE-NAME-003', revision: 'REVISION-002'), |