readme updates from Georg questions

This commit is contained in:
Priit Tamboom 2014-11-25 10:08:44 +02:00
parent ea2b64bc69
commit 98be3c54c3
2 changed files with 30 additions and 8 deletions

View file

@ -114,13 +114,35 @@ Wait for the greeting message on the STD, then send EPP/TCP frame:
```xml ```xml
<epp><command> <epp><command>
<login> <login>
<clID>test</clID> <clID>registrar1</clID>
<pw>test</pw> <pw>test1</pw>
</login> </login>
<clTRID>sample1trid</clTRID> <clTRID>sample1trid</clTRID>
</command></epp> </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 Testing
--- ---
* Before running tests for the first time: `RAILS_ENV=test rake db:seed` * Before running tests for the first time: `RAILS_ENV=test rake db:seed`

View file

@ -9,7 +9,7 @@
Country.where(name: 'Estonia', iso: 'EE').first_or_create! Country.where(name: 'Estonia', iso: 'EE').first_or_create!
Country.where(name: 'Latvia', iso: 'LV').first_or_create! Country.where(name: 'Latvia', iso: 'LV').first_or_create!
zone = Registrar.where( registrar1 = Registrar.where(
name: 'Registrar First AS', name: 'Registrar First AS',
reg_no: '10300220', reg_no: '10300220',
address: 'Pärnu mnt 2, Tallinna linn, Harju maakond, 11415', address: 'Pärnu mnt 2, Tallinna linn, Harju maakond, 11415',
@ -20,10 +20,10 @@ EppUser.where(
username: 'registrar1', username: 'registrar1',
password: 'test1', password: 'test1',
active: true, active: true,
registrar: zone registrar: registrar1
).first_or_create ).first_or_create
elkdata = Registrar.where( registrar2 = Registrar.where(
name: 'Registrar Second AS', name: 'Registrar Second AS',
reg_no: '10529229', reg_no: '10529229',
address: 'Vabaduse pst 32, 11316 Tallinn', address: 'Vabaduse pst 32, 11316 Tallinn',
@ -34,7 +34,7 @@ EppUser.where(
username: 'registrar2', username: 'registrar2',
password: 'test2', password: 'test2',
active: true, active: true,
registrar: elkdata registrar: registrar2
).first_or_create ).first_or_create
User.where( User.where(
@ -52,7 +52,7 @@ User.where(
email: 'user2@example.ee', email: 'user2@example.ee',
admin: false, admin: false,
identity_code: '37810010085', identity_code: '37810010085',
registrar_id: zone.id, registrar_id: registrar1.id,
country: Country.where(name: 'Estonia').first country: Country.where(name: 'Estonia').first
).first_or_create ).first_or_create
@ -62,7 +62,7 @@ User.where(
email: 'user3@example.ee', email: 'user3@example.ee',
admin: false, admin: false,
identity_code: '37810010727', identity_code: '37810010727',
registrar_id: elkdata.id, registrar_id: registrar2.id,
country: Country.where(name: 'Estonia').first country: Country.where(name: 'Estonia').first
).first_or_create ).first_or_create