integration-tests/src/test/java/oracle/kubernetes/operator/utils/Domain.java
public void logServerPods() throws Exception {
    // check admin pod
    String adminPodName = domainUid + "-" + adminServerName;
    LoggerHelper.getLocal().log(Level.INFO,
        "Writing admin pod(" + adminPodName + ") log");
    TestUtils.execOrAbortProcess("kubectl logs " + adminPodName + " -n "
        + domainNS + " > " + resultsDir + "/pod-" + adminPodName + ".log", true);

    if (!serverStartPolicy.equals("ADMIN_ONLY")) {
      // check managed server pods
      for (int i = 1; i <= initialManagedServerReplicas; i++) {
        String msPodName = domainUid + "-" + managedServerNameBase + i;
        LoggerHelper.getLocal().log(Level.INFO,
            "Writing managed pod(" + msPodName + ") log");
        TestUtils.execOrAbortProcess("kubectl logs " + msPodName
            + " -n " + domainNS + " > " + resultsDir + "/pod-" + msPodName + ".log", true);
      }
    }
  }
/**
   * Write server pod logs.
   *
   * @throws Exception If can't retrieve the logs
   */
Write server pod logs.
@throws Exception If can't retrieve the logs
Write server pod logs . @throws Exception If can ' t retrieve the logs
public void logServerPods() throws Exception {
    String adminPodName = domainUid + "-" + adminServerName;
    LoggerHelper.getLocal().log(Level.INFO,
        "Writing admin pod(" + adminPodName + ") log");
    TestUtils.execOrAbortProcess("kubectl logs " + adminPodName + " -n "
        + domainNS + " > " + resultsDir + "/pod-" + adminPodName + ".log", true);
    if (!serverStartPolicy.equals("ADMIN_ONLY")) {
      for (int i = 1; i <= initialManagedServerReplicas; i++) {
        String msPodName = domainUid + "-" + managedServerNameBase + i;
        LoggerHelper.getLocal().log(Level.INFO,
            "Writing managed pod(" + msPodName + ") log");
        TestUtils.execOrAbortProcess("kubectl logs " + msPodName
            + " -n " + domainNS + " > " + resultsDir + "/pod-" + msPodName + ".log", true);
      }
    }
  }
public void logServerPods ( ) throws Exception { String adminPodName = domainUid + "-" + adminServerName ; LoggerHelper . getLocal ( ) . log ( Level . INFO , "Writing admin pod(" + adminPodName + ") log" ) ; TestUtils . execOrAbortProcess ( "kubectl logs " + adminPodName + " -n " + domainNS + " > " + resultsDir + "/pod-" + adminPodName + ".log" , true ) ; if ( ! serverStartPolicy . equals ( "ADMIN_ONLY" ) ) { for ( int i = 1 ; i <= initialManagedServerReplicas ; i ++ ) { String msPodName = domainUid + "-" + managedServerNameBase + i ; LoggerHelper . getLocal ( ) . log ( Level . INFO , "Writing managed pod(" + msPodName + ") log" ) ; TestUtils . execOrAbortProcess ( "kubectl logs " + msPodName + " -n " + domainNS + " > " + resultsDir + "/pod-" + msPodName + ".log" , true ) ; } } }
Write server pod logs.
Write server pod logs .
// check admin pod // check managed server pods