fixed dsnkey enabled method

This commit is contained in:
olegphenomenon 2021-09-09 15:05:17 +03:00
parent 825f813437
commit 2016c55cb9
2 changed files with 11 additions and 4 deletions

View file

@ -173,9 +173,16 @@ module Epp
return true if doc.document.children.empty? return true if doc.document.children.empty?
store = [] store = []
if value == 'add'
doc.document.add.children.each_with_index do |x, i| doc.document.add.children.each_with_index do |x, i|
store << doc.document.add.children[i].name store << doc.document.add.children[i].name
end end
else
doc.document.rem.children.each_with_index do |x, i|
store << doc.document.rem.children[i].name
end
end
return true if store.size == 1 and store[0] == "keyData" return true if store.size == 1 and store[0] == "keyData"

View file

@ -22,7 +22,7 @@ class RegistrarAreaXmlConsolesTest < ApplicationSystemTestCase
<epp xmlns="https://epp.tld.ee/schema/epp-ee-1.0.xsd"> <epp xmlns="https://epp.tld.ee/schema/epp-ee-1.0.xsd">
<command> <command>
<check> <check>
<domain:check xmlns:domain="https://epp.tld.ee/schema/domain-ee-1.1.xsd"> <domain:check xmlns:domain="https://epp.tld.ee/schema/domain-ee-1.2.xsd">
<domain:name>auction.test</domain:name> <domain:name>auction.test</domain:name>
</domain:check> </domain:check>
</check> </check>