new-integration-tests/src/test/java/oracle/weblogic/kubernetes/ItOperatorRestartWhenPodRoll.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 namespaces
    assertNotNull(namespaces.get(0), String.format("Namespace namespaces.get(0) is null"));
    opNamespace = namespaces.get(0);

    assertNotNull(namespaces.get(1), String.format("Namespace namespaces.get(1) is null"));
    domainNamespace = namespaces.get(1);

    // install the operator
    logger.info("Install an operator in namespace {0}, managing namespace {1}",
        opNamespace, domainNamespace);
    installAndVerifyOperator(opNamespace, domainNamespace);

    // create a domain resource
    logger.info("Create model-in-image domain {0} in namespace {1}, and wait until it comes up",
        domainUid, domainNamespace);
    createMiiDomainAndVerify(
        domainNamespace,
        domainUid,
        MII_BASIC_IMAGE_NAME + ":" + MII_BASIC_IMAGE_TAG,
        adminServerPodName,
        managedServerPrefix,
        replicaCount);
  }
/**
   * Perform initialization for all the tests in this class.
   * Set up the necessary namespaces, install the operator in the first namespace, and
   * create a domain in the second namespace using the pre-created basic MII image.
   *
   * @param namespaces list of namespaces created by the IntegrationTestWatcher by the
   *           JUnit engine parameter resolution mechanism
   */
Perform initialization for all the tests in this class.
Set up the necessary namespaces, install the operator in the first namespace, and
create a domain in the second namespace using the pre-created basic MII image.

@param namespaces list of namespaces created by the IntegrationTestWatcher by the
JUnit engine parameter resolution mechanism
Perform initialization for all the tests in this class . Set up the necessary namespaces install the operator in the first namespace and create a domain in the second namespace using the pre - created basic MII image . @param namespaces list of namespaces created by the IntegrationTestWatcher by the JUnit engine parameter resolution mechanism
@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();
    assertNotNull(namespaces.get(0), String.format("Namespace namespaces.get(0) is null"));
    opNamespace = namespaces.get(0);
    assertNotNull(namespaces.get(1), String.format("Namespace namespaces.get(1) is null"));
    domainNamespace = namespaces.get(1);
    logger.info("Install an operator in namespace {0}, managing namespace {1}",
        opNamespace, domainNamespace);
    installAndVerifyOperator(opNamespace, domainNamespace);
    logger.info("Create model-in-image domain {0} in namespace {1}, and wait until it comes up",
        domainUid, domainNamespace);
    createMiiDomainAndVerify(
        domainNamespace,
        domainUid,
        MII_BASIC_IMAGE_NAME + ":" + MII_BASIC_IMAGE_TAG,
        adminServerPodName,
        managedServerPrefix,
        replicaCount);
  }
@ 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 ( ) ; assertNotNull ( namespaces . get ( 0 ) , String . format ( "Namespace namespaces.get(0) is null" ) ) ; opNamespace = namespaces . get ( 0 ) ; assertNotNull ( namespaces . get ( 1 ) , String . format ( "Namespace namespaces.get(1) is null" ) ) ; domainNamespace = namespaces . get ( 1 ) ; logger . info ( "Install an operator in namespace {0}, managing namespace {1}" , opNamespace , domainNamespace ) ; installAndVerifyOperator ( opNamespace , domainNamespace ) ; logger . info ( "Create model-in-image domain {0} in namespace {1}, and wait until it comes up" , domainUid , domainNamespace ) ; createMiiDomainAndVerify ( domainNamespace , domainUid , MII_BASIC_IMAGE_NAME + ":" + MII_BASIC_IMAGE_TAG , adminServerPodName , managedServerPrefix , replicaCount ) ; }
Perform initialization for all the tests in this class.
Perform initialization for all the tests in this class .
// create standard, reusable retry/backoff policy // get namespaces // install the operator // create a domain resource