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,8 +173,15 @@ module Epp
return true if doc.document.children.empty?
store = []
doc.document.add.children.each_with_index do |x, i|
store << doc.document.add.children[i].name
if value == 'add'
doc.document.add.children.each_with_index do |x, i|
store << doc.document.add.children[i].name
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"
@ -184,7 +191,7 @@ module Epp
def dnskey_update_enabled
find_domain
if @domain.dnskey_update_enabled? && !params[:parsed_frame].css('update').empty?
return if parsed_response_for_dnskey('add')

View file

@ -22,7 +22,7 @@ class RegistrarAreaXmlConsolesTest < ApplicationSystemTestCase
<epp xmlns="https://epp.tld.ee/schema/epp-ee-1.0.xsd">
<command>
<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:check>
</check>