new-integration-tests/src/test/java/oracle/weblogic/kubernetes/ItIntrospectVersion.java
@BeforeAll
  public static void initAll(@Namespaces(3) 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 Introspect Version WebLogic domain");
    assertNotNull(namespaces.get(1), "Namespace is null");
    introDomainNamespace = namespaces.get(1);
    logger.info("Assign a unique namespace for NGINX");
    assertNotNull(namespaces.get(2), "Namespace is null");
    nginxNamespace = namespaces.get(2);

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

    // get a free node port for NGINX
    nodeportshttp = getNextFreePort(30305, 30405);
    int nodeportshttps = getNextFreePort(30443, 30543);

    // install and verify NGINX
    nginxHelmParams = installAndVerifyNginx(nginxNamespace, nodeportshttp, nodeportshttps);

    //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;
    } else {
      // create pull secrets for WebLogic image when running in non Kind Kubernetes cluster
      createOCRRepoSecret(introDomainNamespace);
    }

    // build the clusterview application
    Path distDir = BuildApplication.buildApplication(Paths.get(APP_DIR, "clusterview"), null, null,
        "dist", introDomainNamespace);
    assertTrue(Paths.get(distDir.toString(),
        "clusterview.war").toFile().exists(),
        "Application archive is not available");
    clusterViewAppPath = Paths.get(distDir.toString(), "clusterview.war");

  }
/**
   * 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(3) 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 Introspect Version WebLogic domain");
    assertNotNull(namespaces.get(1), "Namespace is null");
    introDomainNamespace = namespaces.get(1);
    logger.info("Assign a unique namespace for NGINX");
    assertNotNull(namespaces.get(2), "Namespace is null");
    nginxNamespace = namespaces.get(2);
    installAndVerifyOperator(opNamespace, introDomainNamespace);
    nodeportshttp = getNextFreePort(30305, 30405);
    int nodeportshttps = getNextFreePort(30443, 30543);
    nginxHelmParams = installAndVerifyNginx(nginxNamespace, nodeportshttp, nodeportshttps);
    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;
    } else {
      createOCRRepoSecret(introDomainNamespace);
    }
    Path distDir = BuildApplication.buildApplication(Paths.get(APP_DIR, "clusterview"), null, null,
        "dist", introDomainNamespace);
    assertTrue(Paths.get(distDir.toString(),
        "clusterview.war").toFile().exists(),
        "Application archive is not available");
    clusterViewAppPath = Paths.get(distDir.toString(), "clusterview.war");
  }
@ BeforeAll public static void initAll ( @ Namespaces ( 3 ) 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 Introspect Version WebLogic domain" ) ; assertNotNull ( namespaces . get ( 1 ) , "Namespace is null" ) ; introDomainNamespace = namespaces . get ( 1 ) ; logger . info ( "Assign a unique namespace for NGINX" ) ; assertNotNull ( namespaces . get ( 2 ) , "Namespace is null" ) ; nginxNamespace = namespaces . get ( 2 ) ; installAndVerifyOperator ( opNamespace , introDomainNamespace ) ; nodeportshttp = getNextFreePort ( 30305 , 30405 ) ; int nodeportshttps = getNextFreePort ( 30443 , 30543 ) ; nginxHelmParams = installAndVerifyNginx ( nginxNamespace , nodeportshttp , nodeportshttps ) ; 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 ; } else { createOCRRepoSecret ( introDomainNamespace ) ; } Path distDir = BuildApplication . buildApplication ( Paths . get ( APP_DIR , "clusterview" ) , null , null , "dist" , introDomainNamespace ) ; assertTrue ( Paths . get ( distDir . toString ( ) , "clusterview.war" ) . toFile ( ) . exists ( ) , "Application archive is not available" ) ; clusterViewAppPath = Paths . get ( distDir . toString ( ) , "clusterview.war" ) ; }
Assigns unique namespaces for operator and domains.
Assigns unique namespaces for operator and domains .
// install operator and verify its running in ready state // get a free node port for NGINX // install and verify NGINX //determine if the tests are running in Kind cluster. if true use images from Kind registry // create pull secrets for WebLogic image when running in non Kind Kubernetes cluster // build the clusterview application