mirror of
https://github.com/internetee/registry.git
synced 2025-07-21 18:26:06 +02:00
Validate poll frames against schema #2660
This commit is contained in:
parent
bf11806411
commit
a2f981a5f1
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue