integration-tests/src/test/java/oracle/kubernetes/operator/ItMonitoringExporter.java
private void test01_CheckMetricsViaPrometheus() throws Exception {
    Assumptions.assumeTrue(FULLTEST);
    String testMethodName = new Object() {
    }.getClass().getEnclosingMethod().getName();
    logTestBegin(testMethodName);
    boolean testCompletedSuccessfully = false;
    assertTrue(checkMetricsViaPrometheus(testappPrometheusSearchKey, "httpsessionreptestapp"),
        "prometheus does not contain the expected metrics for httpsessionreptestapp");
    testCompletedSuccessfully = true;
    LoggerHelper.getLocal().log(Level.INFO, "SUCCESS - " + testMethodName);
  }
/**
   * Check that configuration can be reviewed via Prometheus.
   *
   * @throws Exception if test fails
   */
Check that configuration can be reviewed via Prometheus.
@throws Exception if test fails
Check that configuration can be reviewed via Prometheus . @throws Exception if test fails
private void test01_CheckMetricsViaPrometheus() throws Exception {
    Assumptions.assumeTrue(FULLTEST);
    String testMethodName = new Object() {
    }.getClass().getEnclosingMethod().getName();
    logTestBegin(testMethodName);
    boolean testCompletedSuccessfully = false;
    assertTrue(checkMetricsViaPrometheus(testappPrometheusSearchKey, "httpsessionreptestapp"),
        "prometheus does not contain the expected metrics for httpsessionreptestapp");
    testCompletedSuccessfully = true;
    LoggerHelper.getLocal().log(Level.INFO, "SUCCESS - " + testMethodName);
  }
private void test01_CheckMetricsViaPrometheus ( ) throws Exception { Assumptions . assumeTrue ( FULLTEST ) ; String testMethodName = new Object ( ) { } . getClass ( ) . getEnclosingMethod ( ) . getName ( ) ; logTestBegin ( testMethodName ) ; boolean testCompletedSuccessfully = false ; assertTrue ( checkMetricsViaPrometheus ( testappPrometheusSearchKey , "httpsessionreptestapp" ) , "prometheus does not contain the expected metrics for httpsessionreptestapp" ) ; testCompletedSuccessfully = true ; LoggerHelper . getLocal ( ) . log ( Level . INFO , "SUCCESS - " + testMethodName ) ; }
Check that configuration can be reviewed via Prometheus.
Check that configuration can be reviewed via Prometheus .