new-integration-tests/src/test/java/oracle/weblogic/kubernetes/ItMiiMultiModel.java
private static boolean dsDoesNotExist(
      String adminServerPodName,
      String namespace,
      String dsName) {
    int adminServiceNodePort = getServiceNodePort(
        namespace, adminServerPodName + "-external", WLS_DEFAULT_CHANNEL_NAME);

    String command = new StringBuffer()
        .append("curl --user " + ADMIN_USERNAME_DEFAULT + ":" + ADMIN_PASSWORD_DEFAULT)
        .append(" http://" + K8S_NODEPORT_HOST + ":" + adminServiceNodePort)
        .append("/management/wls/latest/datasources")
        .append("/id/" + dsName)
        .append(" --noproxy '*'")
        .append(" --silent --show-error ").toString();

    CommandParams params = Command
        .defaultCommandParams()
        .command(command)
        .saveResults(true)
        .redirect(true);

    String expectedStr = String.format("'%s' was not found", dsName);
    
    return Command.withParams(params).executeAndVerify(expectedStr);
  }
/**
   * Check if a DataSource does not exist.
   */
Check if a DataSource does not exist.
Check if a DataSource does not exist .
private static boolean dsDoesNotExist(
      String adminServerPodName,
      String namespace,
      String dsName) {
    int adminServiceNodePort = getServiceNodePort(
        namespace, adminServerPodName + "-external", WLS_DEFAULT_CHANNEL_NAME);
    String command = new StringBuffer()
        .append("curl --user " + ADMIN_USERNAME_DEFAULT + ":" + ADMIN_PASSWORD_DEFAULT)
        .append(" http://" + K8S_NODEPORT_HOST + ":" + adminServiceNodePort)
        .append("/management/wls/latest/datasources")
        .append("/id/" + dsName)
        .append(" --noproxy '*'")
        .append(" --silent --show-error ").toString();
    CommandParams params = Command
        .defaultCommandParams()
        .command(command)
        .saveResults(true)
        .redirect(true);
    String expectedStr = String.format("'%s' was not found", dsName);
    return Command.withParams(params).executeAndVerify(expectedStr);
  }
private static boolean dsDoesNotExist ( String adminServerPodName , String namespace , String dsName ) { int adminServiceNodePort = getServiceNodePort ( namespace , adminServerPodName + "-external" , WLS_DEFAULT_CHANNEL_NAME ) ; String command = new StringBuffer ( ) . append ( "curl --user " + ADMIN_USERNAME_DEFAULT + ":" + ADMIN_PASSWORD_DEFAULT ) . append ( " http://" + K8S_NODEPORT_HOST + ":" + adminServiceNodePort ) . append ( "/management/wls/latest/datasources" ) . append ( "/id/" + dsName ) . append ( " --noproxy '*'" ) . append ( " --silent --show-error " ) . toString ( ) ; CommandParams params = Command . defaultCommandParams ( ) . command ( command ) . saveResults ( true ) . redirect ( true ) ; String expectedStr = String . format ( "'%s' was not found" , dsName ) ; return Command . withParams ( params ) . executeAndVerify ( expectedStr ) ; }
Check if a DataSource does not exist.
Check if a DataSource does not exist .