Sha256: 50f016317d557d229c2b42ab057133bf424d0462278b7ef2afad1b7204697a1d

Contents?: true

Size: 1.13 KB

Versions: 15

Compression:

Stored size: 1.13 KB

Contents

require File.join(File.dirname(__FILE__),'..','api_helper')

describe "RhoconnectApiAppServer" do
  include_examples "ApiHelper"

  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

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
rhoconnect-7.6.0 spec/api/system/adapter_spec.rb
rhoconnect-7.5.1 spec/api/system/adapter_spec.rb
rhoconnect-7.4.1 spec/api/system/adapter_spec.rb
rhoconnect-7.1.17 spec/api/system/adapter_spec.rb
rhoconnect-6.2.0 spec/api/system/adapter_spec.rb
rhoconnect-6.0.11 spec/api/system/adapter_spec.rb
rhoconnect-5.5.18 spec/api/system/adapter_spec.rb
rhoconnect-5.5.17 spec/api/system/adapter_spec.rb
rhoconnect-5.5.15 spec/api/system/adapter_spec.rb
rhoconnect-5.5.0.22 spec/api/system/adapter_spec.rb
rhoconnect-5.5.2 spec/api/system/adapter_spec.rb
rhoconnect-5.5.0.7 spec/api/system/adapter_spec.rb
rhoconnect-5.5.0.3 spec/api/system/adapter_spec.rb
rhoconnect-5.5.0 spec/api/system/adapter_spec.rb
rhoconnect-5.1.1 spec/api/system/adapter_spec.rb