new-integration-tests/src/test/java/oracle/weblogic/kubernetes/ItMonitoringExporter.java
@Test
  @DisplayName("Test Basic Functionality of Monitoring Exporter.")
  public void testBasicFunctionality() throws Exception {

    installPrometheusGrafana(PROMETHEUS_CHART_VERSION, GRAFANA_CHART_VERSION,
            domain1Namespace,
            domain1Uid);

    //verify access to Monitoring Exporter
    verifyMonExpAppAccessThroughNginx(ingressHost1List.get(0),1);

    try {
      logger.info("Testing replace configuration");
      replaceConfiguration();
      logger.info("Testing append configuration");
      appendConfiguration();
      logger.info("Testing replace One Attribute Value AsArray configuration");
      replaceOneAttributeValueAsArrayConfiguration();
      logger.info("Testing append One Attribute Value AsArray configuration");
      appendArrayWithOneExistedAndOneDifferentAttributeValueAsArrayConfiguration();
      logger.info("Testing replace with empty configuration");
      replaceWithEmptyConfiguration();
      logger.info("Testing append with empty configuration");
      appendWithEmptyConfiguration();
      logger.info("Testing append with invalid yaml configuration");
      appendWithNotYamlConfiguration();
      logger.info("Testing replace with invalid yaml configuration");
      replaceWithNotYamlConfiguration();
      logger.info("Testing append with corrupted yaml configuration");
      appendWithCorruptedYamlConfiguration();
      logger.info("Testing replace with corrupted yaml configuration");
      replaceWithCorruptedYamlConfiguration();
      logger.info("Testing replace with dublicated values yaml configuration");
      replaceWithDublicatedValuesConfiguration();
      logger.info("Testing append with corrupted yaml configuration");
      appendWithDuplicatedValuesConfiguration();
      logger.info("Testing replace with name snake false yaml configuration");
      replaceMetricsNameSnakeCaseFalseConfiguration();
      logger.info("Testing change with no credentials configuration");
      changeConfigNoCredentials();
      logger.info("Testing change with no invalid user configuration");
      changeConfigInvalidUser();
      logger.info("Testing change with no invalid pass configuration");
      changeConfigInvalidPass();
      logger.info("Testing change with empty user configuration");
      changeConfigEmptyUser();
      logger.info("Testing change with no empty pass configuration");
      changeConfigEmptyPass();
      logger.info("Testing replace with domain qualifier configuration");
      replaceMetricsDomainQualifierTrueConfiguration();
    } finally {
      //restore configuration
      submitConfigureForm(exporterUrl, "replace", RESOURCE_DIR + "/exporter/exporter-config.yaml");
    }
  }
/**
   * Test covers end to end sample, provided in the Monitoring Exporter github project .
   * Create Prometheus, Grafana.
   * Create Model in Image with monitoring exporter.
   * Verify access to monitoring exporter WebLogic metrics via nginx.
   * Check generated monitoring exporter WebLogic metrics via Prometheus, Grafana.
   * Check basic functionality of monitoring exporter.
   */
Test covers end to end sample, provided in the Monitoring Exporter github project .
Create Prometheus, Grafana.
Create Model in Image with monitoring exporter.
Verify access to monitoring exporter WebLogic metrics via nginx.
Check generated monitoring exporter WebLogic metrics via Prometheus, Grafana.
Check basic functionality of monitoring exporter.
Test covers end to end sample provided in the Monitoring Exporter github project . Create Prometheus Grafana . Create Model in Image with monitoring exporter . Verify access to monitoring exporter WebLogic metrics via nginx . Check generated monitoring exporter WebLogic metrics via Prometheus Grafana . Check basic functionality of monitoring exporter .
@Test
  @DisplayName("Test Basic Functionality of Monitoring Exporter.")
  public void testBasicFunctionality() throws Exception {
    installPrometheusGrafana(PROMETHEUS_CHART_VERSION, GRAFANA_CHART_VERSION,
            domain1Namespace,
            domain1Uid);
    verifyMonExpAppAccessThroughNginx(ingressHost1List.get(0),1);
    try {
      logger.info("Testing replace configuration");
      replaceConfiguration();
      logger.info("Testing append configuration");
      appendConfiguration();
      logger.info("Testing replace One Attribute Value AsArray configuration");
      replaceOneAttributeValueAsArrayConfiguration();
      logger.info("Testing append One Attribute Value AsArray configuration");
      appendArrayWithOneExistedAndOneDifferentAttributeValueAsArrayConfiguration();
      logger.info("Testing replace with empty configuration");
      replaceWithEmptyConfiguration();
      logger.info("Testing append with empty configuration");
      appendWithEmptyConfiguration();
      logger.info("Testing append with invalid yaml configuration");
      appendWithNotYamlConfiguration();
      logger.info("Testing replace with invalid yaml configuration");
      replaceWithNotYamlConfiguration();
      logger.info("Testing append with corrupted yaml configuration");
      appendWithCorruptedYamlConfiguration();
      logger.info("Testing replace with corrupted yaml configuration");
      replaceWithCorruptedYamlConfiguration();
      logger.info("Testing replace with dublicated values yaml configuration");
      replaceWithDublicatedValuesConfiguration();
      logger.info("Testing append with corrupted yaml configuration");
      appendWithDuplicatedValuesConfiguration();
      logger.info("Testing replace with name snake false yaml configuration");
      replaceMetricsNameSnakeCaseFalseConfiguration();
      logger.info("Testing change with no credentials configuration");
      changeConfigNoCredentials();
      logger.info("Testing change with no invalid user configuration");
      changeConfigInvalidUser();
      logger.info("Testing change with no invalid pass configuration");
      changeConfigInvalidPass();
      logger.info("Testing change with empty user configuration");
      changeConfigEmptyUser();
      logger.info("Testing change with no empty pass configuration");
      changeConfigEmptyPass();
      logger.info("Testing replace with domain qualifier configuration");
      replaceMetricsDomainQualifierTrueConfiguration();
    } finally {
      submitConfigureForm(exporterUrl, "replace", RESOURCE_DIR + "/exporter/exporter-config.yaml");
    }
  }
@ Test @ DisplayName ( "Test Basic Functionality of Monitoring Exporter." ) public void testBasicFunctionality ( ) throws Exception { installPrometheusGrafana ( PROMETHEUS_CHART_VERSION , GRAFANA_CHART_VERSION , domain1Namespace , domain1Uid ) ; verifyMonExpAppAccessThroughNginx ( ingressHost1List . get ( 0 ) , 1 ) ; try { logger . info ( "Testing replace configuration" ) ; replaceConfiguration ( ) ; logger . info ( "Testing append configuration" ) ; appendConfiguration ( ) ; logger . info ( "Testing replace One Attribute Value AsArray configuration" ) ; replaceOneAttributeValueAsArrayConfiguration ( ) ; logger . info ( "Testing append One Attribute Value AsArray configuration" ) ; appendArrayWithOneExistedAndOneDifferentAttributeValueAsArrayConfiguration ( ) ; logger . info ( "Testing replace with empty configuration" ) ; replaceWithEmptyConfiguration ( ) ; logger . info ( "Testing append with empty configuration" ) ; appendWithEmptyConfiguration ( ) ; logger . info ( "Testing append with invalid yaml configuration" ) ; appendWithNotYamlConfiguration ( ) ; logger . info ( "Testing replace with invalid yaml configuration" ) ; replaceWithNotYamlConfiguration ( ) ; logger . info ( "Testing append with corrupted yaml configuration" ) ; appendWithCorruptedYamlConfiguration ( ) ; logger . info ( "Testing replace with corrupted yaml configuration" ) ; replaceWithCorruptedYamlConfiguration ( ) ; logger . info ( "Testing replace with dublicated values yaml configuration" ) ; replaceWithDublicatedValuesConfiguration ( ) ; logger . info ( "Testing append with corrupted yaml configuration" ) ; appendWithDuplicatedValuesConfiguration ( ) ; logger . info ( "Testing replace with name snake false yaml configuration" ) ; replaceMetricsNameSnakeCaseFalseConfiguration ( ) ; logger . info ( "Testing change with no credentials configuration" ) ; changeConfigNoCredentials ( ) ; logger . info ( "Testing change with no invalid user configuration" ) ; changeConfigInvalidUser ( ) ; logger . info ( "Testing change with no invalid pass configuration" ) ; changeConfigInvalidPass ( ) ; logger . info ( "Testing change with empty user configuration" ) ; changeConfigEmptyUser ( ) ; logger . info ( "Testing change with no empty pass configuration" ) ; changeConfigEmptyPass ( ) ; logger . info ( "Testing replace with domain qualifier configuration" ) ; replaceMetricsDomainQualifierTrueConfiguration ( ) ; } finally { submitConfigureForm ( exporterUrl , "replace" , RESOURCE_DIR + "/exporter/exporter-config.yaml" ) ; } }
Test covers end to end sample, provided in the Monitoring Exporter github project .
Test covers end to end sample provided in the Monitoring Exporter github project .
//verify access to Monitoring Exporter //restore configuration