Sha256: d48395e6b1ae8ccca4bff64b10ec148fe98cef42179ae249597974603bfd9223
Contents?: true
Size: 1016 Bytes
Versions: 3
Compression:
Stored size: 1016 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", "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 end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
rhoconnect-4.0.4 | spec/api/source/list_sources_spec.rb |
rhoconnect-4.0.3 | spec/api/source/list_sources_spec.rb |
rhoconnect-4.0.2 | spec/api/source/list_sources_spec.rb |