Sha256: a3fea8271f96cde7cab0c0637b3884830aa247083285b923c3c3cbfd8e413659

Contents?: true

Size: 678 Bytes

Versions: 21

Compression:

Stored size: 678 Bytes

Contents

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

describe "RhoconnectApiShowUser" do
  it_should_behave_like "ApiHelper" do
    it "should show user" do
      params = {:attributes => {:login => 'testuser1', :password => 'testpass1'}}
      post "/rc/#{Rhoconnect::API_VERSION}/users", params, {Rhoconnect::API_TOKEN_HEADER => @api_token}
      last_response.should be_ok
      get "/rc/#{Rhoconnect::API_VERSION}/users/#{params[:attributes][:login]}", {}, {Rhoconnect::API_TOKEN_HEADER => @api_token}
      last_response.should be_ok
      JSON.parse(last_response.body).should include({"name"=>"login", "value"=>"testuser1", "type"=>"string"}) 
    end
  end  
end

Version data entries

21 entries across 21 versions & 1 rubygems

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