$:.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