new-integration-tests/src/test/java/oracle/weblogic/kubernetes/ItMiiSample.java
@Test
  @Order(6)
  @DisabledIfEnvironmentVariable(named = "SKIP_JRF_SAMPLES", matches = "true")
  @DisplayName("Test to verify MII sample JRF initial use case")
  public void testJrfInitialUseCase() {
    String dbImageName = (KIND_REPO != null
        ? KIND_REPO + DB_IMAGE_NAME.substring(TestConstants.OCR_REGISTRY.length() + 1) : DB_IMAGE_NAME);
    String jrfBaseImageName = (KIND_REPO != null
        ? KIND_REPO + JRF_BASE_IMAGE_NAME.substring(TestConstants.OCR_REGISTRY.length() + 1) : JRF_BASE_IMAGE_NAME);

    envMap.put("MODEL_IMAGE_NAME", MII_SAMPLE_JRF_IMAGE_NAME_V1);
    envMap.put("DB_IMAGE_NAME", dbImageName);
    envMap.put("DB_IMAGE_TAG", DB_IMAGE_TAG);
    envMap.put("DB_NODE_PORT", "none");
    envMap.put("BASE_IMAGE_NAME", jrfBaseImageName);
    envMap.put("BASE_IMAGE_TAG", JRF_BASE_IMAGE_TAG);
    envMap.put("POD_WAIT_TIMEOUT_SECS", "1000"); // JRF pod waits on slow machines, can take at least 650 seconds
    envMap.put("DB_NAMESPACE", dbNamespace);
    envMap.put("DB_IMAGE_PULL_SECRET", OCR_SECRET_NAME); //ocr secret
    envMap.put("INTROSPECTOR_DEADLINE_SECONDS", "600"); // introspector needs more time for JRF

    // run JRF use cases irrespective of WLS use cases fail/pass
    previousTestSuccessful = true;
    execTestScriptAndAssertSuccess(DomainType.JRF,"-db,-rcu", "DB/RCU creation failed");
    execTestScriptAndAssertSuccess(
        DomainType.JRF, 
        "-initial-image,-check-image-and-push,-initial-main",
        "Initial use case failed"
    );
  }
/**
   * Test to verify MII sample JRF initial use case.
   * Deploys a database and initializes it for RCU, 
   * uses an FMW infra base image instead of WLS 
   * base image, and uses a WDT model that's 
   * specialized for JRF, but is otherwise similar to
   * the WLS initial use case.
   * @see #testWlsInitialUseCase for more...
   */
Test to verify MII sample JRF initial use case.
Deploys a database and initializes it for RCU,
uses an FMW infra base image instead of WLS
base image, and uses a WDT model that's
specialized for JRF, but is otherwise similar to
the WLS initial use case.
@see #testWlsInitialUseCase for more
Test to verify MII sample JRF initial use case . Deploys a database and initializes it for RCU uses an FMW infra base image instead of WLS base image and uses a WDT model that ' s specialized for JRF but is otherwise similar to the WLS initial use case . @see #testWlsInitialUseCase for more
@Test
  @Order(6)
  @DisabledIfEnvironmentVariable(named = "SKIP_JRF_SAMPLES", matches = "true")
  @DisplayName("Test to verify MII sample JRF initial use case")
  public void testJrfInitialUseCase() {
    String dbImageName = (KIND_REPO != null
        ? KIND_REPO + DB_IMAGE_NAME.substring(TestConstants.OCR_REGISTRY.length() + 1) : DB_IMAGE_NAME);
    String jrfBaseImageName = (KIND_REPO != null
        ? KIND_REPO + JRF_BASE_IMAGE_NAME.substring(TestConstants.OCR_REGISTRY.length() + 1) : JRF_BASE_IMAGE_NAME);
    envMap.put("MODEL_IMAGE_NAME", MII_SAMPLE_JRF_IMAGE_NAME_V1);
    envMap.put("DB_IMAGE_NAME", dbImageName);
    envMap.put("DB_IMAGE_TAG", DB_IMAGE_TAG);
    envMap.put("DB_NODE_PORT", "none");
    envMap.put("BASE_IMAGE_NAME", jrfBaseImageName);
    envMap.put("BASE_IMAGE_TAG", JRF_BASE_IMAGE_TAG);
    envMap.put("POD_WAIT_TIMEOUT_SECS", "1000"); 
    envMap.put("DB_NAMESPACE", dbNamespace);
    envMap.put("DB_IMAGE_PULL_SECRET", OCR_SECRET_NAME); 
    envMap.put("INTROSPECTOR_DEADLINE_SECONDS", "600"); 
    previousTestSuccessful = true;
    execTestScriptAndAssertSuccess(DomainType.JRF,"-db,-rcu", "DB/RCU creation failed");
    execTestScriptAndAssertSuccess(
        DomainType.JRF, 
        "-initial-image,-check-image-and-push,-initial-main",
        "Initial use case failed"
    );
  }
@ Test @ Order ( 6 ) @ DisabledIfEnvironmentVariable ( named = "SKIP_JRF_SAMPLES" , matches = "true" ) @ DisplayName ( "Test to verify MII sample JRF initial use case" ) public void testJrfInitialUseCase ( ) { String dbImageName = ( KIND_REPO != null ? KIND_REPO + DB_IMAGE_NAME . substring ( TestConstants . OCR_REGISTRY . length ( ) + 1 ) : DB_IMAGE_NAME ) ; String jrfBaseImageName = ( KIND_REPO != null ? KIND_REPO + JRF_BASE_IMAGE_NAME . substring ( TestConstants . OCR_REGISTRY . length ( ) + 1 ) : JRF_BASE_IMAGE_NAME ) ; envMap . put ( "MODEL_IMAGE_NAME" , MII_SAMPLE_JRF_IMAGE_NAME_V1 ) ; envMap . put ( "DB_IMAGE_NAME" , dbImageName ) ; envMap . put ( "DB_IMAGE_TAG" , DB_IMAGE_TAG ) ; envMap . put ( "DB_NODE_PORT" , "none" ) ; envMap . put ( "BASE_IMAGE_NAME" , jrfBaseImageName ) ; envMap . put ( "BASE_IMAGE_TAG" , JRF_BASE_IMAGE_TAG ) ; envMap . put ( "POD_WAIT_TIMEOUT_SECS" , "1000" ) ; envMap . put ( "DB_NAMESPACE" , dbNamespace ) ; envMap . put ( "DB_IMAGE_PULL_SECRET" , OCR_SECRET_NAME ) ; envMap . put ( "INTROSPECTOR_DEADLINE_SECONDS" , "600" ) ; previousTestSuccessful = true ; execTestScriptAndAssertSuccess ( DomainType . JRF , "-db,-rcu" , "DB/RCU creation failed" ) ; execTestScriptAndAssertSuccess ( DomainType . JRF , "-initial-image,-check-image-and-push,-initial-main" , "Initial use case failed" ) ; }
Test to verify MII sample JRF initial use case.
Test to verify MII sample JRF initial use case .
// JRF pod waits on slow machines, can take at least 650 seconds //ocr secret // introspector needs more time for JRF // run JRF use cases irrespective of WLS use cases fail/pass