mirror of
https://github.com/internetee/registry.git
synced 2025-07-02 17:23:34 +02:00
Prevent domain deleting if status prohibits it
This commit is contained in:
parent
0096968265
commit
b4602e701c
7 changed files with 48 additions and 3 deletions
|
@ -567,6 +567,14 @@ describe 'EPP Domain', epp: true do
|
|||
expect(Domain.first).to eq(nil)
|
||||
expect(DomainContact.count).to eq(0)
|
||||
end
|
||||
|
||||
it 'does not delete domain with specific status' do
|
||||
d = Domain.first
|
||||
d.domain_statuses.create(value: DomainStatus::CLIENT_DELETE_PROHIBITED)
|
||||
response = epp_request(domain_delete_xml, :xml)
|
||||
expect(response[:result_code]).to eq('2304')
|
||||
expect(response[:msg]).to eq('Domain status prohibits operation')
|
||||
end
|
||||
end
|
||||
|
||||
it 'checks a domain' do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue