Sha256: cb8c174eb5cefa01baa3635fdb4150f33adc7da2c1de6e54dc8cd571ce50b43f
Contents?: true
Size: 1.11 KB
Versions: 96
Compression:
Stored size: 1.11 KB
Contents
Shindo.tests('Compute::VcloudDirector | vdc_storage_profile requests', ['vclouddirector']) do @service = Fog::Compute::VcloudDirector.new @org = VcloudDirector::Compute::Helper.current_org(@service) @vdc_id = VcloudDirector::Compute::Helper.first_vdc_id(@org) @vdc = @service.get_vdc(@vdc_id).body @vdc[:VdcStorageProfiles][:VdcStorageProfile].each do |storage_profile| @vdc_storage_profile_id = storage_profile[:href].split('/').last tests(storage_profile[:name]) do tests("#get_vdc_storage_class").data_matches_schema(VcloudDirector::Compute::Schema::VDC_STORAGE_PROFILE_TYPE) do @service.get_vdc_storage_class(@vdc_storage_profile_id).body end tests('#get_vdc_storage_class_metadata').data_matches_schema(VcloudDirector::Compute::Schema::METADATA_TYPE) do pending if Fog.mocking? @service.get_vdc_storage_class_metadata(@vdc_storage_profile_id).body end end end tests('Retrieve non-existent vDC storage profile').raises(Fog::Compute::VcloudDirector::Forbidden) do @service.get_vdc_storage_class('00000000-0000-0000-0000-000000000000') end end
Version data entries
96 entries across 94 versions & 8 rubygems