new-integration-tests/src/test/java/oracle/weblogic/kubernetes/ItDomainInPV.java
@BeforeAll
  public static void initAll(@Namespaces(4) List<String> namespaces) {
    logger = getLogger();
    logger.info("Assign a unique namespace for operator");
    assertNotNull(namespaces.get(0), "Namespace is null");
    opNamespace = namespaces.get(0);
    logger.info("Assign a unique namespace for WLST WebLogic domain");
    assertNotNull(namespaces.get(1), "Namespace is null");
    wlstDomainNamespace = namespaces.get(1);
    logger.info("Assign a unique namespace for WDT WebLogic domain");
    assertNotNull(namespaces.get(2), "Namespace is null");
    wdtDomainNamespace = namespaces.get(2);
    logger.info("Assign a unique namespace for NGINX");
    assertNotNull(namespaces.get(3), "Namespace is null");
    nginxNamespace = namespaces.get(3);

    // install operator and verify its running in ready state
    installAndVerifyOperator(opNamespace, wdtDomainNamespace, wlstDomainNamespace);

    // install and verify NGINX
    nginxHelmParams = installAndVerifyNginx(nginxNamespace, 0, 0);
    String nginxServiceName = nginxHelmParams.getReleaseName() + "-nginx-ingress-controller";
    logger.info("NGINX service name: {0}", nginxServiceName);
    nodeportshttp = getServiceNodePort(nginxNamespace, nginxServiceName, "http");
    logger.info("NGINX http node port: {0}", nodeportshttp);

    //determine if the tests are running in Kind cluster. if true use images from Kind registry
    if (KIND_REPO != null) {
      String kindRepoImage = KIND_REPO + image.substring(TestConstants.OCR_REGISTRY.length() + 1);
      logger.info("Using image {0}", kindRepoImage);
      image = kindRepoImage;
      isUseSecret = false;
    }
  }
/**
   * Assigns unique namespaces for operator and domains.
   * Pull WebLogic image if running tests in Kind cluster.
   * Installs operator.
   *
   * @param namespaces injected by JUnit
   */
Assigns unique namespaces for operator and domains.
Pull WebLogic image if running tests in Kind cluster.
Installs operator.

@param namespaces injected by JUnit
Assigns unique namespaces for operator and domains . Pull WebLogic image if running tests in Kind cluster . Installs operator . @param namespaces injected by JUnit
@BeforeAll
  public static void initAll(@Namespaces(4) List<String> namespaces) {
    logger = getLogger();
    logger.info("Assign a unique namespace for operator");
    assertNotNull(namespaces.get(0), "Namespace is null");
    opNamespace = namespaces.get(0);
    logger.info("Assign a unique namespace for WLST WebLogic domain");
    assertNotNull(namespaces.get(1), "Namespace is null");
    wlstDomainNamespace = namespaces.get(1);
    logger.info("Assign a unique namespace for WDT WebLogic domain");
    assertNotNull(namespaces.get(2), "Namespace is null");
    wdtDomainNamespace = namespaces.get(2);
    logger.info("Assign a unique namespace for NGINX");
    assertNotNull(namespaces.get(3), "Namespace is null");
    nginxNamespace = namespaces.get(3);
    installAndVerifyOperator(opNamespace, wdtDomainNamespace, wlstDomainNamespace);
    nginxHelmParams = installAndVerifyNginx(nginxNamespace, 0, 0);
    String nginxServiceName = nginxHelmParams.getReleaseName() + "-nginx-ingress-controller";
    logger.info("NGINX service name: {0}", nginxServiceName);
    nodeportshttp = getServiceNodePort(nginxNamespace, nginxServiceName, "http");
    logger.info("NGINX http node port: {0}", nodeportshttp);
    if (KIND_REPO != null) {
      String kindRepoImage = KIND_REPO + image.substring(TestConstants.OCR_REGISTRY.length() + 1);
      logger.info("Using image {0}", kindRepoImage);
      image = kindRepoImage;
      isUseSecret = false;
    }
  }
@ BeforeAll public static void initAll ( @ Namespaces ( 4 ) List < String > namespaces ) { logger = getLogger ( ) ; logger . info ( "Assign a unique namespace for operator" ) ; assertNotNull ( namespaces . get ( 0 ) , "Namespace is null" ) ; opNamespace = namespaces . get ( 0 ) ; logger . info ( "Assign a unique namespace for WLST WebLogic domain" ) ; assertNotNull ( namespaces . get ( 1 ) , "Namespace is null" ) ; wlstDomainNamespace = namespaces . get ( 1 ) ; logger . info ( "Assign a unique namespace for WDT WebLogic domain" ) ; assertNotNull ( namespaces . get ( 2 ) , "Namespace is null" ) ; wdtDomainNamespace = namespaces . get ( 2 ) ; logger . info ( "Assign a unique namespace for NGINX" ) ; assertNotNull ( namespaces . get ( 3 ) , "Namespace is null" ) ; nginxNamespace = namespaces . get ( 3 ) ; installAndVerifyOperator ( opNamespace , wdtDomainNamespace , wlstDomainNamespace ) ; nginxHelmParams = installAndVerifyNginx ( nginxNamespace , 0 , 0 ) ; String nginxServiceName = nginxHelmParams . getReleaseName ( ) + "-nginx-ingress-controller" ; logger . info ( "NGINX service name: {0}" , nginxServiceName ) ; nodeportshttp = getServiceNodePort ( nginxNamespace , nginxServiceName , "http" ) ; logger . info ( "NGINX http node port: {0}" , nodeportshttp ) ; if ( KIND_REPO != null ) { String kindRepoImage = KIND_REPO + image . substring ( TestConstants . OCR_REGISTRY . length ( ) + 1 ) ; logger . info ( "Using image {0}" , kindRepoImage ) ; image = kindRepoImage ; isUseSecret = false ; } }
Assigns unique namespaces for operator and domains.
Assigns unique namespaces for operator and domains .
// install operator and verify its running in ready state // install and verify NGINX //determine if the tests are running in Kind cluster. if true use images from Kind registry