Sha256: d7dbe24ddc344366a1b2d0bd42c3035157aa54049343fff13f06c320e37f8c11

Contents?: true

Size: 993 Bytes

Versions: 18

Compression:

Stored size: 993 Bytes

Contents

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

describe "RhoconnectApiListSources" do
  it_should_behave_like "ApiHelper" do
    it "should list all application sources using partition_type param" do
      get "/rc/#{Rhoconnect::API_VERSION}/sources/type/all", {}, {Rhoconnect::API_TOKEN_HEADER => @api_token}
      JSON.parse(last_response.body).sort.should == ["SimpleAdapter", "SampleAdapter", "FixedSchemaAdapter", "OtherAdapter"].sort
    end

    it "should list app partition sources" do
      get "/rc/#{Rhoconnect::API_VERSION}/sources/type/app", {}, {Rhoconnect::API_TOKEN_HEADER => @api_token}
      JSON.parse(last_response.body).sort.should == ["SimpleAdapter", "OtherAdapter"].sort
    end

    it "should list user partition sources" do
      get "/rc/#{Rhoconnect::API_VERSION}/sources/type/user", {}, {Rhoconnect::API_TOKEN_HEADER => @api_token}
      JSON.parse(last_response.body).sort.should == ["SampleAdapter", "FixedSchemaAdapter"].sort
    end
  end  
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
rhoconnect-4.0.1 spec/api/source/list_sources_spec.rb
rhoconnect-4.0.0 spec/api/source/list_sources_spec.rb
rhoconnect-4.0.0.beta.24 spec/api/source/list_sources_spec.rb
rhoconnect-3.4.5 spec/api/source/list_sources_spec.rb
rhoconnect-4.0.0.beta.10 spec/api/source/list_sources_spec.rb
rhoconnect-4.0.0.beta.12 spec/api/source/list_sources_spec.rb
rhoconnect-3.4.4 spec/api/source/list_sources_spec.rb
rhoconnect-3.4.3 spec/api/source/list_sources_spec.rb
rhoconnect-3.4.2 spec/api/source/list_sources_spec.rb
rhoconnect-3.3.6 spec/api/source/list_sources_spec.rb
rhoconnect-3.3.5 spec/api/source/list_sources_spec.rb
rhoconnect-3.3.4 spec/api/source/list_sources_spec.rb
rhoconnect-3.3.3 spec/api/source/list_sources_spec.rb
rhoconnect-3.3.2 spec/api/source/list_sources_spec.rb
rhoconnect-3.3.1 spec/api/source/list_sources_spec.rb
rhoconnect-3.3.1.beta4 spec/api/source/list_sources_spec.rb
rhoconnect-3.3.1.beta3 spec/api/source/list_sources_spec.rb
rhoconnect-3.3.1.beta2 spec/api/source/list_sources_spec.rb