summaryrefslogtreecommitdiffstats
path: root/dmi-service/src/test/groovy
diff options
context:
space:
mode:
authorleventecsanyi <levente.csanyi@est.tech>2024-08-15 13:52:21 +0200
committerleventecsanyi <levente.csanyi@est.tech>2024-08-15 13:56:31 +0200
commit636c228c5d646e7c919bc5ce135fa2967b3fef5a (patch)
tree26b71946894823dab64a0377060e6b278e7ed705 /dmi-service/src/test/groovy
parent202fc696cdf0a2503b2d5f738f892b8cb5da7bd9 (diff)
Refactored dat job interfaces - result endpoint changed is a separate commit
-changed openapi and stub implementations Issue-ID: CPS-2360 Signed-off-by: leventecsanyi <levente.csanyi@est.tech> Change-Id: Ib7d826f5909278309b7c16dc5caaabbe5f01732b
Diffstat (limited to 'dmi-service/src/test/groovy')
-rw-r--r--dmi-service/src/test/groovy/org/onap/cps/ncmp/dmi/datajobs/rest/controller/DmiDatajobsRestControllerSpec.groovy6
1 files changed, 3 insertions, 3 deletions
diff --git a/dmi-service/src/test/groovy/org/onap/cps/ncmp/dmi/datajobs/rest/controller/DmiDatajobsRestControllerSpec.groovy b/dmi-service/src/test/groovy/org/onap/cps/ncmp/dmi/datajobs/rest/controller/DmiDatajobsRestControllerSpec.groovy
index 6c05f6f3..17354e65 100644
--- a/dmi-service/src/test/groovy/org/onap/cps/ncmp/dmi/datajobs/rest/controller/DmiDatajobsRestControllerSpec.groovy
+++ b/dmi-service/src/test/groovy/org/onap/cps/ncmp/dmi/datajobs/rest/controller/DmiDatajobsRestControllerSpec.groovy
@@ -46,7 +46,7 @@ class DmiDatajobsRestControllerSpec extends Specification{
def 'write request should return 501 HTTP Status' () {
given: 'URL to write a data job'
- def getModuleUrl = "${basePathV1}/writeJob/001"
+ def getModuleUrl = "${basePathV1}/cmwriteJob?destination=001"
when: 'the request is posted'
def response = mvc.perform(
post(getModuleUrl)
@@ -58,7 +58,7 @@ class DmiDatajobsRestControllerSpec extends Specification{
def 'read request should return 501 HTTP Status' () {
given: 'URL to write a data job'
- def getModuleUrl = "${basePathV1}/readJob/001"
+ def getModuleUrl = "${basePathV1}/cmreadJob?destination=001"
when: 'the request is posted'
def response = mvc.perform(
post(getModuleUrl)
@@ -70,7 +70,7 @@ class DmiDatajobsRestControllerSpec extends Specification{
def 'get status request should return 501 HTTP Status' () {
given: 'URL to get the status of a data job'
- def getStatus = "${basePathV1}/dataJob/some-identifier/dataProducerJob/some-producer-job-identifier/status?dataProducerId=some-data-producer-identifier"
+ def getStatus = "${basePathV1}/cmwriteJob/dataProducer/data-producer-id/dataProducerJob/data-producerd-job-id}/status"
when: 'the request is performed'
def response = mvc.perform(
get(getStatus)