Change EPP response code according to its specification

Fixes #718
This commit is contained in:
Artur Beljajev 2019-09-13 21:29:49 +03:00
parent 03c81c4c5d
commit 79d9c631f5
6 changed files with 25 additions and 17 deletions

View file

@ -64,7 +64,7 @@ class EppDomainDeleteBaseTest < EppTestCase
assert_no_difference 'Domain.count' do
post '/epp/command/delete', { frame: request_xml }, 'HTTP_COOKIE' => 'session=api_bestnames'
end
assert_epp_response :object_is_not_eligible_for_renewal
assert_epp_response :object_status_prohibits_operation
end
def test_requests_registrant_confirmation_when_required

View file

@ -47,6 +47,6 @@ class EppDomainUpdateTest < EppTestCase
XML
post '/epp/command/update', { frame: request_xml }, 'HTTP_COOKIE' => 'session=api_bestnames'
assert_epp_response :object_is_not_eligible_for_renewal
assert_epp_response :object_status_prohibits_operation
end
end

View file

@ -86,7 +86,7 @@ class EppDomainTransferRequestTest < EppTestCase
@domain.reload
assert_equal registrars(:bestnames), @domain.registrar
assert_epp_response :object_is_not_eligible_for_renewal
assert_epp_response :object_is_not_eligible_for_transfer
end
def test_same_registrar