integration-tests/src/test/java/oracle/kubernetes/operator/ItPodsShutdown.java
@Test
  public void testAddShutdownOptionsToDomain() throws Exception {

    Assumptions.assumeTrue(FULLTEST);
    String testMethodName = new Object() {
    }.getClass().getEnclosingMethod().getName();
    logTestBegin(testMethodName);
    Map<String, Object> shutdownProps = new HashMap<>();
    Map<String, Object> shutdownDomainProps = new HashMap();
    shutdownProps.put("timeoutSeconds", 160);
    shutdownDomainProps.put("domain",shutdownProps);
    Domain domain = null;
    try {
      domain = createDomain(domainNSShutOpDomain, shutdownDomainProps);
      Assertions.assertNotNull(domain, "Domain "
          + domainNSShutOpDomain
          + "failed to create");
      Assertions.assertTrue(checkShutdownUpdatedProp(domain.getDomainUid()
          + "-admin-server", domain.getDomainNs(),"160"),
          domain.getDomainUid()
              + "-admin-server"
              + "shutdown property for timeoutseconds does not match the expected value 160");
      Assertions.assertTrue(checkShutdownUpdatedProp(domain.getDomainUid()
          + "-managed-server1",domain.getDomainNs(), "160"),
          domain.getDomainUid()
              + "-managed-server1: "
              + "shutdown property for timeoutseconds does not match the expected value 160");
    } finally {
      if (domain != null) {
        TestUtils.deleteWeblogicDomainResources(domain.getDomainUid());
      }
    }
    LoggerHelper.getLocal().log(Level.INFO, "SUCCESS - {0}", testMethodName);
  }
/**
   * Start domain with added shutdown options at the domain level
   * and verify values are propagated to server level.
   *
   * @throws Exception If domain cannot be started or failed to verify shutdown options
   */
Start domain with added shutdown options at the domain level
and verify values are propagated to server level.

@throws Exception If domain cannot be started or failed to verify shutdown options
Start domain with added shutdown options at the domain level and verify values are propagated to server level . @throws Exception If domain cannot be started or failed to verify shutdown options
@Test
  public void testAddShutdownOptionsToDomain() throws Exception {
    Assumptions.assumeTrue(FULLTEST);
    String testMethodName = new Object() {
    }.getClass().getEnclosingMethod().getName();
    logTestBegin(testMethodName);
    Map<String, Object> shutdownProps = new HashMap<>();
    Map<String, Object> shutdownDomainProps = new HashMap();
    shutdownProps.put("timeoutSeconds", 160);
    shutdownDomainProps.put("domain",shutdownProps);
    Domain domain = null;
    try {
      domain = createDomain(domainNSShutOpDomain, shutdownDomainProps);
      Assertions.assertNotNull(domain, "Domain "
          + domainNSShutOpDomain
          + "failed to create");
      Assertions.assertTrue(checkShutdownUpdatedProp(domain.getDomainUid()
          + "-admin-server", domain.getDomainNs(),"160"),
          domain.getDomainUid()
              + "-admin-server"
              + "shutdown property for timeoutseconds does not match the expected value 160");
      Assertions.assertTrue(checkShutdownUpdatedProp(domain.getDomainUid()
          + "-managed-server1",domain.getDomainNs(), "160"),
          domain.getDomainUid()
              + "-managed-server1: "
              + "shutdown property for timeoutseconds does not match the expected value 160");
    } finally {
      if (domain != null) {
        TestUtils.deleteWeblogicDomainResources(domain.getDomainUid());
      }
    }
    LoggerHelper.getLocal().log(Level.INFO, "SUCCESS - {0}", testMethodName);
  }
@ Test public void testAddShutdownOptionsToDomain ( ) throws Exception { Assumptions . assumeTrue ( FULLTEST ) ; String testMethodName = new Object ( ) { } . getClass ( ) . getEnclosingMethod ( ) . getName ( ) ; logTestBegin ( testMethodName ) ; Map < String , Object > shutdownProps = new HashMap < > ( ) ; Map < String , Object > shutdownDomainProps = new HashMap ( ) ; shutdownProps . put ( "timeoutSeconds" , 160 ) ; shutdownDomainProps . put ( "domain" , shutdownProps ) ; Domain domain = null ; try { domain = createDomain ( domainNSShutOpDomain , shutdownDomainProps ) ; Assertions . assertNotNull ( domain , "Domain " + domainNSShutOpDomain + "failed to create" ) ; Assertions . assertTrue ( checkShutdownUpdatedProp ( domain . getDomainUid ( ) + "-admin-server" , domain . getDomainNs ( ) , "160" ) , domain . getDomainUid ( ) + "-admin-server" + "shutdown property for timeoutseconds does not match the expected value 160" ) ; Assertions . assertTrue ( checkShutdownUpdatedProp ( domain . getDomainUid ( ) + "-managed-server1" , domain . getDomainNs ( ) , "160" ) , domain . getDomainUid ( ) + "-managed-server1: " + "shutdown property for timeoutseconds does not match the expected value 160" ) ; } finally { if ( domain != null ) { TestUtils . deleteWeblogicDomainResources ( domain . getDomainUid ( ) ) ; } } LoggerHelper . getLocal ( ) . log ( Level . INFO , "SUCCESS - {0}" , testMethodName ) ; }
Start domain with added shutdown options at the domain level
 and verify values are propagated to server level.
Start domain with added shutdown options at the domain level and verify values are propagated to server level .