diff --git a/app/controllers/repp/v1/base_controller.rb b/app/controllers/repp/v1/base_controller.rb index 2cb6d1414..f6b3b4f7d 100644 --- a/app/controllers/repp/v1/base_controller.rb +++ b/app/controllers/repp/v1/base_controller.rb @@ -161,7 +161,7 @@ module Repp def skip_webclient_user_cert_validation? !webclient_request? || request.headers['Requester'] == 'tara' || - Rails.env.development? || Rails.env.test? + Rails.env.development? end def auth_values_to_data(registrar:) diff --git a/test/application_system_test_case.rb b/test/application_system_test_case.rb index 726767390..63c91fcde 100644 --- a/test/application_system_test_case.rb +++ b/test/application_system_test_case.rb @@ -19,6 +19,7 @@ end class JavaScriptApplicationSystemTestCase < ApplicationSystemTestCase self.use_transactional_tests = false DatabaseCleaner.strategy = :truncation + Webdrivers::Chromedriver.required_version = '114.0.5735.90' Capybara.register_driver(:chrome) do |app| options = ::Selenium::WebDriver::Chrome::Options.new diff --git a/test/integration/repp/v1/base_test.rb b/test/integration/repp/v1/base_test.rb index 1d51c9a1e..9d976d30c 100644 --- a/test/integration/repp/v1/base_test.rb +++ b/test/integration/repp/v1/base_test.rb @@ -43,7 +43,7 @@ class ReppV1BaseTest < ActionDispatch::IntegrationTest assert_equal 'Invalid authorization information', response_json[:message] end - def test_takes_ip_whitelist_into_account + def test_takes_ip_whitelist_into_account_if_api_request Setting.api_ip_whitelist_enabled = true Setting.registrar_ip_whitelist_enabled = true @@ -67,7 +67,7 @@ class ReppV1BaseTest < ActionDispatch::IntegrationTest Repp::V1::BaseController.stub_any_instance(:webclient_request?, true) do Repp::V1::BaseController.stub_any_instance(:validate_webclient_ca, true) do - get repp_v1_contacts_path, headers: @auth_headers.merge!({ 'Request-IP' => whiteip.ipv4 }) + get repp_v1_registrar_auth_index_path, headers: @auth_headers.merge!({ 'Request-IP' => whiteip.ipv4 }) end end