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