Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into quinteros
Browse files Browse the repository at this point in the history
  • Loading branch information
Fryguy committed Oct 26, 2023
2 parents 359cc34 + 072c9c9 commit 8d0f1bd
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
PGPASSWORD: smartvm
CC_TEST_REPORTER_ID: "${{ secrets.CC_TEST_REPORTER_ID }}"
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up system
run: bin/before_install
- name: Set up Ruby
Expand Down
14 changes: 14 additions & 0 deletions spec/models/manageiq/providers/azure/cloud_manager_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,20 @@
end
end

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

include_examples "ExtManagementSystem#pause!"
end

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

include_examples "ExtManagementSystem#resume!"
end

it "does not create orphaned network_manager" do
# When the cloud_manager is destroyed during a refresh the there will still be an instance
# of the cloud_manager in the refresh worker. After the refresh we will try to save the cloud_manager
Expand Down
23 changes: 23 additions & 0 deletions spec/models/manageiq/providers/azure/container_manager_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
describe ManageIQ::Providers::Azure::ContainerManager do
it ".ems_type" do
expect(described_class.ems_type).to eq('aks')
end

it ".description" do
expect(described_class.description).to eq('Azure Kubernetes Service')
end

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

include_examples "ExtManagementSystem#pause!"
end

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

include_examples "ExtManagementSystem#resume!"
end
end

0 comments on commit 8d0f1bd

Please sign in to comment.