integration-tests/src/test/java/oracle/kubernetes/operator/ItMonitoringExporter.java
private void test19_ReplaceMetricsDomainQualifierTrueConfiguration() throws Exception {
    Assumptions.assumeTrue(FULLTEST);
    String testMethodName = new Object() {
    }.getClass().getEnclosingMethod().getName();
    logTestBegin(testMethodName);
    HtmlPage page =
        submitConfigureForm(exporterUrl, "replace", configPath + "/rest_domainqualtrue.yml");
    assertNotNull(page);
    LoggerHelper.getLocal().log(Level.INFO, "page - " + page.asText());
    assertTrue(page.asText().contains("domainQualifier"));

    String searchKey = "weblogic_servlet_executionTimeAverage%7Bapp%3D%22httpsessionreptestapp%22%7D%5B15s%5D";
    assertTrue(checkMetricsViaPrometheus(searchKey, "\"domain\":\"" + domain.getDomainUid() + "\""));

    LoggerHelper.getLocal().log(Level.INFO, "SUCCESS - " + testMethodName);
  }
/**
   * Test to replace monitoring exporter configuration with configuration file with
   * domainQualifier=true.
   *
   * @throws Exception if failed to apply configuration or check the expected values.
   */
Test to replace monitoring exporter configuration with configuration file with
domainQualifier=true.

@throws Exception if failed to apply configuration or check the expected values.
Test to replace monitoring exporter configuration with configuration file with domainQualifier = true . @throws Exception if failed to apply configuration or check the expected values .
private void test19_ReplaceMetricsDomainQualifierTrueConfiguration() throws Exception {
    Assumptions.assumeTrue(FULLTEST);
    String testMethodName = new Object() {
    }.getClass().getEnclosingMethod().getName();
    logTestBegin(testMethodName);
    HtmlPage page =
        submitConfigureForm(exporterUrl, "replace", configPath + "/rest_domainqualtrue.yml");
    assertNotNull(page);
    LoggerHelper.getLocal().log(Level.INFO, "page - " + page.asText());
    assertTrue(page.asText().contains("domainQualifier"));
    String searchKey = "weblogic_servlet_executionTimeAverage%7Bapp%3D%22httpsessionreptestapp%22%7D%5B15s%5D";
    assertTrue(checkMetricsViaPrometheus(searchKey, "\"domain\":\"" + domain.getDomainUid() + "\""));
    LoggerHelper.getLocal().log(Level.INFO, "SUCCESS - " + testMethodName);
  }
private void test19_ReplaceMetricsDomainQualifierTrueConfiguration ( ) throws Exception { Assumptions . assumeTrue ( FULLTEST ) ; String testMethodName = new Object ( ) { } . getClass ( ) . getEnclosingMethod ( ) . getName ( ) ; logTestBegin ( testMethodName ) ; HtmlPage page = submitConfigureForm ( exporterUrl , "replace" , configPath + "/rest_domainqualtrue.yml" ) ; assertNotNull ( page ) ; LoggerHelper . getLocal ( ) . log ( Level . INFO , "page - " + page . asText ( ) ) ; assertTrue ( page . asText ( ) . contains ( "domainQualifier" ) ) ; String searchKey = "weblogic_servlet_executionTimeAverage%7Bapp%3D%22httpsessionreptestapp%22%7D%5B15s%5D" ; assertTrue ( checkMetricsViaPrometheus ( searchKey , "\"domain\":\"" + domain . getDomainUid ( ) + "\"" ) ) ; LoggerHelper . getLocal ( ) . log ( Level . INFO , "SUCCESS - " + testMethodName ) ; }
Test to replace monitoring exporter configuration with configuration file with
 domainQualifier=true.
Test to replace monitoring exporter configuration with configuration file with domainQualifier = true .