mirror of
https://github.com/internetee/registry.git
synced 2025-06-10 14:44:47 +02:00
List EPP routes explicitly
This commit is contained in:
parent
ddaf9c9cbf
commit
cb3bf7ffdc
26 changed files with 145 additions and 120 deletions
|
@ -24,7 +24,7 @@ class EppDomainRenewBaseTest < EppTestCase
|
|||
</epp>
|
||||
XML
|
||||
|
||||
post '/epp/command/renew', { frame: request_xml }, 'HTTP_COOKIE' => 'session=api_bestnames'
|
||||
post epp_renew_path, { frame: request_xml }, 'HTTP_COOKIE' => 'session=api_bestnames'
|
||||
domain.reload
|
||||
|
||||
assert_epp_response :completed_successfully
|
||||
|
@ -50,7 +50,7 @@ class EppDomainRenewBaseTest < EppTestCase
|
|||
XML
|
||||
|
||||
assert_no_changes -> { domain.valid_to } do
|
||||
post '/epp/command/renew', { frame: request_xml }, 'HTTP_COOKIE' => 'session=api_bestnames'
|
||||
post epp_renew_path, { frame: request_xml }, 'HTTP_COOKIE' => 'session=api_bestnames'
|
||||
domain.reload
|
||||
end
|
||||
assert_epp_response :object_status_prohibits_operation
|
||||
|
@ -77,7 +77,7 @@ class EppDomainRenewBaseTest < EppTestCase
|
|||
XML
|
||||
|
||||
assert_no_changes -> { domain.valid_to } do
|
||||
post '/epp/command/renew', { frame: request_xml },
|
||||
post epp_renew_path, { frame: request_xml },
|
||||
'HTTP_COOKIE' => "session=#{session.session_id}"
|
||||
domain.reload
|
||||
end
|
||||
|
@ -105,7 +105,7 @@ class EppDomainRenewBaseTest < EppTestCase
|
|||
XML
|
||||
|
||||
assert_no_difference -> { domain.valid_to } do
|
||||
post '/epp/command/renew', { frame: request_xml }, 'HTTP_COOKIE' =>
|
||||
post epp_renew_path, { frame: request_xml }, 'HTTP_COOKIE' =>
|
||||
"session=#{session.session_id}"
|
||||
domain.reload
|
||||
end
|
||||
|
@ -132,7 +132,7 @@ class EppDomainRenewBaseTest < EppTestCase
|
|||
XML
|
||||
|
||||
assert_no_changes -> { domain.valid_to } do
|
||||
post '/epp/command/renew', { frame: request_xml }, 'HTTP_COOKIE' => 'session=api_bestnames'
|
||||
post epp_renew_path, { frame: request_xml }, 'HTTP_COOKIE' => 'session=api_bestnames'
|
||||
domain.reload
|
||||
end
|
||||
assert_epp_response :billing_failure
|
||||
|
@ -158,7 +158,7 @@ class EppDomainRenewBaseTest < EppTestCase
|
|||
XML
|
||||
|
||||
assert_no_changes -> { domain.valid_to } do
|
||||
post '/epp/command/renew', { frame: request_xml }, 'HTTP_COOKIE' => 'session=api_bestnames'
|
||||
post epp_renew_path, { frame: request_xml }, 'HTTP_COOKIE' => 'session=api_bestnames'
|
||||
domain.reload
|
||||
end
|
||||
assert_epp_response :parameter_value_policy_error
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue