Beispiel #1
0
 def tearDown(self, *args, **kwargs):
     super(ShortTermBackupRetentionPolicyActionTest, self).tearDown(*args, **kwargs)
     args = list(self.retention_policy_context)
     args.append(BackupShortTermRetentionPolicy(retention_days=14))
     reverted_policy = ShortTermBackupRetentionPolicyActionTest.client.begin_create_or_update(
         *args).result()
     self.assertEqual(reverted_policy.retention_days, 14)
Beispiel #2
0
 def _get_parameters_for_new_retention_policy(self, database):
     return BackupShortTermRetentionPolicy(
         retention_days=self.retention_period_days)