Пример #1
0
 def test_migrate_aggregate_reset_autoincrement_no_aggregates(self):
     # NOTE(danms): This validates the "or 0" default if there are no
     # aggregates (and thus no max id).
     match, done = aggregate_obj.migrate_aggregate_reset_autoincrement(
         self.context, 0)
     self.assertEqual(0, match)
     self.assertEqual(0, done)
Пример #2
0
 def test_migrate_aggregate_reset_autoincrement_no_aggregates(self):
     # NOTE(danms): This validates the "or 0" default if there are no
     # aggregates (and thus no max id).
     match, done = aggregate_obj.migrate_aggregate_reset_autoincrement(
         self.context, 0)
     self.assertEqual(0, match)
     self.assertEqual(0, done)
Пример #3
0
 def test_migrate_aggregate_reset_autoincrement(self):
     agg = aggregate_obj.Aggregate(self.context, name='foo')
     agg.create()
     match, done = aggregate_obj.migrate_aggregate_reset_autoincrement(
         self.context, 0)
     self.assertEqual(0, match)
     self.assertEqual(0, done)
Пример #4
0
 def test_migrate_aggregate_reset_autoincrement(self):
     agg = aggregate_obj.Aggregate(self.context, name='foo')
     agg.create()
     match, done = aggregate_obj.migrate_aggregate_reset_autoincrement(
         self.context, 0)
     self.assertEqual(0, match)
     self.assertEqual(0, done)