new-integration-tests/src/test/java/oracle/weblogic/kubernetes/utils/CommonTestUtils.java
private static boolean createExternalRestIdentitySecret(String namespace, String secretName) {

    StringBuffer command = new StringBuffer()
        .append(GEN_EXTERNAL_REST_IDENTITY_FILE);

    if (Character.isDigit(K8S_NODEPORT_HOST.charAt(0))) {
      command.append(" -a \"IP:");
    } else {
      command.append(" -a \"DNS:");
    }

    command.append(K8S_NODEPORT_HOST)
        .append(",DNS:localhost,IP:127.0.0.1\"")
        .append(" -n ")
        .append(namespace)
        .append(" -s ")
        .append(secretName);

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

    return Command.withParams(params).execute();
  }
/**
   * Create an external REST Identity secret in the specified namespace.
   *
   * @param namespace the namespace in which the secret to be created
   * @param secretName name of the secret to be created
   * @return true if the command to create secret succeeds, false otherwise
   */
Create an external REST Identity secret in the specified namespace.
@param namespace the namespace in which the secret to be created
@param secretName name of the secret to be created
@return true if the command to create secret succeeds, false otherwise
Create an external REST Identity secret in the specified namespace . @param namespace the namespace in which the secret to be created @param secretName name of the secret to be created @return true if the command to create secret succeeds false otherwise
private static boolean createExternalRestIdentitySecret(String namespace, String secretName) {
    StringBuffer command = new StringBuffer()
        .append(GEN_EXTERNAL_REST_IDENTITY_FILE);
    if (Character.isDigit(K8S_NODEPORT_HOST.charAt(0))) {
      command.append(" -a \"IP:");
    } else {
      command.append(" -a \"DNS:");
    }
    command.append(K8S_NODEPORT_HOST)
        .append(",DNS:localhost,IP:127.0.0.1\"")
        .append(" -n ")
        .append(namespace)
        .append(" -s ")
        .append(secretName);
    CommandParams params = Command
        .defaultCommandParams()
        .command(command.toString())
        .saveResults(true)
        .redirect(true);
    return Command.withParams(params).execute();
  }
private static boolean createExternalRestIdentitySecret ( String namespace , String secretName ) { StringBuffer command = new StringBuffer ( ) . append ( GEN_EXTERNAL_REST_IDENTITY_FILE ) ; if ( Character . isDigit ( K8S_NODEPORT_HOST . charAt ( 0 ) ) ) { command . append ( " -a \"IP:" ) ; } else { command . append ( " -a \"DNS:" ) ; } command . append ( K8S_NODEPORT_HOST ) . append ( ",DNS:localhost,IP:127.0.0.1\"" ) . append ( " -n " ) . append ( namespace ) . append ( " -s " ) . append ( secretName ) ; CommandParams params = Command . defaultCommandParams ( ) . command ( command . toString ( ) ) . saveResults ( true ) . redirect ( true ) ; return Command . withParams ( params ) . execute ( ) ; }
Create an external REST Identity secret in the specified namespace.
Create an external REST Identity secret in the specified namespace .