diff options
author | Michael Lando <ml636r@att.com> | 2017-06-09 03:19:04 +0300 |
---|---|---|
committer | Michael Lando <ml636r@att.com> | 2017-06-09 03:19:04 +0300 |
commit | ed64b5edff15e702493df21aa3230b81593e6133 (patch) | |
tree | a4cb01fdaccc34930a8db403a3097c0d1e40914b /distribution-ci/src/main/java/org/openecomp/test/BaseInit.java | |
parent | 280f8015d06af1f41a3ef12e8300801c7a5e0d54 (diff) |
[SDC-29] catalog 1707 rebase commit.
Change-Id: I43c3dc5cf44abf5da817649bc738938a3e8388c1
Signed-off-by: Michael Lando <ml636r@att.com>
Diffstat (limited to 'distribution-ci/src/main/java/org/openecomp/test/BaseInit.java')
-rw-r--r-- | distribution-ci/src/main/java/org/openecomp/test/BaseInit.java | 122 |
1 files changed, 0 insertions, 122 deletions
diff --git a/distribution-ci/src/main/java/org/openecomp/test/BaseInit.java b/distribution-ci/src/main/java/org/openecomp/test/BaseInit.java deleted file mode 100644 index b056b35b75..0000000000 --- a/distribution-ci/src/main/java/org/openecomp/test/BaseInit.java +++ /dev/null @@ -1,122 +0,0 @@ -package org.openecomp.test; - -//import static org.junit.Assert.assertNotNull; -//import static org.junit.Assert.assertTrue; -// -//import java.io.IOException; -// -//import org.junit.Before; -//import org.junit.rules.TestName; -// -//import org.openecomp.sdc.be.model.User; -//import org.openecomp.sdc.ci.tests.api.ComponentBaseTest; -//import org.openecomp.sdc.ci.tests.datatypes.ArtifactReqDetails; -//import org.openecomp.sdc.ci.tests.datatypes.enums.NormativeTypesEnum; -//import org.openecomp.sdc.ci.tests.datatypes.ResourceReqDetails; -//import org.openecomp.sdc.ci.tests.datatypes.enums.ServiceCategoriesEnum; -//import org.openecomp.sdc.ci.tests.datatypes.ServiceReqDetails; -////import org.openecomp.sdc.ci.tests.execute.lifecycle.LCSbaseTest; -//import org.openecomp.sdc.ci.tests.datatypes.http.RestResponse; -//import org.openecomp.sdc.ci.tests.datatypes.ComponentInstanceReqDetails; -//import org.openecomp.sdc.ci.tests.utils.ArtifactUtils; -//import org.openecomp.sdc.ci.tests.utils.DbUtils; -////import org.openecomp.sdc.ci.tests.utils.ResourceUtils; -////import org.openecomp.sdc.ci.tests.utils.ServiceUtils; -//import org.openecomp.sdc.ci.tests.datatypes.enums.UserRoleEnum; -//import org.openecomp.sdc.ci.tests.utils.general.ElementFactory; -//import org.openecomp.sdc.ci.tests.utils.rest.ArtifactRestUtils; -//import org.openecomp.sdc.ci.tests.utils.rest.ResourceRestUtils; -//import org.openecomp.sdc.ci.tests.utils.rest.ServiceRestUtils; -//import org.openecomp.sdc.common.api.ArtifactTypeEnum; - -public abstract class BaseInit { - - -// protected ResourceReqDetails resourceDetails; -// protected ResourceReqDetails resourceDetails1; -// protected ServiceReqDetails serviceDetails; -// protected ServiceReqDetails serviceDetails2; -// protected ComponentInstanceReqDetails resourceInstanceReqDetails; -// protected ComponentInstanceReqDetails resourceInstanceReqDetails2; -// protected User sdncDesignerDetails1; -// protected User sdncTesterDeatails1; -// protected User sdncAdminDetails1; -// protected ArtifactReqDetails heatArtifactDetails; -// -// protected ArtifactReqDetails defaultArtifactDetails; -// //protected ResourceUtils resourceUtils; -// protected ArtifactUtils artifactUtils; -// -// -// //static ServiceUtils serviceUtils = new ServiceUtils(); -// public BaseInit(TestName testName, String className) { -// super(testName, className); -// } -// @Before -// public void before() throws Exception{ -// -// initializeMembers(); -// -// createComponents(); -// -// } -// public void initializeMembers() throws IOException, Exception { -// -// resourceDetails = ElementFactory.getDefaultResource(); -// resourceDetails1 = ElementFactory.getDefaultResource("secondResource", NormativeTypesEnum.ROOT); -// serviceDetails = ElementFactory.getDefaultService(); -// serviceDetails2 = ElementFactory.getDefaultService("newTestService2", ServiceCategoriesEnum.MOBILITY, "al1976"); -// sdncDesignerDetails1 = ElementFactory.getDefaultUser(UserRoleEnum.DESIGNER); -// sdncTesterDeatails1 = ElementFactory.getDefaultUser(UserRoleEnum.TESTER); -// sdncAdminDetails1 = ElementFactory.getDefaultUser(UserRoleEnum.ADMIN); -// heatArtifactDetails = ElementFactory.getDefaultDeploymentArtifactForType(ArtifactTypeEnum.HEAT.getType()); -// resourceInstanceReqDetails = ElementFactory.getDefaultComponentInstance(); -// resourceInstanceReqDetails2 = ElementFactory.getDefaultComponentInstance(); -// -// } -// protected void createComponents() throws Exception{ -// -//// Create resources -// RestResponse response = ResourceRestUtils.createResource(resourceDetails, sdncDesignerDetails1); -// assertTrue("create request returned status:" + response.getErrorCode(),response.getErrorCode() == 201); -// assertNotNull("resource uniqueId is null:", resourceDetails.getUniqueId()); -// -// response = ResourceRestUtils.createResource(resourceDetails1, sdncDesignerDetails1); -// assertTrue("create request returned status:" + response.getErrorCode(),response.getErrorCode() == 201); -// assertNotNull("resource uniqueId is null:", resourceDetails1.getUniqueId()); -// -//// Create services -// response = ServiceRestUtils.createService(serviceDetails, sdncDesignerDetails1); -// assertTrue("create request returned status:" + response.getErrorCode(),response.getErrorCode() == 201); -// assertNotNull("service uniqueId is null:", serviceDetails.getUniqueId()); -// -// response = ServiceRestUtils.createService(serviceDetails2, sdncDesignerDetails1); -// assertTrue("create request returned status:" + response.getErrorCode(),response.getErrorCode() == 201); -// assertNotNull("service uniqueId is null:", serviceDetails2.getUniqueId()); -// -// ArtifactReqDetails heatArtifactDetails = ElementFactory.getDefaultDeploymentArtifactForType(ArtifactTypeEnum.HEAT.getType()); -// response = ArtifactRestUtils.addInformationalArtifactToResource(heatArtifactDetails, sdncDesignerDetails1, resourceDetails.getUniqueId()); -// assertTrue("add HEAT artifact to resource request returned status:" + response.getErrorCode(),response.getErrorCode() == 200); -// -// ArtifactReqDetails heatArtifactDetails1 = ElementFactory.getDefaultDeploymentArtifactForType(ArtifactTypeEnum.HEAT.getType()); -// response = ArtifactRestUtils.addInformationalArtifactToResource(heatArtifactDetails1, sdncDesignerDetails1, resourceDetails1.getUniqueId()); -// assertTrue("add HEAT artifact to resource request returned status:" + response.getErrorCode(),response.getErrorCode() == 200); -// -// // certified resources -//// response = LCSbaseTest.certifyResource(resourceDetails); -//// assertTrue("certify resource request returned status:" + response.getErrorCode(),response.getErrorCode() == 200); -//// -//// response = LCSbaseTest.certifyResource(resourceDetails1); -//// assertTrue("certify resource request returned status:" + response.getErrorCode(),response.getErrorCode() == 200); -//// -//// add resource instance with HEAT deployment artifact to the service -// resourceInstanceReqDetails.setUniqueId(resourceDetails.getUniqueId()); -//// response = ServiceUtils.createResourceInstance(resourceInstanceReqDetails, sdncDesignerDetails1, serviceDetails.getUniqueId()); -//// assertTrue("response code is not 200, returned: " + response.getErrorCode(),response.getErrorCode() == 200); -// -// DbUtils.cleanAllAudits(); -// -// -// } - -} |