new-integration-tests/src/test/java/oracle/weblogic/kubernetes/ItMonitoringExporter.java
private void appendConfiguration() throws Exception {

    // run append
    HtmlPage page = submitConfigureForm(exporterUrl, "append", RESOURCE_DIR + "/exporter/rest_webapp.yaml");
    assertTrue(page.asText().contains("WebAppComponentRuntime"),
            "Page does not contain expected WebAppComponentRuntime configuration");
    // check previous config is there
    assertTrue(page.asText().contains("JVMRuntime"), "Page does not contain expected JVMRuntime configuration");

    String sessionAppPrometheusSearchKey =
            "wls_servlet_invocation_total_count%7Bapp%3D%22myear%22%7D%5B15s%5D";
    checkMetricsViaPrometheus(sessionAppPrometheusSearchKey, "sessmigr");
  }
/**
   * Add additional monitoring exporter configuration and verify it was applied.
   *
   * @throws Exception if test fails
   */
Add additional monitoring exporter configuration and verify it was applied.
@throws Exception if test fails
Add additional monitoring exporter configuration and verify it was applied . @throws Exception if test fails
private void appendConfiguration() throws Exception {
    HtmlPage page = submitConfigureForm(exporterUrl, "append", RESOURCE_DIR + "/exporter/rest_webapp.yaml");
    assertTrue(page.asText().contains("WebAppComponentRuntime"),
            "Page does not contain expected WebAppComponentRuntime configuration");
    assertTrue(page.asText().contains("JVMRuntime"), "Page does not contain expected JVMRuntime configuration");
    String sessionAppPrometheusSearchKey =
            "wls_servlet_invocation_total_count%7Bapp%3D%22myear%22%7D%5B15s%5D";
    checkMetricsViaPrometheus(sessionAppPrometheusSearchKey, "sessmigr");
  }
private void appendConfiguration ( ) throws Exception { HtmlPage page = submitConfigureForm ( exporterUrl , "append" , RESOURCE_DIR + "/exporter/rest_webapp.yaml" ) ; assertTrue ( page . asText ( ) . contains ( "WebAppComponentRuntime" ) , "Page does not contain expected WebAppComponentRuntime configuration" ) ; assertTrue ( page . asText ( ) . contains ( "JVMRuntime" ) , "Page does not contain expected JVMRuntime configuration" ) ; String sessionAppPrometheusSearchKey = "wls_servlet_invocation_total_count%7Bapp%3D%22myear%22%7D%5B15s%5D" ; checkMetricsViaPrometheus ( sessionAppPrometheusSearchKey , "sessmigr" ) ; }
Add additional monitoring exporter configuration and verify it was applied.
Add additional monitoring exporter configuration and verify it was applied .
// run append // check previous config is there