require_relative '../test_config' require 'helix_versioning_engine' # Yes, this is a weird spec. I just want to make sure the code generally # runs for the Helix Sync "on premise" use case. describe 'HelixVersioningEngine login' do include Rack::Test::Methods def app HELIX_WEB_SERVICES_APP end context 'POST /p4/v78/login' do it 'can create ... the same ticket' do authorize 'jdoe', ticket_for_jdoe post('/p4/v78/login', {user: 'jdoe', password: JDOE_PASSWORD}) expect(last_response.status).to eq(200) ticket = JSON.parse(last_response.body)['ticket'] expect(ticket).to eq(p4ticket_for_jdoe) end end end
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#3 | 16114 | Doug Scheirer | Merge from main | ||
#2 | 16024 | Doug Scheirer | Some cloud spec forking, got the mock_raymond to spin up in cloud testing, split normal vs cloud spec output | ||
#1 | 15715 | Doug Scheirer | merge changes from main | ||
//guest/perforce_software/helix-web-services/main/source/helix_web_services/spec/helix_versioning_engine/login_spec.rb | |||||
#1 | 15698 | tjuricek |
Added a /helix_versioning_engine/v[api]/login method This is used by the Helix Sync client to differentiate the auth source of HWS from that of P4D (to be used for projects). |