Fix CC & tests

This commit is contained in:
Alex Sherman 2020-08-31 13:48:11 +05:00
parent 9baa65a775
commit 16db7358cd
2 changed files with 6 additions and 4 deletions

View file

@ -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

View file

@ -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