summaryrefslogtreecommitdiffstats
path: root/vid-automation/src/test/java/org
diff options
context:
space:
mode:
authorIttay Stern <ittay.stern@att.com>2019-12-31 15:01:27 +0200
committerIttay Stern <ittay.stern@att.com>2019-12-31 16:17:43 +0200
commita4b0a6094174e03611f1a3e5b1a6b34871d8cecd (patch)
tree274faae01b4a61c6dbc1ae88cbc493b81e6df5ff /vid-automation/src/test/java/org
parent5a6827854508ed8e0cbfb0611cb5261b8564b0be (diff)
Add a reference-template with 2 templated Networks
Issue-ID: VID-724 Change-Id: I412d7fb7a8c2a265d26a68c9d15565d726f2ae8f Signed-off-by: Ittay Stern <ittay.stern@att.com>
Diffstat (limited to 'vid-automation/src/test/java/org')
-rw-r--r--vid-automation/src/test/java/org/onap/vid/api/InstantiationTemplatesApiTest.java15
1 files changed, 12 insertions, 3 deletions
diff --git a/vid-automation/src/test/java/org/onap/vid/api/InstantiationTemplatesApiTest.java b/vid-automation/src/test/java/org/onap/vid/api/InstantiationTemplatesApiTest.java
index 145db8b9d..cf3d508e8 100644
--- a/vid-automation/src/test/java/org/onap/vid/api/InstantiationTemplatesApiTest.java
+++ b/vid-automation/src/test/java/org/onap/vid/api/InstantiationTemplatesApiTest.java
@@ -28,6 +28,7 @@ import org.springframework.http.HttpEntity;
import org.springframework.http.HttpMethod;
import org.testng.annotations.AfterMethod;
import org.testng.annotations.BeforeMethod;
+import org.testng.annotations.DataProvider;
import org.testng.annotations.Test;
import vid.automation.test.Constants.Users;
import vid.automation.test.infra.FeatureTogglingTest;
@@ -88,10 +89,18 @@ public class InstantiationTemplatesApiTest extends AsyncInstantiationBase {
return uri.toASCIIString() + "/instantiationTemplates/templateTopology/" + jobId;
}
- @Test
- public void templateTopology_givenDeployFromCypressE2E_getTemplateTopologyDataIsEquivalent() {
+ @DataProvider
+ public static Object[][] deployFromCypressE2EFilenames() {
+ return new Object[][]{
+ {"asyncInstantiation/templates__instance_template.json"},
+ {"asyncInstantiation/templates__instance_template_network.json"},
+ };
+ }
+
+ @Test(dataProvider = "deployFromCypressE2EFilenames")
+ public void templateTopology_givenDeployFromCypressE2E_getTemplateTopologyDataIsEquivalent(String fileName) {
templateTopology_givenDeploy_templateTopologyIsEquivalentToBody(
- fileAsJsonNode("asyncInstantiation/templates__instance_template.json"));
+ fileAsJsonNode(fileName));
}
@Test