modules/integration-tests/jboss-as-7-plugin-test/src/test/java/org/rhq/modules/integrationTests/jbossas7plugin/AbstractIntegrationTest.java
| 6 ++++--
modules/integration-tests/jboss-as-7-plugin-test/src/test/java/org/rhq/modules/integrationTests/jbossas7plugin/UploadAndDeployTest.java
| 8 ++++----
2 files changed, 8 insertions(+), 6 deletions(-)
New commits:
commit 41c87d1c7ed3f0719cee76067afb3e84c7644481
Author: Heiko W. Rupp <hwr(a)redhat.com>
Date: Wed Dec 21 21:29:45 2011 +0100
Fix compile errors.
diff --git
a/modules/integration-tests/jboss-as-7-plugin-test/src/test/java/org/rhq/modules/integrationTests/jbossas7plugin/AbstractIntegrationTest.java
b/modules/integration-tests/jboss-as-7-plugin-test/src/test/java/org/rhq/modules/integrationTests/jbossas7plugin/AbstractIntegrationTest.java
index fbf81b5..6714c40 100644
---
a/modules/integration-tests/jboss-as-7-plugin-test/src/test/java/org/rhq/modules/integrationTests/jbossas7plugin/AbstractIntegrationTest.java
+++
b/modules/integration-tests/jboss-as-7-plugin-test/src/test/java/org/rhq/modules/integrationTests/jbossas7plugin/AbstractIntegrationTest.java
@@ -57,9 +57,11 @@ import org.rhq.modules.plugins.jbossas7.json.PROPERTY_VALUE;
public abstract class AbstractIntegrationTest {
protected static final String DC_HOST = "localhost";
protected static final int DC_HTTP_PORT = 9990;
+ protected static final String DC_USER = "rhqadmin";
+ protected static final String DC_PASS = "rhqadmin";
String uploadToAs(String deploymentName) throws IOException {
- ASUploadConnection conn = new ASUploadConnection(DC_HOST, DC_HTTP_PORT);
+ ASUploadConnection conn = new ASUploadConnection(DC_HOST,
DC_HTTP_PORT,DC_USER,DC_PASS);
OutputStream os = conn.getOutputStream(deploymentName);
@@ -92,7 +94,7 @@ public abstract class AbstractIntegrationTest {
}
ASConnection getASConnection() {
- ASConnection connection = new ASConnection(DC_HOST, DC_HTTP_PORT);
+ ASConnection connection = new ASConnection(DC_HOST,
DC_HTTP_PORT,DC_USER,DC_PASS);
return connection;
}
diff --git
a/modules/integration-tests/jboss-as-7-plugin-test/src/test/java/org/rhq/modules/integrationTests/jbossas7plugin/UploadAndDeployTest.java
b/modules/integration-tests/jboss-as-7-plugin-test/src/test/java/org/rhq/modules/integrationTests/jbossas7plugin/UploadAndDeployTest.java
index 9b35471..cc55f1c 100644
---
a/modules/integration-tests/jboss-as-7-plugin-test/src/test/java/org/rhq/modules/integrationTests/jbossas7plugin/UploadAndDeployTest.java
+++
b/modules/integration-tests/jboss-as-7-plugin-test/src/test/java/org/rhq/modules/integrationTests/jbossas7plugin/UploadAndDeployTest.java
@@ -90,7 +90,7 @@ public class UploadAndDeployTest extends AbstractIntegrationTest {
System.out.println("sha: " + bytes_value);
System.out.println();
- ASConnection connection = new ASConnection(DC_HOST, DC_HTTP_PORT);
+ ASConnection connection = new ASConnection(DC_HOST,
DC_HTTP_PORT,DC_USER,DC_PASS);
Address deploymentsAddress = new Address("deployment", TEST_WAR);
Operation op = new Operation("add",deploymentsAddress);
@@ -168,7 +168,7 @@ public class UploadAndDeployTest extends AbstractIntegrationTest {
System.out.println("sha: " + bytes_value);
System.out.println();
- ASConnection connection = new ASConnection(DC_HOST, DC_HTTP_PORT);
+ ASConnection connection = new ASConnection(DC_HOST,
DC_HTTP_PORT,DC_USER,DC_PASS);
/*
Address deploymentsAddress = new Address();
@@ -275,7 +275,7 @@ public class UploadAndDeployTest extends AbstractIntegrationTest {
cop.addStep(step2a);
- ASConnection connection = new ASConnection(DC_HOST, DC_HTTP_PORT);
+ ASConnection connection = new ASConnection(DC_HOST,
DC_HTTP_PORT,DC_USER,DC_PASS);
JsonNode ret = connection.executeRaw(cop);
System.out.println(ret);
System.out.flush();
@@ -326,7 +326,7 @@ public class UploadAndDeployTest extends AbstractIntegrationTest {
cop.addStep(step1);
- ASConnection connection = new ASConnection(DC_HOST, DC_HTTP_PORT);
+ ASConnection connection = new ASConnection(DC_HOST,
DC_HTTP_PORT,DC_USER,DC_PASS);
JsonNode ret = connection.executeRaw(cop);
System.out.println(ret);
System.out.flush();
Show replies by date