integration-tests/src/test/java/oracle/kubernetes/operator/utils/TestUtils.java
public static void releaseLease(String projectRoot, String leaseId) throws Exception {
    String cmd = projectRoot + "/src/integration-tests/bash/lease.sh -d " + leaseId;
    ExecResult leaseResult = ExecCommand.exec(cmd);
    if (leaseResult.exitValue() != 0) {
      LoggerHelper.getLocal().log(Level.INFO,
          "FAILED: command to release lease " + cmd + " failed " + leaseResult.stderr());
    }
    LoggerHelper.getLocal().log(Level.INFO,
        "Command " + cmd + " returned " + leaseResult.stdout() + "\n" + leaseResult.stderr());
  }
/**
   * release lease.
   * @param projectRoot project root
   * @param leaseId lease ID
   * @throws Exception on failure
   */
release lease.
@param projectRoot project root
@param leaseId lease ID
@throws Exception on failure
release lease . @param projectRoot project root @param leaseId lease ID @throws Exception on failure
public static void releaseLease(String projectRoot, String leaseId) throws Exception {
    String cmd = projectRoot + "/src/integration-tests/bash/lease.sh -d " + leaseId;
    ExecResult leaseResult = ExecCommand.exec(cmd);
    if (leaseResult.exitValue() != 0) {
      LoggerHelper.getLocal().log(Level.INFO,
          "FAILED: command to release lease " + cmd + " failed " + leaseResult.stderr());
    }
    LoggerHelper.getLocal().log(Level.INFO,
        "Command " + cmd + " returned " + leaseResult.stdout() + "\n" + leaseResult.stderr());
  }
public static void releaseLease ( String projectRoot , String leaseId ) throws Exception { String cmd = projectRoot + "/src/integration-tests/bash/lease.sh -d " + leaseId ; ExecResult leaseResult = ExecCommand . exec ( cmd ) ; if ( leaseResult . exitValue ( ) != 0 ) { LoggerHelper . getLocal ( ) . log ( Level . INFO , "FAILED: command to release lease " + cmd + " failed " + leaseResult . stderr ( ) ) ; } LoggerHelper . getLocal ( ) . log ( Level . INFO , "Command " + cmd + " returned " + leaseResult . stdout ( ) + "\n" + leaseResult . stderr ( ) ) ; }
release lease.
release lease .