aboutsummaryrefslogtreecommitdiffstats
path: root/adapters/mso-catalog-db-adapter/src
diff options
context:
space:
mode:
authorElena Kuleshov <evn@att.com>2019-05-09 12:27:30 -0400
committerMarcus Williams <marcus.williams@intel.com>2019-05-15 13:33:23 +0000
commita385c0cc6a0ed25cc63fab1368fc686d79f06bca (patch)
tree0da20ab3f7bb79a783d1ada3003a1c5ed9775fe9 /adapters/mso-catalog-db-adapter/src
parentb6571203e371d28229ee1c0c6fda2bfcac59a5b5 (diff)
Use workflow's name for invocation
Use workflow's name for invocation Change-Id: Ie527788f029bdccc91f7f406df0a478e55375c01 Issue-ID: SO-1876 Signed-off-by: Kuleshov, Elena <evn@att.com>
Diffstat (limited to 'adapters/mso-catalog-db-adapter/src')
-rw-r--r--adapters/mso-catalog-db-adapter/src/test/java/org/onap/so/db/catalog/client/CatalogDbClientTest.java6
-rw-r--r--adapters/mso-catalog-db-adapter/src/test/resources/db/migration/afterMigrate.sql2
2 files changed, 4 insertions, 4 deletions
diff --git a/adapters/mso-catalog-db-adapter/src/test/java/org/onap/so/db/catalog/client/CatalogDbClientTest.java b/adapters/mso-catalog-db-adapter/src/test/java/org/onap/so/db/catalog/client/CatalogDbClientTest.java
index 9265e5aa54..d8d9ee191a 100644
--- a/adapters/mso-catalog-db-adapter/src/test/java/org/onap/so/db/catalog/client/CatalogDbClientTest.java
+++ b/adapters/mso-catalog-db-adapter/src/test/java/org/onap/so/db/catalog/client/CatalogDbClientTest.java
@@ -649,7 +649,7 @@ public class CatalogDbClientTest extends CatalogDbAdapterBaseTest {
@Test
public void getWorkflowByArtifactUUID_validUuid_expectedOutput() {
Workflow workflow = client.findWorkflowByArtifactUUID("5b0c4322-643d-4c9f-b184-4516049e99b1");
- assertEquals("artifactName", "testingWorkflow", workflow.getArtifactName());
+ assertEquals("artifactName", "testingWorkflow.bpmn", workflow.getArtifactName());
}
@Test
@@ -664,7 +664,7 @@ public class CatalogDbClientTest extends CatalogDbAdapterBaseTest {
assertTrue(workflows != null);
assertTrue(workflows.size() != 0);
- assertEquals("testingWorkflow", workflows.get(0).getArtifactName());
+ assertEquals("testingWorkflow.bpmn", workflows.get(0).getArtifactName());
}
@Test
@@ -679,7 +679,7 @@ public class CatalogDbClientTest extends CatalogDbAdapterBaseTest {
assertTrue(workflows != null);
assertTrue(workflows.size() != 0);
- assertEquals("testingWorkflow", workflows.get(0).getArtifactName());
+ assertEquals("testingWorkflow.bpmn", workflows.get(0).getArtifactName());
}
@Test
diff --git a/adapters/mso-catalog-db-adapter/src/test/resources/db/migration/afterMigrate.sql b/adapters/mso-catalog-db-adapter/src/test/resources/db/migration/afterMigrate.sql
index 0229dd0d85..1ba1597c73 100644
--- a/adapters/mso-catalog-db-adapter/src/test/resources/db/migration/afterMigrate.sql
+++ b/adapters/mso-catalog-db-adapter/src/test/resources/db/migration/afterMigrate.sql
@@ -225,7 +225,7 @@ insert into pnf_resource_customization_to_service(service_model_uuid, resource_m
('5df8b6de-2083-11e7-93ae-92361f002676', '68dc9a92-214c-11e7-93ae-92361f002680');
insert into workflow(artifact_uuid, artifact_name, name, operation_name, version, description, body, resource_target, source) values
-('5b0c4322-643d-4c9f-b184-4516049e99b1', 'testingWorkflow', 'testingWorkflow', 'create', 1, 'Test Workflow', null, 'vnf', 'sdc');
+('5b0c4322-643d-4c9f-b184-4516049e99b1', 'testingWorkflow.bpmn', 'testingWorkflow', 'create', 1, 'Test Workflow', null, 'vnf', 'sdc');
insert into vnf_resource_to_workflow(vnf_resource_model_uuid, workflow_id) values
('ff2ae348-214a-11e7-93ae-92361f002671', '1');