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

Version Path
rhoconnect-4.0.4 spec/api/system/adapter_spec.rb
rhoconnect-4.0.3 spec/api/system/adapter_spec.rb
rhoconnect-4.0.2 spec/api/system/adapter_spec.rb
rhoconnect-4.0.1 spec/api/system/adapter_spec.rb
rhoconnect-4.0.0 spec/api/system/adapter_spec.rb
rhoconnect-4.0.0.beta.24 spec/api/system/adapter_spec.rb
rhoconnect-3.4.5 spec/api/system/adapter_spec.rb
rhoconnect-4.0.0.beta.10 spec/api/system/adapter_spec.rb
rhoconnect-4.0.0.beta.12 spec/api/system/adapter_spec.rb
rhoconnect-3.4.4 spec/api/system/adapter_spec.rb
rhoconnect-3.4.3 spec/api/system/adapter_spec.rb
rhoconnect-3.4.2 spec/api/system/adapter_spec.rb
rhoconnect-3.3.6 spec/api/system/adapter_spec.rb
rhoconnect-3.3.5 spec/api/system/adapter_spec.rb
rhoconnect-3.3.4 spec/api/system/adapter_spec.rb
rhoconnect-3.3.3 spec/api/system/adapter_spec.rb
rhoconnect-3.3.2 spec/api/system/adapter_spec.rb
rhoconnect-3.3.1 spec/api/system/adapter_spec.rb
rhoconnect-3.3.1.beta4 spec/api/system/adapter_spec.rb
rhoconnect-3.3.1.beta3 spec/api/system/adapter_spec.rb