Sha256: 53ac2b9972ed5406deacab631083ce08c8fa917c5ba89b3d0195d44d34c7dc2f

Contents?: true

Size: 630 Bytes

Versions: 8

Compression:

Stored size: 630 Bytes

Contents

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

describe "RhoconnectApiClientSetDbDoc" do
  it_should_behave_like "ApiHelper" do
    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  
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
rhoconnect-4.0.4 spec/api/client/client_set_db_doc_spec.rb
rhoconnect-4.0.3 spec/api/client/client_set_db_doc_spec.rb
rhoconnect-4.0.2 spec/api/client/client_set_db_doc_spec.rb
rhoconnect-4.0.1 spec/api/client/client_set_db_doc_spec.rb
rhoconnect-4.0.0 spec/api/client/client_set_db_doc_spec.rb
rhoconnect-4.0.0.beta.24 spec/api/client/client_set_db_doc_spec.rb
rhoconnect-4.0.0.beta.10 spec/api/client/client_set_db_doc_spec.rb
rhoconnect-4.0.0.beta.12 spec/api/client/client_set_db_doc_spec.rb