예제 #1
0
 def test_get_table_migration_status_only_destination(self):
     with self.assertRaises(shinkansen.UnrecoverableError):
         status.get_table_migration_status(None, 'dst', 42)
예제 #2
0
 def test_get_table_migration_status_no_partition(self):
     with self.assertRaises(shinkansen.UnrecoverableError):
         status.get_table_migration_status('src', 'dst', None)
예제 #3
0
 def test_get_table_migration_status_only_source(self):
     with self.assertRaises(shinkansen.UnrecoverableError):
         status.get_table_migration_status('src', None, 42)
예제 #4
0
 def _test_get_table_migration_status(self, table_status_recs, chunk_status_recs, expected):
     self._test_get_migration_status_base(table_status_recs, chunk_status_recs)
     result = status.get_table_migration_status('src', 'dst', 43)
     self.assertEqual(result, expected)