ARTEMIS-5118 Expose HelperCreate on the CLI Jar
This commit is contained in:
parent
4f6c8cd30c
commit
02e0b14dfd
|
@ -15,7 +15,7 @@
|
|||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package org.apache.activemq.artemis.utils.cli.helper;
|
||||
package org.apache.activemq.artemis.cli.commands.helper;
|
||||
|
||||
import java.io.File;
|
||||
import java.lang.invoke.MethodHandles;
|
||||
|
@ -27,8 +27,6 @@ public class HelperBase {
|
|||
|
||||
private static final Logger logger = LoggerFactory.getLogger(MethodHandles.lookup().lookupClass());
|
||||
|
||||
public static final String ARTEMIS_HOME_PROPERTY = "artemis.distribution.output";
|
||||
|
||||
File artemisHome;
|
||||
File artemisInstance;
|
||||
|
||||
|
@ -37,10 +35,12 @@ public class HelperBase {
|
|||
logger.debug("using artemisHome as {}", artemisHome);
|
||||
}
|
||||
|
||||
public static File getHome() {
|
||||
return getHome(ARTEMIS_HOME_PROPERTY);
|
||||
HelperBase(File artemisHome) {
|
||||
setArtemisHome(artemisHome);
|
||||
logger.debug("using artemisHome as {}", artemisHome);
|
||||
}
|
||||
|
||||
|
||||
public static File getHome(String homeProperty) {
|
||||
String valueHome = System.getProperty(homeProperty);
|
||||
if (valueHome == null) {
|
|
@ -15,7 +15,7 @@
|
|||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package org.apache.activemq.artemis.utils.cli.helper;
|
||||
package org.apache.activemq.artemis.cli.commands.helper;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
|
@ -36,14 +36,14 @@ import org.slf4j.LoggerFactory;
|
|||
* You may use by creating a new instance, filling the properties, and calling the method create */
|
||||
public class HelperCreate extends HelperBase {
|
||||
|
||||
public HelperCreate() {
|
||||
super(ARTEMIS_HOME_PROPERTY);
|
||||
}
|
||||
|
||||
public HelperCreate(String homeProperty) {
|
||||
super(homeProperty);
|
||||
}
|
||||
|
||||
public HelperCreate(File artemisHome) {
|
||||
super(artemisHome);
|
||||
}
|
||||
|
||||
private static final Logger logger = LoggerFactory.getLogger(MethodHandles.lookup().lookupClass());
|
||||
|
||||
private File configuration;
|
|
@ -46,6 +46,7 @@ import org.apache.activemq.artemis.api.core.management.ObjectNameBuilder;
|
|||
import org.apache.activemq.artemis.api.core.management.QueueControl;
|
||||
import org.apache.activemq.artemis.api.core.management.SimpleManagement;
|
||||
import org.apache.activemq.artemis.api.jms.ActiveMQJMSClient;
|
||||
import org.apache.activemq.artemis.cli.commands.helper.HelperCreate;
|
||||
import org.apache.activemq.artemis.jms.client.ActiveMQConnectionFactory;
|
||||
import org.apache.activemq.artemis.tests.util.ActiveMQTestBase;
|
||||
import org.apache.activemq.artemis.util.ServerUtil;
|
||||
|
@ -65,6 +66,12 @@ public class RealServerTestBase extends ActiveMQTestBase {
|
|||
|
||||
public static final String basedir = System.getProperty("basedir");
|
||||
|
||||
public static final String ARTEMIS_HOME_PROPERTY = "artemis.distribution.output";
|
||||
|
||||
public static HelperCreate helperCreate() {
|
||||
return new HelperCreate(ARTEMIS_HOME_PROPERTY);
|
||||
}
|
||||
|
||||
@AfterEach
|
||||
public void after() throws Exception {
|
||||
// close ServerLocators before killing the server otherwise they'll hang and delay test termination
|
||||
|
|
|
@ -37,7 +37,7 @@ import org.apache.activemq.artemis.utils.RealServerTestBase;
|
|||
import org.apache.activemq.artemis.utils.SpawnedVMSupport;
|
||||
import org.apache.activemq.artemis.utils.TestParameters;
|
||||
import org.apache.activemq.artemis.utils.Wait;
|
||||
import org.apache.activemq.artemis.utils.cli.helper.HelperBase;
|
||||
import org.apache.activemq.artemis.cli.commands.helper.HelperBase;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
@ -184,12 +184,12 @@ public class RollingUpgradeTest extends RealServerTestBase {
|
|||
|
||||
@Test
|
||||
public void testRollUpgrade_2_30() throws Exception {
|
||||
testRollUpgrade(new File(TWO_THIRTY), HelperBase.getHome());
|
||||
testRollUpgrade(new File(TWO_THIRTY), HelperBase.getHome(ARTEMIS_HOME_PROPERTY));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testRollUpgrade_2_36() throws Exception {
|
||||
testRollUpgrade(new File(TWO_THIRTY_SIX), HelperBase.getHome());
|
||||
testRollUpgrade(new File(TWO_THIRTY_SIX), HelperBase.getHome(ARTEMIS_HOME_PROPERTY));
|
||||
}
|
||||
|
||||
// Define a System Property TEST_ROLLED_DISTRIBUTION towards the Artemis Home of your choice and this will
|
||||
|
@ -200,7 +200,7 @@ public class RollingUpgradeTest extends RealServerTestBase {
|
|||
String distribution = TestParameters.testProperty("ROLLED", "DISTRIBUTION", null);
|
||||
assumeTrue(distribution != null);
|
||||
|
||||
String distributionUpgrading = TestParameters.testProperty("ROLLED", "DISTRIBUTION_UPGRADE", HelperBase.getHome().getAbsolutePath());
|
||||
String distributionUpgrading = TestParameters.testProperty("ROLLED", "DISTRIBUTION_UPGRADE", HelperBase.getHome(ARTEMIS_HOME_PROPERTY).getAbsolutePath());
|
||||
testRollUpgrade(new File(distribution), new File(distributionUpgrading));
|
||||
}
|
||||
|
||||
|
|
|
@ -38,7 +38,7 @@ import org.apache.activemq.artemis.tests.extensions.parameterized.Parameters;
|
|||
import org.apache.activemq.artemis.tests.smoke.common.SmokeTestBase;
|
||||
import org.apache.activemq.artemis.tests.util.CFUtil;
|
||||
import org.apache.activemq.artemis.utils.Wait;
|
||||
import org.apache.activemq.artemis.utils.cli.helper.HelperCreate;
|
||||
import org.apache.activemq.artemis.cli.commands.helper.HelperCreate;
|
||||
import org.junit.jupiter.api.AfterEach;
|
||||
import org.junit.jupiter.api.BeforeAll;
|
||||
import org.junit.jupiter.api.BeforeEach;
|
||||
|
@ -61,13 +61,13 @@ public class BridgeTransferingTest extends SmokeTestBase {
|
|||
deleteDirectory(server0Location);
|
||||
|
||||
if (!server0Location.exists()) {
|
||||
HelperCreate cliCreateServer = new HelperCreate();
|
||||
HelperCreate cliCreateServer = helperCreate();
|
||||
cliCreateServer.setRole("amq").setUser("artemis").setPassword("artemis").setNoWeb(true).setConfiguration("./src/main/resources/servers/bridgeTransfer/serverA").setArtemisInstance(server0Location);
|
||||
cliCreateServer.createServer();
|
||||
}
|
||||
|
||||
if (!server1Location.exists()) {
|
||||
HelperCreate cliCreateServer = new HelperCreate();
|
||||
HelperCreate cliCreateServer = helperCreate();
|
||||
cliCreateServer.setRole("amq").setUser("artemis").setPassword("artemis").setNoWeb(true).setConfiguration("./src/main/resources/servers/bridgeTransfer/serverB").setArtemisInstance(server1Location);
|
||||
cliCreateServer.createServer();
|
||||
}
|
||||
|
|
|
@ -33,7 +33,7 @@ import java.io.File;
|
|||
|
||||
import org.apache.activemq.artemis.tests.smoke.common.SmokeTestBase;
|
||||
import org.apache.activemq.artemis.util.ServerUtil;
|
||||
import org.apache.activemq.artemis.utils.cli.helper.HelperCreate;
|
||||
import org.apache.activemq.artemis.cli.commands.helper.HelperCreate;
|
||||
import org.junit.jupiter.api.BeforeAll;
|
||||
import org.junit.jupiter.api.BeforeEach;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
@ -51,13 +51,13 @@ public class BrokerConnectionBridgeSecurityTest extends SmokeTestBase {
|
|||
|
||||
|
||||
{
|
||||
HelperCreate cliCreateServer = new HelperCreate();
|
||||
HelperCreate cliCreateServer = helperCreate();
|
||||
cliCreateServer.setAllowAnonymous(false).setUser("A").setPassword("A").setNoWeb(true).setConfiguration("./src/main/resources/servers/brokerConnect/bridgeSecurityA").setArtemisInstance(server0Location);
|
||||
cliCreateServer.createServer();
|
||||
}
|
||||
|
||||
{
|
||||
HelperCreate cliCreateServer = new HelperCreate();
|
||||
HelperCreate cliCreateServer = helperCreate();
|
||||
cliCreateServer.setAllowAnonymous(false).setUser("A").setPassword("A").setNoWeb(true).setConfiguration("./src/main/resources/servers/brokerConnect/bridgeSecurityB").setArtemisInstance(server1Location);
|
||||
cliCreateServer.createServer();
|
||||
}
|
||||
|
|
|
@ -33,7 +33,7 @@ import java.io.File;
|
|||
import org.apache.activemq.artemis.tests.smoke.common.SmokeTestBase;
|
||||
import org.apache.activemq.artemis.tests.util.CFUtil;
|
||||
import org.apache.activemq.artemis.util.ServerUtil;
|
||||
import org.apache.activemq.artemis.utils.cli.helper.HelperCreate;
|
||||
import org.apache.activemq.artemis.cli.commands.helper.HelperCreate;
|
||||
import org.junit.jupiter.api.BeforeAll;
|
||||
import org.junit.jupiter.api.BeforeEach;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
@ -52,13 +52,13 @@ public class BrokerConnectionMirrorSecurityTest extends SmokeTestBase {
|
|||
deleteDirectory(server0Location);
|
||||
|
||||
{
|
||||
HelperCreate cliCreateServer = new HelperCreate();
|
||||
HelperCreate cliCreateServer = helperCreate();
|
||||
cliCreateServer.setAllowAnonymous(false).setUser("A").setPassword("A").setNoWeb(true).setConfiguration("./src/main/resources/servers/brokerConnect/mirrorSecurityA").setArtemisInstance(server0Location);
|
||||
cliCreateServer.createServer();
|
||||
}
|
||||
|
||||
{
|
||||
HelperCreate cliCreateServer = new HelperCreate();
|
||||
HelperCreate cliCreateServer = helperCreate();
|
||||
cliCreateServer.setAllowAnonymous(false).setUser("B").setPassword("B").setNoWeb(true).setPortOffset(1).setConfiguration("./src/main/resources/servers/brokerConnect/mirrorSecurityB").setArtemisInstance(server1Location);
|
||||
cliCreateServer.createServer();
|
||||
}
|
||||
|
|
|
@ -36,7 +36,7 @@ import org.apache.activemq.artemis.tests.smoke.common.SmokeTestBase;
|
|||
import org.apache.activemq.artemis.tests.util.CFUtil;
|
||||
import org.apache.activemq.artemis.util.ServerUtil;
|
||||
import org.apache.activemq.artemis.utils.Wait;
|
||||
import org.apache.activemq.artemis.utils.cli.helper.HelperCreate;
|
||||
import org.apache.activemq.artemis.cli.commands.helper.HelperCreate;
|
||||
import org.junit.jupiter.api.Assertions;
|
||||
import org.junit.jupiter.api.BeforeAll;
|
||||
import org.junit.jupiter.api.BeforeEach;
|
||||
|
@ -79,7 +79,7 @@ public class DivertQueueMirrorTest extends SmokeTestBase {
|
|||
File serverLocation = getFileServerLocation(serverName);
|
||||
deleteDirectory(serverLocation);
|
||||
|
||||
HelperCreate cliCreateServer = new HelperCreate();
|
||||
HelperCreate cliCreateServer = helperCreate();
|
||||
cliCreateServer.setAllowAnonymous(true).setNoWeb(true).setArtemisInstance(serverLocation);
|
||||
cliCreateServer.setMessageLoadBalancing("ON_DEMAND");
|
||||
cliCreateServer.setClustered(false);
|
||||
|
|
|
@ -33,7 +33,7 @@ import java.io.File;
|
|||
import org.apache.activemq.artemis.tests.smoke.common.SmokeTestBase;
|
||||
import org.apache.activemq.artemis.tests.util.CFUtil;
|
||||
import org.apache.activemq.artemis.util.ServerUtil;
|
||||
import org.apache.activemq.artemis.utils.cli.helper.HelperCreate;
|
||||
import org.apache.activemq.artemis.cli.commands.helper.HelperCreate;
|
||||
import org.junit.jupiter.api.BeforeAll;
|
||||
import org.junit.jupiter.api.BeforeEach;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
@ -52,13 +52,13 @@ public class DualFederationTest extends SmokeTestBase {
|
|||
deleteDirectory(server0Location);
|
||||
|
||||
{
|
||||
HelperCreate cliCreateServer = new HelperCreate();
|
||||
HelperCreate cliCreateServer = helperCreate();
|
||||
cliCreateServer.setAllowAnonymous(true).setUser("A").setPassword("A").setRole("amq").setNoWeb(true).setConfiguration("./src/main/resources/servers/brokerConnect/federationA").setArtemisInstance(server0Location);
|
||||
cliCreateServer.createServer();
|
||||
}
|
||||
|
||||
{
|
||||
HelperCreate cliCreateServer = new HelperCreate();
|
||||
HelperCreate cliCreateServer = helperCreate();
|
||||
cliCreateServer.setAllowAnonymous(true).setUser("B").setPassword("B").setRole("amq").setNoWeb(true).setPortOffset(1).setConfiguration("./src/main/resources/servers/brokerConnect/federationB").setArtemisInstance(server1Location);
|
||||
cliCreateServer.createServer();
|
||||
}
|
||||
|
|
|
@ -36,11 +36,11 @@ import java.io.File;
|
|||
import java.io.FileOutputStream;
|
||||
import java.io.PrintStream;
|
||||
|
||||
import org.apache.activemq.artemis.cli.commands.helper.HelperCreate;
|
||||
import org.apache.activemq.artemis.cli.commands.tools.PrintData;
|
||||
import org.apache.activemq.artemis.tests.smoke.common.SmokeTestBase;
|
||||
import org.apache.activemq.artemis.tests.util.CFUtil;
|
||||
import org.apache.activemq.artemis.util.ServerUtil;
|
||||
import org.apache.activemq.artemis.utils.cli.helper.HelperCreate;
|
||||
import org.junit.jupiter.api.BeforeAll;
|
||||
import org.junit.jupiter.api.BeforeEach;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
@ -65,13 +65,13 @@ public class DualMirrorNoContainerTest extends SmokeTestBase {
|
|||
deleteDirectory(server0Location);
|
||||
|
||||
{
|
||||
HelperCreate cliCreateServer = new HelperCreate();
|
||||
HelperCreate cliCreateServer = helperCreate();
|
||||
cliCreateServer.setAllowAnonymous(false).setUser("A").setPassword("A").setNoWeb(true).setConfiguration("./src/main/resources/servers/brokerConnect/mirrorSecurityA").setArtemisInstance(server0Location);
|
||||
cliCreateServer.createServer();
|
||||
}
|
||||
|
||||
{
|
||||
HelperCreate cliCreateServer = new HelperCreate();
|
||||
HelperCreate cliCreateServer = helperCreate();
|
||||
cliCreateServer.setAllowAnonymous(false).setUser("B").setPassword("B").setNoWeb(true).setPortOffset(1).setConfiguration("./src/main/resources/servers/brokerConnect/mirrorSecurityB").setArtemisInstance(server1Location);
|
||||
cliCreateServer.createServer();
|
||||
}
|
||||
|
|
|
@ -35,7 +35,7 @@ import org.apache.activemq.artemis.tests.util.CFUtil;
|
|||
import org.apache.activemq.artemis.util.ServerUtil;
|
||||
import org.apache.activemq.artemis.utils.FileUtil;
|
||||
import org.apache.activemq.artemis.utils.Wait;
|
||||
import org.apache.activemq.artemis.utils.cli.helper.HelperCreate;
|
||||
import org.apache.activemq.artemis.cli.commands.helper.HelperCreate;
|
||||
import org.junit.jupiter.api.AfterEach;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
|
@ -110,7 +110,7 @@ public class MirrorInfiniteRetryReplicaTest extends SmokeTestBase {
|
|||
File serverLocation = getFileServerLocation(serverName);
|
||||
deleteDirectory(serverLocation);
|
||||
|
||||
HelperCreate cliCreateServer = new HelperCreate();
|
||||
HelperCreate cliCreateServer = helperCreate();
|
||||
cliCreateServer.setAllowAnonymous(true).setArtemisInstance(serverLocation);
|
||||
cliCreateServer.setNoWeb(true);
|
||||
cliCreateServer.setArgs("--no-stomp-acceptor", "--no-hornetq-acceptor", "--no-mqtt-acceptor", "--no-amqp-acceptor", "--max-hops", "1", "--name", DC1_NODE);
|
||||
|
@ -174,7 +174,7 @@ public class MirrorInfiniteRetryReplicaTest extends SmokeTestBase {
|
|||
File serverLocation = getFileServerLocation(serverName);
|
||||
deleteDirectory(serverLocation);
|
||||
|
||||
HelperCreate cliCreateServer = new HelperCreate();
|
||||
HelperCreate cliCreateServer = helperCreate();
|
||||
cliCreateServer.setAllowAnonymous(true).setArtemisInstance(serverLocation);
|
||||
cliCreateServer.setMessageLoadBalancing("ON_DEMAND");
|
||||
cliCreateServer.setArgs("--no-stomp-acceptor", "--no-hornetq-acceptor", "--no-mqtt-acceptor", "--no-amqp-acceptor", "--max-hops", "1", "--name", DC1_NODE);
|
||||
|
|
|
@ -42,7 +42,7 @@ import org.apache.activemq.artemis.tests.smoke.common.SmokeTestBase;
|
|||
import org.apache.activemq.artemis.tests.util.CFUtil;
|
||||
import org.apache.activemq.artemis.util.ServerUtil;
|
||||
import org.apache.activemq.artemis.utils.Wait;
|
||||
import org.apache.activemq.artemis.utils.cli.helper.HelperCreate;
|
||||
import org.apache.activemq.artemis.cli.commands.helper.HelperCreate;
|
||||
import org.junit.jupiter.api.BeforeAll;
|
||||
import org.junit.jupiter.api.BeforeEach;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
@ -64,13 +64,13 @@ public class MirroredSubscriptionTest extends SmokeTestBase {
|
|||
deleteDirectory(server0Location);
|
||||
|
||||
{
|
||||
HelperCreate cliCreateServer = new HelperCreate();
|
||||
HelperCreate cliCreateServer = helperCreate();
|
||||
cliCreateServer.setAllowAnonymous(true).setRole("amq").setUser("admin").setPassword("admin").setNoWeb(true).setConfiguration("./src/main/resources/servers/mirrored-subscriptions/broker1").setArtemisInstance(server0Location);
|
||||
cliCreateServer.createServer();
|
||||
}
|
||||
|
||||
{
|
||||
HelperCreate cliCreateServer = new HelperCreate();
|
||||
HelperCreate cliCreateServer = helperCreate();
|
||||
cliCreateServer.setAllowAnonymous(true).setRole("amq").setUser("admin").setPassword("admin").setNoWeb(true).setConfiguration("./src/main/resources/servers/mirrored-subscriptions/broker2").setArtemisInstance(server1Location);
|
||||
cliCreateServer.createServer();
|
||||
}
|
||||
|
|
|
@ -35,7 +35,7 @@ import org.apache.activemq.artemis.tests.smoke.common.SmokeTestBase;
|
|||
import org.apache.activemq.artemis.tests.util.CFUtil;
|
||||
import org.apache.activemq.artemis.utils.Wait;
|
||||
import org.apache.activemq.artemis.util.ServerUtil;
|
||||
import org.apache.activemq.artemis.utils.cli.helper.HelperCreate;
|
||||
import org.apache.activemq.artemis.cli.commands.helper.HelperCreate;
|
||||
import org.junit.jupiter.api.BeforeAll;
|
||||
import org.junit.jupiter.api.BeforeEach;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
@ -61,13 +61,13 @@ public class PagedMirrorSmokeTest extends SmokeTestBase {
|
|||
deleteDirectory(server0Location);
|
||||
|
||||
if (!server0Location.exists()) {
|
||||
HelperCreate cliCreateServer = new HelperCreate();
|
||||
HelperCreate cliCreateServer = helperCreate();
|
||||
cliCreateServer.setAllowAnonymous(true).setRole("amq").setUser("artemis").setPassword("artemis").setNoWeb(true).setConfiguration("./src/main/resources/servers/brokerConnect/pagedA").setArtemisInstance(server0Location);
|
||||
cliCreateServer.createServer();
|
||||
}
|
||||
|
||||
if (!server1Location.exists()) {
|
||||
HelperCreate cliCreateServer = new HelperCreate();
|
||||
HelperCreate cliCreateServer = helperCreate();
|
||||
cliCreateServer.setAllowAnonymous(true).setRole("amq").setUser("artemis").setPassword("artemis").setNoWeb(true).setConfiguration("./src/main/resources/servers/brokerConnect/pagedB").setArtemisInstance(server1Location);
|
||||
cliCreateServer.createServer();
|
||||
}
|
||||
|
|
|
@ -46,7 +46,7 @@ import org.apache.activemq.artemis.tests.util.CFUtil;
|
|||
import org.apache.activemq.artemis.util.ServerUtil;
|
||||
import org.apache.activemq.artemis.utils.RandomUtil;
|
||||
import org.apache.activemq.artemis.utils.Wait;
|
||||
import org.apache.activemq.artemis.utils.cli.helper.HelperCreate;
|
||||
import org.apache.activemq.artemis.cli.commands.helper.HelperCreate;
|
||||
import org.junit.jupiter.api.BeforeAll;
|
||||
import org.junit.jupiter.api.BeforeEach;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
@ -72,13 +72,13 @@ public class CheckTest extends SmokeTestBase {
|
|||
deleteDirectory(server0Location);
|
||||
|
||||
{
|
||||
HelperCreate cliCreateServer = new HelperCreate();
|
||||
HelperCreate cliCreateServer = helperCreate();
|
||||
cliCreateServer.setSharedStore(true).setBackup(false).setSharedStore(true).setDataFolder("./target/check-test/data").setFailoverOnShutdown(true).setStaticCluster("tcp://localhost:61716").setArtemisInstance(server0Location);
|
||||
cliCreateServer.createServer();
|
||||
}
|
||||
|
||||
{
|
||||
HelperCreate cliCreateServer = new HelperCreate();
|
||||
HelperCreate cliCreateServer = helperCreate();
|
||||
cliCreateServer.setSharedStore(true).setBackup(true).setSharedStore(true).setDataFolder("./target/check-test/data").setFailoverOnShutdown(true).setStaticCluster("tcp://localhost:61616").setPortOffset(100).setArtemisInstance(server1Location);
|
||||
cliCreateServer.createServer();
|
||||
}
|
||||
|
|
|
@ -35,7 +35,7 @@ import org.apache.activemq.artemis.tests.smoke.common.SmokeTestBase;
|
|||
import org.apache.activemq.artemis.tests.util.CFUtil;
|
||||
import org.apache.activemq.artemis.util.ServerUtil;
|
||||
import org.apache.activemq.artemis.utils.Wait;
|
||||
import org.apache.activemq.artemis.utils.cli.helper.HelperCreate;
|
||||
import org.apache.activemq.artemis.cli.commands.helper.HelperCreate;
|
||||
import org.junit.jupiter.api.BeforeAll;
|
||||
import org.junit.jupiter.api.BeforeEach;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
@ -51,14 +51,14 @@ public class ClusteredLargeMessageTest extends SmokeTestBase {
|
|||
deleteDirectory(server0Location);
|
||||
|
||||
{
|
||||
HelperCreate cliCreateServer = new HelperCreate();
|
||||
HelperCreate cliCreateServer = helperCreate();
|
||||
cliCreateServer.setRole("amq").setUser("artemis").setPassword("artemis").setAllowAnonymous(true).setNoWeb(true).
|
||||
setArtemisInstance(server0Location).setClustered(true).
|
||||
setStaticCluster("tcp://localhost:61716").setArgs("--name", "cluster1", "--max-hops", "1", "--queues", "testQueue");
|
||||
cliCreateServer.createServer();
|
||||
}
|
||||
{
|
||||
HelperCreate cliCreateServer = new HelperCreate();
|
||||
HelperCreate cliCreateServer = helperCreate();
|
||||
cliCreateServer.setRole("amq").setUser("artemis").setPassword("artemis").setAllowAnonymous(true).setNoWeb(true).setPortOffset(100).
|
||||
setArtemisInstance(server1Location).setClustered(true).
|
||||
setStaticCluster("tcp://localhost:61616").setArgs("--name", "cluster2", "--max-hops", "1", "--queues", "testQueue");
|
||||
|
|
|
@ -20,7 +20,7 @@ import com.github.dockerjava.zerodep.shaded.org.apache.hc.core5.ssl.SSLContexts;
|
|||
import org.apache.activemq.artemis.tests.smoke.common.SmokeTestBase;
|
||||
import org.apache.activemq.artemis.util.ServerUtil;
|
||||
import org.apache.activemq.artemis.utils.Wait;
|
||||
import org.apache.activemq.artemis.utils.cli.helper.HelperCreate;
|
||||
import org.apache.activemq.artemis.cli.commands.helper.HelperCreate;
|
||||
import org.apache.http.client.methods.CloseableHttpResponse;
|
||||
import org.apache.http.client.methods.HttpGet;
|
||||
import org.apache.http.impl.client.CloseableHttpClient;
|
||||
|
@ -42,7 +42,7 @@ public class ConsoleMutualSSLTest extends SmokeTestBase {
|
|||
public static void createServers() throws Exception {
|
||||
File server0Location = getFileServerLocation(SERVER_NAME);
|
||||
deleteDirectory(server0Location);
|
||||
HelperCreate cliCreateServer = new HelperCreate();
|
||||
HelperCreate cliCreateServer = helperCreate();
|
||||
cliCreateServer.setRole("amq").setUser("admin").setPassword("admin").setAllowAnonymous(false).setConfiguration("./src/main/resources/servers/console-mutual-ssl").
|
||||
setNoWeb(false).setArtemisInstance(server0Location).setArgs( "--http-host",
|
||||
"localhost",
|
||||
|
|
|
@ -43,7 +43,7 @@ import org.apache.activemq.artemis.core.remoting.impl.netty.TransportConstants;
|
|||
import org.apache.activemq.artemis.core.server.ActiveMQServer;
|
||||
import org.apache.activemq.artemis.jms.client.ActiveMQConnectionFactory;
|
||||
import org.apache.activemq.artemis.tests.smoke.common.SmokeTestBase;
|
||||
import org.apache.activemq.artemis.utils.cli.helper.HelperCreate;
|
||||
import org.apache.activemq.artemis.cli.commands.helper.HelperCreate;
|
||||
import org.apache.qpid.jms.JmsConnectionFactory;
|
||||
import org.junit.jupiter.api.AfterEach;
|
||||
import org.junit.jupiter.api.BeforeAll;
|
||||
|
@ -67,7 +67,7 @@ public class MultiThreadConvertTest extends SmokeTestBase {
|
|||
deleteDirectory(server0Location);
|
||||
|
||||
{
|
||||
HelperCreate cliCreateServer = new HelperCreate();
|
||||
HelperCreate cliCreateServer = helperCreate();
|
||||
cliCreateServer.setUser("admin").setPassword("admin").setAllowAnonymous(true).setNoWeb(true).
|
||||
setArtemisInstance(server0Location);
|
||||
cliCreateServer.createServer();
|
||||
|
|
|
@ -35,7 +35,7 @@ import java.util.concurrent.atomic.AtomicBoolean;
|
|||
import org.apache.activemq.artemis.tests.smoke.common.SmokeTestBase;
|
||||
import org.apache.activemq.artemis.tests.util.CFUtil;
|
||||
import org.apache.activemq.artemis.utils.RandomUtil;
|
||||
import org.apache.activemq.artemis.utils.cli.helper.HelperCreate;
|
||||
import org.apache.activemq.artemis.cli.commands.helper.HelperCreate;
|
||||
import org.junit.jupiter.api.BeforeAll;
|
||||
import org.junit.jupiter.api.BeforeEach;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
@ -51,7 +51,7 @@ public class CustomETCTest extends SmokeTestBase {
|
|||
deleteDirectory(server0Location);
|
||||
|
||||
{
|
||||
HelperCreate cliCreateServer = new HelperCreate();
|
||||
HelperCreate cliCreateServer = helperCreate();
|
||||
cliCreateServer.setUser("admin").setPassword("admin").setAllowAnonymous(true).setNoWeb(true).
|
||||
setArgs("--etc", new File("./target/customETC/theCustomETC").getAbsolutePath()).
|
||||
setArtemisInstance(server0Location);
|
||||
|
|
|
@ -32,7 +32,7 @@ import javax.jms.TextMessage;
|
|||
import java.io.File;
|
||||
|
||||
import org.apache.activemq.artemis.tests.smoke.common.SmokeTestBase;
|
||||
import org.apache.activemq.artemis.utils.cli.helper.HelperCreate;
|
||||
import org.apache.activemq.artemis.cli.commands.helper.HelperCreate;
|
||||
import org.apache.qpid.jms.JmsConnectionFactory;
|
||||
import org.junit.jupiter.api.BeforeAll;
|
||||
import org.junit.jupiter.api.BeforeEach;
|
||||
|
@ -49,7 +49,7 @@ public class TestSimpleExpire extends SmokeTestBase {
|
|||
deleteDirectory(server0Location);
|
||||
|
||||
{
|
||||
HelperCreate cliCreateServer = new HelperCreate();
|
||||
HelperCreate cliCreateServer = helperCreate();
|
||||
cliCreateServer.setUser("admin").setPassword("admin").setAllowAnonymous(true).setNoWeb(true).setArtemisInstance(server0Location).setArgs("--disable-persistence");
|
||||
cliCreateServer.createServer();
|
||||
}
|
||||
|
|
|
@ -35,7 +35,7 @@ import org.apache.activemq.artemis.core.io.nio.NIOSequentialFileFactory;
|
|||
import org.apache.activemq.artemis.jms.client.ActiveMQConnectionFactory;
|
||||
import org.apache.activemq.artemis.tests.smoke.common.SmokeTestBase;
|
||||
import org.apache.activemq.artemis.utils.Wait;
|
||||
import org.apache.activemq.artemis.utils.cli.helper.HelperCreate;
|
||||
import org.apache.activemq.artemis.cli.commands.helper.HelperCreate;
|
||||
import org.junit.jupiter.api.BeforeAll;
|
||||
import org.junit.jupiter.api.BeforeEach;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
@ -56,7 +56,7 @@ public class InfiniteRedeliverySmokeTest extends SmokeTestBase {
|
|||
deleteDirectory(server0Location);
|
||||
|
||||
{
|
||||
HelperCreate cliCreateServer = new HelperCreate();
|
||||
HelperCreate cliCreateServer = helperCreate();
|
||||
cliCreateServer.setUser("admin").setPassword("admin").setAllowAnonymous(true).setNoWeb(true).setArtemisInstance(server0Location).setConfiguration("./src/main/resources/servers/infinite-redelivery");
|
||||
cliCreateServer.createServer();
|
||||
}
|
||||
|
|
|
@ -28,7 +28,7 @@ import org.apache.activemq.artemis.core.config.storage.DatabaseStorageConfigurat
|
|||
import org.apache.activemq.artemis.tests.smoke.common.SmokeTestBase;
|
||||
import org.apache.activemq.artemis.utils.FileUtil;
|
||||
import org.apache.activemq.artemis.utils.RandomUtil;
|
||||
import org.apache.activemq.artemis.utils.cli.helper.HelperCreate;
|
||||
import org.apache.activemq.artemis.cli.commands.helper.HelperCreate;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
public class JDBCExportWrongUserTest extends SmokeTestBase {
|
||||
|
@ -43,7 +43,7 @@ public class JDBCExportWrongUserTest extends SmokeTestBase {
|
|||
|
||||
runAfter(() -> deleteDirectory(server0Location));
|
||||
|
||||
HelperCreate cliCreateServer = new HelperCreate();
|
||||
HelperCreate cliCreateServer = helperCreate();
|
||||
cliCreateServer.setUser("admin").setPassword("admin").setAllowAnonymous(true).setNoWeb(true).setArtemisInstance(server0Location).addArgs("--jdbc", "--jdbc-connection-url", "fakeOne");
|
||||
cliCreateServer.createServer();
|
||||
|
||||
|
|
|
@ -36,7 +36,7 @@ import java.rmi.server.RemoteRef;
|
|||
|
||||
import io.netty.util.internal.PlatformDependent;
|
||||
import org.apache.activemq.artemis.tests.smoke.common.SmokeTestBase;
|
||||
import org.apache.activemq.artemis.utils.cli.helper.HelperCreate;
|
||||
import org.apache.activemq.artemis.cli.commands.helper.HelperCreate;
|
||||
import org.jctools.util.UnsafeAccess;
|
||||
import org.junit.jupiter.api.BeforeAll;
|
||||
import org.junit.jupiter.api.BeforeEach;
|
||||
|
@ -64,7 +64,7 @@ public class JmxConnectionTest extends SmokeTestBase {
|
|||
deleteDirectory(server0Location);
|
||||
|
||||
{
|
||||
HelperCreate cliCreateServer = new HelperCreate();
|
||||
HelperCreate cliCreateServer = helperCreate();
|
||||
cliCreateServer.setUser("admin").setPassword("admin").setAllowAnonymous(true).setNoWeb(true).setArtemisInstance(server0Location).
|
||||
setConfiguration("./src/main/resources/servers/jmx").setArgs("--java-options", "-Djava.rmi.server.hostname=localhost");
|
||||
cliCreateServer.createServer();
|
||||
|
|
|
@ -42,7 +42,7 @@ import org.apache.activemq.artemis.api.jms.ActiveMQJMSClient;
|
|||
import org.apache.activemq.artemis.jms.client.ActiveMQConnectionFactory;
|
||||
import org.apache.activemq.artemis.jms.client.ActiveMQQueue;
|
||||
import org.apache.activemq.artemis.tests.smoke.common.SmokeTestBase;
|
||||
import org.apache.activemq.artemis.utils.cli.helper.HelperCreate;
|
||||
import org.apache.activemq.artemis.cli.commands.helper.HelperCreate;
|
||||
import org.junit.jupiter.api.BeforeAll;
|
||||
import org.junit.jupiter.api.BeforeEach;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
@ -62,7 +62,7 @@ public class JmxServerControlTest extends SmokeTestBase {
|
|||
deleteDirectory(server0Location);
|
||||
|
||||
{
|
||||
HelperCreate cliCreateServer = new HelperCreate();
|
||||
HelperCreate cliCreateServer = helperCreate();
|
||||
cliCreateServer.setUser("admin").setPassword("admin").setAllowAnonymous(true).setNoWeb(true).setArtemisInstance(server0Location).
|
||||
setConfiguration("./src/main/resources/servers/jmx").setArgs("--java-options",
|
||||
"-Djava.rmi.server.hostname=localhost -Dcom.sun.management.jmxremote=true " +
|
||||
|
|
|
@ -30,7 +30,7 @@ import org.apache.activemq.artemis.api.core.management.ActiveMQServerControl;
|
|||
import org.apache.activemq.artemis.api.core.management.ObjectNameBuilder;
|
||||
import org.apache.activemq.artemis.tests.smoke.common.SmokeTestBase;
|
||||
import org.apache.activemq.artemis.utils.Wait;
|
||||
import org.apache.activemq.artemis.utils.cli.helper.HelperCreate;
|
||||
import org.apache.activemq.artemis.cli.commands.helper.HelperCreate;
|
||||
import org.junit.jupiter.api.BeforeAll;
|
||||
import org.junit.jupiter.api.BeforeEach;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
@ -54,14 +54,14 @@ public class JmxFailbackTest extends SmokeTestBase {
|
|||
deleteDirectory(server1Location);
|
||||
|
||||
{
|
||||
HelperCreate cliCreateServer = new HelperCreate();
|
||||
HelperCreate cliCreateServer = helperCreate();
|
||||
cliCreateServer.setUser("admin").setPassword("admin").setAllowAnonymous(true).setNoWeb(true).setArtemisInstance(server0Location).
|
||||
setConfiguration("./src/main/resources/servers/jmx-failback1").setArgs( "--java-options", "-Djava.rmi.server.hostname=localhost");
|
||||
cliCreateServer.createServer();
|
||||
}
|
||||
|
||||
{
|
||||
HelperCreate cliCreateServer = new HelperCreate();
|
||||
HelperCreate cliCreateServer = helperCreate();
|
||||
cliCreateServer.setUser("admin").setPassword("admin").setAllowAnonymous(true).setNoWeb(true).setArtemisInstance(server1Location).
|
||||
setConfiguration("./src/main/resources/servers/jmx-failback2").setArgs( "--java-options", "-Djava.rmi.server.hostname=localhost");
|
||||
cliCreateServer.createServer();
|
||||
|
|
|
@ -47,7 +47,7 @@ import org.apache.activemq.artemis.api.core.management.ObjectNameBuilder;
|
|||
import org.apache.activemq.artemis.tests.smoke.common.SmokeTestBase;
|
||||
import org.apache.activemq.artemis.utils.JsonLoader;
|
||||
import org.apache.activemq.artemis.utils.Wait;
|
||||
import org.apache.activemq.artemis.utils.cli.helper.HelperCreate;
|
||||
import org.apache.activemq.artemis.cli.commands.helper.HelperCreate;
|
||||
import org.junit.jupiter.api.BeforeAll;
|
||||
import org.junit.jupiter.api.BeforeEach;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
@ -193,25 +193,25 @@ public class ReplicatedMultipleFailbackTest extends SmokeTestBase {
|
|||
deleteDirectory(server3Location);
|
||||
|
||||
{
|
||||
HelperCreate cliCreateServer = new HelperCreate();
|
||||
HelperCreate cliCreateServer = helperCreate();
|
||||
cliCreateServer.setUser("admin").setPassword("admin").setAllowAnonymous(true).setNoWeb(true).setArtemisInstance(server0Location).setConfiguration("./src/main/resources/servers/replicated-failback-primary1").setArgs("--java-options", "-Djava.rmi.server.hostname=localhost");
|
||||
cliCreateServer.createServer();
|
||||
}
|
||||
|
||||
{
|
||||
HelperCreate cliCreateServer = new HelperCreate();
|
||||
HelperCreate cliCreateServer = helperCreate();
|
||||
cliCreateServer.setUser("admin").setPassword("admin").setAllowAnonymous(true).setNoWeb(true).setArtemisInstance(server1Location).setConfiguration("./src/main/resources/servers/replicated-failback-primary2").setArgs("--java-options", "-Djava.rmi.server.hostname=localhost");
|
||||
cliCreateServer.createServer();
|
||||
}
|
||||
|
||||
{
|
||||
HelperCreate cliCreateServer = new HelperCreate();
|
||||
HelperCreate cliCreateServer = helperCreate();
|
||||
cliCreateServer.setUser("admin").setPassword("admin").setAllowAnonymous(true).setNoWeb(true).setArtemisInstance(server2Location).setConfiguration("./src/main/resources/servers/replicated-failback-primary3").setArgs("--java-options", "-Djava.rmi.server.hostname=localhost");
|
||||
cliCreateServer.createServer();
|
||||
}
|
||||
|
||||
{
|
||||
HelperCreate cliCreateServer = new HelperCreate();
|
||||
HelperCreate cliCreateServer = helperCreate();
|
||||
cliCreateServer.setUser("admin").setPassword("admin").setAllowAnonymous(true).setNoWeb(true).setArtemisInstance(server3Location).setConfiguration("./src/main/resources/servers/replicated-failback-backup1").setArgs("--java-options", "-Djava.rmi.server.hostname=localhost");
|
||||
cliCreateServer.createServer();
|
||||
}
|
||||
|
|
|
@ -37,7 +37,7 @@ import org.apache.activemq.artemis.api.core.management.AddressControl;
|
|||
import org.apache.activemq.artemis.api.core.management.ObjectNameBuilder;
|
||||
import org.apache.activemq.artemis.tests.smoke.common.SmokeTestBase;
|
||||
import org.apache.activemq.artemis.util.ServerUtil;
|
||||
import org.apache.activemq.artemis.utils.cli.helper.HelperCreate;
|
||||
import org.apache.activemq.artemis.cli.commands.helper.HelperCreate;
|
||||
import org.junit.jupiter.api.BeforeAll;
|
||||
import org.junit.jupiter.api.BeforeEach;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
@ -65,7 +65,7 @@ public class JmxRBACBrokerSecurityTest extends SmokeTestBase {
|
|||
deleteDirectory(server0Location);
|
||||
|
||||
{
|
||||
HelperCreate cliCreateServer = new HelperCreate();
|
||||
HelperCreate cliCreateServer = helperCreate();
|
||||
cliCreateServer.setRole("amq").setUser("admin").setPassword("admin").setAllowAnonymous(false).setNoWeb(false).setArtemisInstance(server0Location).
|
||||
setConfiguration("./src/main/resources/servers/jmx-rbac-broker-security").setArgs("--java-options", "-Djava.rmi.server.hostname=localhost -Djavax.management.builder.initial=org.apache.activemq.artemis.core.server.management.ArtemisRbacMBeanServerBuilder");
|
||||
cliCreateServer.createServer();
|
||||
|
|
|
@ -38,7 +38,7 @@ import org.apache.activemq.artemis.api.core.management.AddressControl;
|
|||
import org.apache.activemq.artemis.api.core.management.ObjectNameBuilder;
|
||||
import org.apache.activemq.artemis.tests.smoke.common.SmokeTestBase;
|
||||
import org.apache.activemq.artemis.util.ServerUtil;
|
||||
import org.apache.activemq.artemis.utils.cli.helper.HelperCreate;
|
||||
import org.apache.activemq.artemis.cli.commands.helper.HelperCreate;
|
||||
import org.junit.jupiter.api.BeforeAll;
|
||||
import org.junit.jupiter.api.BeforeEach;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
@ -65,7 +65,7 @@ public class JmxRBACTest extends SmokeTestBase {
|
|||
deleteDirectory(server0Location);
|
||||
|
||||
{
|
||||
HelperCreate cliCreateServer = new HelperCreate();
|
||||
HelperCreate cliCreateServer = helperCreate();
|
||||
cliCreateServer.setRole("amq").setUser("admin").setPassword("admin").setAllowAnonymous(false).setNoWeb(true).setArtemisInstance(server0Location).
|
||||
setConfiguration("./src/main/resources/servers/jmx-rbac").setArgs("--java-options", "-Djava.rmi.server.hostname=localhost");
|
||||
cliCreateServer.createServer();
|
||||
|
|
|
@ -34,7 +34,7 @@ import org.apache.activemq.artemis.tests.smoke.common.SmokeTestBase;
|
|||
import org.apache.activemq.artemis.tests.util.Jmx;
|
||||
import org.apache.activemq.artemis.util.ServerUtil;
|
||||
import org.apache.activemq.artemis.utils.Wait;
|
||||
import org.apache.activemq.artemis.utils.cli.helper.HelperCreate;
|
||||
import org.apache.activemq.artemis.cli.commands.helper.HelperCreate;
|
||||
import org.junit.jupiter.api.AfterEach;
|
||||
import org.junit.jupiter.api.BeforeAll;
|
||||
import org.junit.jupiter.api.BeforeEach;
|
||||
|
@ -79,7 +79,7 @@ public abstract class LockManagerSinglePairTest extends SmokeTestBase {
|
|||
deleteDirectory(server0Location);
|
||||
|
||||
{
|
||||
HelperCreate cliCreateServer = new HelperCreate();
|
||||
HelperCreate cliCreateServer = helperCreate();
|
||||
cliCreateServer.setUser("admin").setPassword("admin").setAllowAnonymous(true).setNoWeb(true).setArtemisInstance(server0Location).
|
||||
setConfiguration("./src/main/resources/servers/" + serverName);
|
||||
cliCreateServer.setArgs("--java-options", "-Djava.rmi.server.hostname=localhost");
|
||||
|
|
|
@ -21,7 +21,7 @@ import java.io.FileWriter;
|
|||
import java.io.PrintWriter;
|
||||
|
||||
import org.apache.activemq.artemis.tests.smoke.common.SmokeTestBase;
|
||||
import org.apache.activemq.artemis.utils.cli.helper.HelperCreate;
|
||||
import org.apache.activemq.artemis.cli.commands.helper.HelperCreate;
|
||||
import org.junit.jupiter.api.BeforeEach;
|
||||
|
||||
public abstract class AuditLoggerTestBase extends SmokeTestBase {
|
||||
|
@ -35,7 +35,7 @@ public abstract class AuditLoggerTestBase extends SmokeTestBase {
|
|||
deleteDirectory(server0Location);
|
||||
|
||||
{
|
||||
HelperCreate cliCreateServer = new HelperCreate();
|
||||
HelperCreate cliCreateServer = helperCreate();
|
||||
cliCreateServer.setUser("admin").setPassword("admin").setAllowAnonymous(true).setNoWeb(true).setArtemisInstance(server0Location).
|
||||
setConfiguration("./src/main/resources/servers/" + getServerName()).setArgs("--java-options", "-Djava.rmi.server.hostname=localhost");
|
||||
cliCreateServer.createServer();
|
||||
|
|
|
@ -28,7 +28,7 @@ import javax.jms.Session;
|
|||
import java.io.File;
|
||||
|
||||
import org.apache.activemq.artemis.tests.smoke.common.SmokeTestBase;
|
||||
import org.apache.activemq.artemis.utils.cli.helper.HelperCreate;
|
||||
import org.apache.activemq.artemis.cli.commands.helper.HelperCreate;
|
||||
import org.apache.qpid.jms.JmsConnectionFactory;
|
||||
import org.junit.jupiter.api.BeforeAll;
|
||||
import org.junit.jupiter.api.BeforeEach;
|
||||
|
@ -64,7 +64,7 @@ public class MaxConsumersTest extends SmokeTestBase {
|
|||
deleteDirectory(server0Location);
|
||||
|
||||
{
|
||||
HelperCreate cliCreateServer = new HelperCreate();
|
||||
HelperCreate cliCreateServer = helperCreate();
|
||||
cliCreateServer.setUser("admin").setPassword("admin").setAllowAnonymous(true).setNoWeb(true).setArtemisInstance(server0Location).
|
||||
setConfiguration("./src/main/resources/servers/maxConsumers");
|
||||
cliCreateServer.createServer();
|
||||
|
|
|
@ -23,7 +23,7 @@ import java.util.concurrent.Semaphore;
|
|||
|
||||
import org.apache.activemq.artemis.tests.smoke.common.SmokeTestBase;
|
||||
import org.apache.activemq.artemis.util.ServerUtil;
|
||||
import org.apache.activemq.artemis.utils.cli.helper.HelperCreate;
|
||||
import org.apache.activemq.artemis.cli.commands.helper.HelperCreate;
|
||||
import org.eclipse.paho.client.mqttv3.IMqttDeliveryToken;
|
||||
import org.eclipse.paho.client.mqttv3.MqttAsyncClient;
|
||||
import org.eclipse.paho.client.mqttv3.MqttCallback;
|
||||
|
@ -69,7 +69,7 @@ public class MQTTLeakTest extends SmokeTestBase {
|
|||
deleteDirectory(server0Location);
|
||||
|
||||
{
|
||||
HelperCreate cliCreateServer = new HelperCreate();
|
||||
HelperCreate cliCreateServer = helperCreate();
|
||||
cliCreateServer.setUser("admin").setPassword("admin").setAllowAnonymous(true).setNoWeb(true).setArtemisInstance(server0Location);
|
||||
//setConfiguration("./src/main/resources/servers/mqtt");
|
||||
cliCreateServer.createServer();
|
||||
|
|
|
@ -24,7 +24,7 @@ import static org.junit.jupiter.api.Assertions.assertTrue;
|
|||
import org.apache.activemq.artemis.jms.client.ActiveMQConnectionFactory;
|
||||
import org.apache.activemq.artemis.tests.smoke.common.SmokeTestBase;
|
||||
import org.apache.activemq.artemis.util.ServerUtil;
|
||||
import org.apache.activemq.artemis.utils.cli.helper.HelperCreate;
|
||||
import org.apache.activemq.artemis.cli.commands.helper.HelperCreate;
|
||||
import org.junit.jupiter.api.BeforeAll;
|
||||
import org.junit.jupiter.api.BeforeEach;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
@ -52,7 +52,7 @@ public class NettyNativeTest extends SmokeTestBase {
|
|||
deleteDirectory(server0Location);
|
||||
|
||||
{
|
||||
HelperCreate cliCreateServer = new HelperCreate();
|
||||
HelperCreate cliCreateServer = helperCreate();
|
||||
cliCreateServer.setRole("amq").setUser("admin").setPassword("admin").setAllowAnonymous(false).setNoWeb(true).setArtemisInstance(server0Location).
|
||||
setConfiguration("./src/main/resources/servers/nettynative");
|
||||
cliCreateServer.createServer();
|
||||
|
|
|
@ -38,7 +38,7 @@ import java.util.concurrent.atomic.AtomicInteger;
|
|||
import org.apache.activemq.artemis.tests.smoke.common.SmokeTestBase;
|
||||
import org.apache.activemq.artemis.tests.util.CFUtil;
|
||||
import org.apache.activemq.artemis.utils.RandomUtil;
|
||||
import org.apache.activemq.artemis.utils.cli.helper.HelperCreate;
|
||||
import org.apache.activemq.artemis.cli.commands.helper.HelperCreate;
|
||||
import org.junit.jupiter.api.BeforeAll;
|
||||
import org.junit.jupiter.api.BeforeEach;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
@ -59,7 +59,7 @@ public class FloodServerWithAsyncSendTest extends SmokeTestBase {
|
|||
deleteDirectory(server0Location);
|
||||
|
||||
{
|
||||
HelperCreate cliCreateServer = new HelperCreate();
|
||||
HelperCreate cliCreateServer = helperCreate();
|
||||
cliCreateServer.setUser("admin").setPassword("admin").setAllowAnonymous(true).setNoWeb(true).setArtemisInstance(server0Location).
|
||||
setConfiguration("./src/main/resources/servers/paging");
|
||||
cliCreateServer.createServer();
|
||||
|
|
|
@ -25,7 +25,7 @@ import java.io.File;
|
|||
import org.apache.activemq.artemis.cli.commands.ActionContext;
|
||||
import org.apache.activemq.artemis.cli.commands.messages.Producer;
|
||||
import org.apache.activemq.artemis.tests.smoke.common.SmokeTestBase;
|
||||
import org.apache.activemq.artemis.utils.cli.helper.HelperCreate;
|
||||
import org.apache.activemq.artemis.cli.commands.helper.HelperCreate;
|
||||
import org.junit.jupiter.api.BeforeAll;
|
||||
import org.junit.jupiter.api.BeforeEach;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
@ -45,14 +45,14 @@ public class SmokeMaxMessagePagingTest extends SmokeTestBase {
|
|||
deleteDirectory(server1Location);
|
||||
|
||||
{
|
||||
HelperCreate cliCreateServer = new HelperCreate();
|
||||
HelperCreate cliCreateServer = helperCreate();
|
||||
cliCreateServer.setUser("admin").setPassword("admin").setAllowAnonymous(true).setNoWeb(true).setArtemisInstance(server0Location);
|
||||
cliCreateServer.setArgs("--java-options", "-Djava.rmi.server.hostname=localhost", "--global-max-messages", "1000");
|
||||
cliCreateServer.createServer();
|
||||
}
|
||||
|
||||
{
|
||||
HelperCreate cliCreateServer = new HelperCreate();
|
||||
HelperCreate cliCreateServer = helperCreate();
|
||||
cliCreateServer.setUser("admin").setPassword("admin").setAllowAnonymous(true).setNoWeb(true).setArtemisInstance(server1Location).
|
||||
setConfiguration("./src/main/resources/servers/" + SERVER_NAME_ADDRESS);
|
||||
cliCreateServer.createServer();
|
||||
|
|
|
@ -25,7 +25,7 @@ import org.apache.activemq.artemis.cli.commands.ActionContext;
|
|||
import org.apache.activemq.artemis.cli.commands.messages.Consumer;
|
||||
import org.apache.activemq.artemis.cli.commands.messages.Producer;
|
||||
import org.apache.activemq.artemis.tests.smoke.common.SmokeTestBase;
|
||||
import org.apache.activemq.artemis.utils.cli.helper.HelperCreate;
|
||||
import org.apache.activemq.artemis.cli.commands.helper.HelperCreate;
|
||||
import org.junit.jupiter.api.BeforeAll;
|
||||
import org.junit.jupiter.api.BeforeEach;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
@ -41,7 +41,7 @@ public class SmokePagingTest extends SmokeTestBase {
|
|||
deleteDirectory(server0Location);
|
||||
|
||||
{
|
||||
HelperCreate cliCreateServer = new HelperCreate();
|
||||
HelperCreate cliCreateServer = helperCreate();
|
||||
cliCreateServer.setUser("admin").setPassword("admin").setAllowAnonymous(true).setNoWeb(true).setArtemisInstance(server0Location).
|
||||
setConfiguration("./src/main/resources/servers/paging");
|
||||
cliCreateServer.createServer();
|
||||
|
|
|
@ -33,7 +33,7 @@ import java.io.File;
|
|||
import org.apache.activemq.artemis.tests.smoke.common.SmokeTestBase;
|
||||
import org.apache.activemq.artemis.tests.util.CFUtil;
|
||||
import org.apache.activemq.artemis.util.ServerUtil;
|
||||
import org.apache.activemq.artemis.utils.cli.helper.HelperCreate;
|
||||
import org.apache.activemq.artemis.cli.commands.helper.HelperCreate;
|
||||
import org.junit.jupiter.api.BeforeAll;
|
||||
import org.junit.jupiter.api.BeforeEach;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
@ -49,7 +49,7 @@ public class MaxQueueResourceTest extends SmokeTestBase {
|
|||
deleteDirectory(server0Location);
|
||||
|
||||
{
|
||||
HelperCreate cliCreateServer = new HelperCreate();
|
||||
HelperCreate cliCreateServer = helperCreate();
|
||||
cliCreateServer.setUser("A").setPassword("A").setAllowAnonymous(false).setNoWeb(true).setArtemisInstance(server0Location).setConfiguration("./src/main/resources/servers/MaxQueueResourceTest");
|
||||
cliCreateServer.createServer();
|
||||
}
|
||||
|
|
|
@ -38,7 +38,7 @@ import org.apache.activemq.artemis.api.core.management.ObjectNameBuilder;
|
|||
import org.apache.activemq.artemis.tests.smoke.common.SmokeTestBase;
|
||||
import org.apache.activemq.artemis.tests.util.CFUtil;
|
||||
import org.apache.activemq.artemis.utils.RandomUtil;
|
||||
import org.apache.activemq.artemis.utils.cli.helper.HelperCreate;
|
||||
import org.apache.activemq.artemis.cli.commands.helper.HelperCreate;
|
||||
import org.junit.jupiter.api.BeforeAll;
|
||||
import org.junit.jupiter.api.BeforeEach;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
@ -58,7 +58,7 @@ public class ReplayTest extends SmokeTestBase {
|
|||
deleteDirectory(server0Location);
|
||||
|
||||
{
|
||||
HelperCreate cliCreateServer = new HelperCreate();
|
||||
HelperCreate cliCreateServer = helperCreate();
|
||||
cliCreateServer.setRole("amq").setUser("admin").setPassword("admin").setAllowAnonymous(true).setNoWeb(true).setArtemisInstance(server0Location).
|
||||
setConfiguration("./src/main/resources/servers/replay/replay");
|
||||
cliCreateServer.setArgs("--java-options", "-Djava.rmi.server.hostname=localhost", "--journal-retention", "1", "--queues", "RetentionTest", "--name", "replay");
|
||||
|
|
|
@ -33,7 +33,7 @@ import org.apache.activemq.artemis.json.JsonString;
|
|||
import org.apache.activemq.artemis.tests.smoke.common.SmokeTestBase;
|
||||
import org.apache.activemq.artemis.util.ServerUtil;
|
||||
import org.apache.activemq.artemis.utils.Wait;
|
||||
import org.apache.activemq.artemis.utils.cli.helper.HelperCreate;
|
||||
import org.apache.activemq.artemis.cli.commands.helper.HelperCreate;
|
||||
import org.junit.jupiter.api.BeforeAll;
|
||||
import org.junit.jupiter.api.BeforeEach;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
@ -140,7 +140,7 @@ public class TopologyCheckTest extends SmokeTestBase {
|
|||
deleteDirectory(server0Location);
|
||||
|
||||
{
|
||||
HelperCreate cliCreateServer = new HelperCreate();
|
||||
HelperCreate cliCreateServer = helperCreate();
|
||||
cliCreateServer.setUser("admin").setPassword("admin").setAllowAnonymous(true).setNoWeb(true).setArtemisInstance(server0Location).
|
||||
setConfiguration("./src/main/resources/servers/" + serverConfigName);
|
||||
cliCreateServer.createServer();
|
||||
|
|
|
@ -38,7 +38,7 @@ import org.apache.activemq.artemis.tests.extensions.parameterized.Parameters;
|
|||
import org.apache.activemq.artemis.tests.smoke.common.SmokeTestBase;
|
||||
import org.apache.activemq.artemis.tests.util.CFUtil;
|
||||
import org.apache.activemq.artemis.util.ServerUtil;
|
||||
import org.apache.activemq.artemis.utils.cli.helper.HelperCreate;
|
||||
import org.apache.activemq.artemis.cli.commands.helper.HelperCreate;
|
||||
import org.junit.jupiter.api.BeforeAll;
|
||||
import org.junit.jupiter.api.BeforeEach;
|
||||
import org.junit.jupiter.api.TestTemplate;
|
||||
|
@ -102,13 +102,13 @@ public class TransferTest extends SmokeTestBase {
|
|||
deleteDirectory(server1Location);
|
||||
|
||||
{
|
||||
HelperCreate cliCreateServer = new HelperCreate();
|
||||
HelperCreate cliCreateServer = helperCreate();
|
||||
cliCreateServer.setUser("admin").setPassword("admin").setAllowAnonymous(true).setNoWeb(true).setArtemisInstance(server0Location);
|
||||
cliCreateServer.createServer();
|
||||
}
|
||||
|
||||
{
|
||||
HelperCreate cliCreateServer = new HelperCreate();
|
||||
HelperCreate cliCreateServer = helperCreate();
|
||||
cliCreateServer.setUser("admin").setPassword("admin").setAllowAnonymous(true).setNoWeb(true).setArtemisInstance(server1Location).setPortOffset(100);
|
||||
cliCreateServer.createServer();
|
||||
}
|
||||
|
|
|
@ -40,7 +40,7 @@ import org.apache.activemq.artemis.tests.util.CFUtil;
|
|||
import org.apache.activemq.artemis.tests.util.RandomUtil;
|
||||
import org.apache.activemq.artemis.util.ServerUtil;
|
||||
import org.apache.activemq.artemis.utils.Wait;
|
||||
import org.apache.activemq.artemis.utils.cli.helper.HelperCreate;
|
||||
import org.apache.activemq.artemis.cli.commands.helper.HelperCreate;
|
||||
import org.junit.jupiter.api.BeforeAll;
|
||||
import org.junit.jupiter.api.BeforeEach;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
@ -86,7 +86,7 @@ public class AccumulatedInPageSoakTest extends SoakTestBase {
|
|||
File serverLocation = getFileServerLocation(serverName);
|
||||
deleteDirectory(serverLocation);
|
||||
|
||||
HelperCreate cliCreateServer = new HelperCreate();
|
||||
HelperCreate cliCreateServer = helperCreate();
|
||||
cliCreateServer.setAllowAnonymous(true).setNoWeb(true).setArtemisInstance(serverLocation);
|
||||
cliCreateServer.setMessageLoadBalancing("ON_DEMAND");
|
||||
cliCreateServer.setClustered(false);
|
||||
|
|
|
@ -58,7 +58,7 @@ import org.apache.activemq.artemis.tests.util.RandomUtil;
|
|||
import org.apache.activemq.artemis.util.ServerUtil;
|
||||
import org.apache.activemq.artemis.utils.FileUtil;
|
||||
import org.apache.activemq.artemis.utils.Wait;
|
||||
import org.apache.activemq.artemis.utils.cli.helper.HelperCreate;
|
||||
import org.apache.activemq.artemis.cli.commands.helper.HelperCreate;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
@ -97,7 +97,7 @@ public class ClusteredMirrorSoakTest extends SoakTestBase {
|
|||
File serverLocation = getFileServerLocation(serverName);
|
||||
deleteDirectory(serverLocation);
|
||||
|
||||
HelperCreate cliCreateServer = new HelperCreate();
|
||||
HelperCreate cliCreateServer = helperCreate();
|
||||
cliCreateServer.setAllowAnonymous(true).setArtemisInstance(serverLocation);
|
||||
cliCreateServer.setMessageLoadBalancing("ON_DEMAND");
|
||||
cliCreateServer.setClustered(true);
|
||||
|
|
|
@ -39,7 +39,7 @@ import org.apache.activemq.artemis.util.ServerUtil;
|
|||
import org.apache.activemq.artemis.utils.FileUtil;
|
||||
import org.apache.activemq.artemis.utils.TestParameters;
|
||||
import org.apache.activemq.artemis.utils.Wait;
|
||||
import org.apache.activemq.artemis.utils.cli.helper.HelperCreate;
|
||||
import org.apache.activemq.artemis.cli.commands.helper.HelperCreate;
|
||||
import org.junit.jupiter.api.AfterEach;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.slf4j.Logger;
|
||||
|
@ -122,7 +122,7 @@ public class DivertSoakMirrorTest extends SoakTestBase {
|
|||
}
|
||||
deleteDirectory(serverLocation);
|
||||
|
||||
HelperCreate cliCreateServer = new HelperCreate();
|
||||
HelperCreate cliCreateServer = helperCreate();
|
||||
cliCreateServer.setAllowAnonymous(true).setArtemisInstance(serverLocation);
|
||||
cliCreateServer.setArgs("--no-stomp-acceptor", "--no-hornetq-acceptor", "--no-mqtt-acceptor", "--no-amqp-acceptor", "--max-hops", "1", "--name", DC1_NODE);
|
||||
cliCreateServer.addArgs("--queues", QUEUE_NAME_LIST);
|
||||
|
|
|
@ -46,7 +46,7 @@ import org.apache.activemq.artemis.tests.soak.SoakTestBase;
|
|||
import org.apache.activemq.artemis.tests.util.CFUtil;
|
||||
import org.apache.activemq.artemis.util.ServerUtil;
|
||||
import org.apache.activemq.artemis.utils.Wait;
|
||||
import org.apache.activemq.artemis.utils.cli.helper.HelperCreate;
|
||||
import org.apache.activemq.artemis.cli.commands.helper.HelperCreate;
|
||||
import org.junit.jupiter.api.BeforeAll;
|
||||
import org.junit.jupiter.api.BeforeEach;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
@ -85,7 +85,7 @@ public class IdempotentACKTest extends SoakTestBase {
|
|||
File serverLocation = getFileServerLocation(serverName);
|
||||
deleteDirectory(serverLocation);
|
||||
|
||||
HelperCreate cliCreateServer = new HelperCreate();
|
||||
HelperCreate cliCreateServer = helperCreate();
|
||||
cliCreateServer.setAllowAnonymous(true).setNoWeb(true).setArtemisInstance(serverLocation);
|
||||
cliCreateServer.setMessageLoadBalancing("ON_DEMAND");
|
||||
cliCreateServer.setClustered(false);
|
||||
|
|
|
@ -47,7 +47,7 @@ import org.apache.activemq.artemis.tests.util.CFUtil;
|
|||
import org.apache.activemq.artemis.util.ServerUtil;
|
||||
import org.apache.activemq.artemis.utils.FileUtil;
|
||||
import org.apache.activemq.artemis.utils.Wait;
|
||||
import org.apache.activemq.artemis.utils.cli.helper.HelperCreate;
|
||||
import org.apache.activemq.artemis.cli.commands.helper.HelperCreate;
|
||||
import org.junit.jupiter.api.BeforeAll;
|
||||
import org.junit.jupiter.api.BeforeEach;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
@ -89,7 +89,7 @@ public class InterruptedLargeMessageTest extends SoakTestBase {
|
|||
File serverLocation = getFileServerLocation(serverName);
|
||||
deleteDirectory(serverLocation);
|
||||
|
||||
HelperCreate cliCreateServer = new HelperCreate();
|
||||
HelperCreate cliCreateServer = helperCreate();
|
||||
cliCreateServer.setAllowAnonymous(true).setNoWeb(true).setArtemisInstance(serverLocation);
|
||||
cliCreateServer.setMessageLoadBalancing("ON_DEMAND");
|
||||
cliCreateServer.setClustered(false);
|
||||
|
|
|
@ -41,7 +41,7 @@ import org.apache.activemq.artemis.tests.util.CFUtil;
|
|||
import org.apache.activemq.artemis.util.ServerUtil;
|
||||
import org.apache.activemq.artemis.utils.FileUtil;
|
||||
import org.apache.activemq.artemis.utils.Wait;
|
||||
import org.apache.activemq.artemis.utils.cli.helper.HelperCreate;
|
||||
import org.apache.activemq.artemis.cli.commands.helper.HelperCreate;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
@ -80,7 +80,7 @@ public class MultiMirrorSoakTest extends SoakTestBase {
|
|||
File serverLocation = getFileServerLocation(serverName);
|
||||
deleteDirectory(serverLocation);
|
||||
|
||||
HelperCreate cliCreateServer = new HelperCreate();
|
||||
HelperCreate cliCreateServer = helperCreate();
|
||||
cliCreateServer.setAllowAnonymous(true).setArtemisInstance(serverLocation);
|
||||
cliCreateServer.setMessageLoadBalancing("ON_DEMAND");
|
||||
cliCreateServer.setClustered(false);
|
||||
|
|
|
@ -42,7 +42,7 @@ import org.apache.activemq.artemis.tests.soak.SoakTestBase;
|
|||
import org.apache.activemq.artemis.tests.util.CFUtil;
|
||||
import org.apache.activemq.artemis.util.ServerUtil;
|
||||
import org.apache.activemq.artemis.utils.Wait;
|
||||
import org.apache.activemq.artemis.utils.cli.helper.HelperCreate;
|
||||
import org.apache.activemq.artemis.cli.commands.helper.HelperCreate;
|
||||
import org.junit.jupiter.api.BeforeAll;
|
||||
import org.junit.jupiter.api.BeforeEach;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
@ -84,7 +84,7 @@ public class PagedSNFSoakTest extends SoakTestBase {
|
|||
File serverLocation = getFileServerLocation(serverName);
|
||||
deleteDirectory(serverLocation);
|
||||
|
||||
HelperCreate cliCreateServer = new HelperCreate();
|
||||
HelperCreate cliCreateServer = helperCreate();
|
||||
cliCreateServer.setAllowAnonymous(true).setNoWeb(true).setArtemisInstance(serverLocation);
|
||||
cliCreateServer.setMessageLoadBalancing("ON_DEMAND");
|
||||
cliCreateServer.setClustered(false);
|
||||
|
|
|
@ -49,7 +49,7 @@ import org.apache.activemq.artemis.util.ServerUtil;
|
|||
import org.apache.activemq.artemis.utils.FileUtil;
|
||||
import org.apache.activemq.artemis.utils.TestParameters;
|
||||
import org.apache.activemq.artemis.utils.Wait;
|
||||
import org.apache.activemq.artemis.utils.cli.helper.HelperCreate;
|
||||
import org.apache.activemq.artemis.cli.commands.helper.HelperCreate;
|
||||
import org.junit.jupiter.api.AfterEach;
|
||||
import org.junit.jupiter.api.Assumptions;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
@ -168,7 +168,7 @@ public class ReplicatedBothNodesMirrorTest extends SoakTestBase {
|
|||
}
|
||||
deleteDirectory(serverLocation);
|
||||
|
||||
HelperCreate cliCreateServer = new HelperCreate();
|
||||
HelperCreate cliCreateServer = helperCreate();
|
||||
cliCreateServer.setAllowAnonymous(true).setArtemisInstance(serverLocation);
|
||||
cliCreateServer.setArgs("--no-stomp-acceptor", "--no-hornetq-acceptor", "--no-mqtt-acceptor", "--no-amqp-acceptor", "--max-hops", "1", "--name", DC1_NODE);
|
||||
cliCreateServer.addArgs("--queues", QUEUE_NAME);
|
||||
|
@ -235,7 +235,7 @@ public class ReplicatedBothNodesMirrorTest extends SoakTestBase {
|
|||
}
|
||||
deleteDirectory(serverLocation);
|
||||
|
||||
HelperCreate cliCreateServer = new HelperCreate();
|
||||
HelperCreate cliCreateServer = helperCreate();
|
||||
cliCreateServer.setAllowAnonymous(true).setArtemisInstance(serverLocation);
|
||||
cliCreateServer.setMessageLoadBalancing("ON_DEMAND");
|
||||
cliCreateServer.setArgs("--no-stomp-acceptor", "--no-hornetq-acceptor", "--no-mqtt-acceptor", "--no-amqp-acceptor", "--max-hops", "1", "--name", DC1_NODE);
|
||||
|
|
|
@ -52,7 +52,7 @@ import org.apache.activemq.artemis.utils.FileUtil;
|
|||
import org.apache.activemq.artemis.utils.TestParameters;
|
||||
import org.apache.activemq.artemis.utils.Wait;
|
||||
import org.apache.activemq.artemis.utils.actors.OrderedExecutor;
|
||||
import org.apache.activemq.artemis.utils.cli.helper.HelperCreate;
|
||||
import org.apache.activemq.artemis.cli.commands.helper.HelperCreate;
|
||||
import org.junit.jupiter.api.AfterEach;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.slf4j.Logger;
|
||||
|
@ -140,7 +140,7 @@ public class ReplicatedMirrorTargetTest extends SoakTestBase {
|
|||
File serverLocation = getFileServerLocation(serverName);
|
||||
deleteDirectory(serverLocation);
|
||||
|
||||
HelperCreate cliCreateServer = new HelperCreate();
|
||||
HelperCreate cliCreateServer = helperCreate();
|
||||
cliCreateServer.setAllowAnonymous(true).setArtemisInstance(serverLocation);
|
||||
cliCreateServer.setNoWeb(false);
|
||||
cliCreateServer.setArgs("--no-stomp-acceptor", "--no-hornetq-acceptor", "--no-mqtt-acceptor", "--no-amqp-acceptor", "--max-hops", "1", "--name", DC1_NODE);
|
||||
|
@ -200,7 +200,7 @@ public class ReplicatedMirrorTargetTest extends SoakTestBase {
|
|||
File serverLocation = getFileServerLocation(serverName);
|
||||
deleteDirectory(serverLocation);
|
||||
|
||||
HelperCreate cliCreateServer = new HelperCreate();
|
||||
HelperCreate cliCreateServer = helperCreate();
|
||||
cliCreateServer.setAllowAnonymous(true).setArtemisInstance(serverLocation);
|
||||
cliCreateServer.setMessageLoadBalancing("ON_DEMAND");
|
||||
cliCreateServer.setNoWeb(false);
|
||||
|
|
|
@ -53,7 +53,7 @@ import org.apache.activemq.artemis.utils.FileUtil;
|
|||
import org.apache.activemq.artemis.utils.TestParameters;
|
||||
import org.apache.activemq.artemis.utils.Wait;
|
||||
import org.apache.activemq.artemis.utils.actors.OrderedExecutor;
|
||||
import org.apache.activemq.artemis.utils.cli.helper.HelperCreate;
|
||||
import org.apache.activemq.artemis.cli.commands.helper.HelperCreate;
|
||||
import org.junit.jupiter.api.AfterEach;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.slf4j.Logger;
|
||||
|
@ -129,7 +129,7 @@ public class SingleMirrorSoakTest extends SoakTestBase {
|
|||
File serverLocation = getFileServerLocation(serverName);
|
||||
deleteDirectory(serverLocation);
|
||||
|
||||
HelperCreate cliCreateServer = new HelperCreate();
|
||||
HelperCreate cliCreateServer = helperCreate();
|
||||
cliCreateServer.setAllowAnonymous(true).setArtemisInstance(serverLocation);
|
||||
cliCreateServer.setMessageLoadBalancing("ON_DEMAND");
|
||||
cliCreateServer.setClustered(false);
|
||||
|
|
|
@ -35,7 +35,7 @@ import java.util.Properties;
|
|||
import org.apache.activemq.artemis.tests.soak.SoakTestBase;
|
||||
import org.apache.activemq.artemis.tests.util.CFUtil;
|
||||
import org.apache.activemq.artemis.util.ServerUtil;
|
||||
import org.apache.activemq.artemis.utils.cli.helper.HelperCreate;
|
||||
import org.apache.activemq.artemis.cli.commands.helper.HelperCreate;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
@ -68,7 +68,7 @@ public class SenderSoakTest extends SoakTestBase {
|
|||
File serverLocation = getFileServerLocation(serverName);
|
||||
deleteDirectory(serverLocation);
|
||||
|
||||
HelperCreate cliCreateServer = new HelperCreate();
|
||||
HelperCreate cliCreateServer = helperCreate();
|
||||
cliCreateServer.setAllowAnonymous(true).setNoWeb(true).setArtemisInstance(serverLocation);
|
||||
cliCreateServer.setMessageLoadBalancing("STRICT");
|
||||
cliCreateServer.setClustered(false);
|
||||
|
|
|
@ -48,13 +48,13 @@ import java.util.concurrent.atomic.AtomicInteger;
|
|||
import org.apache.activemq.ActiveMQConnectionFactory;
|
||||
import org.apache.activemq.RedeliveryPolicy;
|
||||
import org.apache.activemq.artemis.api.core.management.SimpleManagement;
|
||||
import org.apache.activemq.artemis.cli.commands.helper.HelperCreate;
|
||||
import org.apache.activemq.artemis.tests.extensions.parameterized.ParameterizedTestExtension;
|
||||
import org.apache.activemq.artemis.tests.extensions.parameterized.Parameters;
|
||||
import org.apache.activemq.artemis.tests.soak.SoakTestBase;
|
||||
import org.apache.activemq.artemis.tests.util.CFUtil;
|
||||
import org.apache.activemq.artemis.utils.SpawnedVMSupport;
|
||||
import org.apache.activemq.artemis.utils.Wait;
|
||||
import org.apache.activemq.artemis.utils.cli.helper.HelperCreate;
|
||||
import org.junit.jupiter.api.BeforeAll;
|
||||
import org.junit.jupiter.api.BeforeEach;
|
||||
import org.junit.jupiter.api.TestTemplate;
|
||||
|
@ -77,7 +77,7 @@ public class ClientFailureSoakTest extends SoakTestBase {
|
|||
public static void createServers() throws Exception {
|
||||
File serverLocation = getFileServerLocation(SERVER_NAME_0);
|
||||
deleteDirectory(serverLocation);
|
||||
HelperCreate cliCreateServer = new HelperCreate();
|
||||
HelperCreate cliCreateServer = helperCreate();
|
||||
cliCreateServer.setAllowAnonymous(true).setArtemisInstance(serverLocation);
|
||||
cliCreateServer.setArgs("--global-max-messages", "500000", "--java-options", "-ea", "--java-options", "-Xmx512M", "--queues", "CLIENT_TEST,OUT_QUEUE");
|
||||
cliCreateServer.createServer();
|
||||
|
|
|
@ -36,13 +36,13 @@ import java.util.concurrent.Executors;
|
|||
import java.util.concurrent.TimeUnit;
|
||||
|
||||
import org.apache.activemq.artemis.api.core.management.SimpleManagement;
|
||||
import org.apache.activemq.artemis.cli.commands.helper.HelperCreate;
|
||||
import org.apache.activemq.artemis.jms.client.ActiveMQConnectionFactory;
|
||||
import org.apache.activemq.artemis.jms.client.ActiveMQDestination;
|
||||
import org.apache.activemq.artemis.tests.soak.SoakTestBase;
|
||||
import org.apache.activemq.artemis.util.ServerUtil;
|
||||
import org.apache.activemq.artemis.utils.SpawnedVMSupport;
|
||||
import org.apache.activemq.artemis.utils.Wait;
|
||||
import org.apache.activemq.artemis.utils.cli.helper.HelperCreate;
|
||||
import org.junit.jupiter.api.AfterEach;
|
||||
import org.junit.jupiter.api.BeforeAll;
|
||||
import org.junit.jupiter.api.BeforeEach;
|
||||
|
@ -103,7 +103,7 @@ public class ClusterNotificationsContinuityTest extends SoakTestBase {
|
|||
File serverLocation = getFileServerLocation(serverName);
|
||||
deleteDirectory(serverLocation);
|
||||
|
||||
HelperCreate cliCreateServer = new HelperCreate();
|
||||
HelperCreate cliCreateServer = helperCreate();
|
||||
cliCreateServer
|
||||
.setRole("amq")
|
||||
.setUser("admin")
|
||||
|
|
|
@ -31,10 +31,10 @@ import org.apache.activemq.artemis.api.config.ActiveMQDefaultConfiguration;
|
|||
import org.apache.activemq.artemis.api.core.RoutingType;
|
||||
import org.apache.activemq.artemis.api.core.management.ObjectNameBuilder;
|
||||
import org.apache.activemq.artemis.api.core.management.QueueControl;
|
||||
import org.apache.activemq.artemis.cli.commands.helper.HelperCreate;
|
||||
import org.apache.activemq.artemis.tests.soak.SoakTestBase;
|
||||
import org.apache.activemq.artemis.tests.util.CFUtil;
|
||||
import org.apache.activemq.artemis.utils.Wait;
|
||||
import org.apache.activemq.artemis.utils.cli.helper.HelperCreate;
|
||||
import org.junit.jupiter.api.BeforeAll;
|
||||
import org.junit.jupiter.api.BeforeEach;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
@ -51,7 +51,7 @@ public class JournalFlushInterruptTest extends SoakTestBase {
|
|||
deleteDirectory(server0Location);
|
||||
|
||||
{
|
||||
HelperCreate cliCreateServer = new HelperCreate();
|
||||
HelperCreate cliCreateServer = helperCreate();
|
||||
cliCreateServer.setRole("amq").setUser("artemis").setPassword("artemis").setAllowAnonymous(true).setNoWeb(false).setArtemisInstance(server0Location).
|
||||
setConfiguration("./src/main/resources/servers/interruptjf");
|
||||
cliCreateServer.setArgs("--java-options", "-Djava.rmi.server.hostname=localhost", "--queues", "JournalFlushInterruptTest", "--name", "interruptjf");
|
||||
|
|
|
@ -43,7 +43,7 @@ import org.apache.activemq.artemis.api.core.management.QueueControl;
|
|||
import org.apache.activemq.artemis.tests.soak.SoakTestBase;
|
||||
import org.apache.activemq.artemis.tests.util.CFUtil;
|
||||
import org.apache.activemq.artemis.utils.Wait;
|
||||
import org.apache.activemq.artemis.utils.cli.helper.HelperCreate;
|
||||
import org.apache.activemq.artemis.cli.commands.helper.HelperCreate;
|
||||
import org.junit.jupiter.api.BeforeAll;
|
||||
import org.junit.jupiter.api.BeforeEach;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
@ -62,7 +62,7 @@ public class ClusteredLargeMessageInterruptTest extends SoakTestBase {
|
|||
File serverLocation = getFileServerLocation(SERVER_NAME_0);
|
||||
deleteDirectory(serverLocation);
|
||||
|
||||
HelperCreate cliCreateServer = new HelperCreate();
|
||||
HelperCreate cliCreateServer = helperCreate();
|
||||
cliCreateServer.setRole("amq").setUser("artemis").setPassword("artemis").setAllowAnonymous(true).setNoWeb(false).setArtemisInstance(serverLocation).
|
||||
setConfiguration("./src/main/resources/servers/lmbroker1");
|
||||
cliCreateServer.setArgs("--java-options", "-Djava.rmi.server.hostname=localhost", "--clustered", "--static-cluster", "tcp://localhost:61716", "--queues", "ClusteredLargeMessageInterruptTest", "--name", "lmbroker1");
|
||||
|
@ -73,7 +73,7 @@ public class ClusteredLargeMessageInterruptTest extends SoakTestBase {
|
|||
File serverLocation = getFileServerLocation(SERVER_NAME_1);
|
||||
deleteDirectory(serverLocation);
|
||||
|
||||
HelperCreate cliCreateServer = new HelperCreate();
|
||||
HelperCreate cliCreateServer = helperCreate();
|
||||
cliCreateServer.setRole("amq").setUser("artemis").setPassword("artemis").setAllowAnonymous(true).setNoWeb(false).setArtemisInstance(serverLocation).
|
||||
setConfiguration("./src/main/resources/servers/lmbroker2").setPortOffset(100);
|
||||
cliCreateServer.setArgs("--java-options", "-Djava.rmi.server.hostname=localhost", "--clustered", "--static-cluster", "tcp://localhost:61616", "--queues", "ClusteredLargeMessageInterruptTest", "--name", "lmbroker2");
|
||||
|
|
|
@ -43,7 +43,7 @@ import org.apache.activemq.artemis.api.core.management.QueueControl;
|
|||
import org.apache.activemq.artemis.tests.soak.SoakTestBase;
|
||||
import org.apache.activemq.artemis.tests.util.CFUtil;
|
||||
import org.apache.activemq.artemis.utils.Wait;
|
||||
import org.apache.activemq.artemis.utils.cli.helper.HelperCreate;
|
||||
import org.apache.activemq.artemis.cli.commands.helper.HelperCreate;
|
||||
import org.junit.jupiter.api.BeforeAll;
|
||||
import org.junit.jupiter.api.BeforeEach;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
@ -62,7 +62,7 @@ public class LargeMessageInterruptTest extends SoakTestBase {
|
|||
File serverLocation = getFileServerLocation(SERVER_NAME_0);
|
||||
deleteDirectory(serverLocation);
|
||||
|
||||
HelperCreate cliCreateServer = new HelperCreate();
|
||||
HelperCreate cliCreateServer = helperCreate();
|
||||
cliCreateServer.setRole("amq").setUser("artemis").setPassword("artemis").setAllowAnonymous(true).setNoWeb(false).setArtemisInstance(serverLocation).
|
||||
setConfiguration("./src/main/resources/servers/interruptlm");
|
||||
cliCreateServer.setArgs("--java-options", "-Djava.rmi.server.hostname=localhost", "--clustered", "--static-cluster", "tcp://localhost:61716", "--queues", "ClusteredLargeMessageInterruptTest", "--name", "lmbroker1");
|
||||
|
|
|
@ -31,7 +31,7 @@ import org.apache.activemq.artemis.api.core.management.SimpleManagement;
|
|||
import org.apache.activemq.artemis.core.protocol.mqtt.MQTTUtil;
|
||||
import org.apache.activemq.artemis.tests.soak.SoakTestBase;
|
||||
import org.apache.activemq.artemis.utils.Wait;
|
||||
import org.apache.activemq.artemis.utils.cli.helper.HelperCreate;
|
||||
import org.apache.activemq.artemis.cli.commands.helper.HelperCreate;
|
||||
import org.eclipse.paho.mqttv5.client.IMqttToken;
|
||||
import org.eclipse.paho.mqttv5.client.MqttCallback;
|
||||
import org.eclipse.paho.mqttv5.client.MqttClient;
|
||||
|
@ -60,7 +60,7 @@ public class MQTT5SoakTest extends SoakTestBase {
|
|||
File serverLocation = getFileServerLocation(SERVER_NAME_0);
|
||||
deleteDirectory(serverLocation);
|
||||
|
||||
HelperCreate cliCreateServer = new HelperCreate();
|
||||
HelperCreate cliCreateServer = helperCreate();
|
||||
cliCreateServer.setRole("amq").setUser("artemis").setPassword("artemis").setAllowAnonymous(true).setNoWeb(false).setArtemisInstance(serverLocation);
|
||||
cliCreateServer.setArgs("--addresses", "MQTT_SOAK");
|
||||
cliCreateServer.createServer();
|
||||
|
|
|
@ -41,13 +41,13 @@ import java.util.concurrent.TimeUnit;
|
|||
import java.util.concurrent.atomic.AtomicBoolean;
|
||||
import java.util.concurrent.atomic.AtomicInteger;
|
||||
|
||||
import org.apache.activemq.artemis.cli.commands.helper.HelperCreate;
|
||||
import org.apache.activemq.artemis.tests.extensions.parameterized.ParameterizedTestExtension;
|
||||
import org.apache.activemq.artemis.tests.extensions.parameterized.Parameters;
|
||||
import org.apache.activemq.artemis.tests.soak.SoakTestBase;
|
||||
import org.apache.activemq.artemis.tests.util.CFUtil;
|
||||
import org.apache.activemq.artemis.utils.SpawnedVMSupport;
|
||||
import org.apache.activemq.artemis.utils.TestParameters;
|
||||
import org.apache.activemq.artemis.utils.cli.helper.HelperCreate;
|
||||
import org.junit.jupiter.api.BeforeAll;
|
||||
import org.junit.jupiter.api.BeforeEach;
|
||||
import org.junit.jupiter.api.TestTemplate;
|
||||
|
@ -76,7 +76,7 @@ public class OWLeakTest extends SoakTestBase {
|
|||
File serverLocation = getFileServerLocation(SERVER_NAME_0);
|
||||
deleteDirectory(serverLocation);
|
||||
|
||||
HelperCreate cliCreateServer = new HelperCreate();
|
||||
HelperCreate cliCreateServer = helperCreate();
|
||||
cliCreateServer.setRole("amq").setUser("admin").setPassword("admin").setAllowAnonymous(true).setNoWeb(false).setArtemisInstance(serverLocation);
|
||||
cliCreateServer.createServer();
|
||||
}
|
||||
|
|
|
@ -41,7 +41,7 @@ import org.apache.activemq.artemis.tests.extensions.parameterized.Parameters;
|
|||
import org.apache.activemq.artemis.tests.soak.SoakTestBase;
|
||||
import org.apache.activemq.artemis.tests.util.CFUtil;
|
||||
import org.apache.activemq.artemis.utils.TestParameters;
|
||||
import org.apache.activemq.artemis.utils.cli.helper.HelperCreate;
|
||||
import org.apache.activemq.artemis.cli.commands.helper.HelperCreate;
|
||||
import org.junit.jupiter.api.BeforeAll;
|
||||
import org.junit.jupiter.api.BeforeEach;
|
||||
import org.junit.jupiter.api.TestTemplate;
|
||||
|
@ -87,7 +87,7 @@ public class FlowControlPagingTest extends SoakTestBase {
|
|||
File serverLocation = getFileServerLocation(SERVER_NAME_0);
|
||||
deleteDirectory(serverLocation);
|
||||
|
||||
HelperCreate cliCreateServer = new HelperCreate();
|
||||
HelperCreate cliCreateServer = helperCreate();
|
||||
cliCreateServer.setRole("amq").setUser("admin").setPassword("admin").setAllowAnonymous(true).setNoWeb(false).setArtemisInstance(serverLocation);
|
||||
// some limited memory to make it more likely to fail
|
||||
cliCreateServer.setArgs("--java-memory", "512M");
|
||||
|
|
|
@ -43,7 +43,7 @@ import org.apache.activemq.artemis.tests.soak.SoakTestBase;
|
|||
import org.apache.activemq.artemis.tests.util.CFUtil;
|
||||
import org.apache.activemq.artemis.utils.ReusableLatch;
|
||||
import org.apache.activemq.artemis.utils.TestParameters;
|
||||
import org.apache.activemq.artemis.utils.cli.helper.HelperCreate;
|
||||
import org.apache.activemq.artemis.cli.commands.helper.HelperCreate;
|
||||
import org.junit.jupiter.api.BeforeAll;
|
||||
import org.junit.jupiter.api.BeforeEach;
|
||||
import org.junit.jupiter.api.TestTemplate;
|
||||
|
@ -89,7 +89,7 @@ public class HorizontalPagingTest extends SoakTestBase {
|
|||
File serverLocation = getFileServerLocation(SERVER_NAME_0);
|
||||
deleteDirectory(serverLocation);
|
||||
|
||||
HelperCreate cliCreateServer = new HelperCreate();
|
||||
HelperCreate cliCreateServer = helperCreate();
|
||||
cliCreateServer.setRole("amq").setUser("admin").setPassword("admin").setAllowAnonymous(true).setNoWeb(false).setArtemisInstance(serverLocation);
|
||||
// some limited memory to make it more likely to fail
|
||||
cliCreateServer.setArgs("--java-memory", "2g");
|
||||
|
|
|
@ -46,7 +46,7 @@ import org.apache.activemq.artemis.tests.util.CFUtil;
|
|||
import org.apache.activemq.artemis.utils.RandomUtil;
|
||||
import org.apache.activemq.artemis.utils.SpawnedVMSupport;
|
||||
import org.apache.activemq.artemis.utils.Wait;
|
||||
import org.apache.activemq.artemis.utils.cli.helper.HelperCreate;
|
||||
import org.apache.activemq.artemis.cli.commands.helper.HelperCreate;
|
||||
import org.junit.jupiter.api.BeforeAll;
|
||||
import org.junit.jupiter.api.BeforeEach;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
@ -68,7 +68,7 @@ public class M_and_M_FactoryTest extends SoakTestBase {
|
|||
File serverLocation = getFileServerLocation(SERVER_NAME_0);
|
||||
deleteDirectory(serverLocation);
|
||||
|
||||
HelperCreate cliCreateServer = new HelperCreate();
|
||||
HelperCreate cliCreateServer = helperCreate();
|
||||
cliCreateServer.setUser("admin").setPassword("admin").setAllowAnonymous(true).setNoWeb(false).setArtemisInstance(serverLocation);
|
||||
cliCreateServer.setConfiguration("./src/main/resources/servers/mmfactory");
|
||||
cliCreateServer.setArgs("--java-options", "-Djava.rmi.server.hostname=localhost -Dcom.sun.management.jmxremote=true -Dcom.sun.management.jmxremote.port=11099 -Dcom.sun.management.jmxremote.rmi.port=11098 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false");
|
||||
|
|
|
@ -40,12 +40,12 @@ import java.util.concurrent.Executors;
|
|||
import java.util.concurrent.TimeUnit;
|
||||
import java.util.concurrent.atomic.AtomicInteger;
|
||||
|
||||
import org.apache.activemq.artemis.cli.commands.helper.HelperCreate;
|
||||
import org.apache.activemq.artemis.tests.extensions.parameterized.ParameterizedTestExtension;
|
||||
import org.apache.activemq.artemis.tests.extensions.parameterized.Parameters;
|
||||
import org.apache.activemq.artemis.tests.soak.SoakTestBase;
|
||||
import org.apache.activemq.artemis.tests.util.CFUtil;
|
||||
import org.apache.activemq.artemis.utils.TestParameters;
|
||||
import org.apache.activemq.artemis.utils.cli.helper.HelperCreate;
|
||||
import org.junit.jupiter.api.BeforeAll;
|
||||
import org.junit.jupiter.api.BeforeEach;
|
||||
import org.junit.jupiter.api.TestTemplate;
|
||||
|
@ -91,7 +91,7 @@ public class SubscriptionPagingTest extends SoakTestBase {
|
|||
File serverLocation = getFileServerLocation(SERVER_NAME_0);
|
||||
deleteDirectory(serverLocation);
|
||||
|
||||
HelperCreate cliCreateServer = new HelperCreate();
|
||||
HelperCreate cliCreateServer = helperCreate();
|
||||
cliCreateServer.setRole("amq").setUser("admin").setPassword("admin").setAllowAnonymous(true).setNoWeb(false).setArtemisInstance(serverLocation);
|
||||
// some limited memory to make it more likely to fail
|
||||
cliCreateServer.setArgs("--java-memory", "512M");
|
||||
|
|
|
@ -42,7 +42,7 @@ import org.apache.activemq.artemis.cli.commands.tools.xml.XmlDataImporter;
|
|||
import org.apache.activemq.artemis.tests.soak.SoakTestBase;
|
||||
import org.apache.activemq.artemis.tests.util.CFUtil;
|
||||
import org.apache.activemq.artemis.utils.Wait;
|
||||
import org.apache.activemq.artemis.utils.cli.helper.HelperCreate;
|
||||
import org.apache.activemq.artemis.cli.commands.helper.HelperCreate;
|
||||
import org.junit.jupiter.api.AfterEach;
|
||||
import org.junit.jupiter.api.BeforeAll;
|
||||
import org.junit.jupiter.api.BeforeEach;
|
||||
|
@ -61,7 +61,7 @@ public class ValidateExportSpeedTest extends SoakTestBase {
|
|||
File serverLocation = getFileServerLocation(SERVER_NAME_0);
|
||||
deleteDirectory(serverLocation);
|
||||
|
||||
HelperCreate cliCreateServer = new HelperCreate();
|
||||
HelperCreate cliCreateServer = helperCreate();
|
||||
cliCreateServer.setRole("amq").setUser("admin").setPassword("admin").setAllowAnonymous(true).setNoWeb(false).setArtemisInstance(serverLocation);
|
||||
cliCreateServer.setArgs("--global-max-messages", "10000", "--java-options", "-ea", "--queues", "TEST");
|
||||
cliCreateServer.createServer();
|
||||
|
|
|
@ -34,7 +34,7 @@ import java.util.HashSet;
|
|||
import org.apache.activemq.artemis.jms.client.ActiveMQConnectionFactory;
|
||||
import org.apache.activemq.artemis.tests.soak.SoakTestBase;
|
||||
import org.apache.activemq.artemis.util.ServerUtil;
|
||||
import org.apache.activemq.artemis.utils.cli.helper.HelperCreate;
|
||||
import org.apache.activemq.artemis.cli.commands.helper.HelperCreate;
|
||||
import org.apache.qpid.jms.JmsConnectionFactory;
|
||||
import org.junit.jupiter.api.AfterEach;
|
||||
import org.junit.jupiter.api.BeforeAll;
|
||||
|
@ -58,7 +58,7 @@ public class ReplicaTXCheckTest extends SoakTestBase {
|
|||
File serverLocation = getFileServerLocation(name);
|
||||
deleteDirectory(serverLocation);
|
||||
|
||||
HelperCreate cliCreateServer = new HelperCreate();
|
||||
HelperCreate cliCreateServer = helperCreate();
|
||||
cliCreateServer.setAllowAnonymous(true).setNoWeb(true).setArtemisInstance(serverLocation);
|
||||
cliCreateServer.setConfiguration("./src/main/resources/servers/" + name);
|
||||
cliCreateServer.createServer();
|
||||
|
|
|
@ -32,11 +32,11 @@ import java.util.concurrent.TimeUnit;
|
|||
import java.util.concurrent.atomic.AtomicBoolean;
|
||||
import java.util.concurrent.atomic.AtomicInteger;
|
||||
|
||||
import org.apache.activemq.artemis.cli.commands.helper.HelperCreate;
|
||||
import org.apache.activemq.artemis.jms.client.ActiveMQConnectionFactory;
|
||||
import org.apache.activemq.artemis.tests.soak.SoakTestBase;
|
||||
import org.apache.activemq.artemis.util.ServerUtil;
|
||||
import org.apache.activemq.artemis.utils.ReusableLatch;
|
||||
import org.apache.activemq.artemis.utils.cli.helper.HelperCreate;
|
||||
import org.apache.qpid.jms.JmsConnectionFactory;
|
||||
import org.junit.jupiter.api.AfterEach;
|
||||
import org.junit.jupiter.api.BeforeAll;
|
||||
|
@ -55,7 +55,7 @@ public class ReplicationFlowControlTest extends SoakTestBase {
|
|||
File serverLocation = getFileServerLocation(SERVER_NAME_0);
|
||||
deleteDirectory(serverLocation);
|
||||
|
||||
HelperCreate cliCreateServer = new HelperCreate();
|
||||
HelperCreate cliCreateServer = helperCreate();
|
||||
cliCreateServer.setAllowAnonymous(true).setNoWeb(true).setArtemisInstance(serverLocation);
|
||||
cliCreateServer.setConfiguration("./src/main/resources/servers/replicated-static0");
|
||||
cliCreateServer.createServer();
|
||||
|
@ -64,7 +64,7 @@ public class ReplicationFlowControlTest extends SoakTestBase {
|
|||
File serverLocation = getFileServerLocation(SERVER_NAME_1);
|
||||
deleteDirectory(serverLocation);
|
||||
|
||||
HelperCreate cliCreateServer = new HelperCreate();
|
||||
HelperCreate cliCreateServer = helperCreate();
|
||||
cliCreateServer.setAllowAnonymous(true).setNoWeb(true).setArtemisInstance(serverLocation);
|
||||
cliCreateServer.setConfiguration("./src/main/resources/servers/replicated-static1");
|
||||
cliCreateServer.createServer();
|
||||
|
|
|
@ -55,13 +55,13 @@ import java.util.concurrent.CountDownLatch;
|
|||
import java.util.concurrent.TimeUnit;
|
||||
import java.util.concurrent.atomic.AtomicInteger;
|
||||
|
||||
import org.apache.activemq.artemis.cli.commands.helper.HelperCreate;
|
||||
import org.apache.activemq.artemis.tests.extensions.parameterized.ParameterizedTestExtension;
|
||||
import org.apache.activemq.artemis.tests.extensions.parameterized.Parameters;
|
||||
import org.apache.activemq.artemis.tests.soak.SoakTestBase;
|
||||
import org.apache.activemq.artemis.utils.ExecuteUtil;
|
||||
import org.apache.activemq.artemis.utils.SpawnedVMSupport;
|
||||
import org.apache.activemq.artemis.utils.Wait;
|
||||
import org.apache.activemq.artemis.utils.cli.helper.HelperCreate;
|
||||
import org.apache.qpid.jms.JmsConnectionFactory;
|
||||
import org.fusesource.mqtt.client.BlockingConnection;
|
||||
import org.fusesource.mqtt.client.MQTT;
|
||||
|
@ -122,7 +122,7 @@ public class SoakReplicatedPagingTest extends SoakTestBase {
|
|||
File serverLocation = getFileServerLocation(SERVER_NAME_0);
|
||||
deleteDirectory(serverLocation);
|
||||
|
||||
HelperCreate cliCreateServer = new HelperCreate();
|
||||
HelperCreate cliCreateServer = helperCreate();
|
||||
cliCreateServer.setAllowAnonymous(true).setNoWeb(true).setArtemisInstance(serverLocation);
|
||||
cliCreateServer.setConfiguration("./src/main/resources/servers/replicated-static0");
|
||||
cliCreateServer.createServer();
|
||||
|
@ -131,7 +131,7 @@ public class SoakReplicatedPagingTest extends SoakTestBase {
|
|||
File serverLocation = getFileServerLocation(SERVER_NAME_1);
|
||||
deleteDirectory(serverLocation);
|
||||
|
||||
HelperCreate cliCreateServer = new HelperCreate();
|
||||
HelperCreate cliCreateServer = helperCreate();
|
||||
cliCreateServer.setAllowAnonymous(true).setNoWeb(true).setArtemisInstance(serverLocation);
|
||||
cliCreateServer.setConfiguration("./src/main/resources/servers/replicated-static1");
|
||||
cliCreateServer.createServer();
|
||||
|
|
|
@ -45,11 +45,11 @@ import org.apache.activemq.artemis.api.config.ActiveMQDefaultConfiguration;
|
|||
import org.apache.activemq.artemis.api.core.management.ActiveMQServerControl;
|
||||
import org.apache.activemq.artemis.api.core.management.ObjectNameBuilder;
|
||||
import org.apache.activemq.artemis.api.core.management.SimpleManagement;
|
||||
import org.apache.activemq.artemis.cli.commands.helper.HelperCreate;
|
||||
import org.apache.activemq.artemis.tests.soak.SoakTestBase;
|
||||
import org.apache.activemq.artemis.tests.util.CFUtil;
|
||||
import org.apache.activemq.artemis.utils.RandomUtil;
|
||||
import org.apache.activemq.artemis.utils.Wait;
|
||||
import org.apache.activemq.artemis.utils.cli.helper.HelperCreate;
|
||||
import org.junit.jupiter.api.BeforeAll;
|
||||
import org.junit.jupiter.api.BeforeEach;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
@ -76,7 +76,7 @@ public class LargeMessageRetentionTest extends SoakTestBase {
|
|||
File serverLocation = getFileServerLocation(SERVER_NAME_0);
|
||||
deleteDirectory(serverLocation);
|
||||
|
||||
HelperCreate cliCreateServer = new HelperCreate();
|
||||
HelperCreate cliCreateServer = helperCreate();
|
||||
cliCreateServer.setRole("amq").setUser("artemis").setPassword("artemis").setAllowAnonymous(true).setNoWeb(false);
|
||||
cliCreateServer.setAllowAnonymous(true).setNoWeb(true).setArtemisInstance(serverLocation);
|
||||
cliCreateServer.setConfiguration("./src/main/resources/servers/replay/large-message");
|
||||
|
|
|
@ -43,7 +43,7 @@ import org.apache.activemq.artemis.tests.integration.stomp.util.ClientStompFrame
|
|||
import org.apache.activemq.artemis.tests.integration.stomp.util.StompClientConnection;
|
||||
import org.apache.activemq.artemis.tests.integration.stomp.util.StompClientConnectionFactory;
|
||||
import org.apache.activemq.artemis.tests.soak.SoakTestBase;
|
||||
import org.apache.activemq.artemis.utils.cli.helper.HelperCreate;
|
||||
import org.apache.activemq.artemis.cli.commands.helper.HelperCreate;
|
||||
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
@ -69,7 +69,7 @@ public class StompSoakTest extends SoakTestBase {
|
|||
File serverLocation = getFileServerLocation(SERVER_NAME_0);
|
||||
deleteDirectory(serverLocation);
|
||||
|
||||
HelperCreate cliCreateServer = new HelperCreate();
|
||||
HelperCreate cliCreateServer = helperCreate();
|
||||
cliCreateServer.setRole("amq").setUser("admin").setPassword("admin").setAllowAnonymous(true).setNoWeb(false)
|
||||
.setArtemisInstance(serverLocation);
|
||||
// some limited memory to make it more likely to fail
|
||||
|
|
Loading…
Reference in New Issue