Exemplo n.º 1
0
  @BeforeClass(alwaysRun = true)
  public void init() throws Exception {
    super.init(TestUserMode.SUPER_TENANT_ADMIN);

    String loggedInSessionCookie = getSessionCookie();

    eventStreamManagerAdminServiceClient =
        configurationUtil.getEventStreamManagerAdminServiceClient(
            backendURL, loggedInSessionCookie);
    eventPublisherAdminServiceClient =
        configurationUtil.getEventPublisherAdminServiceClient(backendURL, loggedInSessionCookie);
    eventSimulatorAdminServiceClient =
        configurationUtil.getEventSimulatorAdminServiceClient(backendURL, loggedInSessionCookie);
    Thread.sleep(45000);
  }
Exemplo n.º 2
0
  @BeforeClass(alwaysRun = true)
  public void init() throws Exception {
    super.init();
    automationContext = new AutomationContext("CEP", TestUserMode.SUPER_TENANT_ADMIN);
    instanceMap = automationContext.getProductGroup().getInstanceMap();
    contextMap = new HashMap<String, AutomationContext>();

    if (instanceMap != null && instanceMap.size() > 0) {
      for (Map.Entry<String, Instance> entry : instanceMap.entrySet()) {
        String instanceKey = entry.getKey();
        contextMap.put(
            instanceKey,
            new AutomationContext("CEP", instanceKey, TestUserMode.SUPER_TENANT_ADMIN));
        log.info(instanceKey);
      }
    }
    log.info("Cluster instance loading");
  }
Exemplo n.º 3
0
 @AfterClass(alwaysRun = true)
 public void destroy() throws Exception {
   super.cleanup();
 }