|
|
|
@ -40,14 +40,14 @@ public class AnalyticsServerExtension extends ExecutionListenerExtension {
|
|
|
|
|
private static final Log log = LogFactory.getLog(CarbonServerExtension.class);
|
|
|
|
|
private String executionEnvironment;
|
|
|
|
|
private AutomationContext automationContext;
|
|
|
|
|
|
|
|
|
|
private final String ANALYTICS_PORT_OFFSET = "2";
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public void initiate() throws AutomationFrameworkException {
|
|
|
|
|
try {
|
|
|
|
|
automationContext = new AutomationContext("IOT", TestUserMode.SUPER_TENANT_USER);
|
|
|
|
|
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());
|
|
|
|
|
executionEnvironment =
|
|
|
|
|