Skip to content

Commit

Permalink
integration tests updated
Browse files Browse the repository at this point in the history
  • Loading branch information
RachanKaur committed Jul 27, 2023
1 parent e316c29 commit dd26123
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/integration/features/integration_tests.feature
Original file line number Diff line number Diff line change
Expand Up @@ -383,6 +383,7 @@ Feature: Integration tests
Then I can see the backup named "fifth_backup" when I list the backups
Then I can verify the backup named "fifth_backup" with md5 checks "disabled" successfully
When I purge the backup history to retain only 2 backups
When I purge the decommissioned node backup history to retain only 2 backups
Then I cannot see the backup named "first_backup" when I list the backups
Then I cannot see the backup named "second_backup" when I list the backups
Then I cannot see the backup named "third_backup" when I list the backups
Expand Down
6 changes: 6 additions & 0 deletions tests/integration/features/steps/integration_steps.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
import medusa.index
import medusa.listing
import medusa.purge
import medusa.purge_decommissioned
import medusa.report_latest
import medusa.restore_node
import medusa.service.grpc.client
Expand Down Expand Up @@ -1155,6 +1156,11 @@ def _i_purge_the_backup_history_to_retain_only_nb_backups(context, backup_count)
medusa.purge.main(context.medusa_config, max_backup_count=int(backup_count))


@when(r"I purge the decommissioned node backup history to retain only {backup_count} backups")
def _i_purge_decommissioned_the_backup_history_to_retain_only_nb_backups(context, backup_count):
medusa.purge_decommissioned(context.medusa_config, max_backup_count=int(backup_count))


@then(r"I see {metrics_count} metrics emitted")
def _i_see_metrics_emitted(context, metrics_count):
metrics = list(LocalMonitoring(context.medusa_config).load_metrics())
Expand Down

0 comments on commit dd26123

Please sign in to comment.