From 16db7358cd14a0ba68632b0343abd1ddd3329dc4 Mon Sep 17 00:00:00 2001 From: Alex Sherman Date: Mon, 31 Aug 2020 13:48:11 +0500 Subject: [PATCH] Fix CC & tests --- app/controllers/epp/base_controller.rb | 1 + test/integration/epp/base_test.rb | 9 +++++---- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/app/controllers/epp/base_controller.rb b/app/controllers/epp/base_controller.rb index 51561f1ee..e3ac81815 100644 --- a/app/controllers/epp/base_controller.rb +++ b/app/controllers/epp/base_controller.rb @@ -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 diff --git a/test/integration/epp/base_test.rb b/test/integration/epp/base_test.rb index 2610ddb98..2d19a6fa8 100644 --- a/test/integration/epp/base_test.rb +++ b/test/integration/epp/base_test.rb @@ -109,8 +109,8 @@ class EppBaseTest < EppTestCase 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 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