Skip to content

Commit

Permalink
Merge pull request #20 from agrare/add_ems_pause_resume_specs
Browse files Browse the repository at this point in the history
Add EMS #pause! and #resume! specs
  • Loading branch information
kbrock authored Oct 3, 2023
2 parents 53456c6 + 6b621ac commit d25d612
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions spec/models/manageiq/providers/awx/automation_manager_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,20 @@
end
end

context "#pause!" do
let(:zone) { FactoryBot.create(:zone) }
let(:ems) { FactoryBot.create(:automation_manager_awx, :zone => zone) }

include_examples "ExtManagementSystem#pause!"
end

context "#resume!" do
let(:zone) { FactoryBot.create(:zone) }
let(:ems) { FactoryBot.create(:automation_manager_awx, :zone => zone) }

include_examples "ExtManagementSystem#resume!"
end

describe ".create_from_params" do
it "delegates endpoints, zone, name to provider" do
params = {:zone => FactoryBot.create(:zone), :name => "AWX"}
Expand Down

0 comments on commit d25d612

Please sign in to comment.