Sha256: d8fd53d7f20ba1a8d49116ae3fbd823abebe27d129258b21daf2a1e04ba9ab3d
Contents?: true
Size: 643 Bytes
Versions: 2
Compression:
Stored size: 643 Bytes
Contents
Shindo.tests('Compute::VcloudDirector | users requests', ['vclouddirector']) do @service = Fog::VcloudDirector::Compute.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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
fog-vcloud-director-0.3.1 | tests/vcloud_director/requests/compute/users_tests.rb |
fog-vcloud-director-0.3.0 | tests/vcloud_director/requests/compute/users_tests.rb |