From 5052121f6e879b86b8346fa9dcac6ce47715ebe1 Mon Sep 17 00:00:00 2001 From: Adam Grare Date: Tue, 10 Dec 2019 13:09:59 -0500 Subject: [PATCH] Add a storage subclass --- app/models/manageiq/providers/microsoft/infra_manager.rb | 1 + .../manageiq/providers/microsoft/infra_manager/storage.rb | 2 ++ .../providers/microsoft/infra_manager/refresher_spec.rb | 1 + 3 files changed, 4 insertions(+) create mode 100644 app/models/manageiq/providers/microsoft/infra_manager/storage.rb diff --git a/app/models/manageiq/providers/microsoft/infra_manager.rb b/app/models/manageiq/providers/microsoft/infra_manager.rb index 6999d17..17bc600 100644 --- a/app/models/manageiq/providers/microsoft/infra_manager.rb +++ b/app/models/manageiq/providers/microsoft/infra_manager.rb @@ -6,6 +6,7 @@ class ManageIQ::Providers::Microsoft::InfraManager < ManageIQ::Providers::InfraM require_nested :Refresher require_nested :RefreshWorker require_nested :ResourcePool + require_nested :Storage require_nested :Subnet require_nested :Template require_nested :Vm diff --git a/app/models/manageiq/providers/microsoft/infra_manager/storage.rb b/app/models/manageiq/providers/microsoft/infra_manager/storage.rb new file mode 100644 index 0000000..d57c4e7 --- /dev/null +++ b/app/models/manageiq/providers/microsoft/infra_manager/storage.rb @@ -0,0 +1,2 @@ +class ManageIQ::Providers::Microsoft::InfraManager::Storage < ManageIQ::Providers::InfraManager::Storage +end diff --git a/spec/models/manageiq/providers/microsoft/infra_manager/refresher_spec.rb b/spec/models/manageiq/providers/microsoft/infra_manager/refresher_spec.rb index 4db5d79..30fe6b6 100644 --- a/spec/models/manageiq/providers/microsoft/infra_manager/refresher_spec.rb +++ b/spec/models/manageiq/providers/microsoft/infra_manager/refresher_spec.rb @@ -95,6 +95,7 @@ def assert_specific_storage expect(@storage).to have_attributes( :ems_ref => "8d585b11-3bb2-4be7-931c-b6cec81ec85d", :name => storage_name, + :type => "ManageIQ::Providers::Microsoft::InfraManager::Storage", :store_type => "CSVFS", :total_space => 805_333_626_880, :free_space => 704_289_169_408,