From 98be3c54c3e2a4aaa4b253b090255e8b968b5d48 Mon Sep 17 00:00:00 2001 From: Priit Tamboom Date: Tue, 25 Nov 2014 10:08:44 +0200 Subject: [PATCH] readme updates from Georg questions --- README.md | 26 ++++++++++++++++++++++++-- db/seeds.rb | 12 ++++++------ 2 files changed, 30 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index f0ff44346..95e898bb6 100644 --- a/README.md +++ b/README.md @@ -114,13 +114,35 @@ Wait for the greeting message on the STD, then send EPP/TCP frame: ```xml - test - test + registrar1 + test1 sample1trid ``` +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` diff --git a/db/seeds.rb b/db/seeds.rb index 8769d15bc..b62cc3614 100644 --- a/db/seeds.rb +++ b/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