mirror of
https://github.com/internetee/registry.git
synced 2025-05-19 10:49:39 +02:00
No need to validate input in tests anymore #2752
This commit is contained in:
parent
e463fe4d70
commit
cd9851df2f
2 changed files with 14 additions and 8 deletions
|
@ -67,15 +67,15 @@ module Epp
|
|||
|
||||
def epp_plain_request(data, *args)
|
||||
options = args.extract_options!
|
||||
validate_input = options[:validate_input] != false # true by default
|
||||
# validate_input = options[:validate_input] != false # true by default
|
||||
validate_output = options[:validate_output] != false # true by default
|
||||
|
||||
if validate_input && @xsd
|
||||
xml = Nokogiri::XML(data)
|
||||
@xsd.validate(xml).each do |error|
|
||||
fail Exception.new, error.to_s
|
||||
end
|
||||
end
|
||||
# if validate_input && @xsd
|
||||
# xml = Nokogiri::XML(data)
|
||||
# @xsd.validate(xml).each do |error|
|
||||
# fail Exception.new, error.to_s
|
||||
# end
|
||||
# end
|
||||
|
||||
res = parse_response(server.send_request(data))
|
||||
if res
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue