|
|
@ -40,14 +40,14 @@ public class AnalyticsServerExtension extends ExecutionListenerExtension {
|
|
|
|
private static final Log log = LogFactory.getLog(CarbonServerExtension.class);
|
|
|
|
private static final Log log = LogFactory.getLog(CarbonServerExtension.class);
|
|
|
|
private String executionEnvironment;
|
|
|
|
private String executionEnvironment;
|
|
|
|
private AutomationContext automationContext;
|
|
|
|
private AutomationContext automationContext;
|
|
|
|
|
|
|
|
private final String ANALYTICS_PORT_OFFSET = "2";
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public void initiate() throws AutomationFrameworkException {
|
|
|
|
public void initiate() throws AutomationFrameworkException {
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
automationContext = new AutomationContext("IOT", TestUserMode.SUPER_TENANT_USER);
|
|
|
|
automationContext = new AutomationContext("IOT", TestUserMode.SUPER_TENANT_USER);
|
|
|
|
if(getParameters().get(ExtensionConstants.SERVER_STARTUP_PORT_OFFSET_COMMAND) == null) {
|
|
|
|
if(getParameters().get(ExtensionConstants.SERVER_STARTUP_PORT_OFFSET_COMMAND) == null) {
|
|
|
|
getParameters().put(ExtensionConstants.SERVER_STARTUP_PORT_OFFSET_COMMAND, "2");
|
|
|
|
getParameters().put(ExtensionConstants.SERVER_STARTUP_PORT_OFFSET_COMMAND, ANALYTICS_PORT_OFFSET);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
serverManager = new CustomTestServerManager(getAutomationContext(), null, getParameters());
|
|
|
|
serverManager = new CustomTestServerManager(getAutomationContext(), null, getParameters());
|
|
|
|
executionEnvironment =
|
|
|
|
executionEnvironment =
|
|
|
|