Sha256: 402a755b29888c4d3189e30a763b64a04844cbcf9b0350387b4949b3eb005b7d

Contents?: true

Size: 1.16 KB

Versions: 22

Compression:

Stored size: 1.16 KB

Contents

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

describe "RhoconnectApiListSourceDocs" do
  it_should_behave_like "ApiHelper" do
    it "should list of shared source documents" do
      post "/api/source/list_source_docs", {:api_token => @api_token,
        :source_id => "SimpleAdapter", :user_id => '*'}
      JSON.parse(last_response.body).should == {
        "md"=>"source:application:__shared__:SimpleAdapter:md", 
        "errors"=>"source:application:__shared__:SimpleAdapter:errors", 
        "md_size"=>"source:application:__shared__:SimpleAdapter:md_size", 
        "md_copy"=>"source:application:__shared__:SimpleAdapter:md_copy"}
    end

    it "should list user source documents" do
      post "/api/source/list_source_docs", {:api_token => @api_token,
        :source_id => "SampleAdapter", :user_id => @u.id}
      JSON.parse(last_response.body).should == {
        "md"=>"source:application:testuser:SampleAdapter:md", 
        "errors"=>"source:application:testuser:SampleAdapter:errors", 
        "md_size"=>"source:application:testuser:SampleAdapter:md_size", 
        "md_copy"=>"source:application:testuser:SampleAdapter:md_copy"}
    end
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
rhoconnect-3.2.1 spec/api/source/list_source_docs_spec.rb
rhoconnect-3.2.0 spec/api/source/list_source_docs_spec.rb
rhoconnect-3.2.0.beta5 spec/api/source/list_source_docs_spec.rb
rhoconnect-3.2.0.beta4 spec/api/source/list_source_docs_spec.rb
rhoconnect-3.2.0.beta3 spec/api/source/list_source_docs_spec.rb
rhoconnect-3.2.0.beta2 spec/api/source/list_source_docs_spec.rb
rhoconnect-3.2.0.beta1 spec/api/source/list_source_docs_spec.rb
rhoconnect-3.1.2 spec/api/source/list_source_docs_spec.rb
rhoconnect-3.1.1 spec/api/source/list_source_docs_spec.rb
rhoconnect-3.1.0 spec/api/source/list_source_docs_spec.rb
rhoconnect-3.1.0.beta2 spec/api/source/list_source_docs_spec.rb
rhoconnect-3.1.0.beta1 spec/api/source/list_source_docs_spec.rb
rhoconnect-3.0.6 spec/api/source/list_source_docs_spec.rb
rhoconnect-3.0.5 spec/api/source/list_source_docs_spec.rb
rhoconnect-3.0.4 spec/api/source/list_source_docs_spec.rb
rhoconnect-3.0.3 spec/api/source/list_source_docs_spec.rb
rhoconnect-3.0.2 spec/api/source/list_source_docs_spec.rb
rhoconnect-3.0.1 spec/api/source/list_source_docs_spec.rb
rhoconnect-3.0.0 spec/api/source/list_source_docs_spec.rb
rhoconnect-3.0.0.rc1 spec/api/source/list_source_docs_spec.rb