mirror of
https://github.com/internetee/registry.git
synced 2025-05-20 19:29:39 +02:00
Comment out old created_by logic
This commit is contained in:
parent
06336cc2e5
commit
f828432be1
2 changed files with 11 additions and 10 deletions
|
@ -68,8 +68,8 @@ describe 'EPP Contact', epp: true do
|
||||||
@contact = Contact.last
|
@contact = Contact.last
|
||||||
|
|
||||||
@contact.registrar.should == registrar1
|
@contact.registrar.should == registrar1
|
||||||
registrar1.api_users.should include(@contact.created_by)
|
# registrar1.api_users.should include(@contact.created_by)
|
||||||
@contact.updated_by_id.should == nil
|
# @contact.updated_by_id.should == nil
|
||||||
@contact.ident.should == '37605030299'
|
@contact.ident.should == '37605030299'
|
||||||
@contact.address.street.should == '123 Example'
|
@contact.address.street.should == '123 Example'
|
||||||
|
|
||||||
|
@ -156,7 +156,7 @@ describe 'EPP Contact', epp: true do
|
||||||
@contact =
|
@contact =
|
||||||
Fabricate(
|
Fabricate(
|
||||||
:contact,
|
:contact,
|
||||||
created_by_id: 1,
|
# created_by_id: 1,
|
||||||
registrar: registrar1,
|
registrar: registrar1,
|
||||||
email: 'not_updated@test.test',
|
email: 'not_updated@test.test',
|
||||||
code: 'sh8013',
|
code: 'sh8013',
|
||||||
|
@ -216,7 +216,7 @@ describe 'EPP Contact', epp: true do
|
||||||
code: 'sh8013disclosure',
|
code: 'sh8013disclosure',
|
||||||
auth_info: '2fooBAR',
|
auth_info: '2fooBAR',
|
||||||
registrar: registrar1,
|
registrar: registrar1,
|
||||||
created_by_id: ApiUser.first.id,
|
# created_by_id: ApiUser.first.id,
|
||||||
disclosure: Fabricate(:contact_disclosure, phone: true, email: true))
|
disclosure: Fabricate(:contact_disclosure, phone: true, email: true))
|
||||||
|
|
||||||
xml = {
|
xml = {
|
||||||
|
@ -245,7 +245,8 @@ describe 'EPP Contact', epp: true do
|
||||||
|
|
||||||
it 'deletes contact' do
|
it 'deletes contact' do
|
||||||
@contact_deleted =
|
@contact_deleted =
|
||||||
Fabricate(:contact, code: 'dwa1234', created_by_id: ApiUser.first.id, registrar: registrar1)
|
# Fabricate(:contact, code: 'dwa1234', created_by_id: ApiUser.first.id, registrar: registrar1)
|
||||||
|
Fabricate(:contact, code: 'dwa1234', registrar: registrar1)
|
||||||
|
|
||||||
response = epp_plain_request(delete_contact_xml({ id: { value: 'dwa1234' } }), :xml)
|
response = epp_plain_request(delete_contact_xml({ id: { value: 'dwa1234' } }), :xml)
|
||||||
response[:msg].should == 'Command completed successfully'
|
response[:msg].should == 'Command completed successfully'
|
||||||
|
@ -268,7 +269,7 @@ describe 'EPP Contact', epp: true do
|
||||||
owner_contact: Fabricate(
|
owner_contact: Fabricate(
|
||||||
:contact,
|
:contact,
|
||||||
code: 'dwa1234',
|
code: 'dwa1234',
|
||||||
created_by_id: registrar1.id,
|
# created_by_id: registrar1.id,
|
||||||
registrar: registrar1)
|
registrar: registrar1)
|
||||||
)
|
)
|
||||||
Domain.last.owner_contact.address.present?.should == true
|
Domain.last.owner_contact.address.present?.should == true
|
||||||
|
|
|
@ -173,23 +173,23 @@ describe Contact do
|
||||||
|
|
||||||
context 'with creator' do
|
context 'with creator' do
|
||||||
before :all do
|
before :all do
|
||||||
@contact.created_by = @api_user
|
# @contact.created_by = @api_user
|
||||||
end
|
end
|
||||||
|
|
||||||
# TODO: change cr_id to something else
|
# TODO: change cr_id to something else
|
||||||
it 'should return username of creator' do
|
it 'should return username of creator' do
|
||||||
@contact.cr_id.should == 'gitlab'
|
# @contact.cr_id.should == 'gitlab'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
context 'with updater' do
|
context 'with updater' do
|
||||||
before :all do
|
before :all do
|
||||||
@contact.updated_by = @api_user
|
# @contact.updated_by = @api_user
|
||||||
end
|
end
|
||||||
|
|
||||||
# TODO: change up_id to something else
|
# TODO: change up_id to something else
|
||||||
it 'should return username of updater' do
|
it 'should return username of updater' do
|
||||||
@contact.up_id.should == 'gitlab'
|
# @contact.up_id.should == 'gitlab'
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue