diff --git a/app/models/legal_document.rb b/app/models/legal_document.rb index eba250991..07c50c5dc 100644 --- a/app/models/legal_document.rb +++ b/app/models/legal_document.rb @@ -21,7 +21,7 @@ class LegalDocument < ApplicationRecord def epp_code_map { - '2306' => [ + '2308' => [ %i[body length_more_than], %i[body length_less_than], ] diff --git a/config/locales/en.yml b/config/locales/en.yml index f5800127e..a909dfcf4 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -138,8 +138,8 @@ en: legal_document: attributes: body: - length_more_than: 'Parameter value policy error: legalDocument size should be more than 3kB' - length_less_than: 'Parameter value policy error: legalDocument size should be less than 8mB' + length_more_than: 'Parameter value policy error: Legaldoc size is less than minimum allowed size of 3kB' + length_less_than: 'Parameter value policy error: Legaldoc size exceeds maximum allowed size of 8mB' attributes: diff --git a/test/integration/epp/domain/create/base_test.rb b/test/integration/epp/domain/create/base_test.rb index 5069ddf41..59a8ddf77 100644 --- a/test/integration/epp/domain/create/base_test.rb +++ b/test/integration/epp/domain/create/base_test.rb @@ -74,7 +74,7 @@ class EppDomainCreateBaseTest < EppTestCase headers: { 'HTTP_COOKIE' => 'session=api_bestnames' } end - assert_epp_response :parameter_value_policy_error + assert_epp_response :data_management_policy_violation end def test_too_big_legal_document @@ -108,8 +108,8 @@ class EppDomainCreateBaseTest < EppTestCase headers: { 'HTTP_COOKIE' => 'session=api_bestnames' } end - assert_epp_response :parameter_value_policy_error - error_description = 'legalDocument size should be less than 8mB' + assert_epp_response :data_management_policy_violation + error_description = 'Legaldoc size exceeds maximum allowed size of 8mB' assert response.body.include? error_description end