Change 13416

tjuricek
tjuricek committed this change into //guest/perforce_software/helix-web-services/main
Request Review
Download .zip
Set up the p4_web_api related projects to be loaded by the parent Gemfile to make it a little easier to launch a test p4d with different seed data.

Also fixed a couple of minor issues related to the client api.

You'll notice that the 'rake api_reset api_init' task sets up a p4d for the p4_web_api tests, where the 'rake proj_reset proj_init' tasks set up p4d for project services testing.

An example p4_web_api.ru that can be used for launching just the p4_web_api:

require 'p4_web_api'

# Do *not* let your development environment variables pollute how the p4 web api runs!
ENV.keys.select { |k| k =~ /^P4/ }.each { |k| ENV.delete(k) }

api = P4WebAPI::App.new
puts 'changing paths'
api.settings.token_path = '/Users/tjuricek/dev/p4ws/work/tokens'
api.settings.workspace_folder = '/Users/tjuricek/dev/p4ws/work/workspaces'
api.settings.p4 = {'port' => 'localhost:1666', 'charset' => 'auto'}

run api
  • Files 6
  • Comments 0
6 edited 0 added 0 deleted
Gemfile#2
Loading...
Rakefile#2
Loading...
p4_web_api/clients/ruby/p4_web_api_client/p4_web_api_client.gemspec#2
Loading...
p4_web_api/p4_web_api/lib/p4_web_api/app/files.rb#2
Loading...
p4_web_api/p4_web_api/lib/p4_web_api/p4_util.rb#2
Loading...
p4_web_services_auth/p4_web_services_auth.gemspec#2
Loading...
Tip: Use n and p to cycle through the changes.