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-2.3.0 tests/vcloud_director/requests/compute/vdc_storage_profile_tests.rb
fog-ifeel-2.2.0 tests/vcloud_director/requests/compute/vdc_storage_profile_tests.rb
fog-2.2.0 tests/vcloud_director/requests/compute/vdc_storage_profile_tests.rb
fog-2.1.0 tests/vcloud_director/requests/compute/vdc_storage_profile_tests.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.4.0/gems/fog-1.42.1/tests/vcloud_director/requests/compute/vdc_storage_profile_tests.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.5.0/gems/fog-1.42.1/tests/vcloud_director/requests/compute/vdc_storage_profile_tests.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.3.0/gems/fog-1.42.1/tests/vcloud_director/requests/compute/vdc_storage_profile_tests.rb
fog-1.42.1 tests/vcloud_director/requests/compute/vdc_storage_profile_tests.rb
fog-vcloud-director-0.2.2 tests/vcloud_director/requests/compute/vdc_storage_profile_tests.rb
fog-vcloud-director-0.2.1 tests/vcloud_director/requests/compute/vdc_storage_profile_tests.rb
fog-vcloud-director-0.2.0 tests/vcloud_director/requests/compute/vdc_storage_profile_tests.rb
fog-vcloud-director-0.1.10 tests/vcloud_director/requests/compute/vdc_storage_profile_tests.rb
fog-vcloud-director-0.1.9 tests/vcloud_director/requests/compute/vdc_storage_profile_tests.rb
fog-2.0.0 tests/vcloud_director/requests/compute/vdc_storage_profile_tests.rb
fog-1.42.0 tests/vcloud_director/requests/compute/vdc_storage_profile_tests.rb
fog-1.41.0 tests/vcloud_director/requests/compute/vdc_storage_profile_tests.rb
fog-1.40.0 tests/vcloud_director/requests/compute/vdc_storage_profile_tests.rb
fog-1.39.0 tests/vcloud_director/requests/compute/vdc_storage_profile_tests.rb
fog-vcloud-director-0.1.8 tests/vcloud_director/requests/compute/vdc_storage_profile_tests.rb
fog-vcloud-director-0.1.7 tests/vcloud_director/requests/compute/vdc_storage_profile_tests.rb