Validate poll frames against schema #2660

This commit is contained in:
Martin Lensment 2015-06-02 15:16:08 +03:00
parent bf11806411
commit a2f981a5f1

View file

@ -12,6 +12,7 @@ describe 'EPP Poll', epp: true do
end
before(:all) do
@xsd = Nokogiri::XML::Schema(File.read('doc/schemas/epp-1.0.xsd'))
Fabricate(:api_user, username: 'registrar1', registrar: registrar1)
Fabricate(:api_user, username: 'registrar2', registrar: registrar2)
@ -85,7 +86,7 @@ describe 'EPP Poll', epp: true do
value: '', attrs: { op: 'bla' }
})
response = epp_plain_request(xml, :xml)
response = epp_plain_request(xml, validate_input: false)
response[:msg].should == 'Attribute is invalid: op'
end