integration-tests/src/test/java/oracle/kubernetes/operator/ItOperatorUpgrade.java
@Test
  public void testOperatorUpgradeFrom2_6_0() throws Exception {
    Assumptions.assumeTrue(QUICKTEST);
    testCompletedSuccessfully = false;
    String testMethod = new Object() {
    }.getClass().getEnclosingMethod().getName();
    logTestBegin(testMethod);
    OP_NS = "weblogic-operator260";
    DOM_NS = "weblogic-domain260";
    namespaceList.append(OP_NS);
    namespaceList.append(" ").append(DOM_NS);
    OP_DEP_NAME = "operator-upgrade260";
    OP_SA = "operator-sa260";
    DUID = "operatordomain260";
    setupOperatorAndDomain("release/2.6.0", "2.6.0");

    // Save the CreateTimeStamp for the server pod(s) to compare with
    // CreateTimeStamp after upgrade to make sure the pod(s) are not re-stated
    managed1CreateTimeStamp = TestUtils.getCreationTimeStamp(DOM_NS,DUID + "-managed-server1");
    managed2CreateTimeStamp = TestUtils.getCreationTimeStamp(DOM_NS,DUID + "-managed-server2");
    adminCreateTimeStamp = TestUtils.getCreationTimeStamp(DOM_NS,DUID + "-admin-server");
    uninstallAndInstallNewVersionOperatorAndVerify();

    testCompletedSuccessfully = true;
    LoggerHelper.getLocal().log(Level.INFO, "SUCCESS - " + testMethod);
  }
/**
   * Test for upgrading Operator from release 2.6.0 to develop branch.
   *
   * @throws Exception when upgrade fails
   */
Test for upgrading Operator from release 2.6.0 to develop branch.
@throws Exception when upgrade fails
Test for upgrading Operator from release 2 . 6 . 0 to develop branch . @throws Exception when upgrade fails
@Test
  public void testOperatorUpgradeFrom2_6_0() throws Exception {
    Assumptions.assumeTrue(QUICKTEST);
    testCompletedSuccessfully = false;
    String testMethod = new Object() {
    }.getClass().getEnclosingMethod().getName();
    logTestBegin(testMethod);
    OP_NS = "weblogic-operator260";
    DOM_NS = "weblogic-domain260";
    namespaceList.append(OP_NS);
    namespaceList.append(" ").append(DOM_NS);
    OP_DEP_NAME = "operator-upgrade260";
    OP_SA = "operator-sa260";
    DUID = "operatordomain260";
    setupOperatorAndDomain("release/2.6.0", "2.6.0");
    managed1CreateTimeStamp = TestUtils.getCreationTimeStamp(DOM_NS,DUID + "-managed-server1");
    managed2CreateTimeStamp = TestUtils.getCreationTimeStamp(DOM_NS,DUID + "-managed-server2");
    adminCreateTimeStamp = TestUtils.getCreationTimeStamp(DOM_NS,DUID + "-admin-server");
    uninstallAndInstallNewVersionOperatorAndVerify();
    testCompletedSuccessfully = true;
    LoggerHelper.getLocal().log(Level.INFO, "SUCCESS - " + testMethod);
  }
@ Test public void testOperatorUpgradeFrom2_6_0 ( ) throws Exception { Assumptions . assumeTrue ( QUICKTEST ) ; testCompletedSuccessfully = false ; String testMethod = new Object ( ) { } . getClass ( ) . getEnclosingMethod ( ) . getName ( ) ; logTestBegin ( testMethod ) ; OP_NS = "weblogic-operator260" ; DOM_NS = "weblogic-domain260" ; namespaceList . append ( OP_NS ) ; namespaceList . append ( " " ) . append ( DOM_NS ) ; OP_DEP_NAME = "operator-upgrade260" ; OP_SA = "operator-sa260" ; DUID = "operatordomain260" ; setupOperatorAndDomain ( "release/2.6.0" , "2.6.0" ) ; managed1CreateTimeStamp = TestUtils . getCreationTimeStamp ( DOM_NS , DUID + "-managed-server1" ) ; managed2CreateTimeStamp = TestUtils . getCreationTimeStamp ( DOM_NS , DUID + "-managed-server2" ) ; adminCreateTimeStamp = TestUtils . getCreationTimeStamp ( DOM_NS , DUID + "-admin-server" ) ; uninstallAndInstallNewVersionOperatorAndVerify ( ) ; testCompletedSuccessfully = true ; LoggerHelper . getLocal ( ) . log ( Level . INFO , "SUCCESS - " + testMethod ) ; }
Test for upgrading Operator from release 2.6.0 to develop branch.
Test for upgrading Operator from release 2 . 6 . 0 to develop branch .
// Save the CreateTimeStamp for the server pod(s) to compare with // CreateTimeStamp after upgrade to make sure the pod(s) are not re-stated