Sha256: 03fb36f1bd604ce3977841ddd60271ccf55cde58aaa828147d5659a69269cac1

Contents?: true

Size: 978 Bytes

Versions: 15

Compression:

Stored size: 978 Bytes

Contents

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

describe "RhoconnectApiListSources" do
  include_examples "ApiHelper"

  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", "JsSample"].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", "JsSample"].sort
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

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