mirror of
https://github.com/internetee/registry.git
synced 2025-07-20 09:46:09 +02:00
Remove real names from tests
This commit is contained in:
parent
987ba7db50
commit
f71136238a
5 changed files with 198 additions and 198 deletions
376
doc/epp_doc.txt
376
doc/epp_doc.txt
File diff suppressed because it is too large
Load diff
|
@ -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_elkdata) { Epp::Server.new({ server: 'localhost', tag: 'elkdata', password: 'ghyt9e4fu', port: 701 }) }
|
||||
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
|
||||
before(:each) do
|
||||
|
|
|
@ -66,7 +66,7 @@ describe 'EPP Domain', epp: true do
|
|||
expect(trn_data.css('trStatus').text).to eq('serverApproved')
|
||||
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('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('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('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('acDate').text).to eq(dtl.wait_until.to_time.utc.to_s)
|
||||
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(trn_data.css('name').text).to eq('example.ee')
|
||||
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('acDate').text).to eq(dtl.wait_until.to_time.utc.to_s)
|
||||
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('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('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)
|
||||
end
|
||||
|
||||
|
@ -223,7 +223,7 @@ describe 'EPP Domain', epp: true do
|
|||
|
||||
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.admin_contacts.count).to eq 1
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
Fabricator(:registrar) do
|
||||
name 'Zone Media OÜ'
|
||||
reg_no '10577829'
|
||||
address 'Lõõtsa 2, Tallinna linn, Harju maakond, 11415'
|
||||
name 'Registrar OÜ'
|
||||
reg_no '12345678'
|
||||
address 'Street 999, Town, County, Postal'
|
||||
country
|
||||
end
|
||||
|
|
|
@ -23,6 +23,6 @@ feature 'Sessions', type: :feature do
|
|||
expect(uri.path).to eq(admin_root_path)
|
||||
|
||||
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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue