Sha256: 6800d74027e54227402fc0cf9c5f9837172cc15de3457a5ae0ee9cb1d13ab58d

Contents?: true

Size: 597 Bytes

Versions: 15

Compression:

Stored size: 597 Bytes

Contents

require File.join(File.dirname(__FILE__),'..','api_helper')

describe "RhoconnectApiClientSetDbDoc" do
  include_examples "ApiHelper"

  it "should set client's db document by doc key and data" do
    data = {'1' => {'foo' => 'bar'}}
    dockey = 'myclientdoc'
    Client.define_valid_doctypes([dockey])
    post "/rc/#{Rhoconnect::API_VERSION}/clients/#{@c.id}/sources/#{@c.source_name}/docs/#{dockey}", {:data => data}, {Rhoconnect::API_TOKEN_HEADER => @api_token}
    last_response.should be_ok
    verify_doc_result(@c, dockey => data)
    Client.valid_doctypes.delete(dockey.to_sym)
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
rhoconnect-7.6.0 spec/api/client/client_set_db_doc_spec.rb
rhoconnect-7.5.1 spec/api/client/client_set_db_doc_spec.rb
rhoconnect-7.4.1 spec/api/client/client_set_db_doc_spec.rb
rhoconnect-7.1.17 spec/api/client/client_set_db_doc_spec.rb
rhoconnect-6.2.0 spec/api/client/client_set_db_doc_spec.rb
rhoconnect-6.0.11 spec/api/client/client_set_db_doc_spec.rb
rhoconnect-5.5.18 spec/api/client/client_set_db_doc_spec.rb
rhoconnect-5.5.17 spec/api/client/client_set_db_doc_spec.rb
rhoconnect-5.5.15 spec/api/client/client_set_db_doc_spec.rb
rhoconnect-5.5.0.22 spec/api/client/client_set_db_doc_spec.rb
rhoconnect-5.5.2 spec/api/client/client_set_db_doc_spec.rb
rhoconnect-5.5.0.7 spec/api/client/client_set_db_doc_spec.rb
rhoconnect-5.5.0.3 spec/api/client/client_set_db_doc_spec.rb
rhoconnect-5.5.0 spec/api/client/client_set_db_doc_spec.rb
rhoconnect-5.1.1 spec/api/client/client_set_db_doc_spec.rb