new-integration-tests/src/test/java/oracle/weblogic/kubernetes/ItIstioMiiDomain.java
@BeforeAll
  public static void initAll(@Namespaces(2) List<String> namespaces) {
    logger = getLogger();
    // create standard, reusable retry/backoff policy
    withStandardRetryPolicy = with().pollDelay(2, SECONDS)
        .and().with().pollInterval(10, SECONDS)
        .atMost(6, MINUTES).await();

    // get a new unique opNamespace
    logger.info("Assign unique namespace for Operator");
    assertNotNull(namespaces.get(0), "Namespace list is null");
    opNamespace = namespaces.get(0);

    logger.info("Assign unique namespace for Domain");
    assertNotNull(namespaces.get(1), "Namespace list is null");
    domainNamespace = namespaces.get(1);

    // Label the domain/operator 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 and verify operator
    installAndVerifyOperator(opNamespace, domainNamespace);
  }
/**
   * Install Operator.
   * @param namespaces list of namespaces created by the IntegrationTestWatcher
  */
Install Operator.
@param namespaces list of namespaces created by the IntegrationTestWatcher
Install Operator . @param namespaces list of namespaces created by the IntegrationTestWatcher
@BeforeAll
  public static void initAll(@Namespaces(2) List<String> namespaces) {
    logger = getLogger();
    withStandardRetryPolicy = with().pollDelay(2, SECONDS)
        .and().with().pollInterval(10, SECONDS)
        .atMost(6, MINUTES).await();
    logger.info("Assign unique namespace for Operator");
    assertNotNull(namespaces.get(0), "Namespace list is null");
    opNamespace = namespaces.get(0);
    logger.info("Assign unique namespace for Domain");
    assertNotNull(namespaces.get(1), "Namespace list 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);
  }
@ BeforeAll public static void initAll ( @ Namespaces ( 2 ) List < String > namespaces ) { logger = getLogger ( ) ; withStandardRetryPolicy = with ( ) . pollDelay ( 2 , SECONDS ) . and ( ) . with ( ) . pollInterval ( 10 , SECONDS ) . atMost ( 6 , MINUTES ) . await ( ) ; logger . info ( "Assign unique namespace for Operator" ) ; assertNotNull ( namespaces . get ( 0 ) , "Namespace list is null" ) ; opNamespace = namespaces . get ( 0 ) ; logger . info ( "Assign unique namespace for Domain" ) ; assertNotNull ( namespaces . get ( 1 ) , "Namespace list 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 ) ; }
Install Operator.
Install Operator .
// create standard, reusable retry/backoff policy // get a new unique opNamespace // Label the domain/operator namespace with istio-injection=enabled // install and verify operator