Sha256: bdbbe05dcdebab71e781c49c9f3c336127be8bd3175b19d2a44dd0a36a1fd65d
Contents?: true
Size: 1.2 KB
Versions: 21
Compression:
Stored size: 1.2 KB
Contents
require File.join(File.dirname(__FILE__),'..','api_helper') describe "RhoconnectApiAppServer" do it_should_behave_like "ApiHelper" do it "should save adapter url" do params = {:attributes => {:adapter_url => 'http://test.com'}} post "/rc/#{Rhoconnect::API_VERSION}/system/appserver", params, {Rhoconnect::API_TOKEN_HEADER => @api_token} last_response.should be_ok end it "should get adapter url" do params = {} get "/rc/#{Rhoconnect::API_VERSION}/system/appserver", params, {Rhoconnect::API_TOKEN_HEADER => @api_token} last_response.should be_ok end it "should get check deprecation warning in /api/get_adapter" do params = {} post "/api/get_adapter", params, {Rhoconnect::API_TOKEN_HEADER => @api_token} last_response.should be_ok last_response.headers["Warning"].index('deprecated').should_not == nil end it "should get check deprecation warning in /api/source/get_adapter" do params = {} post "/api/source/get_adapter", params, {Rhoconnect::API_TOKEN_HEADER => @api_token} last_response.should be_ok last_response.headers["Warning"].index('deprecated').should_not == nil end end end
Version data entries
21 entries across 21 versions & 1 rubygems