mirror of
https://github.com/internetee/registry.git
synced 2025-07-22 18:56:05 +02:00
readme updates from Georg questions
This commit is contained in:
parent
ea2b64bc69
commit
98be3c54c3
2 changed files with 30 additions and 8 deletions
26
README.md
26
README.md
|
@ -114,13 +114,35 @@ Wait for the greeting message on the STD, then send EPP/TCP frame:
|
|||
```xml
|
||||
<epp><command>
|
||||
<login>
|
||||
<clID>test</clID>
|
||||
<pw>test</pw>
|
||||
<clID>registrar1</clID>
|
||||
<pw>test1</pw>
|
||||
</login>
|
||||
<clTRID>sample1trid</clTRID>
|
||||
</command></epp>
|
||||
```
|
||||
|
||||
All demo data locates at:
|
||||
|
||||
db/seeds.rb
|
||||
|
||||
There are two type of users: admin users and EPP users.
|
||||
|
||||
|
||||
### EPP web client
|
||||
|
||||
Please follow EPP web client readme:
|
||||
|
||||
https://github.com/internetee/EPP-web-client
|
||||
|
||||
|
||||
### WHOIS server
|
||||
|
||||
Please follow WHOIS server readme:
|
||||
|
||||
https://github.com/internetee/whois
|
||||
|
||||
|
||||
|
||||
Testing
|
||||
---
|
||||
* Before running tests for the first time: `RAILS_ENV=test rake db:seed`
|
||||
|
|
12
db/seeds.rb
12
db/seeds.rb
|
@ -9,7 +9,7 @@
|
|||
Country.where(name: 'Estonia', iso: 'EE').first_or_create!
|
||||
Country.where(name: 'Latvia', iso: 'LV').first_or_create!
|
||||
|
||||
zone = Registrar.where(
|
||||
registrar1 = Registrar.where(
|
||||
name: 'Registrar First AS',
|
||||
reg_no: '10300220',
|
||||
address: 'Pärnu mnt 2, Tallinna linn, Harju maakond, 11415',
|
||||
|
@ -20,10 +20,10 @@ EppUser.where(
|
|||
username: 'registrar1',
|
||||
password: 'test1',
|
||||
active: true,
|
||||
registrar: zone
|
||||
registrar: registrar1
|
||||
).first_or_create
|
||||
|
||||
elkdata = Registrar.where(
|
||||
registrar2 = Registrar.where(
|
||||
name: 'Registrar Second AS',
|
||||
reg_no: '10529229',
|
||||
address: 'Vabaduse pst 32, 11316 Tallinn',
|
||||
|
@ -34,7 +34,7 @@ EppUser.where(
|
|||
username: 'registrar2',
|
||||
password: 'test2',
|
||||
active: true,
|
||||
registrar: elkdata
|
||||
registrar: registrar2
|
||||
).first_or_create
|
||||
|
||||
User.where(
|
||||
|
@ -52,7 +52,7 @@ User.where(
|
|||
email: 'user2@example.ee',
|
||||
admin: false,
|
||||
identity_code: '37810010085',
|
||||
registrar_id: zone.id,
|
||||
registrar_id: registrar1.id,
|
||||
country: Country.where(name: 'Estonia').first
|
||||
).first_or_create
|
||||
|
||||
|
@ -62,7 +62,7 @@ User.where(
|
|||
email: 'user3@example.ee',
|
||||
admin: false,
|
||||
identity_code: '37810010727',
|
||||
registrar_id: elkdata.id,
|
||||
registrar_id: registrar2.id,
|
||||
country: Country.where(name: 'Estonia').first
|
||||
).first_or_create
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue