integration-tests/src/test/java/oracle/kubernetes/operator/utils/Domain.java
public void verifyDomainCreated(int maxIterations) throws Exception {
    StringBuffer command = new StringBuffer();
    command.append("kubectl get domain ").append(domainUid).append(" -n ").append(domainNS);
    ExecResult result = TestUtils.execOrAbortProcess(command.toString());
    if (!result.stdout().contains(domainUid)) {
      throw new RuntimeException("FAILURE: domain not found, exiting!");
    }
    verifyPodsCreated(maxIterations);
    verifyServicesCreated(maxIterations);
    verifyServersReady(maxIterations);
    if (createLoadBalancer) {
      String cmd = "curl --silent --noproxy '*' -H 'host: " + domainUid
          + ".org' http://" + getHostNameForCurl() + ":" + getLoadBalancerWebPort()
          + "/weblogic/ready --write-out %{http_code} -o /dev/null";
      callWebAppAndWaitTillReady(cmd);
    }

    // using nodePort for now to access console, will be changed to t3channelport
    if (exposeAdminNodePort) {
      String cmd = "curl --silent --noproxy " + getHostNameForCurl()
          + " http://" + getHostNameForCurl() + ":" + getNodePort()
          + "/console/login/LoginForm.jsp --user "
          + BaseTest.getUsername() + ":" + BaseTest.getPassword()
          + " --write-out %{http_code} -o /dev/null";
      callWebAppAndWaitTillReady(cmd);
    }

  }
/**
   * Verifies the required pods are created, services are created and the servers are ready.
   *
   * @param maxIterations max iteration count
   * @throws RuntimeException if pods/services of the domain are not created or WLS is not running
   */
Verifies the required pods are created, services are created and the servers are ready.
@param maxIterations max iteration count
@throws RuntimeException if pods/services of the domain are not created or WLS is not running
Verifies the required pods are created services are created and the servers are ready . @param maxIterations max iteration count @throws RuntimeException if pods / services of the domain are not created or WLS is not running
public void verifyDomainCreated(int maxIterations) throws Exception {
    StringBuffer command = new StringBuffer();
    command.append("kubectl get domain ").append(domainUid).append(" -n ").append(domainNS);
    ExecResult result = TestUtils.execOrAbortProcess(command.toString());
    if (!result.stdout().contains(domainUid)) {
      throw new RuntimeException("FAILURE: domain not found, exiting!");
    }
    verifyPodsCreated(maxIterations);
    verifyServicesCreated(maxIterations);
    verifyServersReady(maxIterations);
    if (createLoadBalancer) {
      String cmd = "curl --silent --noproxy '*' -H 'host: " + domainUid
          + ".org' http://" + getHostNameForCurl() + ":" + getLoadBalancerWebPort()
          + "/weblogic/ready --write-out %{http_code} -o /dev/null";
      callWebAppAndWaitTillReady(cmd);
    }
    if (exposeAdminNodePort) {
      String cmd = "curl --silent --noproxy " + getHostNameForCurl()
          + " http://" + getHostNameForCurl() + ":" + getNodePort()
          + "/console/login/LoginForm.jsp --user "
          + BaseTest.getUsername() + ":" + BaseTest.getPassword()
          + " --write-out %{http_code} -o /dev/null";
      callWebAppAndWaitTillReady(cmd);
    }
  }
public void verifyDomainCreated ( int maxIterations ) throws Exception { StringBuffer command = new StringBuffer ( ) ; command . append ( "kubectl get domain " ) . append ( domainUid ) . append ( " -n " ) . append ( domainNS ) ; ExecResult result = TestUtils . execOrAbortProcess ( command . toString ( ) ) ; if ( ! result . stdout ( ) . contains ( domainUid ) ) { throw new RuntimeException ( "FAILURE: domain not found, exiting!" ) ; } verifyPodsCreated ( maxIterations ) ; verifyServicesCreated ( maxIterations ) ; verifyServersReady ( maxIterations ) ; if ( createLoadBalancer ) { String cmd = "curl --silent --noproxy '*' -H 'host: " + domainUid + ".org' http://" + getHostNameForCurl ( ) + ":" + getLoadBalancerWebPort ( ) + "/weblogic/ready --write-out %{http_code} -o /dev/null" ; callWebAppAndWaitTillReady ( cmd ) ; } if ( exposeAdminNodePort ) { String cmd = "curl --silent --noproxy " + getHostNameForCurl ( ) + " http://" + getHostNameForCurl ( ) + ":" + getNodePort ( ) + "/console/login/LoginForm.jsp --user " + BaseTest . getUsername ( ) + ":" + BaseTest . getPassword ( ) + " --write-out %{http_code} -o /dev/null" ; callWebAppAndWaitTillReady ( cmd ) ; } }
Verifies the required pods are created, services are created and the servers are ready.
Verifies the required pods are created services are created and the servers are ready .
// using nodePort for now to access console, will be changed to t3channelport