integration-tests/src/test/java/oracle/kubernetes/operator/ItPodsShutdown.java
public static void callWebApp(String testAppPath, Domain domain)
      throws Exception {

    String nodePortHost = domain.getHostNameForCurl();
    int nodePort = domain.getLoadBalancerWebPort();

    StringBuffer webServiceUrl = new StringBuffer("curl --silent --noproxy '*' ");
    webServiceUrl
        .append(" -H 'host: ")
        .append(domain.getDomainUid())
        .append(".org' ")
        .append(" http://")
        .append(nodePortHost)
        .append(":")
        .append(nodePort)
        .append("/")
        .append(testAppPath);

    // Send a HTTP request to keep open session
    String curlCmd = webServiceUrl.toString();
    ExecCommand.exec(curlCmd);
    //TestUtils.checkAnyCmdInLoop(curlCmd, "Ending to sleep");
  }
/**
   * Send request to web app deployed on wls.
   *
   * @param testAppPath - URL path for webapp
   * @param domain      - Domain where webapp deployed
   * @throws Exception  - Fails if can't find expected output from app
   */
Send request to web app deployed on wls.
@param testAppPath - URL path for webapp
@param domain      - Domain where webapp deployed
@throws Exception  - Fails if can't find expected output from app
Send request to web app deployed on wls . @param testAppPath - URL path for webapp @param domain - Domain where webapp deployed @throws Exception - Fails if can ' t find expected output from app
public static void callWebApp(String testAppPath, Domain domain)
      throws Exception {
    String nodePortHost = domain.getHostNameForCurl();
    int nodePort = domain.getLoadBalancerWebPort();
    StringBuffer webServiceUrl = new StringBuffer("curl --silent --noproxy '*' ");
    webServiceUrl
        .append(" -H 'host: ")
        .append(domain.getDomainUid())
        .append(".org' ")
        .append(" http://")
        .append(nodePortHost)
        .append(":")
        .append(nodePort)
        .append("/")
        .append(testAppPath);
    String curlCmd = webServiceUrl.toString();
    ExecCommand.exec(curlCmd);
  }
public static void callWebApp ( String testAppPath , Domain domain ) throws Exception { String nodePortHost = domain . getHostNameForCurl ( ) ; int nodePort = domain . getLoadBalancerWebPort ( ) ; StringBuffer webServiceUrl = new StringBuffer ( "curl --silent --noproxy '*' " ) ; webServiceUrl . append ( " -H 'host: " ) . append ( domain . getDomainUid ( ) ) . append ( ".org' " ) . append ( " http://" ) . append ( nodePortHost ) . append ( ":" ) . append ( nodePort ) . append ( "/" ) . append ( testAppPath ) ; String curlCmd = webServiceUrl . toString ( ) ; ExecCommand . exec ( curlCmd ) ; }
Send request to web app deployed on wls.
Send request to web app deployed on wls .
// Send a HTTP request to keep open session //TestUtils.checkAnyCmdInLoop(curlCmd, "Ending to sleep");