new-integration-tests/src/test/java/oracle/weblogic/kubernetes/ItScaleMiiDomainNginx.java
@BeforeAll
  public static void initAll(@Namespaces(3) List<String> namespaces) {
    logger = getLogger();
    // get a unique operator namespace
    logger.info("Get a unique namespace for operator");
    assertNotNull(namespaces.get(0), "Namespace list is null");
    opNamespace = namespaces.get(0);

    // get a unique domain namespace
    logger.info("Get a unique namespace for WebLogic domain");
    assertNotNull(namespaces.get(1), "Namespace list is null");
    domainNamespace = namespaces.get(1);

    // get a unique NGINX namespace
    logger.info("Get a unique namespace for NGINX");
    assertNotNull(namespaces.get(2), "Namespace list is null");
    String nginxNamespace = namespaces.get(2);

    // set the service account name for the operator
    opServiceAccount = opNamespace + "-sa";

    // get a free port for external REST HTTPS port
    externalRestHttpsPort = getNextFreePort(31001, 31201);

    // install and verify operator with REST API
    installAndVerifyOperator(opNamespace, opServiceAccount, true, externalRestHttpsPort, domainNamespace);

    // 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);

    // create model in image domain with multiple clusters
    createMiiDomainWithMultiClusters();

    // create ingress using host based routing
    Map<String, Integer> clusterNameMsPortMap = new HashMap<>();
    for (int i = 1; i <= NUMBER_OF_CLUSTERS; i++) {
      clusterNameMsPortMap.put(CLUSTER_NAME_PREFIX + i, MANAGED_SERVER_PORT);
    }
    logger.info("Creating ingress for domain {0} in namespace {1}", domainUid, domainNamespace);
    createIngressForDomainAndVerify(domainUid, domainNamespace, nodeportshttp, clusterNameMsPortMap);
  }
/**
   * Install operator and NGINX. Create model in image domain with multiple clusters.
   * Create ingress for the domain.
   *
   * @param namespaces list of namespaces created by the IntegrationTestWatcher by the
   *                   JUnit engine parameter resolution mechanism
   */
Install operator and NGINX. Create model in image domain with multiple clusters.
Create ingress for the domain.

@param namespaces list of namespaces created by the IntegrationTestWatcher by the
JUnit engine parameter resolution mechanism
Install operator and NGINX . Create model in image domain with multiple clusters . Create ingress for the domain . @param namespaces list of namespaces created by the IntegrationTestWatcher by the JUnit engine parameter resolution mechanism
@BeforeAll
  public static void initAll(@Namespaces(3) List<String> namespaces) {
    logger = getLogger();
    logger.info("Get a unique namespace for operator");
    assertNotNull(namespaces.get(0), "Namespace list is null");
    opNamespace = namespaces.get(0);
    logger.info("Get a unique namespace for WebLogic domain");
    assertNotNull(namespaces.get(1), "Namespace list is null");
    domainNamespace = namespaces.get(1);
    logger.info("Get a unique namespace for NGINX");
    assertNotNull(namespaces.get(2), "Namespace list is null");
    String nginxNamespace = namespaces.get(2);
    opServiceAccount = opNamespace + "-sa";
    externalRestHttpsPort = getNextFreePort(31001, 31201);
    installAndVerifyOperator(opNamespace, opServiceAccount, true, externalRestHttpsPort, domainNamespace);
    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);
    createMiiDomainWithMultiClusters();
    Map<String, Integer> clusterNameMsPortMap = new HashMap<>();
    for (int i = 1; i <= NUMBER_OF_CLUSTERS; i++) {
      clusterNameMsPortMap.put(CLUSTER_NAME_PREFIX + i, MANAGED_SERVER_PORT);
    }
    logger.info("Creating ingress for domain {0} in namespace {1}", domainUid, domainNamespace);
    createIngressForDomainAndVerify(domainUid, domainNamespace, nodeportshttp, clusterNameMsPortMap);
  }
@ BeforeAll public static void initAll ( @ Namespaces ( 3 ) List < String > namespaces ) { logger = getLogger ( ) ; logger . info ( "Get a unique namespace for operator" ) ; assertNotNull ( namespaces . get ( 0 ) , "Namespace list is null" ) ; opNamespace = namespaces . get ( 0 ) ; logger . info ( "Get a unique namespace for WebLogic domain" ) ; assertNotNull ( namespaces . get ( 1 ) , "Namespace list is null" ) ; domainNamespace = namespaces . get ( 1 ) ; logger . info ( "Get a unique namespace for NGINX" ) ; assertNotNull ( namespaces . get ( 2 ) , "Namespace list is null" ) ; String nginxNamespace = namespaces . get ( 2 ) ; opServiceAccount = opNamespace + "-sa" ; externalRestHttpsPort = getNextFreePort ( 31001 , 31201 ) ; installAndVerifyOperator ( opNamespace , opServiceAccount , true , externalRestHttpsPort , domainNamespace ) ; 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 ) ; createMiiDomainWithMultiClusters ( ) ; Map < String , Integer > clusterNameMsPortMap = new HashMap < > ( ) ; for ( int i = 1 ; i <= NUMBER_OF_CLUSTERS ; i ++ ) { clusterNameMsPortMap . put ( CLUSTER_NAME_PREFIX + i , MANAGED_SERVER_PORT ) ; } logger . info ( "Creating ingress for domain {0} in namespace {1}" , domainUid , domainNamespace ) ; createIngressForDomainAndVerify ( domainUid , domainNamespace , nodeportshttp , clusterNameMsPortMap ) ; }
Install operator and NGINX.
Install operator and NGINX .
// get a unique operator namespace // get a unique domain namespace // get a unique NGINX namespace // set the service account name for the operator // get a free port for external REST HTTPS port // install and verify operator with REST API // install and verify NGINX // create model in image domain with multiple clusters // create ingress using host based routing