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

Version Path
fog-maestrodev-1.18.0.20131127194823 tests/vcloud_director/requests/compute/vdc_storage_profile_tests.rb
fog-maestrodev-1.18.0.20131126183714 tests/vcloud_director/requests/compute/vdc_storage_profile_tests.rb
fog-maestrodev-1.18.0.20131126122111 tests/vcloud_director/requests/compute/vdc_storage_profile_tests.rb
fog-maestrodev-1.18.0.20131125111730 tests/vcloud_director/requests/compute/vdc_storage_profile_tests.rb
fog-maestrodev-1.18.0.20131125083406 tests/vcloud_director/requests/compute/vdc_storage_profile_tests.rb
fog-maestrodev-1.18.0.20131123105121 tests/vcloud_director/requests/compute/vdc_storage_profile_tests.rb
fog-maestrodev-1.18.0.20131122203507 tests/vcloud_director/requests/compute/vdc_storage_profile_tests.rb
fog-maestrodev-1.18.0.20131121075022 tests/vcloud_director/requests/compute/vdc_storage_profile_tests.rb
fog-maestrodev-1.18.0.20131118164830 tests/vcloud_director/requests/compute/vdc_storage_profile_tests.rb
fog-maestrodev-1.18.0.20131115184302 tests/vcloud_director/requests/compute/vdc_storage_profile_tests.rb
fog-maestrodev-1.18.0.20131114200144 tests/vcloud_director/requests/compute/vdc_storage_profile_tests.rb
fog-maestrodev-1.18.0.20131112185232 tests/vcloud_director/requests/compute/vdc_storage_profile_tests.rb
fog-maestrodev-1.18.0.20131111203459 tests/vcloud_director/requests/compute/vdc_storage_profile_tests.rb
fog-1.18.0 tests/vcloud_director/requests/compute/vdc_storage_profile_tests.rb
fog-1.17.0 tests/vcloud_director/requests/compute/vdc_storage_profile_tests.rb
fog-1.16.0 tests/vcloud_director/requests/compute/vdc_storage_profile_tests.rb