mirror of
https://github.com/internetee/registry.git
synced 2025-08-03 00:12:03 +02:00
Add force delete message to poll #2882
This commit is contained in:
parent
fbd281007c
commit
827e3f8a0d
6 changed files with 30 additions and 4 deletions
|
@ -3096,5 +3096,12 @@ describe 'EPP Domain', epp: true do
|
|||
name[:avail].should == '0'
|
||||
reason.text.should == 'invalid format'
|
||||
end
|
||||
|
||||
### POLL ###
|
||||
it 'should show force delete in poll' do
|
||||
domain.set_force_delete
|
||||
response = epp_plain_request(@epp_xml.session.poll)
|
||||
binding.pry
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -224,6 +224,10 @@ describe Domain do
|
|||
fda = Time.zone.now + Setting.redemption_grace_period.days
|
||||
@domain.force_delete_at.should be_within(20).of(fda)
|
||||
|
||||
@domain.registrar.messages.count.should == 1
|
||||
m = @domain.registrar.messages.first
|
||||
m.body.should == "Force delete set on domain #{@domain.name}"
|
||||
|
||||
@domain.unset_force_delete
|
||||
|
||||
@domain.statuses.should == ['ok']
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue