new-integration-tests/src/test/java/oracle/weblogic/kubernetes/ItIstioDomainInPV.java
@BeforeAll
  public static void initAll(@Namespaces(2) 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 WebLogic domain");
    assertNotNull(namespaces.get(1), "Namespace is null");
    domainNamespace = namespaces.get(1);

    // Label the operator/domain namespace with istio-injection=enabled
    Map<String, String> labelMap = new HashMap();
    labelMap.put("istio-injection", "enabled");

    assertDoesNotThrow(() -> addLabelsToNamespace(domainNamespace,labelMap));
    assertDoesNotThrow(() -> addLabelsToNamespace(opNamespace,labelMap));

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

    //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(2) 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 WebLogic domain");
    assertNotNull(namespaces.get(1), "Namespace is null");
    domainNamespace = namespaces.get(1);
    Map<String, String> labelMap = new HashMap();
    labelMap.put("istio-injection", "enabled");
    assertDoesNotThrow(() -> addLabelsToNamespace(domainNamespace,labelMap));
    assertDoesNotThrow(() -> addLabelsToNamespace(opNamespace,labelMap));
    installAndVerifyOperator(opNamespace, domainNamespace);
    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 ( 2 ) 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 WebLogic domain" ) ; assertNotNull ( namespaces . get ( 1 ) , "Namespace is null" ) ; domainNamespace = namespaces . get ( 1 ) ; Map < String , String > labelMap = new HashMap ( ) ; labelMap . put ( "istio-injection" , "enabled" ) ; assertDoesNotThrow ( ( ) -> addLabelsToNamespace ( domainNamespace , labelMap ) ) ; assertDoesNotThrow ( ( ) -> addLabelsToNamespace ( opNamespace , labelMap ) ) ; installAndVerifyOperator ( opNamespace , domainNamespace ) ; 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 .
// Label the operator/domain namespace with istio-injection=enabled // install operator and verify its running in ready state //determine if the tests are running in Kind cluster. if true use images from Kind registry