fix for getpnfworkflows url 52/104652/1
authortragait <rahul.tyagi@est.tech>
Fri, 20 Mar 2020 20:35:12 +0000 (20:35 +0000)
committerRamesh Murugan Iyer <ramesh.murugan.iyer@est.tech>
Wed, 1 Apr 2020 16:01:55 +0000 (16:01 +0000)
Issue-ID: SO-2756
Signed-off-by: tragait <rahul.tyagi@est.tech>
Change-Id: I999d590dd76090a7aaabc84ad49030f24453485f
Signed-off-by: tragait <rahul.tyagi@est.tech>
(cherry picked from commit f9fc50fee216aea657b9686aa6b8ef37236e719e)

mso-api-handlers/mso-api-handler-infra/src/test/java/org/onap/so/apihandlerinfra/WorkflowSpecificationsHandlerTest.java
mso-catalog-db/src/main/java/org/onap/so/db/catalog/client/CatalogDbClient.java

index 21e6d53..4ab88f4 100644 (file)
@@ -375,7 +375,7 @@ public class WorkflowSpecificationsHandlerTest extends BaseTest {
         headers.set("Content-Type", MediaType.APPLICATION_JSON);
         HttpEntity<String> entity = new HttpEntity(null, headers);
 
-        wireMockServer.stubFor(get(urlMatching("/workflow/search/findByResourceTarget[?]resource_target=pnf"))
+        wireMockServer.stubFor(get(urlMatching("/workflow/search/findByResourceTarget[?]resourceTarget=pnf"))
                 .willReturn(aResponse().withHeader(HttpHeaders.CONTENT_TYPE, MediaType.APPLICATION_JSON)
                         .withBody(
                                 getWiremockResponseForCatalogdb("WorkflowSpecificationsForPnfWorkflows_Response.json"))
index 26c3394..cd7edb0 100644 (file)
@@ -158,7 +158,7 @@ public class CatalogDbClient {
     protected static final String HOMING_INSTANCE = "/homingInstance";
     protected static final String ARTIFACT_UUID = "artifactUUID";
     protected static final String SOURCE = "source";
-    protected static final String RESOURCE_TARGET = "resource_target";
+    protected static final String RESOURCE_TARGET = "resourceTarget";
 
     private static final String TARGET_ENTITY = "SO:CatalogDB";
     private static final String ASTERISK = "*";