mirror of
https://github.com/internetee/registry.git
synced 2025-06-08 21:54:48 +02:00
fixed dsnkey enabled method
This commit is contained in:
parent
825f813437
commit
2016c55cb9
2 changed files with 11 additions and 4 deletions
|
@ -173,8 +173,15 @@ module Epp
|
||||||
return true if doc.document.children.empty?
|
return true if doc.document.children.empty?
|
||||||
|
|
||||||
store = []
|
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
|
end
|
||||||
|
|
||||||
return true if store.size == 1 and store[0] == "keyData"
|
return true if store.size == 1 and store[0] == "keyData"
|
||||||
|
@ -184,7 +191,7 @@ module Epp
|
||||||
|
|
||||||
def dnskey_update_enabled
|
def dnskey_update_enabled
|
||||||
find_domain
|
find_domain
|
||||||
|
|
||||||
if @domain.dnskey_update_enabled? && !params[:parsed_frame].css('update').empty?
|
if @domain.dnskey_update_enabled? && !params[:parsed_frame].css('update').empty?
|
||||||
|
|
||||||
return if parsed_response_for_dnskey('add')
|
return if parsed_response_for_dnskey('add')
|
||||||
|
|
|
@ -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>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue