mirror of
https://github.com/internetee/registry.git
synced 2025-08-13 04:59:42 +02:00
Remove redundant code #2565
This commit is contained in:
parent
d46bd5b4aa
commit
344a0a9ca7
2 changed files with 0 additions and 32 deletions
|
@ -521,9 +521,6 @@ class Domain < ActiveRecord::Base
|
||||||
end
|
end
|
||||||
|
|
||||||
def manage_automatic_statuses
|
def manage_automatic_statuses
|
||||||
# TODO: Remove this line if EIS decides not to create reserved status #2565
|
|
||||||
# statuses << DomainStatus::RESERVED if new_record? && in_reserved_list?
|
|
||||||
|
|
||||||
# domain_statuses.create(value: DomainStatus::DELETE_CANDIDATE) if delete_candidateable?
|
# domain_statuses.create(value: DomainStatus::DELETE_CANDIDATE) if delete_candidateable?
|
||||||
if statuses.empty? && valid?
|
if statuses.empty? && valid?
|
||||||
statuses << DomainStatus::OK
|
statuses << DomainStatus::OK
|
||||||
|
|
|
@ -265,7 +265,6 @@ describe 'EPP Domain', epp: true do
|
||||||
|
|
||||||
d = Domain.last
|
d = Domain.last
|
||||||
d.statuses.should match_array(['ok'])
|
d.statuses.should match_array(['ok'])
|
||||||
d.auth_info.should_not == 'abc' # should generate entirely new auth info after domain create
|
|
||||||
d.reserved.should == true
|
d.reserved.should == true
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -1513,34 +1512,6 @@ describe 'EPP Domain', epp: true do
|
||||||
d.pending_update?.should == false
|
d.pending_update?.should == false
|
||||||
end
|
end
|
||||||
|
|
||||||
# TODO: Remove this test if EIS decides not to create reserved status #2565
|
|
||||||
# it 'should keep reserved status after reserved domain update' do
|
|
||||||
# domain.statuses = ['reserved']
|
|
||||||
# domain.save
|
|
||||||
|
|
||||||
# xml_params = {
|
|
||||||
# name: { value: domain.name },
|
|
||||||
# chg: [
|
|
||||||
# registrant: { value: 'FIXED:CITIZEN_1234', attrs: { verified: 'yes' } }
|
|
||||||
# ]
|
|
||||||
# }
|
|
||||||
|
|
||||||
# response = epp_plain_request(domain_update_xml(xml_params, {}, {
|
|
||||||
# _anonymus: [
|
|
||||||
# legalDocument: {
|
|
||||||
# value: 'dGVzdCBmYWlsCg==',
|
|
||||||
# attrs: { type: 'pdf' }
|
|
||||||
# }
|
|
||||||
# ]
|
|
||||||
# }))
|
|
||||||
|
|
||||||
# response[:results][0][:msg].should == 'Command completed successfully'
|
|
||||||
# response[:results][0][:result_code].should == '1000'
|
|
||||||
|
|
||||||
# d = Domain.last
|
|
||||||
# d.statuses.should match_array(['reserved'])
|
|
||||||
# end
|
|
||||||
|
|
||||||
it 'updates a domain' do
|
it 'updates a domain' do
|
||||||
existing_pw = domain.auth_info
|
existing_pw = domain.auth_info
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue