$:.push File.expand_path("../../lib", __FILE__)
require 'helix_web_services_client'
require_relative './util/test_config'
require_relative './util/string_utils'
require 'pp'
api = api_as_super
protections = api.server_protections_get('localhost')
unless protections.protections.length >= 2
raise 'did not load correct protections table'
end
protections.protections << 'super user jdoe * //...'
api.server_protections_put('localhost', protections)
updated = api.server_protections_get('localhost')
unless updated.protections.any? { |p| p == 'super user jdoe * //...' }
raise 'did not update protections table'
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/default_api.server_protections.basic_add-remove_tests.rb |
#1
|
19199 |
tjuricek |
Ruby Client SDK tests, labels through users. |
|
|