mirror of
https://github.com/internetee/registry.git
synced 2025-06-05 12:17:30 +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
|
||||
return if ENV['iptables_counter_enabled'].blank? && ENV['iptables_counter_enabled'] != 'true'
|
||||
|
||||
counter_update(current_user.registrar_code, ENV['iptables_server_ip'])
|
||||
end
|
||||
|
||||
|
|
|
@ -109,8 +109,8 @@ class EppBaseTest < EppTestCase
|
|||
</command>
|
||||
</epp>
|
||||
XML
|
||||
post '/epp/command/info', { frame: authentication_enabled_epp_request_xml },
|
||||
'HTTP_COOKIE' => "session=#{session.session_id}"
|
||||
post '/epp/command/info', params: { frame: authentication_enabled_epp_request_xml },
|
||||
headers: { 'HTTP_COOKIE' => "session=#{session.session_id}" }
|
||||
|
||||
assert_epp_response :authorization_error
|
||||
assert_nil EppSession.find_by(session_id: session.session_id)
|
||||
|
@ -137,8 +137,9 @@ class EppBaseTest < EppTestCase
|
|||
</epp>
|
||||
XML
|
||||
|
||||
post '/epp/command/info', { frame: authentication_enabled_epp_request_xml },
|
||||
'HTTP_COOKIE' => "session=#{session.session_id}"
|
||||
post '/epp/command/info', params: { frame: authentication_enabled_epp_request_xml },
|
||||
headers: { 'HTTP_COOKIE' => "session=#{session.session_id}" }
|
||||
|
||||
session.reload
|
||||
|
||||
assert_epp_response :completed_successfully
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue