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