require 'p4_web_api_client' def client_as_jdoe p4ws_host = ENV['WS_HOST'] || 'localhost:8080' conn = P4WebApiClient::Connection.new( url: "http://#{p4ws_host}/", user: 'jdoe', password: 'johndoe1A!', prefix: '/p4_web_api/v1' ) client = P4WebApiClient::Client.open(conn) yield client ensure client.close if client end def client_as_super p4ws_host = ENV['WS_HOST'] || 'localhost:8080' conn = P4WebApiClient::Connection.new( url: "http://#{p4ws_host}/", user: 'super', password: 'superuser1A!', prefix: '/p4_web_api/v1' ) client = P4WebApiClient::Client.open(conn) yield client ensure client.close if client end
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#5 | 13972 | tjuricek |
Removing old microservice implementations. The system is now mostly a monolith. Eventually there will be a websocket service. |
||
#4 | 13528 | tjuricek |
Moved rack and app server configuration to be managed via Salt. Also, only using a single value "url" to configure how the p4_project_services instance references the p4_web_api. And, removing the Docker setup, since that won't work for a production system. |
||
#3 | 13490 | tjuricek |
Removing external_links configuration references from the p4_web_api. P4WEBAPI-51 |
||
#2 | 13481 | tjuricek |
Tests for the p4 web api and p4 project services now pass against a development setup both in and out of the docker cluster. Note that configuration *has not* been finalized, so conventions to dealing with development vs production need to be organized a bit. |
||
#1 | 13474 | tjuricek | Corrected regressions that broke the API and Project services specs. | ||
//guest/perforce_software/helix-web-services/main/p4_web_api/clients/ruby/p4_web_api_client/spec/lib/test_connections.rb | |||||
#2 | 13418 | tjuricek | Added p4_project_services to development config.ru, and reconfigured p4 web api client tests to use the new paths. | ||
#1 | 13412 | tjuricek |
Initial version of the web-services mainline. This is a collection of several projects, that will likely often get released together, though many of them may not always be relevant. See the README for more information. |