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()
def step2(self): syncer = CrossPodHomeSync( self.store, self.options["uid"], uselog=self.output if self.options["verbose"] else None) syncer.accounting("Pod Migration Step 2\n") yield syncer.sync()
def step2(self): syncer = CrossPodHomeSync( self.store, self.options["uid"], uselog=self.output if self.options["verbose"] else None ) syncer.accounting("Pod Migration Step 2\n") yield syncer.sync()