aboutsummaryrefslogtreecommitdiffstats
path: root/mso-catalog-db
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 /mso-catalog-db
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 'mso-catalog-db')
-rw-r--r--mso-catalog-db/src/test/java/org/onap/so/db/catalog/data/repository/WorkflowRepositoryTest.java6
-rw-r--r--mso-catalog-db/src/test/resources/data.sql2
2 files changed, 4 insertions, 4 deletions
diff --git a/mso-catalog-db/src/test/java/org/onap/so/db/catalog/data/repository/WorkflowRepositoryTest.java b/mso-catalog-db/src/test/java/org/onap/so/db/catalog/data/repository/WorkflowRepositoryTest.java
index 171d4b29f5..7d1b8d0d96 100644
--- a/mso-catalog-db/src/test/java/org/onap/so/db/catalog/data/repository/WorkflowRepositoryTest.java
+++ b/mso-catalog-db/src/test/java/org/onap/so/db/catalog/data/repository/WorkflowRepositoryTest.java
@@ -31,7 +31,7 @@ public class WorkflowRepositoryTest extends BaseTest {
public void findByArtifactUuid_ValidUuid_ExpectedOutput() throws Exception {
Workflow workflow = workflowRepository.findByArtifactUUID("5b0c4322-643d-4c9f-b184-4516049e99b1");
- assertEquals("artifactName", "testingWorkflow", workflow.getArtifactName());
+ assertEquals("artifactName", "testingWorkflow.bpmn", workflow.getArtifactName());
}
@Test
@@ -41,7 +41,7 @@ public class WorkflowRepositoryTest extends BaseTest {
Assert.assertTrue(workflows != null);
Assert.assertTrue(workflows.size() != 0);
- Assert.assertTrue("testingWorkflow".equals(workflows.get(0).getArtifactName()));
+ Assert.assertTrue("testingWorkflow.bpmn".equals(workflows.get(0).getArtifactName()));
}
@Test
@@ -51,7 +51,7 @@ public class WorkflowRepositoryTest extends BaseTest {
Assert.assertTrue(workflows != null);
Assert.assertTrue(workflows.size() != 0);
- Assert.assertTrue("testingWorkflow".equals(workflows.get(0).getArtifactName()));
+ Assert.assertTrue("testingWorkflow.bpmn".equals(workflows.get(0).getArtifactName()));
}
}
diff --git a/mso-catalog-db/src/test/resources/data.sql b/mso-catalog-db/src/test/resources/data.sql
index f6d04263c0..31f59203ca 100644
--- a/mso-catalog-db/src/test/resources/data.sql
+++ b/mso-catalog-db/src/test/resources/data.sql
@@ -742,7 +742,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');