mirror of
https://github.com/internetee/registry.git
synced 2025-07-25 12:08:27 +02:00
updated tests
This commit is contained in:
parent
1bb5dddd58
commit
81b476f37f
3 changed files with 2 additions and 183 deletions
|
@ -59,7 +59,7 @@ class RegistrantApiRegistryLocksTest < ApplicationIntegrationTest
|
|||
end
|
||||
|
||||
def test_can_unlock_a_locked_domain
|
||||
@domain.apply_registry_lock
|
||||
@domain.apply_registry_lock(extensionsProhibited: false)
|
||||
|
||||
delete '/api/v1/registrant/domains/2df2c1a1-8f6a-490a-81be-8bdf29866880/registry_lock',
|
||||
headers: @auth_headers
|
||||
|
|
|
@ -11,7 +11,7 @@ class DomainRegistryLockableTest < ActiveSupport::TestCase
|
|||
refute(@domain.locked_by_registrant?)
|
||||
@domain.update(statuses: [DomainStatus::SERVER_TRANSFER_PROHIBITED])
|
||||
|
||||
@domain.apply_registry_lock # Raise validation error
|
||||
@domain.apply_registry_lock(extensionsProhibited: false) # Raise validation error
|
||||
|
||||
check_statuses_lockable_domain
|
||||
assert(@domain.locked_by_registrant?)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue