Create Base and Sample Performance Integration Tests
[cps.git] / integration-test / src / test / groovy / org / onap / cps / integration / functional / CpsDataServiceIntegrationSpec.groovy
index 5e839f2..c333911 100644 (file)
 
 package org.onap.cps.integration.functional
 
-import org.onap.cps.integration.base.BookstoreSpecBase
+import org.onap.cps.integration.base.FunctionalSpecBase
 import org.onap.cps.spi.FetchDescendantsOption
 
-class CpsDataServiceIntegrationSpec extends BookstoreSpecBase {
+class CpsDataServiceIntegrationSpec extends FunctionalSpecBase {
 
     def objectUnderTest
 
@@ -32,7 +32,7 @@ class CpsDataServiceIntegrationSpec extends BookstoreSpecBase {
 
     def 'Read bookstore top-level container(s) using #fetchDescendantsOption.'() {
         when: 'get data nodes for bookstore container'
-            def result = objectUnderTest.getDataNodes(BOOKSTORE_DATASPACE, BOOKSTORE_ANCHOR, '/bookstore', fetchDescendantsOption)
+            def result = objectUnderTest.getDataNodes(FUNCTIONAL_TEST_DATASPACE, BOOKSTORE_ANCHOR, '/bookstore', fetchDescendantsOption)
         then: 'the tree consist ouf of #expectNumberOfDataNodes data nodes'
             assert countDataNodesInTree(result) == expectNumberOfDataNodes
         and: 'the top level data node has the expected attribute and value'
@@ -44,5 +44,4 @@ class CpsDataServiceIntegrationSpec extends BookstoreSpecBase {
             FetchDescendantsOption.INCLUDE_ALL_DESCENDANTS || 8
             new FetchDescendantsOption(2)                  || 8
     }
-
 }