示例#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);
  }
示例#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");
  }
示例#3
0
 @AfterClass(alwaysRun = true)
 public void destroy() throws Exception {
   super.cleanup();
 }