def step6(self): syncer = CrossPodHomeSync( self.store, self.options["uid"], uselog=self.output if self.options["verbose"] else None) syncer.accounting("Pod Migration Step 6\n") yield syncer.enableLocalHome()
def step3(self): syncer = CrossPodHomeSync( self.store, self.options["uid"], uselog=self.output if self.options["verbose"] else None) syncer.accounting("Pod Migration Step 3\n") yield syncer.disableRemoteHome()
def step7(self): syncer = CrossPodHomeSync( self.store, self.options["uid"], final=True, uselog=self.output if self.options["verbose"] else None) syncer.accounting("Pod Migration Step 7\n") yield syncer.removeRemoteHome()
def step6(self): syncer = CrossPodHomeSync( self.store, self.options["uid"], uselog=self.output if self.options["verbose"] else None ) syncer.accounting("Pod Migration Step 6\n") yield syncer.enableLocalHome()
def step3(self): syncer = CrossPodHomeSync( self.store, self.options["uid"], uselog=self.output if self.options["verbose"] else None ) syncer.accounting("Pod Migration Step 3\n") yield syncer.disableRemoteHome()
def step7(self): syncer = CrossPodHomeSync( self.store, self.options["uid"], final=True, uselog=self.output if self.options["verbose"] else None ) syncer.accounting("Pod Migration Step 7\n") yield syncer.removeRemoteHome()
def test_migration(self): """ Full migration cycle. """ yield self.preCheck() # Step 1. Live full sync yield self.initialState() syncer = CrossPodHomeSync(self.theStoreUnderTest(1), "user01") yield syncer.sync() # Step 2. Live incremental sync yield self.secondState() syncer = CrossPodHomeSync(self.theStoreUnderTest(1), "user01") yield syncer.sync() # Step 3. Disable home after final changes yield self.finalState() syncer = CrossPodHomeSync(self.theStoreUnderTest(1), "user01") yield syncer.disableRemoteHome() # Step 4. Final incremental sync syncer = CrossPodHomeSync(self.theStoreUnderTest(1), "user01", final=True) yield syncer.sync() # Step 5. Final reconcile sync syncer = CrossPodHomeSync(self.theStoreUnderTest(1), "user01", final=True) yield syncer.finalSync() # Step 6. Enable new home syncer = CrossPodHomeSync(self.theStoreUnderTest(1), "user01", final=True) yield syncer.enableLocalHome() # Step 7. Remove old home syncer = CrossPodHomeSync(self.theStoreUnderTest(1), "user01", final=True) yield syncer.removeRemoteHome() yield self.switchAccounts() yield self.postCheck()