new-integration-tests/src/test/java/oracle/weblogic/kubernetes/ItJrfDomainInPV.java
@BeforeAll
  public static void initAll(@Namespaces(3) List<String> namespaces) {

    logger = getLogger();
    logger.info("Assign a unique namespace for DB and RCU");
    assertNotNull(namespaces.get(0), "Namespace is null");
    dbNamespace = namespaces.get(0);
    dbUrl = ORACLEDBURLPREFIX + dbNamespace + ORACLEDBSUFFIX;

    logger.info("Assign a unique namespace for operator");
    assertNotNull(namespaces.get(1), "Namespace is null");
    opNamespace = namespaces.get(1);

    logger.info("Assign a unique namespace for JRF domain");
    assertNotNull(namespaces.get(2), "Namespace is null");
    jrfDomainNamespace = namespaces.get(2);

    //determine if the tests are running in Kind cluster. if true use images from Kind registry
    if (KIND_REPO != null) {
      dbImage = KIND_REPO + DB_IMAGE_NAME.substring(OCR_REGISTRY.length() + 1)
          + ":" + DB_IMAGE_TAG;
      fmwImage = KIND_REPO + JRF_BASE_IMAGE_NAME.substring(OCR_REGISTRY.length() + 1)
          + ":" + JRF_BASE_IMAGE_TAG;
      isUseSecret = false;
    }

    logger.info("Start DB and create RCU schema for namespace: {0}, RCU prefix: {1}, "
        + "dbUrl: {2}, dbImage: {3},  fmwImage: {4} isUseSecret: {5}", dbNamespace, RCUSCHEMAPREFIX, dbUrl,
        dbImage, fmwImage, isUseSecret);
    assertDoesNotThrow(() -> DbUtils.setupDBandRCUschema(dbImage, fmwImage, RCUSCHEMAPREFIX, dbNamespace,
        0, dbUrl, isUseSecret), String.format("Failed to create RCU schema for prefix %s in the namespace %s with "
        + "dbUrl %s, isUseSecret %s", RCUSCHEMAPREFIX, dbNamespace, dbUrl, isUseSecret));

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

    logger.info("For ItJrfDomainInPV using DB image: {0}, FMW image {1}", dbImage, fmwImage);

  }
/**
   * Start DB service and create RCU schema.
   * Assigns unique namespaces for operator and domains.
   * Pull FMW image and Oracle DB image if running tests in Kind cluster.
   * Installs operator.
   *
   * @param namespaces injected by JUnit
   */
Start DB service and create RCU schema.
Assigns unique namespaces for operator and domains.
Pull FMW image and Oracle DB image if running tests in Kind cluster.
Installs operator.

@param namespaces injected by JUnit
Start DB service and create RCU schema . Assigns unique namespaces for operator and domains . Pull FMW image and Oracle DB image if running tests in Kind cluster . Installs operator . @param namespaces injected by JUnit
@BeforeAll
  public static void initAll(@Namespaces(3) List<String> namespaces) {
    logger = getLogger();
    logger.info("Assign a unique namespace for DB and RCU");
    assertNotNull(namespaces.get(0), "Namespace is null");
    dbNamespace = namespaces.get(0);
    dbUrl = ORACLEDBURLPREFIX + dbNamespace + ORACLEDBSUFFIX;
    logger.info("Assign a unique namespace for operator");
    assertNotNull(namespaces.get(1), "Namespace is null");
    opNamespace = namespaces.get(1);
    logger.info("Assign a unique namespace for JRF domain");
    assertNotNull(namespaces.get(2), "Namespace is null");
    jrfDomainNamespace = namespaces.get(2);
    if (KIND_REPO != null) {
      dbImage = KIND_REPO + DB_IMAGE_NAME.substring(OCR_REGISTRY.length() + 1)
          + ":" + DB_IMAGE_TAG;
      fmwImage = KIND_REPO + JRF_BASE_IMAGE_NAME.substring(OCR_REGISTRY.length() + 1)
          + ":" + JRF_BASE_IMAGE_TAG;
      isUseSecret = false;
    }
    logger.info("Start DB and create RCU schema for namespace: {0}, RCU prefix: {1}, "
        + "dbUrl: {2}, dbImage: {3},  fmwImage: {4} isUseSecret: {5}", dbNamespace, RCUSCHEMAPREFIX, dbUrl,
        dbImage, fmwImage, isUseSecret);
    assertDoesNotThrow(() -> DbUtils.setupDBandRCUschema(dbImage, fmwImage, RCUSCHEMAPREFIX, dbNamespace,
        0, dbUrl, isUseSecret), String.format("Failed to create RCU schema for prefix %s in the namespace %s with "
        + "dbUrl %s, isUseSecret %s", RCUSCHEMAPREFIX, dbNamespace, dbUrl, isUseSecret));
    installAndVerifyOperator(opNamespace, jrfDomainNamespace);
    logger.info("For ItJrfDomainInPV using DB image: {0}, FMW image {1}", dbImage, fmwImage);
  }
@ BeforeAll public static void initAll ( @ Namespaces ( 3 ) List < String > namespaces ) { logger = getLogger ( ) ; logger . info ( "Assign a unique namespace for DB and RCU" ) ; assertNotNull ( namespaces . get ( 0 ) , "Namespace is null" ) ; dbNamespace = namespaces . get ( 0 ) ; dbUrl = ORACLEDBURLPREFIX + dbNamespace + ORACLEDBSUFFIX ; logger . info ( "Assign a unique namespace for operator" ) ; assertNotNull ( namespaces . get ( 1 ) , "Namespace is null" ) ; opNamespace = namespaces . get ( 1 ) ; logger . info ( "Assign a unique namespace for JRF domain" ) ; assertNotNull ( namespaces . get ( 2 ) , "Namespace is null" ) ; jrfDomainNamespace = namespaces . get ( 2 ) ; if ( KIND_REPO != null ) { dbImage = KIND_REPO + DB_IMAGE_NAME . substring ( OCR_REGISTRY . length ( ) + 1 ) + ":" + DB_IMAGE_TAG ; fmwImage = KIND_REPO + JRF_BASE_IMAGE_NAME . substring ( OCR_REGISTRY . length ( ) + 1 ) + ":" + JRF_BASE_IMAGE_TAG ; isUseSecret = false ; } logger . info ( "Start DB and create RCU schema for namespace: {0}, RCU prefix: {1}, " + "dbUrl: {2}, dbImage: {3},  fmwImage: {4} isUseSecret: {5}" , dbNamespace , RCUSCHEMAPREFIX , dbUrl , dbImage , fmwImage , isUseSecret ) ; assertDoesNotThrow ( ( ) -> DbUtils . setupDBandRCUschema ( dbImage , fmwImage , RCUSCHEMAPREFIX , dbNamespace , 0 , dbUrl , isUseSecret ) , String . format ( "Failed to create RCU schema for prefix %s in the namespace %s with " + "dbUrl %s, isUseSecret %s" , RCUSCHEMAPREFIX , dbNamespace , dbUrl , isUseSecret ) ) ; installAndVerifyOperator ( opNamespace , jrfDomainNamespace ) ; logger . info ( "For ItJrfDomainInPV using DB image: {0}, FMW image {1}" , dbImage , fmwImage ) ; }
Start DB service and create RCU schema.
Start DB service and create RCU schema .
//determine if the tests are running in Kind cluster. if true use images from Kind registry // install operator and verify its running in ready state