Skip to content

Commit

Permalink
drop confirmation for online backups -- these are now supported
Browse files Browse the repository at this point in the history
  • Loading branch information
evgeni committed Aug 13, 2024
1 parent fdb2c09 commit bc04587
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 35 deletions.
27 changes: 0 additions & 27 deletions definitions/procedures/backup/online/safety_confirmation.rb

This file was deleted.

7 changes: 0 additions & 7 deletions definitions/scenarios/backup.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ def compose
:online_backup => strategy == :online)
add_step(Checks::ForemanTasks::NotRunning.new(:wait_for_tasks => wait_for_tasks?))
add_step(Checks::Pulpcore::NoRunningTasks.new(:wait_for_tasks => wait_for_tasks?))
safety_confirmation
add_step_with_context(Procedures::Backup::AccessibilityConfirmation) if strategy == :offline
add_step_with_context(Procedures::Backup::PrepareDirectory)
add_step_with_context(Procedures::Backup::Metadata, :online_backup => strategy == :online)
Expand Down Expand Up @@ -65,12 +64,6 @@ def set_context_mapping

private

def safety_confirmation
if strategy == :online
add_step_with_context(Procedures::Backup::Online::SafetyConfirmation)
end
end

def check_valid_strategy
unless [:online, :offline].include? strategy
raise ArgumentError, "Unsupported strategy '#{strategy}'"
Expand Down
1 change: 0 additions & 1 deletion test/definitions/scenarios/backup_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,6 @@ module Scenarios
checks.each do |check|
assert_scenario_has_step(scenario, check)
end
assert_scenario_has_step(scenario, Procedures::Backup::Online::SafetyConfirmation)
refute_scenario_has_step(scenario, Procedures::Backup::AccessibilityConfirmation)
assert_scenario_has_step(scenario, Procedures::Backup::PrepareDirectory)
assert_scenario_has_step(scenario, Procedures::Backup::Metadata)
Expand Down

0 comments on commit bc04587

Please sign in to comment.