Sha256: aef1818689e158ba4fcd7a2d7cbadbd4d30166a66ebce849c69e9a87681eb674

Contents?: true

Size: 643 Bytes

Versions: 96

Compression:

Stored size: 643 Bytes

Contents

Shindo.tests('Compute::VcloudDirector | users requests', ['vclouddirector']) do

  @service = Fog::Compute::VcloudDirector.new

  tests('#get_users_from_query') do
    pending if Fog.mocking?
    %w[idrecords records references].each do |format|
      tests(":format => #{format}") do
        tests('#body').data_matches_schema(VcloudDirector::Compute::Schema::CONTAINER_TYPE) do
          @body = @service.get_users_from_query(:format => format).body
        end
        key = (format == 'references') ? 'UserReference' : 'UserRecord'
        tests("#body.key?(:#{key})").returns(true) { @body.key?(key.to_sym) }
      end
    end
  end

end

Version data entries

96 entries across 94 versions & 8 rubygems

Version Path
fog-2.3.0 tests/vcloud_director/requests/compute/users_tests.rb
fog-ifeel-2.2.0 tests/vcloud_director/requests/compute/users_tests.rb
fog-2.2.0 tests/vcloud_director/requests/compute/users_tests.rb
fog-2.1.0 tests/vcloud_director/requests/compute/users_tests.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.4.0/gems/fog-1.42.1/tests/vcloud_director/requests/compute/users_tests.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.5.0/gems/fog-1.42.1/tests/vcloud_director/requests/compute/users_tests.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.3.0/gems/fog-1.42.1/tests/vcloud_director/requests/compute/users_tests.rb
fog-1.42.1 tests/vcloud_director/requests/compute/users_tests.rb
fog-vcloud-director-0.2.2 tests/vcloud_director/requests/compute/users_tests.rb
fog-vcloud-director-0.2.1 tests/vcloud_director/requests/compute/users_tests.rb
fog-vcloud-director-0.2.0 tests/vcloud_director/requests/compute/users_tests.rb
fog-vcloud-director-0.1.10 tests/vcloud_director/requests/compute/users_tests.rb
fog-vcloud-director-0.1.9 tests/vcloud_director/requests/compute/users_tests.rb
fog-2.0.0 tests/vcloud_director/requests/compute/users_tests.rb
fog-1.42.0 tests/vcloud_director/requests/compute/users_tests.rb
fog-1.41.0 tests/vcloud_director/requests/compute/users_tests.rb
fog-1.40.0 tests/vcloud_director/requests/compute/users_tests.rb
fog-1.39.0 tests/vcloud_director/requests/compute/users_tests.rb
fog-vcloud-director-0.1.8 tests/vcloud_director/requests/compute/users_tests.rb
fog-vcloud-director-0.1.7 tests/vcloud_director/requests/compute/users_tests.rb