integration-tests/src/test/java/oracle/kubernetes/operator/utils/Domain.java
public void findServerPropertyChange(String changedProperty, String serverName) throws Exception {
    LoggerHelper.getLocal().log(Level.INFO, "Inside findServerPropertyChange");
    // get runtime server pod yaml file
    String outDir = userProjectsDir + "/weblogic-domains/" + domainUid + "/";
    StringBuffer command = new StringBuffer();
    command
        .append("kubectl get po/")
        .append(
            domainUid
                + "-"
                + serverName
                + " -o yaml -n "
                + domainNS
                + "|"
                + "grep "
                + "\""
                + changedProperty
                + "\"");
    LoggerHelper.getLocal().log(Level.INFO, "kubectl execute with command: " + command.toString());
    TestUtils.execOrAbortProcess(command.toString());

    String result = ((TestUtils.execOrAbortProcess(command.toString())).stdout());
    LoggerHelper.getLocal().log(Level.INFO,
        "in the method findServerPropertyChange, " + command.toString() + " return " + result);
    if (!result.contains(changedProperty)) {
      throw new Exception(
          "FAILURE: didn't find the property: " + changedProperty + " for the server" + serverName);
    }

    LoggerHelper.getLocal().log(Level.INFO, "Done - findServerPropertyChange");
  }
/**
   * Get runtime server yaml file and verify the changed property is in that file.
   *
   * @param changedProperty - the changed/added property
   * @param serverName      - server name that is being tested
   * @throws Exception - test FAILURE Exception if the changed property is not found in the server
   *                   yaml file
   */
Get runtime server yaml file and verify the changed property is in that file.
@param changedProperty - the changed/added property
@param serverName      - server name that is being tested
@throws Exception - test FAILURE Exception if the changed property is not found in the server
yaml file
Get runtime server yaml file and verify the changed property is in that file . @param changedProperty - the changed / added property @param serverName - server name that is being tested @throws Exception - test FAILURE Exception if the changed property is not found in the server yaml file
public void findServerPropertyChange(String changedProperty, String serverName) throws Exception {
    LoggerHelper.getLocal().log(Level.INFO, "Inside findServerPropertyChange");
    String outDir = userProjectsDir + "/weblogic-domains/" + domainUid + "/";
    StringBuffer command = new StringBuffer();
    command
        .append("kubectl get po/")
        .append(
            domainUid
                + "-"
                + serverName
                + " -o yaml -n "
                + domainNS
                + "|"
                + "grep "
                + "\""
                + changedProperty
                + "\"");
    LoggerHelper.getLocal().log(Level.INFO, "kubectl execute with command: " + command.toString());
    TestUtils.execOrAbortProcess(command.toString());
    String result = ((TestUtils.execOrAbortProcess(command.toString())).stdout());
    LoggerHelper.getLocal().log(Level.INFO,
        "in the method findServerPropertyChange, " + command.toString() + " return " + result);
    if (!result.contains(changedProperty)) {
      throw new Exception(
          "FAILURE: didn't find the property: " + changedProperty + " for the server" + serverName);
    }
    LoggerHelper.getLocal().log(Level.INFO, "Done - findServerPropertyChange");
  }
public void findServerPropertyChange ( String changedProperty , String serverName ) throws Exception { LoggerHelper . getLocal ( ) . log ( Level . INFO , "Inside findServerPropertyChange" ) ; String outDir = userProjectsDir + "/weblogic-domains/" + domainUid + "/" ; StringBuffer command = new StringBuffer ( ) ; command . append ( "kubectl get po/" ) . append ( domainUid + "-" + serverName + " -o yaml -n " + domainNS + "|" + "grep " + "\"" + changedProperty + "\"" ) ; LoggerHelper . getLocal ( ) . log ( Level . INFO , "kubectl execute with command: " + command . toString ( ) ) ; TestUtils . execOrAbortProcess ( command . toString ( ) ) ; String result = ( ( TestUtils . execOrAbortProcess ( command . toString ( ) ) ) . stdout ( ) ) ; LoggerHelper . getLocal ( ) . log ( Level . INFO , "in the method findServerPropertyChange, " + command . toString ( ) + " return " + result ) ; if ( ! result . contains ( changedProperty ) ) { throw new Exception ( "FAILURE: didn't find the property: " + changedProperty + " for the server" + serverName ) ; } LoggerHelper . getLocal ( ) . log ( Level . INFO , "Done - findServerPropertyChange" ) ; }
Get runtime server yaml file and verify the changed property is in that file.
Get runtime server yaml file and verify the changed property is in that file .
// get runtime server pod yaml file