From 6b621ace315472b7fd4f0ce9b6a2751fc9a32d52 Mon Sep 17 00:00:00 2001 From: Adam Grare Date: Thu, 28 Sep 2023 17:23:38 -0400 Subject: [PATCH] Add EMS #pause! and #resume! specs --- .../providers/awx/automation_manager_spec.rb | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/spec/models/manageiq/providers/awx/automation_manager_spec.rb b/spec/models/manageiq/providers/awx/automation_manager_spec.rb index 2698fc3..ae0b400 100644 --- a/spec/models/manageiq/providers/awx/automation_manager_spec.rb +++ b/spec/models/manageiq/providers/awx/automation_manager_spec.rb @@ -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"}