Exemplo n.º 1
0
 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()
Exemplo n.º 2
0
 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()
Exemplo n.º 3
0
    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()
Exemplo n.º 4
0
    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()