Merge "fix for getpnfworkflows url"
authorSeshu Kumar M <seshu.kumar.m@huawei.com>
Tue, 31 Mar 2020 07:18:53 +0000 (07:18 +0000)
committerGerrit Code Review <gerrit@onap.org>
Tue, 31 Mar 2020 07:18:53 +0000 (07:18 +0000)
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 b130835..4c5bbaf 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 = "*";