# Copyright (c) 2014 Perforce Software, Inc. All rights reserved. require 'rspec' require 'p4_web_api_client' require_relative 'test_connections' RSpec.describe P4WebApiClient::Client, '#triggers' do it 'should allow us to update and fetch a new example trigger line' do client_as_super do |c| t = c.triggers t.triggers << 'cscheck change-submit //depot/... "cmd %changelist%"' c.update_triggers(t) loaded = c.triggers expected_trigger = 'cscheck change-submit //depot/... "cmd %changelist%"' expect(loaded.triggers).to include(expected_trigger) end end it 'should allow us to clear out the triggers table' do client_as_super do |c| triggers = c.triggers triggers.triggers = [] c.update_triggers(triggers) updated = c.triggers expect(updated.triggers.length).to eq(0) end end end
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#3 | 13972 | tjuricek |
Removing old microservice implementations. The system is now mostly a monolith. Eventually there will be a websocket service. |
||
#2 | 13474 | tjuricek | Corrected regressions that broke the API and Project services specs. | ||
#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. |