Skip to content

Commit

Permalink
Merge pull request #299 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 8ef733f + c2bcefa commit 33d35a9
Showing 1 changed file with 14 additions and 0 deletions.
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_ansible_tower, :zone => zone) }

include_examples "ExtManagementSystem#pause!"
end

context "#resume!" do
let(:zone) { FactoryBot.create(:zone) }
let(:ems) { FactoryBot.create(:automation_manager_ansible_tower, :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 => "Ansible Tower"}
Expand Down

0 comments on commit 33d35a9

Please sign in to comment.