mirror of
https://github.com/internetee/registry.git
synced 2025-08-04 08:52:04 +02:00
Merge pull request #2197 from internetee/2195-setting-fd-to-locked-domains-remove-delete-prohibited-status
2195 setting fd to locked domains remove delete prohibited status
This commit is contained in:
commit
d67af520b8
5 changed files with 23 additions and 3 deletions
|
@ -102,8 +102,7 @@ class ForceDeleteTest < ActionMailer::TestCase
|
|||
|
||||
def test_scheduling_force_delete_allows_domain_deletion
|
||||
statuses_to_be_removed = [
|
||||
DomainStatus::CLIENT_DELETE_PROHIBITED,
|
||||
DomainStatus::SERVER_DELETE_PROHIBITED
|
||||
DomainStatus::CLIENT_DELETE_PROHIBITED
|
||||
]
|
||||
|
||||
@domain.statuses = statuses_to_be_removed + %w[other-status]
|
||||
|
|
|
@ -17,6 +17,18 @@ class DomainRegistryLockableTest < ActiveSupport::TestCase
|
|||
assert(@domain.locked_by_registrant?)
|
||||
end
|
||||
|
||||
def test_if_set_fd_to_lockable_domain_deleteProhibited_should_not_removed
|
||||
@domain.apply_registry_lock(extensions_prohibited: false)
|
||||
assert @domain.locked_by_registrant?
|
||||
assert_equal @domain.statuses.sort, Domain::RegistryLockable::LOCK_STATUSES.sort
|
||||
|
||||
@domain.schedule_force_delete(type: :soft)
|
||||
@domain.reload
|
||||
|
||||
assert @domain.force_delete_scheduled?
|
||||
assert @domain.statuses.include? DomainStatus::SERVER_DELETE_PROHIBITED
|
||||
end
|
||||
|
||||
def test_remove_lockalable_statuses_after_admin_intervention
|
||||
@domain.apply_registry_lock(extensions_prohibited: false)
|
||||
assert @domain.locked_by_registrant?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue