new-integration-tests/src/test/java/oracle/weblogic/kubernetes/ItMonitoringExporter.java
private void verifyMonExpAppAccessThroughNginx(String nginxHost, int replicaCount) {

    List<String> managedServerNames = new ArrayList<>();
    for (int i = 1; i <= replicaCount; i++) {
      managedServerNames.add(MANAGED_SERVER_NAME_BASE + i);
    }

    // check that NGINX can access the sample apps from all managed servers in the domain
    String curlCmd =
        String.format("curl --silent --show-error --noproxy '*' -H 'host: %s' http://%s:%s@%s:%s/wls-exporter/metrics",
                nginxHost,
                ADMIN_USERNAME_DEFAULT,
                ADMIN_PASSWORD_DEFAULT,
                K8S_NODEPORT_HOST,
                nodeportshttp);
    assertThat(callWebAppAndCheckForServerNameInResponse(curlCmd, managedServerNames, 50))
        .as("Verify NGINX can access the monitoring exporter metrics from all managed servers in the domain")
        .withFailMessage("NGINX can not access the monitoring exporter metrics from one or more of the managed servers")
        .isTrue();
  }
/**
   * Verify the monitoring exporter app can be accessed from all managed servers in the domain through NGINX.
   */
Verify the monitoring exporter app can be accessed from all managed servers in the domain through NGINX.
Verify the monitoring exporter app can be accessed from all managed servers in the domain through NGINX .
private void verifyMonExpAppAccessThroughNginx(String nginxHost, int replicaCount) {
    List<String> managedServerNames = new ArrayList<>();
    for (int i = 1; i <= replicaCount; i++) {
      managedServerNames.add(MANAGED_SERVER_NAME_BASE + i);
    }
    String curlCmd =
        String.format("curl --silent --show-error --noproxy '*' -H 'host: %s' http://%s:%s@%s:%s/wls-exporter/metrics",
                nginxHost,
                ADMIN_USERNAME_DEFAULT,
                ADMIN_PASSWORD_DEFAULT,
                K8S_NODEPORT_HOST,
                nodeportshttp);
    assertThat(callWebAppAndCheckForServerNameInResponse(curlCmd, managedServerNames, 50))
        .as("Verify NGINX can access the monitoring exporter metrics from all managed servers in the domain")
        .withFailMessage("NGINX can not access the monitoring exporter metrics from one or more of the managed servers")
        .isTrue();
  }
private void verifyMonExpAppAccessThroughNginx ( String nginxHost , int replicaCount ) { List < String > managedServerNames = new ArrayList < > ( ) ; for ( int i = 1 ; i <= replicaCount ; i ++ ) { managedServerNames . add ( MANAGED_SERVER_NAME_BASE + i ) ; } String curlCmd = String . format ( "curl --silent --show-error --noproxy '*' -H 'host: %s' http://%s:%s@%s:%s/wls-exporter/metrics" , nginxHost , ADMIN_USERNAME_DEFAULT , ADMIN_PASSWORD_DEFAULT , K8S_NODEPORT_HOST , nodeportshttp ) ; assertThat ( callWebAppAndCheckForServerNameInResponse ( curlCmd , managedServerNames , 50 ) ) . as ( "Verify NGINX can access the monitoring exporter metrics from all managed servers in the domain" ) . withFailMessage ( "NGINX can not access the monitoring exporter metrics from one or more of the managed servers" ) . isTrue ( ) ; }
Verify the monitoring exporter app can be accessed from all managed servers in the domain through NGINX.
Verify the monitoring exporter app can be accessed from all managed servers in the domain through NGINX .
// check that NGINX can access the sample apps from all managed servers in the domain