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

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

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

    logger.info("Creating unique namespace for Domain");
    assertNotNull(namespaces.get(2), "Namespace list is null");
    domain2Namespace = namespaces.get(2);

    // Now that we got the namespaces for both the domains, we need to update the model properties
    // file with the namespaces. For cross domain transaction to work, we need to have the externalDNSName
    // set in the config file. Cannot set this after the domain is up since a server restart is
    // required for this to take effect. So, copying the property file to RESULT_ROOT and updating the
    // property file
    updatePropertyFile();

    // install and verify operator
    installAndVerifyOperator(opNamespace, domain1Namespace, domain2Namespace);

  }
/**
   * Install Operator.
   * @param namespaces list of namespaces created by the IntegrationTestWatcher by the
   *     JUnit engine parameter resolution mechanism
   */
Install Operator.
@param namespaces list of namespaces created by the IntegrationTestWatcher by the
JUnit engine parameter resolution mechanism
Install Operator . @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();
    withStandardRetryPolicy = with().pollDelay(2, SECONDS)
        .and().with().pollInterval(10, SECONDS)
        .atMost(5, MINUTES).await();
    logger.info("Creating unique namespace for Operator");
    assertNotNull(namespaces.get(0), "Namespace list is null");
    opNamespace = namespaces.get(0);
    logger.info("Creating unique namespace for Domain");
    assertNotNull(namespaces.get(1), "Namespace list is null");
    domain1Namespace = namespaces.get(1);
    logger.info("Creating unique namespace for Domain");
    assertNotNull(namespaces.get(2), "Namespace list is null");
    domain2Namespace = namespaces.get(2);
    updatePropertyFile();
    installAndVerifyOperator(opNamespace, domain1Namespace, domain2Namespace);
  }
@ BeforeAll public static void initAll ( @ Namespaces ( 3 ) List < String > namespaces ) { logger = getLogger ( ) ; withStandardRetryPolicy = with ( ) . pollDelay ( 2 , SECONDS ) . and ( ) . with ( ) . pollInterval ( 10 , SECONDS ) . atMost ( 5 , MINUTES ) . await ( ) ; logger . info ( "Creating unique namespace for Operator" ) ; assertNotNull ( namespaces . get ( 0 ) , "Namespace list is null" ) ; opNamespace = namespaces . get ( 0 ) ; logger . info ( "Creating unique namespace for Domain" ) ; assertNotNull ( namespaces . get ( 1 ) , "Namespace list is null" ) ; domain1Namespace = namespaces . get ( 1 ) ; logger . info ( "Creating unique namespace for Domain" ) ; assertNotNull ( namespaces . get ( 2 ) , "Namespace list is null" ) ; domain2Namespace = namespaces . get ( 2 ) ; updatePropertyFile ( ) ; installAndVerifyOperator ( opNamespace , domain1Namespace , domain2Namespace ) ; }
Install Operator.
Install Operator .
// create standard, reusable retry/backoff policy // get a new unique opNamespace // Now that we got the namespaces for both the domains, we need to update the model properties // file with the namespaces. For cross domain transaction to work, we need to have the externalDNSName // set in the config file. Cannot set this after the domain is up since a server restart is // required for this to take effect. So, copying the property file to RESULT_ROOT and updating the // property file // install and verify operator