Remove real names from tests

This commit is contained in:
Martin Lensment 2014-12-09 16:35:36 +02:00
parent 987ba7db50
commit f71136238a
5 changed files with 198 additions and 198 deletions

File diff suppressed because it is too large Load diff

View file

@ -14,7 +14,7 @@ describe 'EPP Contact', epp: true do
let(:server_zone) { Epp::Server.new({ server: 'localhost', tag: 'zone', password: 'ghyt9e4fu', port: 701 }) } let(:server_zone) { Epp::Server.new({ server: 'localhost', tag: 'zone', password: 'ghyt9e4fu', port: 701 }) }
let(:server_elkdata) { Epp::Server.new({ server: 'localhost', tag: 'elkdata', password: 'ghyt9e4fu', port: 701 }) } let(:server_elkdata) { Epp::Server.new({ server: 'localhost', tag: 'elkdata', password: 'ghyt9e4fu', port: 701 }) }
let(:elkdata) { Fabricate(:registrar, { name: 'Elkdata', reg_no: '123' }) } let(:elkdata) { Fabricate(:registrar, { name: 'Elkdata', reg_no: '123' }) }
let(:zone) { Registrar.where(reg_no: '10577829').first || Fabricate(:registrar) } let(:zone) { Registrar.where(reg_no: '12345678').first || Fabricate(:registrar) }
context 'with valid user' do context 'with valid user' do
before(:each) do before(:each) do

View file

@ -66,7 +66,7 @@ describe 'EPP Domain', epp: true do
expect(trn_data.css('trStatus').text).to eq('serverApproved') expect(trn_data.css('trStatus').text).to eq('serverApproved')
expect(trn_data.css('reID').text).to eq('123') expect(trn_data.css('reID').text).to eq('123')
expect(trn_data.css('reDate').text).to eq(dtl.transfer_requested_at.to_time.utc.to_s) expect(trn_data.css('reDate').text).to eq(dtl.transfer_requested_at.to_time.utc.to_s)
expect(trn_data.css('acID').text).to eq('10577829') expect(trn_data.css('acID').text).to eq('12345678')
expect(trn_data.css('acDate').text).to eq(dtl.transferred_at.to_time.utc.to_s) expect(trn_data.css('acDate').text).to eq(dtl.transferred_at.to_time.utc.to_s)
expect(trn_data.css('exDate').text).to eq(domain.valid_to.to_time.utc.to_s) expect(trn_data.css('exDate').text).to eq(domain.valid_to.to_time.utc.to_s)
@ -88,7 +88,7 @@ describe 'EPP Domain', epp: true do
expect(trn_data.css('name').text).to eq('example.ee') expect(trn_data.css('name').text).to eq('example.ee')
expect(trn_data.css('trStatus').text).to eq('pending') expect(trn_data.css('trStatus').text).to eq('pending')
expect(trn_data.css('reID').text).to eq('10577829') expect(trn_data.css('reID').text).to eq('12345678')
expect(trn_data.css('reDate').text).to eq(dtl.transfer_requested_at.to_time.utc.to_s) expect(trn_data.css('reDate').text).to eq(dtl.transfer_requested_at.to_time.utc.to_s)
expect(trn_data.css('acDate').text).to eq(dtl.wait_until.to_time.utc.to_s) expect(trn_data.css('acDate').text).to eq(dtl.wait_until.to_time.utc.to_s)
expect(trn_data.css('acID').text).to eq('123') expect(trn_data.css('acID').text).to eq('123')
@ -103,7 +103,7 @@ describe 'EPP Domain', epp: true do
expect(domain.domain_transfers.count).to eq(2) expect(domain.domain_transfers.count).to eq(2)
expect(trn_data.css('name').text).to eq('example.ee') expect(trn_data.css('name').text).to eq('example.ee')
expect(trn_data.css('trStatus').text).to eq('pending') expect(trn_data.css('trStatus').text).to eq('pending')
expect(trn_data.css('reID').text).to eq('10577829') expect(trn_data.css('reID').text).to eq('12345678')
expect(trn_data.css('reDate').text).to eq(dtl.transfer_requested_at.to_time.utc.to_s) expect(trn_data.css('reDate').text).to eq(dtl.transfer_requested_at.to_time.utc.to_s)
expect(trn_data.css('acDate').text).to eq(dtl.wait_until.to_time.utc.to_s) expect(trn_data.css('acDate').text).to eq(dtl.wait_until.to_time.utc.to_s)
expect(trn_data.css('acID').text).to eq('123') expect(trn_data.css('acID').text).to eq('123')
@ -165,7 +165,7 @@ describe 'EPP Domain', epp: true do
expect(trn_data.css('trStatus').text).to eq('clientApproved') expect(trn_data.css('trStatus').text).to eq('clientApproved')
expect(trn_data.css('reID').text).to eq('123') expect(trn_data.css('reID').text).to eq('123')
expect(trn_data.css('reDate').text).to eq(dtl.transfer_requested_at.to_time.utc.to_s) expect(trn_data.css('reDate').text).to eq(dtl.transfer_requested_at.to_time.utc.to_s)
expect(trn_data.css('acID').text).to eq('10577829') expect(trn_data.css('acID').text).to eq('12345678')
expect(trn_data.css('exDate').text).to eq(domain.valid_to.to_time.utc.to_s) expect(trn_data.css('exDate').text).to eq(domain.valid_to.to_time.utc.to_s)
end end
@ -223,7 +223,7 @@ describe 'EPP Domain', epp: true do
expect(response[:clTRID]).to eq('ABC-12345') expect(response[:clTRID]).to eq('ABC-12345')
expect(d.registrar.name).to eq('Zone Media OÜ') expect(d.registrar.name).to eq('Registrar OÜ')
expect(d.tech_contacts.count).to eq 2 expect(d.tech_contacts.count).to eq 2
expect(d.admin_contacts.count).to eq 1 expect(d.admin_contacts.count).to eq 1

View file

@ -1,6 +1,6 @@
Fabricator(:registrar) do Fabricator(:registrar) do
name 'Zone Media OÜ' name 'Registrar OÜ'
reg_no '10577829' reg_no '12345678'
address 'Lõõtsa 2, Tallinna linn, Harju maakond, 11415' address 'Street 999, Town, County, Postal'
country country
end end

View file

@ -23,6 +23,6 @@ feature 'Sessions', type: :feature do
expect(uri.path).to eq(admin_root_path) expect(uri.path).to eq(admin_root_path)
expect(page).to have_link('Elkdata', count: 2) expect(page).to have_link('Elkdata', count: 2)
expect(page).to have_link('Zone Media OÜ', count: 2) expect(page).to have_link('Registrar OÜ', count: 2)
end end
end end