Sha256: 5ff2d49d8a17a4e180e4a6e4818e1f94a6751e5a927563b73db0f7f9cce88746

Contents?: true

Size: 1.91 KB

Versions: 22

Compression:

Stored size: 1.91 KB

Contents

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

describe "RhoconnectApiListClientDocs" do
  it_should_behave_like "ApiHelper" do
    it "should list client documents" do
      post "/api/client/list_client_docs", {:api_token => @api_token,
        :source_id => "SimpleAdapter", :client_id => @c.id}
      JSON.parse(last_response.body).should == {
        "cd"=>"client:application:testuser:#{@c.id}:SimpleAdapter:cd", 
        "cd_size"=>"client:application:testuser:#{@c.id}:SimpleAdapter:cd_size", 
        "create"=>"client:application:testuser:#{@c.id}:SimpleAdapter:create", 
        "update"=>"client:application:testuser:#{@c.id}:SimpleAdapter:update", 
        "delete"=>"client:application:testuser:#{@c.id}:SimpleAdapter:delete", 

        "page"=>"client:application:testuser:#{@c.id}:SimpleAdapter:page", 
        "page_token"=>"client:application:testuser:#{@c.id}:SimpleAdapter:page_token", 
        "delete_page"=>"client:application:testuser:#{@c.id}:SimpleAdapter:delete_page", 
        "create_links"=>"client:application:testuser:#{@c.id}:SimpleAdapter:create_links", 
        "create_links_page"=>"client:application:testuser:#{@c.id}:SimpleAdapter:create_links_page", 

        "delete_errors"=>"client:application:testuser:#{@c.id}:SimpleAdapter:delete_errors", 
        "login_error"=>"client:application:testuser:#{@c.id}:SimpleAdapter:login_error", 
        "create_errors"=>"client:application:testuser:#{@c.id}:SimpleAdapter:create_errors", 
        "update_errors"=>"client:application:testuser:#{@c.id}:SimpleAdapter:update_errors", 
        "logoff_error"=>"client:application:testuser:#{@c.id}:SimpleAdapter:logoff_error", 

        "search"=>"client:application:testuser:#{@c.id}:SimpleAdapter:search",
        "search_token"=>"client:application:testuser:#{@c.id}:SimpleAdapter:search_token", 
        "search_errors"=>"client:application:testuser:#{@c.id}:SimpleAdapter:search_errors"}
    end
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

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