From ba9a485542156af2d40612b9fce1163086d2856b Mon Sep 17 00:00:00 2001 From: Alex Sherman Date: Mon, 26 Apr 2021 17:17:13 +0500 Subject: [PATCH] Add test to check response on /error/ epp endpoint --- test/integration/epp/base_test.rb | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/test/integration/epp/base_test.rb b/test/integration/epp/base_test.rb index 2d19a6fa8..3e40ac525 100644 --- a/test/integration/epp/base_test.rb +++ b/test/integration/epp/base_test.rb @@ -34,6 +34,13 @@ class EppBaseTest < EppTestCase end end + def test_additional_error + get '/epp/error', params: { frame: valid_request_xml }, + headers: { 'HTTP_COOKIE' => 'session=api_bestnames' } + + assert_epp_response :unknown_command + end + def test_validates_request_xml invalid_xml = <<-XML