diff options
author | 2019-04-04 17:31:43 +0000 | |
---|---|---|
committer | 2019-04-04 17:31:43 +0000 | |
commit | f81920304c7b62637d32473e672a1e51275ce54b (patch) | |
tree | 35332de491929d0b278a4698f530f512ce28d46c /mso-catalog-db/src/test | |
parent | 5f78643c42dd12588a1688f658ca6e134674ea29 (diff) | |
parent | 88c47a23b9428188ff5dd0b46941f8856465376b (diff) |
Merge "PNF WF post instantiation configuration"
Diffstat (limited to 'mso-catalog-db/src/test')
-rw-r--r-- | mso-catalog-db/src/test/java/org/onap/so/db/catalog/data/repository/PnfCustomizationRepositoryTest.java | 9 | ||||
-rw-r--r-- | mso-catalog-db/src/test/resources/application-test.yaml | 1 |
2 files changed, 9 insertions, 1 deletions
diff --git a/mso-catalog-db/src/test/java/org/onap/so/db/catalog/data/repository/PnfCustomizationRepositoryTest.java b/mso-catalog-db/src/test/java/org/onap/so/db/catalog/data/repository/PnfCustomizationRepositoryTest.java index 4ba344c845..0eec84f4c3 100644 --- a/mso-catalog-db/src/test/java/org/onap/so/db/catalog/data/repository/PnfCustomizationRepositoryTest.java +++ b/mso-catalog-db/src/test/java/org/onap/so/db/catalog/data/repository/PnfCustomizationRepositoryTest.java @@ -23,6 +23,7 @@ import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertNotNull; import static org.junit.Assert.assertTrue; +import java.util.List; import org.junit.Test; import org.onap.so.db.catalog.BaseTest; import org.onap.so.db.catalog.beans.PnfResource; @@ -43,6 +44,14 @@ public class PnfCustomizationRepositoryTest extends BaseTest { checkPnfResourceCustomization(pnfResourceCustomization); } + @Test + public void findPnfResourceCustomizationByModelUuid_ValidServiceUuidAndCustomizationUuid_ExpectedOutput() { + List<PnfResourceCustomization> pnfResourceCustomizationList = pnfCustomizationRepository + .findPnfResourceCustomizationByModelUuid("5df8b6de-2083-11e7-93ae-92361f002676"); + assertEquals("Found the matching resource entity", 1, pnfResourceCustomizationList.size()); + checkPnfResourceCustomization(pnfResourceCustomizationList.get(0)); + } + private void checkPnfResourceCustomization(PnfResourceCustomization pnfResourceCustomization) { assertEquals("modelInstanceName", "PNF routing", pnfResourceCustomization.getModelInstanceName()); assertEquals("blueprintName", "test_configuration_restconf", pnfResourceCustomization.getBlueprintName()); diff --git a/mso-catalog-db/src/test/resources/application-test.yaml b/mso-catalog-db/src/test/resources/application-test.yaml index 5d04aa49be..fe44397493 100644 --- a/mso-catalog-db/src/test/resources/application-test.yaml +++ b/mso-catalog-db/src/test/resources/application-test.yaml @@ -51,7 +51,6 @@ server: tomcat: max-threads: 50 - #Actuator management: endpoints: |