mirror of
https://github.com/internetee/registry.git
synced 2025-06-06 20:55:44 +02:00
Fix CC & tests
This commit is contained in:
parent
9baa65a775
commit
16db7358cd
2 changed files with 6 additions and 4 deletions
|
@ -365,6 +365,7 @@ module Epp
|
||||||
|
|
||||||
def iptables_counter_update
|
def iptables_counter_update
|
||||||
return if ENV['iptables_counter_enabled'].blank? && ENV['iptables_counter_enabled'] != 'true'
|
return if ENV['iptables_counter_enabled'].blank? && ENV['iptables_counter_enabled'] != 'true'
|
||||||
|
|
||||||
counter_update(current_user.registrar_code, ENV['iptables_server_ip'])
|
counter_update(current_user.registrar_code, ENV['iptables_server_ip'])
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -109,8 +109,8 @@ class EppBaseTest < EppTestCase
|
||||||
</command>
|
</command>
|
||||||
</epp>
|
</epp>
|
||||||
XML
|
XML
|
||||||
post '/epp/command/info', { frame: authentication_enabled_epp_request_xml },
|
post '/epp/command/info', params: { frame: authentication_enabled_epp_request_xml },
|
||||||
'HTTP_COOKIE' => "session=#{session.session_id}"
|
headers: { 'HTTP_COOKIE' => "session=#{session.session_id}" }
|
||||||
|
|
||||||
assert_epp_response :authorization_error
|
assert_epp_response :authorization_error
|
||||||
assert_nil EppSession.find_by(session_id: session.session_id)
|
assert_nil EppSession.find_by(session_id: session.session_id)
|
||||||
|
@ -137,8 +137,9 @@ class EppBaseTest < EppTestCase
|
||||||
</epp>
|
</epp>
|
||||||
XML
|
XML
|
||||||
|
|
||||||
post '/epp/command/info', { frame: authentication_enabled_epp_request_xml },
|
post '/epp/command/info', params: { frame: authentication_enabled_epp_request_xml },
|
||||||
'HTTP_COOKIE' => "session=#{session.session_id}"
|
headers: { 'HTTP_COOKIE' => "session=#{session.session_id}" }
|
||||||
|
|
||||||
session.reload
|
session.reload
|
||||||
|
|
||||||
assert_epp_response :completed_successfully
|
assert_epp_response :completed_successfully
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue