def hws_host ENV['HWS_HOST'] || 'localhost:9000' end def api_no_auth api = HelixWebServices::DefaultApi.new api.api_client.config.host = hws_host api end def api_as_jdoe api = HelixWebServices::DefaultApi.new api.api_client.config.host = hws_host login_request = HelixWebServices::LoginRequest.new(:user => 'jdoe', :password => 'johndoe1A!') login_response = api.login_post(login_request) api.api_client.config.api_key['Authorization'] = login_response.ticket api end def api_as_super api = HelixWebServices::DefaultApi.new api.api_client.config.host = hws_host login_request = HelixWebServices::LoginRequest.new(:user => 'super', :password => 'superuser1A!') login_response = api.login_post(login_request) api.api_client.config.api_key['Authorization'] = login_response.ticket api end
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#1 | 19553 | swellard | Move and rename clients | ||
//guest/perforce_software/helix-web-services/main/source/clients/2016.1.0/ruby/test/util/test_config.rb | |||||
#2 | 19198 | tjuricek |
Ruby Client SDK tests, from branches to jobs. Submitting since I've had to alter the Ruby swagger templates, and I want to make sure I haven't lost something. |
||
#1 | 19190 | tjuricek | Ruby Client SDK test reconfiguration and tests for branches, login, p4d configuration |