integration-tests/src/test/java/oracle/kubernetes/operator/utils/Domain.java
public void modifyPropertyInYaml(String oldString, String newString, String oldFileName, String newFileName)
      throws Exception {
    LoggerHelper.getLocal().log(Level.INFO, "modifyDomainPvcInYaml");
    String content =
        new String(
        Files.readAllBytes(
            Paths.get(oldFileName)));
    boolean result = content.indexOf(oldString) >= 0;
    LoggerHelper.getLocal().log(Level.INFO,
        "The search result for " + oldString + " is: " + result);
    if (result) {
      TestUtils.createNewYamlFile(
          oldFileName,
          newFileName,
          oldString,
          newString);
      LoggerHelper.getLocal().log(Level.INFO,
          "Done - generate new domain.yaml for "
              + domainUid
              + " oldPVC: "
              + oldString
              + " newPVC: "
              + newString);

    }
    LoggerHelper.getLocal().log(Level.INFO, "Done - modifyPropertyInYaml");
  }
/**
   * Modify the property in the domain yaml file.
   *
   * @param oldString - the old property value
   * @param newString - the new property value
   * @param oldFileName - the file name that has the oldString 
   * @param newFileName - the file name that has the newString changed from the old one
   * @throws Exception - IOException or errors occurred during the call
   */
Modify the property in the domain yaml file.
Modify the property in the domain yaml file .
public void modifyPropertyInYaml(String oldString, String newString, String oldFileName, String newFileName)
      throws Exception {
    LoggerHelper.getLocal().log(Level.INFO, "modifyDomainPvcInYaml");
    String content =
        new String(
        Files.readAllBytes(
            Paths.get(oldFileName)));
    boolean result = content.indexOf(oldString) >= 0;
    LoggerHelper.getLocal().log(Level.INFO,
        "The search result for " + oldString + " is: " + result);
    if (result) {
      TestUtils.createNewYamlFile(
          oldFileName,
          newFileName,
          oldString,
          newString);
      LoggerHelper.getLocal().log(Level.INFO,
          "Done - generate new domain.yaml for "
              + domainUid
              + " oldPVC: "
              + oldString
              + " newPVC: "
              + newString);
    }
    LoggerHelper.getLocal().log(Level.INFO, "Done - modifyPropertyInYaml");
  }
public void modifyPropertyInYaml ( String oldString , String newString , String oldFileName , String newFileName ) throws Exception { LoggerHelper . getLocal ( ) . log ( Level . INFO , "modifyDomainPvcInYaml" ) ; String content = new String ( Files . readAllBytes ( Paths . get ( oldFileName ) ) ) ; boolean result = content . indexOf ( oldString ) >= 0 ; LoggerHelper . getLocal ( ) . log ( Level . INFO , "The search result for " + oldString + " is: " + result ) ; if ( result ) { TestUtils . createNewYamlFile ( oldFileName , newFileName , oldString , newString ) ; LoggerHelper . getLocal ( ) . log ( Level . INFO , "Done - generate new domain.yaml for " + domainUid + " oldPVC: " + oldString + " newPVC: " + newString ) ; } LoggerHelper . getLocal ( ) . log ( Level . INFO , "Done - modifyPropertyInYaml" ) ; }
Modify the property in the domain yaml file.
Modify the property in the domain yaml file .