summaryrefslogtreecommitdiffstats
path: root/packages/arquillian-unit-tests/src/test/java/org
diff options
context:
space:
mode:
authoreh552t <eh552t@intl.att.com>2017-02-09 16:38:55 +0100
committereh552t <eh552t@intl.att.com>2017-02-09 16:38:55 +0100
commit42c578ff3926933833b6390f880d5954b5d931df (patch)
treeca9e74f120271d3e2cca0c759ddec5780e7f9cd2 /packages/arquillian-unit-tests/src/test/java/org
parent4ec8b3f1cac37a85d2d3b7f9e0d3f6c6d9971950 (diff)
SoapUI tests for APIH Infra
Added some soapUI tests for testing APIH Infra in Arquilian. Some bug fixes in the Tenant Adapter and VNF adapter SoapUIs. BugFix in case of bad ModelType in a request we gor null pointer Exception. Change-Id: Icf9b8fc344d15860ac8dd11984894b07ecf5b085 Signed-off-by: eh552t <eh552t@intl.att.com>
Diffstat (limited to 'packages/arquillian-unit-tests/src/test/java/org')
-rw-r--r--packages/arquillian-unit-tests/src/test/java/org/openecomp/mso/global_tests/soapui/SoapUiITCase.java32
1 files changed, 31 insertions, 1 deletions
diff --git a/packages/arquillian-unit-tests/src/test/java/org/openecomp/mso/global_tests/soapui/SoapUiITCase.java b/packages/arquillian-unit-tests/src/test/java/org/openecomp/mso/global_tests/soapui/SoapUiITCase.java
index ac730c5787..5783b237ed 100644
--- a/packages/arquillian-unit-tests/src/test/java/org/openecomp/mso/global_tests/soapui/SoapUiITCase.java
+++ b/packages/arquillian-unit-tests/src/test/java/org/openecomp/mso/global_tests/soapui/SoapUiITCase.java
@@ -91,7 +91,7 @@ public class SoapUiITCase {
System.out.println("Deploying Gamma BPMN WAR on default server");
return ArquillianPackagerForITCases.createPackageFromExistingOne("../../bpmn/MSOGammaBPMN/target/", "MSOGammaBPMN*.war", "MSOGammaBPMN.war");
}
-/*
+/*
@Deployment(name = "SoapUIMocks", testable = false)
public static Archive <?> createSoapUIMocksWarDeployment () {
@@ -146,6 +146,36 @@ public class SoapUiITCase {
@Test
@RunAsClient
+ public void test02ApiHandlerInfra () {
+ SoapUITestCaseRunner runner = new SoapUITestCaseRunner ();
+ runner.setSettingsFile("./src/test/resources/SoapUI/soapui-settings.xml");
+ runner.setJUnitReport(true);
+ runner.setProjectFile ("./src/test/resources/SoapUI/Local-API-Handler-soapui-project.xml");
+ runner.setOutputFolder ("./target/surefire-reports");
+ String[] properties = new String[3];
+ properties[0] = "host="+jbossHost+":"+jbossPort;
+ properties[1] = "user-infraportal=InfraPortalClient";
+ properties[2] = "password-infraportal=password1$";
+
+ runner.setProjectProperties (properties);
+
+ try {
+ runner.setTestSuite ("simple_tests_endpoints");
+ runner.run ();
+ Map<TestAssertion,WsdlTestStepResult> mapResult= runner.getAssertionResults();
+ for(Map.Entry<TestAssertion,WsdlTestStepResult> entry : mapResult.entrySet()) {
+ assertTrue(entry.getValue().getStatus().equals(TestStepStatus.OK));
+ }
+ assertTrue (runner.getFailedTests ().size () == 0);
+
+ } catch (Exception e) {
+ e.printStackTrace ();
+ fail("Failure in SOAPUI ApiHandler Infra");
+ }
+ }
+
+ @Test
+ @RunAsClient
public void test03StartNetworkAdapter () {
SoapUITestCaseRunner runner = new SoapUITestCaseRunner ();
runner.setSettingsFile("./src/test/resources/SoapUI/soapui-settings.xml");