From c7812c5dd3721991c918a97d73c77a63ee41972a Mon Sep 17 00:00:00 2001 From: Martin Lensment Date: Tue, 9 Dec 2014 16:07:58 +0200 Subject: [PATCH] Better formatting for epp doc --- doc/epp_doc.txt | 5276 +++++++++++++++++++++++++++++++++++++++ spec/support/epp.rb | 21 +- spec/support/epp_doc.rb | 28 +- 3 files changed, 5312 insertions(+), 13 deletions(-) create mode 100644 doc/epp_doc.txt diff --git a/doc/epp_doc.txt b/doc/epp_doc.txt new file mode 100644 index 000000000..d51a583dd --- /dev/null +++ b/doc/epp_doc.txt @@ -0,0 +1,5276 @@ +---------------------------------------------------------------------------------------------------- +EPP REQUEST - RESPONSE DOCUMENTATION +GENERATED AT: 2014-12-09 16:02:18 +0200 +EXAMPLE COUNT: 91 +---------------------------------------------------------------------------------------------------- +EPP Contact with valid user create command fails if request xml is missing +---------------------------------------------------------------------------------------------------- +REQUEST: + + + + + + + ABC-12345 + + + +RESPONSE: + + + + + Command syntax error + + + + ABC-12345 + + + + +------------------------------------------------PASS------------------------------------------------ + +---------------------------------------------------------------------------------------------------- +EPP Contact with valid user create command fails if request xml is missing +---------------------------------------------------------------------------------------------------- +REQUEST: + + + + + + + + + + + ABC-12345 + + + +RESPONSE: + + + + + Required parameter missing: name + + + Required parameter missing: city + + + Required parameter missing: cc + + + Required parameter missing: ident + + + Required parameter missing: voice + + + Required parameter missing: email + + + + ABC-12345 + + + + +------------------------------------------------PASS------------------------------------------------ + +---------------------------------------------------------------------------------------------------- +EPP Contact with valid user create command successfully creates a contact +---------------------------------------------------------------------------------------------------- +REQUEST: + + + + + + + John Doe + + 123 Example + Tallinn + EE + + + +372.1234567 + test@example.example + 37605030299 + + + ABC-12345 + + + +RESPONSE: + + + + + Command completed successfully + + + + eebf1988 + 2014-12-09 14:02:24 UTC + + + + ABC-12345 + ccReg-9718007789 + + + + +------------------------------------------------PASS------------------------------------------------ + +---------------------------------------------------------------------------------------------------- +EPP Contact with valid user create command successfully adds registrar +---------------------------------------------------------------------------------------------------- +REQUEST: + + + + + + + John Doe + + 123 Example + Tallinn + EE + + + +372.1234567 + test@example.example + 37605030299 + + + ABC-12345 + + + +RESPONSE: + + + + + Command completed successfully + + + + cba91772 + 2014-12-09 14:02:27 UTC + + + + ABC-12345 + ccReg-6791922501 + + + + +------------------------------------------------PASS------------------------------------------------ + +---------------------------------------------------------------------------------------------------- +EPP Contact with valid user create command returns result data upon success +---------------------------------------------------------------------------------------------------- +REQUEST: + + + + + + + John Doe + + 123 Example + Tallinn + EE + + + +372.1234567 + test@example.example + 37605030299 + + + ABC-12345 + + + +RESPONSE: + + + + + Command completed successfully + + + + 3d7b4bd8 + 2014-12-09 14:02:29 UTC + + + + ABC-12345 + ccReg-4886119886 + + + + +------------------------------------------------PASS------------------------------------------------ + +---------------------------------------------------------------------------------------------------- +EPP Contact with valid user create command creates disclosure data +---------------------------------------------------------------------------------------------------- +REQUEST: + + + + + + + John Doe + + 123 Example + Tallinn + EE + + + +372.1234567 + test@example.example + 37605030299 + + + + + + + + + + + ABC-12345 + + + +RESPONSE: + + + + + Command completed successfully + + + + bf22f8ad + 2014-12-09 14:02:31 UTC + + + + ABC-12345 + ccReg-4024639446 + + + + +------------------------------------------------PASS------------------------------------------------ + +---------------------------------------------------------------------------------------------------- +EPP Contact with valid user create command creates disclosure data merging with defaults +---------------------------------------------------------------------------------------------------- +REQUEST: + + + + + + + John Doe + + 123 Example + Tallinn + EE + + + +372.1234567 + test@example.example + 37605030299 + + + + + + + ABC-12345 + + + +RESPONSE: + + + + + Command completed successfully + + + + 43e8a973 + 2014-12-09 14:02:33 UTC + + + + ABC-12345 + ccReg-2840843691 + + + + +------------------------------------------------PASS------------------------------------------------ + +---------------------------------------------------------------------------------------------------- +EPP Contact with valid user update command fails if request is invalid +---------------------------------------------------------------------------------------------------- +REQUEST: + + + + + + + ABC-12345 + + + +RESPONSE: + + + + + Required parameter missing: add, rem or chg + + + Required parameter missing: id + + + Required parameter missing: pw + + + + ABC-12345 + + + + +------------------------------------------------PASS------------------------------------------------ + +---------------------------------------------------------------------------------------------------- +EPP Contact with valid user update command fails with wrong authentication info +---------------------------------------------------------------------------------------------------- +REQUEST: + + + + + + sh8013 + + password + + + + John Doe Edited + + +372.7654321 + edited@example.example + + + + + + + + ABC-12345 + + + +RESPONSE: + + + + + Authentication error + + + + ABC-12345 + ccReg-4918622803 + + + +------------------------------------------------PASS------------------------------------------------ + +---------------------------------------------------------------------------------------------------- +EPP Contact with valid user update command is succesful +---------------------------------------------------------------------------------------------------- +REQUEST: + + + + + + sh8013 + + password + + + + John Doe Edited + + +372.7654321 + edited@example.example + + + + + + + + ABC-12345 + + + +RESPONSE: + + + + + Command completed successfully + + + + sh8013 + 2014-12-09 14:02:40 UTC + + + + ABC-12345 + ccReg-4624867688 + + + + +------------------------------------------------PASS------------------------------------------------ + +---------------------------------------------------------------------------------------------------- +EPP Contact with valid user update command returns phone and email error +---------------------------------------------------------------------------------------------------- +REQUEST: + + + + + + sh8013 + + password + + + + John Doe Edited + + 123213 + aaa + + + + + + + + ABC-12345 + + + +RESPONSE: + + + + + Phone nr is invalid + + + Email is invalid + + + + ABC-12345 + ccReg-4465109785 + + + +------------------------------------------------PASS------------------------------------------------ + +---------------------------------------------------------------------------------------------------- +EPP Contact with valid user update command updates disclosure items +---------------------------------------------------------------------------------------------------- +REQUEST: + + + + + + sh8013 + + 2fooBAR + + + + John Doe Edited + + +372.7654321 + edited@example.example + + + + + + + + ABC-12345 + + + +RESPONSE: + + + + + Command completed successfully + + + + sh8013 + 2014-12-09 14:02:44 UTC + + + + ABC-12345 + ccReg-0013386112 + + + + +------------------------------------------------PASS------------------------------------------------ + +---------------------------------------------------------------------------------------------------- +EPP Contact with valid user delete command fails if request is invalid +---------------------------------------------------------------------------------------------------- +REQUEST: + + + + + + 23123 + + + ABC-12345 + + + +RESPONSE: + + + + + Required parameter missing: id + + + + ABC-12345 + + + + +------------------------------------------------PASS------------------------------------------------ + +---------------------------------------------------------------------------------------------------- +EPP Contact with valid user delete command deletes contact +---------------------------------------------------------------------------------------------------- +REQUEST: + + + + + + dwa1234 + + + ABC-12345 + + + +RESPONSE: + + + + + Command completed successfully + + + ABC-12345 + ccReg-9849047705 + + + + +------------------------------------------------PASS------------------------------------------------ + +---------------------------------------------------------------------------------------------------- +EPP Contact with valid user delete command returns error if obj doesnt exist +---------------------------------------------------------------------------------------------------- +REQUEST: + + + + + + sh8012 + + + ABC-12345 + + + +RESPONSE: + + + + + Object does not exist + + sh8012 + + + + Authentication error + + + + ABC-12345 + ccReg-2302000681 + + + +------------------------------------------------PASS------------------------------------------------ + +---------------------------------------------------------------------------------------------------- +EPP Contact with valid user delete command fails if contact has associated domain +---------------------------------------------------------------------------------------------------- +REQUEST: + + + + + + dwa1234 + + + ABC-12345 + + + +RESPONSE: + + + + + Object association prohibits operation + + + + ABC-12345 + ccReg-7073291608 + + + +------------------------------------------------PASS------------------------------------------------ + +---------------------------------------------------------------------------------------------------- +EPP Contact with valid user check command fails if request is invalid +---------------------------------------------------------------------------------------------------- +REQUEST: + + + + + + 123asde + + + ABC-12345 + + + +RESPONSE: + + + + + Required parameter missing: id + + + + ABC-12345 + + + + +------------------------------------------------PASS------------------------------------------------ + +---------------------------------------------------------------------------------------------------- +EPP Contact with valid user check command returns info about contact availability +---------------------------------------------------------------------------------------------------- +REQUEST: + + + + + + check-1234 + check-4321 + + + ABC-12345 + + + +RESPONSE: + + + + + Command completed successfully + + + + + check-1234 + in use + + + check-4321 + + + + + ABC-12345 + ccReg-1791427916 + + + + +------------------------------------------------PASS------------------------------------------------ + +---------------------------------------------------------------------------------------------------- +EPP Contact with valid user info command discloses items with wrong password when queried by owner +---------------------------------------------------------------------------------------------------- +REQUEST: + + + + + + info-4444 + + + ABC-12345 + + + +RESPONSE: + + + + + Command completed successfully + + + + info-4444 + + Johnny Awesome + + + Gislason Path + Schmittview + + + +372.12345678 + + lorenz_keeling@lang.net + 2014-12-09 14:02:59 UTC + + asde + + + + + + + +
+ + + + + + + ABC-12345 + ccReg-6592783237 + + + + +------------------------------------------------PASS------------------------------------------------ + +---------------------------------------------------------------------------------------------------- +EPP Contact with valid user info command returns auth error for non-owner with wrong password +---------------------------------------------------------------------------------------------------- +REQUEST: + + + + + + info-4444 + + asdesde + + + + ABC-12345 + + + +RESPONSE: + + + + + Authentication error + + + + ABC-12345 + ccReg-8561742200 + + + +------------------------------------------------PASS------------------------------------------------ + +---------------------------------------------------------------------------------------------------- +EPP Contact with valid user info command doesn't disclose items to non-owner with right password +---------------------------------------------------------------------------------------------------- +REQUEST: + + + + + + info-4444 + + password + + + + ABC-12345 + + + +RESPONSE: + + + + + Command completed successfully + + + + info-4444 + + + + 2014-12-09 14:03:03 UTC + + + + + + +
+ + + + + + + ABC-12345 + ccReg-3657498729 + + + + +------------------------------------------------PASS------------------------------------------------ + +---------------------------------------------------------------------------------------------------- +EPP Contact with valid user info command discloses items to owner +---------------------------------------------------------------------------------------------------- +REQUEST: + + + + + + info-4444 + + + ABC-12345 + + + +RESPONSE: + + + + + Command completed successfully + + + + info-4444 + + Johnny Awesome + + + Gislason Path + Schmittview + + + +372.12345678 + + lorenz_keeling@lang.net + 2014-12-09 14:03:05 UTC + + password + + + + + + + +
+ + + + + + + ABC-12345 + ccReg-3878648399 + + + + +------------------------------------------------PASS------------------------------------------------ + +---------------------------------------------------------------------------------------------------- +EPP Contact with valid user info command fails if request invalid +---------------------------------------------------------------------------------------------------- +REQUEST: + + + + + + 123123 + + + ABC-12345 + + + +RESPONSE: + + + + + Required parameter missing: id + + + + ABC-12345 + + + + +------------------------------------------------PASS------------------------------------------------ + +---------------------------------------------------------------------------------------------------- +EPP Contact with valid user info command returns error when object does not exist +---------------------------------------------------------------------------------------------------- +REQUEST: + + + + + + info-4444 + + password + + + + ABC-12345 + + + +RESPONSE: + + + + + Object does not exist + + info-4444 + + + + + ABC-12345 + + + + +------------------------------------------------PASS------------------------------------------------ + +---------------------------------------------------------------------------------------------------- +EPP Contact with valid user info command returns info about contact +---------------------------------------------------------------------------------------------------- +REQUEST: + + + + + + info-4444 + + + ABC-12345 + + + +RESPONSE: + + + + + Command completed successfully + + + + info-4444 + + Johnny Awesome + + + Gislason Path + Schmittview + + + +372.12345678 + + lorenz_keeling@lang.net + 2014-12-09 14:03:11 UTC + + ccds4324pok + + + + + + + +
+ + + + + + + ABC-12345 + ccReg-9877539199 + + + + +------------------------------------------------PASS------------------------------------------------ + +---------------------------------------------------------------------------------------------------- +EPP Contact with valid user info command doesn't disclose private elements +---------------------------------------------------------------------------------------------------- +REQUEST: + + + + + + info-4444 + + 2fooBAR + + + + ABC-12345 + + + +RESPONSE: + + + + + Command completed successfully + + + + info-4444 + + Ora Ruecker + + + 2014-12-09 14:03:14 UTC + + + + + + +
+ + + + + + + ABC-12345 + ccReg-8759591171 + + + + +------------------------------------------------PASS------------------------------------------------ + +---------------------------------------------------------------------------------------------------- +EPP Contact with valid user info command doesn't display unassociated object without password +---------------------------------------------------------------------------------------------------- +REQUEST: + + + + + + info-4444 + + + ABC-12345 + + + +RESPONSE: + + + + + Required parameter missing: pw + + + + ABC-12345 + + + + +------------------------------------------------PASS------------------------------------------------ + +---------------------------------------------------------------------------------------------------- +EPP Contact with valid user info command doesn't display unassociated object with wrong password +---------------------------------------------------------------------------------------------------- +REQUEST: + + + + + + info-4444 + + qwe321 + + + + ABC-12345 + + + +RESPONSE: + + + + + Authentication error + + + + ABC-12345 + ccReg-3834083683 + + + +------------------------------------------------PASS------------------------------------------------ + +---------------------------------------------------------------------------------------------------- +EPP Contact with valid user renew command returns 2101-unimplemented command +---------------------------------------------------------------------------------------------------- +REQUEST: + + + + + + info-4444 + + 2fooBAR + + + + ABC-12345 + + + +RESPONSE: + + + + + Unimplemented command + + + + ABC-12345 + ccReg-3653964101 + + + +------------------------------------------------PASS------------------------------------------------ + +---------------------------------------------------------------------------------------------------- +EPP Domain with valid user returns error if contact does not exists +---------------------------------------------------------------------------------------------------- +REQUEST: + + + + + + example.ee + 1 + + + ns1.example.net + 192.0.2.2 + 1080:0:0:0:8:800:200C:417A + + + ns2.example.net + + + jd1234 + sh8013 + sh8013 + sh801333 + + + + + + 257 + 3 + 5 + AwEAAddt2AkLfYGKgiEZB5SmIF8EvrjxNMH6HtxWEA4RJ9Ao6LCWheg8 + + + + ABC-12345 + + + +RESPONSE: + + + + + Contact was not found + + sh8013 + + + + Contact was not found + + sh801333 + + + + + ABC-12345 + ccReg-1038658311 + + + +------------------------------------------------PASS------------------------------------------------ + +---------------------------------------------------------------------------------------------------- +EPP Domain with valid user checks a domain +---------------------------------------------------------------------------------------------------- +REQUEST: + + + + + + example.ee + + + ABC-12345 + + + +RESPONSE: + + + + + Command completed successfully + + + + + example.ee + + + + + ABC-12345 + ccReg-8553813297 + + + + +REQUEST: + + + + + + example.ee + + + ABC-12345 + + + +RESPONSE: + + + + + Command completed successfully + + + + + example.ee + in use + + + + + ABC-12345 + ccReg-8894942810 + + + + +------------------------------------------------PASS------------------------------------------------ + +---------------------------------------------------------------------------------------------------- +EPP Domain with valid user checks multiple domains +---------------------------------------------------------------------------------------------------- +REQUEST: + + + + + + one.ee + two.ee + three.ee + + + ABC-12345 + + + +RESPONSE: + + + + + Command completed successfully + + + + + one.ee + + + two.ee + + + three.ee + + + + + ABC-12345 + ccReg-1159073991 + + + + +------------------------------------------------PASS------------------------------------------------ + +---------------------------------------------------------------------------------------------------- +EPP Domain with valid user checks invalid format domain +---------------------------------------------------------------------------------------------------- +REQUEST: + + + + + + one.ee + notcorrectdomain + + + ABC-12345 + + + +RESPONSE: + + + + + Command completed successfully + + + + + one.ee + + + notcorrectdomain + invalid format + + + + + ABC-12345 + ccReg-6373885429 + + + + +------------------------------------------------PASS------------------------------------------------ + +---------------------------------------------------------------------------------------------------- +EPP Domain with valid user with two epp users can not see other registrar domains +---------------------------------------------------------------------------------------------------- +REQUEST: + + + + + + example.ee + + 2fooBAR + + + + ABC-12345 + + + +RESPONSE: + + + + + Domain exists but belongs to other registrar + + example.ee + + + + + ABC-12345 + ccReg-1538414503 + + + +------------------------------------------------PASS------------------------------------------------ + +---------------------------------------------------------------------------------------------------- +EPP Domain with valid user with two epp users transfers a domain +---------------------------------------------------------------------------------------------------- +REQUEST: + + + + + + example.ee + + eb055bc0f79be3bb82fa88c297dbc7b0 + + + + ABC-12345 + + + +RESPONSE: + + + + + Command completed successfully + + + + example.ee + serverApproved + 123 + 2014-12-09 14:03:34 UTC + 10577829 + 2014-12-09 14:03:34 UTC + 2015-12-09 00:00:00 UTC + + + + + ABC-12345 + ccReg-8026767504 + + + +REQUEST: + + + + + + example.ee + + 1221604c335e6eb85ca8be429603a4c2 + + + + ABC-12345 + + + +RESPONSE: + + + + + Command completed successfully + + + + example.ee + pending + 10577829 + 2014-12-09 14:03:34 UTC + 123 + 2014-12-09 15:03:34 UTC + 2015-12-09 00:00:00 UTC + + + + + ABC-12345 + ccReg-2903803964 + + + +REQUEST: + + + + + + example.ee + + 1221604c335e6eb85ca8be429603a4c2 + + + + ABC-12345 + + + +RESPONSE: + + + + + Command completed successfully + + + + example.ee + pending + 10577829 + 2014-12-09 14:03:34 UTC + 123 + 2014-12-09 15:03:34 UTC + 2015-12-09 00:00:00 UTC + + + + + ABC-12345 + ccReg-7281122044 + + + +REQUEST: + + + + + ABC-12345 + + + +RESPONSE: + + + + + Command completed successfully; ack to dequeue + + + 2014-12-09 14:03:34 UTC + Transfer requested. + + + + example.ee + pending + 10577829 + 2014-12-09 14:03:34 UTC + 123 + 2014-12-09 15:03:34 UTC + 2015-12-09 00:00:00 UTC + + + + ABC-12345 + ccReg-4655145032 + + + + +REQUEST: + + + + + ABC-12345 + + + +RESPONSE: + + + + + Command completed successfully + + + + ABC-12345 + ccReg-3038613204 + + + + +------------------------------------------------PASS------------------------------------------------ + +---------------------------------------------------------------------------------------------------- +EPP Domain with valid user with two epp users prohibits wrong registrar from approving transfer +---------------------------------------------------------------------------------------------------- +REQUEST: + + + + + + example.ee + + fb525148000091000458e6bab9de29d2 + + + + ABC-12345 + + + +RESPONSE: + + + + + Transfer can be approved only by current domain registrar + + + + ABC-12345 + ccReg-5332011044 + + + +------------------------------------------------PASS------------------------------------------------ + +---------------------------------------------------------------------------------------------------- +EPP Domain with valid user with two epp users approves the transfer request +---------------------------------------------------------------------------------------------------- +REQUEST: + + + + + + example.ee + + d67a41db997dcef15c1a126873f1d6c0 + + + + ABC-12345 + + + +RESPONSE: + + + + + Command completed successfully + + + + example.ee + clientApproved + 123 + 2014-12-09 14:03:39 UTC + 10577829 + 2014-12-09 14:03:39 UTC + 2015-12-09 00:00:00 UTC + + + + + ABC-12345 + ccReg-8562062463 + + + +------------------------------------------------PASS------------------------------------------------ + +---------------------------------------------------------------------------------------------------- +EPP Domain with valid user with two epp users does not transfer with invalid pw +---------------------------------------------------------------------------------------------------- +REQUEST: + + + + + + example.ee + + test + + + + ABC-12345 + + + +RESPONSE: + + + + + Authorization error + + + + ABC-12345 + ccReg-6111630433 + + + +------------------------------------------------PASS------------------------------------------------ + +---------------------------------------------------------------------------------------------------- +EPP Domain with valid user with two epp users ignores transfer when owner registrar requests transfer +---------------------------------------------------------------------------------------------------- +REQUEST: + + + + + + example.ee + + 1d294a4a9941456d28f1f307e0cd7c06 + + + + ABC-12345 + + + +RESPONSE: + + + + + Domain already belongs to the querying registrar + + + + ABC-12345 + ccReg-6673501311 + + + +------------------------------------------------PASS------------------------------------------------ + +---------------------------------------------------------------------------------------------------- +EPP Domain with valid user with two epp users returns an error for incorrect op attribute +---------------------------------------------------------------------------------------------------- +REQUEST: + + + + + + example.ee + + 98oiewslkfkd + + + + ABC-12345 + + + +RESPONSE: + + + + + Attribute op is invalid + + + + ABC-12345 + + + + +------------------------------------------------PASS------------------------------------------------ + +---------------------------------------------------------------------------------------------------- +EPP Domain with valid user with two epp users creates new pw after successful transfer +---------------------------------------------------------------------------------------------------- +REQUEST: + + + + + + example.ee + + 98oiewslkfkd + + + + ABC-12345 + + + +RESPONSE: + + + + + Authorization error + + + + ABC-12345 + ccReg-6667788447 + + + +REQUEST: + + + + + + example.ee + + 98oiewslkfkd + + + + ABC-12345 + + + +RESPONSE: + + + + + Authorization error + + + + ABC-12345 + ccReg-4477117557 + + + +------------------------------------------------PASS------------------------------------------------ + +---------------------------------------------------------------------------------------------------- +EPP Domain with valid user with citizen as an owner creates a domain +---------------------------------------------------------------------------------------------------- +REQUEST: + + + + + + example.ee + 1 + + + ns1.example.net + 192.0.2.2 + 1080:0:0:0:8:800:200C:417A + + + ns2.example.net + + + jd1234 + sh8013 + sh8013 + sh801333 + + + + + + 257 + 3 + 5 + AwEAAddt2AkLfYGKgiEZB5SmIF8EvrjxNMH6HtxWEA4RJ9Ao6LCWheg8 + + + + ABC-12345 + + + +RESPONSE: + + + + + Command completed successfully + + + + example.ee + 2014-12-09 14:03:51 UTC + 2015-12-09 00:00:00 UTC + + + + + ABC-12345 + ccReg-1884410512 + + + +------------------------------------------------PASS------------------------------------------------ + +---------------------------------------------------------------------------------------------------- +EPP Domain with valid user with citizen as an owner creates ria.ee with valid ds record +---------------------------------------------------------------------------------------------------- +REQUEST: + + + + + + ria.ee + 1 + + + ns1.example.net + 192.0.2.2 + 1080:0:0:0:8:800:200C:417A + + + ns2.example.net + + + jd1234 + sh8013 + sh8013 + sh801333 + + + + + + 257 + 3 + 8 + AwEAAaOf5+lz3ftsL+0CCvfJbhUF/NVsNh8BKo61oYs5fXVbuWDiH872 LC8uKDO92TJy7Q4TF9XMAKMMlf1GMAxlRspD749SOCTN00sqfWx1OMTu a28L1PerwHq7665oDJDKqR71btcGqyLKhe2QDvCdA0mENimF1NudX1BJ DDFi6oOZ0xE/0CuveB64I3ree7nCrwLwNs56kXC4LYoX3XdkOMKiJLL/ MAhcxXa60CdZLoRtTEW3z8/oBq4hEAYMCNclpbd6y/exScwBxFTdUfFk KsdNcmvai1lyk9vna0WQrtpYpHKMXvY9LFHaJxCOLR4umfeQ42RuTd82 lqfU6ClMeXs= + + + + ABC-12345 + + + +RESPONSE: + + + + + Command completed successfully + + + + ria.ee + 2014-12-09 14:03:54 UTC + 2015-12-09 00:00:00 UTC + + + + + ABC-12345 + ccReg-0077325840 + + + +------------------------------------------------PASS------------------------------------------------ + +---------------------------------------------------------------------------------------------------- +EPP Domain with valid user with citizen as an owner validates nameserver ipv4 when in same zone as domain +---------------------------------------------------------------------------------------------------- +REQUEST: + + + + + + example.ee + 1 + + + ns1.example.ee + + + ns2.example.ee + + + jd1234 + sh8013 + sh8013 + sh801333 + + + + + + 257 + 3 + 5 + AwEAAddt2AkLfYGKgiEZB5SmIF8EvrjxNMH6HtxWEA4RJ9Ao6LCWheg8 + + + + ABC-12345 + + + +RESPONSE: + + + + + IPv4 is missing + + + + ABC-12345 + ccReg-4072918833 + + + +------------------------------------------------PASS------------------------------------------------ + +---------------------------------------------------------------------------------------------------- +EPP Domain with valid user with citizen as an owner does not create duplicate domain +---------------------------------------------------------------------------------------------------- +REQUEST: + + + + + + example.ee + 1 + + + ns1.example.net + 192.0.2.2 + 1080:0:0:0:8:800:200C:417A + + + ns2.example.net + + + jd1234 + sh8013 + sh8013 + sh801333 + + + + + + 257 + 3 + 5 + AwEAAddt2AkLfYGKgiEZB5SmIF8EvrjxNMH6HtxWEA4RJ9Ao6LCWheg8 + + + + ABC-12345 + + + +RESPONSE: + + + + + Command completed successfully + + + + example.ee + 2014-12-09 14:03:58 UTC + 2015-12-09 00:00:00 UTC + + + + + ABC-12345 + ccReg-1995897622 + + + +REQUEST: + + + + + + example.ee + 1 + + + ns1.example.net + 192.0.2.2 + 1080:0:0:0:8:800:200C:417A + + + ns2.example.net + + + jd1234 + sh8013 + sh8013 + sh801333 + + + + + + 257 + 3 + 5 + AwEAAddt2AkLfYGKgiEZB5SmIF8EvrjxNMH6HtxWEA4RJ9Ao6LCWheg8 + + + + ABC-12345 + + + +RESPONSE: + + + + + Domain name already exists + + example.ee + + + + + ABC-12345 + ccReg-8286953812 + + + +------------------------------------------------PASS------------------------------------------------ + +---------------------------------------------------------------------------------------------------- +EPP Domain with valid user with citizen as an owner does not create reserved domain +---------------------------------------------------------------------------------------------------- +REQUEST: + + + + + + 1162.ee + 1 + + + ns1.example.net + 192.0.2.2 + 1080:0:0:0:8:800:200C:417A + + + ns2.example.net + + + jd1234 + sh8013 + sh8013 + sh801333 + + + + + + 257 + 3 + 5 + AwEAAddt2AkLfYGKgiEZB5SmIF8EvrjxNMH6HtxWEA4RJ9Ao6LCWheg8 + + + + ABC-12345 + + + +RESPONSE: + + + + + Domain name is reserved or restricted + + 1162.ee + + + + + ABC-12345 + ccReg-6132632489 + + + +------------------------------------------------PASS------------------------------------------------ + +---------------------------------------------------------------------------------------------------- +EPP Domain with valid user with citizen as an owner does not create domain without contacts and registrant +---------------------------------------------------------------------------------------------------- +REQUEST: + + + + + + example.ee + 1 + + + ns1.example.net + 192.0.2.2 + 1080:0:0:0:8:800:200C:417A + + + ns2.example.net + + + sh8013 + sh8013 + sh801333 + + + + + + + 257 + 3 + 5 + AwEAAddt2AkLfYGKgiEZB5SmIF8EvrjxNMH6HtxWEA4RJ9Ao6LCWheg8 + + + + ABC-12345 + + + +RESPONSE: + + + + + Required parameter missing: registrant + + + + ABC-12345 + + + + +------------------------------------------------PASS------------------------------------------------ + +---------------------------------------------------------------------------------------------------- +EPP Domain with valid user with citizen as an owner does not create domain without nameservers +---------------------------------------------------------------------------------------------------- +REQUEST: + + + + + + example.ee + 1 + + jd1234 + sh8013 + sh8013 + sh801333 + + + + + + 257 + 3 + 5 + AwEAAddt2AkLfYGKgiEZB5SmIF8EvrjxNMH6HtxWEA4RJ9Ao6LCWheg8 + + + + ABC-12345 + + + +RESPONSE: + + + + + Required parameter missing: ns + + + + ABC-12345 + + + + +------------------------------------------------PASS------------------------------------------------ + +---------------------------------------------------------------------------------------------------- +EPP Domain with valid user with citizen as an owner does not create domain with too many nameservers +---------------------------------------------------------------------------------------------------- +REQUEST: + + + + + + example.ee + 1 + + + ns0.example.net + + + ns1.example.net + + + ns2.example.net + + + ns3.example.net + + + ns4.example.net + + + ns5.example.net + + + ns6.example.net + + + ns7.example.net + + + ns8.example.net + + + ns9.example.net + + + ns10.example.net + + + ns11.example.net + + + ns12.example.net + + + ns13.example.net + + + jd1234 + sh8013 + sh8013 + sh801333 + + + + + + 257 + 3 + 5 + AwEAAddt2AkLfYGKgiEZB5SmIF8EvrjxNMH6HtxWEA4RJ9Ao6LCWheg8 + + + + ABC-12345 + + + +RESPONSE: + + + + + Nameservers count must be between 2-11 + + + + ABC-12345 + ccReg-6163229475 + + + +------------------------------------------------PASS------------------------------------------------ + +---------------------------------------------------------------------------------------------------- +EPP Domain with valid user with citizen as an owner returns error when invalid nameservers are present +---------------------------------------------------------------------------------------------------- +REQUEST: + + + + + + example.ee + 1 + + + invalid1- + + + -invalid2 + + + jd1234 + sh8013 + sh8013 + sh801333 + + + + + + 257 + 3 + 5 + AwEAAddt2AkLfYGKgiEZB5SmIF8EvrjxNMH6HtxWEA4RJ9Ao6LCWheg8 + + + + ABC-12345 + + + +RESPONSE: + + + + + Hostname is invalid + + invalid1- + + + + Hostname is invalid + + -invalid2 + + + + + ABC-12345 + ccReg-3821694533 + + + +------------------------------------------------PASS------------------------------------------------ + +---------------------------------------------------------------------------------------------------- +EPP Domain with valid user with citizen as an owner does not allow hostObj +---------------------------------------------------------------------------------------------------- +REQUEST: + + + + + + example.ee + 1 + + ns1.example.ee + ns2.example.ee + + jd1234 + sh8013 + sh8013 + sh801333 + + + + + + 257 + 3 + 5 + AwEAAddt2AkLfYGKgiEZB5SmIF8EvrjxNMH6HtxWEA4RJ9Ao6LCWheg8 + + + + ABC-12345 + + + +RESPONSE: + + + + + hostObj object is not allowed + + + + ABC-12345 + + + + +------------------------------------------------PASS------------------------------------------------ + +---------------------------------------------------------------------------------------------------- +EPP Domain with valid user with citizen as an owner creates domain with nameservers with ips +---------------------------------------------------------------------------------------------------- +REQUEST: + + + + + + example.ee + 1 + + + ns1.example.net + 192.0.2.2 + 1080:0:0:0:8:800:200C:417A + + + ns2.example.net + + + jd1234 + sh801333 + + 2fooBAR + + + + ABC-12345 + + + +RESPONSE: + + + + + Command completed successfully + + + + example.ee + 2014-12-09 14:04:15 UTC + 2015-12-09 00:00:00 UTC + + + + + ABC-12345 + ccReg-8013582966 + + + +------------------------------------------------PASS------------------------------------------------ + +---------------------------------------------------------------------------------------------------- +EPP Domain with valid user with citizen as an owner returns error when nameserver has invalid ips +---------------------------------------------------------------------------------------------------- +REQUEST: + + + + + + example.ee + 1 + + + ns1.example.net + 192.0.2.2.invalid + + + ns2.example.net + invalid_ipv6 + + + jd1234 + sh801333 + + 2fooBAR + + + + ABC-12345 + + + +RESPONSE: + + + + + IPv4 is invalid + + 192.0.2.2.invalid + + + + IPv6 is invalid + + INVALID_IPV6 + + + + + ABC-12345 + ccReg-2795423047 + + + +------------------------------------------------PASS------------------------------------------------ + +---------------------------------------------------------------------------------------------------- +EPP Domain with valid user with citizen as an owner creates a domain with period in days +---------------------------------------------------------------------------------------------------- +REQUEST: + + + + + + example.ee + 1 + + + ns1.example.net + 192.0.2.2 + 1080:0:0:0:8:800:200C:417A + + + ns2.example.net + + + jd1234 + sh8013 + sh8013 + sh801333 + + + + + + 257 + 3 + 5 + AwEAAddt2AkLfYGKgiEZB5SmIF8EvrjxNMH6HtxWEA4RJ9Ao6LCWheg8 + + + + ABC-12345 + + + +RESPONSE: + + + + + Command completed successfully + + + + example.ee + 2014-12-09 14:04:20 UTC + 2015-12-09 00:00:00 UTC + + + + + ABC-12345 + ccReg-5094267496 + + + +------------------------------------------------PASS------------------------------------------------ + +---------------------------------------------------------------------------------------------------- +EPP Domain with valid user with citizen as an owner does not create a domain with invalid period +---------------------------------------------------------------------------------------------------- +REQUEST: + + + + + + example.ee + 367 + + + ns1.example.net + 192.0.2.2 + 1080:0:0:0:8:800:200C:417A + + + ns2.example.net + + + jd1234 + sh8013 + sh8013 + sh801333 + + + + + + 257 + 3 + 5 + AwEAAddt2AkLfYGKgiEZB5SmIF8EvrjxNMH6HtxWEA4RJ9Ao6LCWheg8 + + + + ABC-12345 + + + +RESPONSE: + + + + + Period must add up to 1, 2 or 3 years + + 367 + + + + + ABC-12345 + ccReg-3607332087 + + + +------------------------------------------------PASS------------------------------------------------ + +---------------------------------------------------------------------------------------------------- +EPP Domain with valid user with citizen as an owner creates a domain with multiple dnskeys +---------------------------------------------------------------------------------------------------- +REQUEST: + + + + + + example.ee + 1 + + + ns1.example.net + 192.0.2.2 + 1080:0:0:0:8:800:200C:417A + + + ns2.example.net + + + jd1234 + sh8013 + sh8013 + sh801333 + + + + + + 257 + 3 + 3 + AwEAAddt2AkLfYGKgiEZB5SmIF8EvrjxNMH6HtxWEA4RJ9Ao6LCWheg8 + + + 0 + 3 + 5 + 700b97b591ed27ec2590d19f06f88bba700b97b591ed27ec2590d19f + + + 256 + 3 + 254 + 841936717ae427ace63c28d04918569a841936717ae427ace63c28d0 + + + + ABC-12345 + + + +RESPONSE: + + + + + Command completed successfully + + + + example.ee + 2014-12-09 14:04:25 UTC + 2015-12-09 00:00:00 UTC + + + + + ABC-12345 + ccReg-6921285927 + + + +------------------------------------------------PASS------------------------------------------------ + +---------------------------------------------------------------------------------------------------- +EPP Domain with valid user with citizen as an owner does not create a domain when dnskeys are invalid +---------------------------------------------------------------------------------------------------- +REQUEST: + + + + + + example.ee + 1 + + + ns1.example.net + 192.0.2.2 + 1080:0:0:0:8:800:200C:417A + + + ns2.example.net + + + jd1234 + sh8013 + sh8013 + sh801333 + + + + + + 250 + 4 + 9 + AwEAAddt2AkLfYGKgiEZB5SmIF8EvrjxNMH6HtxWEA4RJ9Ao6LCWheg8 + + + 1 + 3 + 10 + 700b97b591ed27ec2590d19f06f88bba700b97b591ed27ec2590d19f + + + 256 + 5 + 254 + + + + + ABC-12345 + + + +RESPONSE: + + + + + Valid algorithms are: 3, 5, 6, 7, 8, 252, 253, 254, 255 + + 9 + + + + Valid protocols are: 3 + + 4 + + + + Valid flags are: 0, 256, 257 + + 250 + + + + Valid algorithms are: 3, 5, 6, 7, 8, 252, 253, 254, 255 + + 10 + + + + Valid flags are: 0, 256, 257 + + 1 + + + + Public key is missing + + + Valid protocols are: 3 + + 5 + + + + + ABC-12345 + ccReg-4259035558 + + + +------------------------------------------------PASS------------------------------------------------ + +---------------------------------------------------------------------------------------------------- +EPP Domain with valid user with citizen as an owner does not create a domain with two identical dnskeys +---------------------------------------------------------------------------------------------------- +REQUEST: + + + + + + example.ee + 1 + + + ns1.example.net + 192.0.2.2 + 1080:0:0:0:8:800:200C:417A + + + ns2.example.net + + + jd1234 + sh8013 + sh8013 + sh801333 + + + + + + 257 + 3 + 3 + 700b97b591ed27ec2590d19f06f88bba700b97b591ed27ec2590d19f + + + 0 + 3 + 5 + 700b97b591ed27ec2590d19f06f88bba700b97b591ed27ec2590d19f + + + + ABC-12345 + + + +RESPONSE: + + + + + Public key already exists + + 700b97b591ed27ec2590d19f06f88bba700b97b591ed27ec2590d19f + + + + + ABC-12345 + ccReg-7712081050 + + + +------------------------------------------------PASS------------------------------------------------ + +---------------------------------------------------------------------------------------------------- +EPP Domain with valid user with citizen as an owner validated dnskeys count +---------------------------------------------------------------------------------------------------- +REQUEST: + + + + + + example.ee + 1 + + + ns1.example.net + 192.0.2.2 + 1080:0:0:0:8:800:200C:417A + + + ns2.example.net + + + jd1234 + sh8013 + sh8013 + sh801333 + + + + + + 257 + 3 + 3 + AwEAAddt2AkLfYGKgiEZB5SmIF8EvrjxNMH6HtxWEA4RJ9Ao6LCWheg8 + + + 0 + 3 + 5 + 700b97b591ed27ec2590d19f06f88bba700b97b591ed27ec2590d19f + + + + ABC-12345 + + + +RESPONSE: + + + + + DNS keys count must be between 0-1 + + + + ABC-12345 + ccReg-6851530758 + + + +------------------------------------------------PASS------------------------------------------------ + +---------------------------------------------------------------------------------------------------- +EPP Domain with valid user with citizen as an owner creates domain with ds data +---------------------------------------------------------------------------------------------------- +REQUEST: + + + + + + example.ee + 1 + + + ns1.example.net + 192.0.2.2 + 1080:0:0:0:8:800:200C:417A + + + ns2.example.net + + + jd1234 + sh8013 + sh8013 + sh801333 + + + + + + 12345 + 3 + 1 + 49FD46E6C4B45C55D4AC + + + + ABC-12345 + + + +RESPONSE: + + + + + Command completed successfully + + + + example.ee + 2014-12-09 14:04:35 UTC + 2015-12-09 00:00:00 UTC + + + + + ABC-12345 + ccReg-3277134470 + + + +------------------------------------------------PASS------------------------------------------------ + +---------------------------------------------------------------------------------------------------- +EPP Domain with valid user with citizen as an owner creates domain with ds data with key +---------------------------------------------------------------------------------------------------- +REQUEST: + + + + + + example.ee + 1 + + + ns1.example.net + 192.0.2.2 + 1080:0:0:0:8:800:200C:417A + + + ns2.example.net + + + jd1234 + sh8013 + sh8013 + sh801333 + + + + + + 12345 + 3 + 1 + 49FD46E6C4B45C55D4AC + + 0 + 3 + 5 + 700b97b591ed27ec2590d19f06f88bba700b97b591ed27ec2590d19f + + + + + ABC-12345 + + + +RESPONSE: + + + + + Command completed successfully + + + + example.ee + 2014-12-09 14:04:37 UTC + 2015-12-09 00:00:00 UTC + + + + + ABC-12345 + ccReg-9553003500 + + + +------------------------------------------------PASS------------------------------------------------ + +---------------------------------------------------------------------------------------------------- +EPP Domain with valid user with citizen as an owner prohibits dsData with key +---------------------------------------------------------------------------------------------------- +REQUEST: + + + + + + example.ee + 1 + + + ns1.example.net + 192.0.2.2 + 1080:0:0:0:8:800:200C:417A + + + ns2.example.net + + + jd1234 + sh8013 + sh8013 + sh801333 + + + + + + 12345 + 3 + 1 + 49FD46E6C4B45C55D4AC + + 0 + 3 + 5 + 700b97b591ed27ec2590d19f06f88bba700b97b591ed27ec2590d19f + + + + + ABC-12345 + + + +RESPONSE: + + + + + dsData object with key data is not allowed + + + + ABC-12345 + ccReg-1357320367 + + + +------------------------------------------------PASS------------------------------------------------ + +---------------------------------------------------------------------------------------------------- +EPP Domain with valid user with citizen as an owner prohibits dsData +---------------------------------------------------------------------------------------------------- +REQUEST: + + + + + + example.ee + 1 + + + ns1.example.net + 192.0.2.2 + 1080:0:0:0:8:800:200C:417A + + + ns2.example.net + + + jd1234 + sh8013 + sh8013 + sh801333 + + + + + + 12345 + 3 + 1 + 49FD46E6C4B45C55D4AC + + 0 + 3 + 5 + 700b97b591ed27ec2590d19f06f88bba700b97b591ed27ec2590d19f + + + + + ABC-12345 + + + +RESPONSE: + + + + + dsData object is not allowed + + + + ABC-12345 + ccReg-2202798848 + + + +------------------------------------------------PASS------------------------------------------------ + +---------------------------------------------------------------------------------------------------- +EPP Domain with valid user with citizen as an owner prohibits keyData +---------------------------------------------------------------------------------------------------- +REQUEST: + + + + + + example.ee + 1 + + + ns1.example.net + 192.0.2.2 + 1080:0:0:0:8:800:200C:417A + + + ns2.example.net + + + jd1234 + sh8013 + sh8013 + sh801333 + + + + + + 0 + 3 + 5 + 700b97b591ed27ec2590d19f06f88bba700b97b591ed27ec2590d19f + + + + ABC-12345 + + + +RESPONSE: + + + + + keyData object is not allowed + + + + ABC-12345 + ccReg-8730610937 + + + +------------------------------------------------PASS------------------------------------------------ + +---------------------------------------------------------------------------------------------------- +EPP Domain with valid user with juridical persion as an owner creates a domain with contacts +---------------------------------------------------------------------------------------------------- +REQUEST: + + + + + + example.ee + 1 + + + ns1.example.net + 192.0.2.2 + 1080:0:0:0:8:800:200C:417A + + + ns2.example.net + + + jd1234 + sh8013 + + + + + + 257 + 3 + 5 + AwEAAddt2AkLfYGKgiEZB5SmIF8EvrjxNMH6HtxWEA4RJ9Ao6LCWheg8 + + + + ABC-12345 + + + +RESPONSE: + + + + + Command completed successfully + + + + example.ee + 2014-12-09 14:04:47 UTC + 2015-12-09 00:00:00 UTC + + + + + ABC-12345 + ccReg-2661441652 + + + +------------------------------------------------PASS------------------------------------------------ + +---------------------------------------------------------------------------------------------------- +EPP Domain with valid user with juridical persion as an owner does not create a domain without admin contact +---------------------------------------------------------------------------------------------------- +REQUEST: + + + + + + example.ee + 1 + + + ns1.example.net + 192.0.2.2 + 1080:0:0:0:8:800:200C:417A + + + ns2.example.net + + + jd1234 + sh8013 + + + + + + 257 + 3 + 5 + AwEAAddt2AkLfYGKgiEZB5SmIF8EvrjxNMH6HtxWEA4RJ9Ao6LCWheg8 + + + + ABC-12345 + + + +RESPONSE: + + + + + Admin contacts count must be between 1 - infinity + + + + ABC-12345 + ccReg-8004787481 + + + +------------------------------------------------PASS------------------------------------------------ + +---------------------------------------------------------------------------------------------------- +EPP Domain with valid user with valid domain renews a domain +---------------------------------------------------------------------------------------------------- +REQUEST: + + + + + + example.ee + 2015-12-09 + 1 + + + ABC-12345 + + + +RESPONSE: + + + + + Command completed successfully + + + + example.ee + 2016-12-09 00:00:00 UTC + + + + ABC-12345 + ccReg-9608778728 + + + + +------------------------------------------------PASS------------------------------------------------ + +---------------------------------------------------------------------------------------------------- +EPP Domain with valid user with valid domain returns an error when given and current exp dates do not match +---------------------------------------------------------------------------------------------------- +REQUEST: + + + + + + example.ee + 2016-08-07 + 1 + + + ABC-12345 + + + +RESPONSE: + + + + + Given and current expire dates do not match + + 2016-08-07 + + + + + ABC-12345 + ccReg-6408602587 + + + +------------------------------------------------PASS------------------------------------------------ + +---------------------------------------------------------------------------------------------------- +EPP Domain with valid user with valid domain returns an error when period is invalid +---------------------------------------------------------------------------------------------------- +REQUEST: + + + + + + example.ee + 2015-12-09 + 4 + + + ABC-12345 + + + +RESPONSE: + + + + + Period must add up to 1, 2 or 3 years + + 4 + + + + + ABC-12345 + ccReg-1257236160 + + + +------------------------------------------------PASS------------------------------------------------ + +---------------------------------------------------------------------------------------------------- +EPP Domain with valid user with valid domain sets ok status by default +---------------------------------------------------------------------------------------------------- +REQUEST: + + + + + + example.ee + + 2fooBAR + + + + ABC-12345 + + + +RESPONSE: + + + + + Command completed successfully + + + + example.ee + + sh7433 + sh7433 + sh3954 + + + ns.nienow.ee + + + ns.gottlieb.ee + + + ns.bahringer.ee + + + Zone Media OÜ + Zone Media OÜ + 2014-12-09 14:04:59 UTC + 2015-12-09 00:00:00 UTC + + 4f21a32dba5f1b6e3c2f79884921acac + + + + + + ABC-12345 + ccReg-9332240852 + + + +------------------------------------------------PASS------------------------------------------------ + +---------------------------------------------------------------------------------------------------- +EPP Domain with valid user with valid domain returns domain info +---------------------------------------------------------------------------------------------------- +REQUEST: + + + + + + Example.ee + + 2fooBAR + + + + ABC-12345 + + + +RESPONSE: + + + + + Command completed successfully + + + + example.ee + Payment overdue. + sh8345 + sh8345 + sh2914 + + + ns.wunsch.ee + + + ns.hettingerbode.ee + + + ns.kuhn.ee + + + ns1.example.com + 192.168.1.1 + 1080:0:0:0:8:800:200C:417A + + + Zone Media OÜ + Zone Media OÜ + 2014-12-09 14:05:01 UTC + 2015-12-09 00:00:00 UTC + + bcff2a6bef1fc061a66f70f040a4bf31 + + + + + + + + 123 + 3 + 1 + abc + + 257 + 3 + 3 + AwEAAddt2AkLfYGKgiEZB5SmIF8EvrjxNMH6HtxWEA4RJ9Ao6LCWheg8 + + + + 123 + 3 + 1 + abc + + 0 + 3 + 5 + 700b97b591ed27ec2590d19f06f88bba700b97b591ed27ec2590d19f + + + + + + ABC-12345 + ccReg-3353335670 + + + +REQUEST: + + + + + + example.ee + + 2fooBAR + + + + ABC-12345 + + + +RESPONSE: + + + + + Command completed successfully + + + + example.ee + Payment overdue. + sh8345 + sh8345 + sh2914 + + + ns.wunsch.ee + + + ns.hettingerbode.ee + + + ns.kuhn.ee + + + ns1.example.com + 192.168.1.1 + 1080:0:0:0:8:800:200C:417A + + + Zone Media OÜ + Zone Media OÜ + 2014-12-09 14:05:01 UTC + 2015-12-09 00:00:00 UTC + 2014-12-09 14:05:01 UTC + + bcff2a6bef1fc061a66f70f040a4bf31 + + + + + + + + 123 + 3 + 1 + abc + + 257 + 3 + 3 + AwEAAddt2AkLfYGKgiEZB5SmIF8EvrjxNMH6HtxWEA4RJ9Ao6LCWheg8 + + + + 123 + 3 + 1 + abc + + 0 + 3 + 5 + 700b97b591ed27ec2590d19f06f88bba700b97b591ed27ec2590d19f + + + + + + ABC-12345 + ccReg-3329286170 + + + +------------------------------------------------PASS------------------------------------------------ + +---------------------------------------------------------------------------------------------------- +EPP Domain with valid user with valid domain returns error when domain can not be found +---------------------------------------------------------------------------------------------------- +REQUEST: + + + + + + test.ee + + 2fooBAR + + + + ABC-12345 + + + +RESPONSE: + + + + + Domain not found + + test.ee + + + + + ABC-12345 + ccReg-8828339073 + + + +------------------------------------------------PASS------------------------------------------------ + +---------------------------------------------------------------------------------------------------- +EPP Domain with valid user with valid domain updates domain and adds objects +---------------------------------------------------------------------------------------------------- +REQUEST: + + + + + + example.ee + + + ns1.example.com + ns2.example.com + + mak21 + Payment overdue. + + + + + + + + + 0 + 3 + 5 + 700b97b591ed27ec2590d19f06f88bba700b97b591ed27ec2590d19f + + + 256 + 3 + 254 + 841936717ae427ace63c28d04918569a841936717ae427ace63c28d0 + + + + + ABC-12345 + + + +RESPONSE: + + + + + Contact was not found + + mak21 + + + + + ABC-12345 + ccReg-1288861743 + + + +REQUEST: + + + + + + example.ee + + + ns1.example.com + ns2.example.com + + mak21 + Payment overdue. + + + + + + + + + 0 + 3 + 5 + 700b97b591ed27ec2590d19f06f88bba700b97b591ed27ec2590d19f + + + 256 + 3 + 254 + 841936717ae427ace63c28d04918569a841936717ae427ace63c28d0 + + + + + ABC-12345 + + + +RESPONSE: + + + + + Command completed successfully + + + + ABC-12345 + ccReg-0747798605 + + + +REQUEST: + + + + + + example.ee + + + ns1.example.com + ns2.example.com + + mak21 + Payment overdue. + + + + + + + + + 0 + 3 + 5 + 700b97b591ed27ec2590d19f06f88bba700b97b591ed27ec2590d19f + + + 256 + 3 + 254 + 841936717ae427ace63c28d04918569a841936717ae427ace63c28d0 + + + + + ABC-12345 + + + +RESPONSE: + + + + + Internal error. + + + + + + + + +---------------------------------------------------------------------------------------------------- +EPP Domain with valid user with valid domain updates a domain and removes objects +---------------------------------------------------------------------------------------------------- +REQUEST: + + + + + + example.ee + + + ns1.example.com + ns2.example.com + + mak21 + Payment overdue. + + + + + + + + + 0 + 3 + 5 + 700b97b591ed27ec2590d19f06f88bba700b97b591ed27ec2590d19f + + + 256 + 3 + 254 + 841936717ae427ace63c28d04918569a841936717ae427ace63c28d0 + + + + + ABC-12345 + + + +RESPONSE: + + + + + Command completed successfully + + + + ABC-12345 + ccReg-0128409946 + + + +REQUEST: + + + + + + example.ee + + + ns1.example.com + + mak21 + + + + + + + + + 700b97b591ed27ec2590d19f06f88bba700b97b591ed27ec2590d19f + + + + + ABC-12345 + + + +RESPONSE: + + + + + Command completed successfully + + + + ABC-12345 + ccReg-1616442141 + + + +REQUEST: + + + + + + example.ee + + + ns1.example.com + + mak21 + + + + + + + + + 700b97b591ed27ec2590d19f06f88bba700b97b591ed27ec2590d19f + + + + + ABC-12345 + + + +RESPONSE: + + + + + Contact was not found + + mak21 + + + + Nameserver was not found + + ns1.example.com + + + + Status was not found + + clientHold + + + + + ABC-12345 + ccReg-6978923523 + + + +------------------------------------------------PASS------------------------------------------------ + +---------------------------------------------------------------------------------------------------- +EPP Domain with valid user with valid domain does not add duplicate objects to domain +---------------------------------------------------------------------------------------------------- +REQUEST: + + + + + + example.ee + + + ns1.example.com + + + + + ABC-12345 + + + +RESPONSE: + + + + + Command completed successfully + + + + ABC-12345 + ccReg-4452580314 + + + +REQUEST: + + + + + + example.ee + + + ns1.example.com + + + + + ABC-12345 + + + +RESPONSE: + + + + + Nameserver already exists on this domain + + ns1.example.com + + + + + ABC-12345 + ccReg-5343627138 + + + +------------------------------------------------PASS------------------------------------------------ + +---------------------------------------------------------------------------------------------------- +EPP Domain with valid user with valid domain updates a domain +---------------------------------------------------------------------------------------------------- +REQUEST: + + + + + + example.ee + + mak21 + + + + ABC-12345 + + + +RESPONSE: + + + + + Command completed successfully + + + + ABC-12345 + ccReg-5854269419 + + + +------------------------------------------------PASS------------------------------------------------ + +---------------------------------------------------------------------------------------------------- +EPP Domain with valid user with valid domain does not assign invalid status to domain +---------------------------------------------------------------------------------------------------- +REQUEST: + + + + + + example.ee + + + + + + ABC-12345 + + + +RESPONSE: + + + + + Status was not found + + invalidStatus + + + + + ABC-12345 + ccReg-8567424686 + + + +------------------------------------------------PASS------------------------------------------------ + +---------------------------------------------------------------------------------------------------- +EPP Domain with valid user with valid domain deletes domain +---------------------------------------------------------------------------------------------------- +REQUEST: + + + + + + example.ee + + + ABC-12345 + + + +RESPONSE: + + + + + Command completed successfully + + + + ABC-12345 + ccReg-2329881338 + + + +------------------------------------------------PASS------------------------------------------------ + +---------------------------------------------------------------------------------------------------- +EPP Domain with valid user with valid domain does not delete domain with specific status +---------------------------------------------------------------------------------------------------- +REQUEST: + + + + + + example.ee + + + ABC-12345 + + + +RESPONSE: + + + + + Domain status prohibits operation + + + + ABC-12345 + ccReg-0260749767 + + + +------------------------------------------------PASS------------------------------------------------ + +---------------------------------------------------------------------------------------------------- +EPP Helper in context of Domain generates valid transfer xml +---------------------------------------------------------------------------------------------------- +------------------------------------------------PASS------------------------------------------------ + +---------------------------------------------------------------------------------------------------- +EPP Keyrelay with valid user makes a keyrelay request +---------------------------------------------------------------------------------------------------- +REQUEST: + + + + + example.ee + + 256 + 3 + 8 + cmlraXN0aGViZXN0 + + + 4a264c3809256bf46053d0fcda6883ee + + + P1M13D + + + ABC-12345 + + + +RESPONSE: + + + + + Command completed successfully + + + + ABC-12345 + ccReg-9912828484 + + + +------------------------------------------------PASS------------------------------------------------ + +---------------------------------------------------------------------------------------------------- +EPP Poll with valid user returns no messages in poll +---------------------------------------------------------------------------------------------------- +REQUEST: + + + + + ABC-12345 + + + +RESPONSE: + + + + + Command completed successfully; no messages + + + ABC-12345 + ccReg-8894550356 + + + + +------------------------------------------------PASS------------------------------------------------ + +---------------------------------------------------------------------------------------------------- +EPP Poll with valid user queues and dequeues messages +---------------------------------------------------------------------------------------------------- +REQUEST: + + + + + ABC-12345 + + + +RESPONSE: + + + + + Command completed successfully; no messages + + + ABC-12345 + ccReg-3302949443 + + + + +REQUEST: + + + + + ABC-12345 + + + +RESPONSE: + + + + + Command completed successfully; ack to dequeue + + + 2014-12-09 14:05:30 UTC + Balance low. + + + ABC-12345 + ccReg-7947671397 + + + + +REQUEST: + + + + + ABC-12345 + + + +RESPONSE: + + + + + Message was not found + + 1 + + + + + ABC-12345 + ccReg-6367802613 + + + +REQUEST: + + + + + ABC-12345 + + + +RESPONSE: + + + + + Command completed successfully + + + + ABC-12345 + ccReg-1100917544 + + + + +REQUEST: + + + + + ABC-12345 + + + +RESPONSE: + + + + + Message was not found + + 1 + + + + + ABC-12345 + ccReg-0674191600 + + + +------------------------------------------------PASS------------------------------------------------ + +---------------------------------------------------------------------------------------------------- +EPP Poll with valid user returns an error on incorrect op +---------------------------------------------------------------------------------------------------- +REQUEST: + + + + + ABC-12345 + + + +RESPONSE: + + + + + Attribute op is invalid + + + + ABC-12345 + + + + +------------------------------------------------PASS------------------------------------------------ + +---------------------------------------------------------------------------------------------------- +EPP Poll with valid user dequeues multiple messages +---------------------------------------------------------------------------------------------------- +REQUEST: + + + + + ABC-12345 + + + +RESPONSE: + + + + + Command completed successfully; ack to dequeue + + + 2014-12-09 14:05:36 UTC + Smth else. + + + ABC-12345 + ccReg-2737169250 + + + + +REQUEST: + + + + + ABC-12345 + + + +RESPONSE: + + + + + Command completed successfully + + + + ABC-12345 + ccReg-9828279927 + + + + +REQUEST: + + + + + ABC-12345 + + + +RESPONSE: + + + + + Command completed successfully; ack to dequeue + + + 2014-12-09 14:05:36 UTC + Something. + + + ABC-12345 + ccReg-7317360034 + + + + +REQUEST: + + + + + ABC-12345 + + + +RESPONSE: + + + + + Command completed successfully + + + + ABC-12345 + ccReg-1447397946 + + + + +REQUEST: + + + + + ABC-12345 + + + +RESPONSE: + + + + + Command completed successfully; ack to dequeue + + + 2014-12-09 14:05:36 UTC + Balance low. + + + ABC-12345 + ccReg-8946222060 + + + + +REQUEST: + + + + + ABC-12345 + + + +RESPONSE: + + + + + Command completed successfully + + + + ABC-12345 + ccReg-5118397024 + + + + +REQUEST: + + + + + ABC-12345 + + + +RESPONSE: + + + + + Command completed successfully; no messages + + + ABC-12345 + ccReg-8223340984 + + + + +------------------------------------------------PASS------------------------------------------------ + +---------------------------------------------------------------------------------------------------- +EPP Session when not connected greets client upon connection +---------------------------------------------------------------------------------------------------- +------------------------------------------------PASS------------------------------------------------ + +---------------------------------------------------------------------------------------------------- +EPP Session when connected does not log in with invalid user +---------------------------------------------------------------------------------------------------- +REQUEST: + + + + + gitlab + ghyt9e4fu + + 1.0 + en + + + urn:ietf:params:xml:ns:contact-1.0 + + + ABC-12345 + + + +RESPONSE: + + + + + Authentication error; server closing connection + + + + ABC-12345 + ccReg-3336483070 + + + +REQUEST: + + + + + gitlab + ghyt9e4fu + + 1.0 + en + + + urn:ietf:params:xml:ns:contact-1.0 + + + ABC-12345 + + + +RESPONSE: + + + + + Authentication error; server closing connection + + + + ABC-12345 + ccReg-8153726410 + + + +------------------------------------------------PASS------------------------------------------------ + +---------------------------------------------------------------------------------------------------- +EPP Session when connected prohibits further actions unless logged in +---------------------------------------------------------------------------------------------------- +REQUEST: + + + + + + + + + + ABC-12345 + + + +RESPONSE: + + + + + You need to login first. + + + + ABC-12345 + + + + +------------------------------------------------PASS------------------------------------------------ + +---------------------------------------------------------------------------------------------------- +EPP Session when connected with valid user logs in epp user +---------------------------------------------------------------------------------------------------- +REQUEST: + + + + + gitlab + ghyt9e4fu + + 1.0 + en + + + urn:ietf:params:xml:ns:contact-1.0 + + + ABC-12345 + + + +RESPONSE: + + + + + Command completed successfully + + + ABC-12345 + ccReg-0231965160 + + + + +------------------------------------------------PASS------------------------------------------------ + +---------------------------------------------------------------------------------------------------- +EPP Session when connected with valid user logs out epp user +---------------------------------------------------------------------------------------------------- +REQUEST: + + + + + gitlab + ghyt9e4fu + + 1.0 + en + + + urn:ietf:params:xml:ns:contact-1.0 + + + ABC-12345 + + + +RESPONSE: + + + + + Command completed successfully + + + ABC-12345 + ccReg-4268541900 + + + + +REQUEST: + + + + + ABC-12345 + + + +RESPONSE: + + + + + Command completed successfully; ending session + + + + ABC-12345 + ccReg-3555513028 + + + +------------------------------------------------PASS------------------------------------------------ + +---------------------------------------------------------------------------------------------------- +EPP Session when connected with valid user does not log in twice +---------------------------------------------------------------------------------------------------- +REQUEST: + + + + + gitlab + ghyt9e4fu + + 1.0 + en + + + urn:ietf:params:xml:ns:contact-1.0 + + + ABC-12345 + + + +RESPONSE: + + + + + Command completed successfully + + + ABC-12345 + ccReg-2734220823 + + + + +REQUEST: + + + + + gitlab + ghyt9e4fu + + 1.0 + en + + + urn:ietf:params:xml:ns:contact-1.0 + + + ABC-12345 + + + +RESPONSE: + + + + + Already logged in. Use <logout> first. + + + + ABC-12345 + + + + +------------------------------------------------PASS------------------------------------------------ + diff --git a/spec/support/epp.rb b/spec/support/epp.rb index 6818d44c5..f18a0e84a 100644 --- a/spec/support/epp.rb +++ b/spec/support/epp.rb @@ -15,7 +15,7 @@ module Epp end res = parse_response(server.request(read_body(data))) - log(data, res[:parsed]) + log(read_body(data), res[:parsed]) return res rescue => e @@ -27,8 +27,15 @@ module Epp server = server_elkdata if args.include?(:elkdata) server = server_zone if args.include?(:zone) - return parse_response(server.send_request(data)) if args.include?(:xml) - return parse_response(server.send_request(read_body(data))) + res = parse_response(server.send_request(data)) if args.include?(:xml) + if res + log(data, res[:parsed]) + return res + end + + res = parse_response(server.send_request(read_body(data))) + log(read_body(data), res[:parsed]) + return res rescue => e e end @@ -44,7 +51,9 @@ module Epp } res.css('epp response result').each do |x| - obj[:results] << { result_code: x[:code], msg: x.css('msg').text, value: x.css('value > *').try(:first).try(:text) } + obj[:results] << { + result_code: x[:code], msg: x.css('msg').text, value: x.css('value > *').try(:first).try(:text) + } end obj[:result_code] = obj[:results][0][:result_code] @@ -213,8 +222,8 @@ module Epp def log(req, res) return unless ENV['EPP_DOC'] - puts "\nREQUEST: #{Nokogiri(req)}\n" - puts "RESPONSE: #{res}" + puts "REQUEST:\n#{Nokogiri(req)}\n" + puts "RESPONSE:\n#{res}\n" end end diff --git a/spec/support/epp_doc.rb b/spec/support/epp_doc.rb index ad485ae63..289483396 100644 --- a/spec/support/epp_doc.rb +++ b/spec/support/epp_doc.rb @@ -1,22 +1,36 @@ class EppDoc - RSpec::Core::Formatters.register self, :example_started, :example_passed, :example_failed + RSpec::Core::Formatters.register self, :start, :example_started, :example_passed, :example_failed def initialize(output) @output = output end def example_started(notification) - desc = notification.example.full_description - @output.puts '-' * desc.length - @output.puts desc - @output.puts '-' * desc.length + @output.puts '-' * 100 + @output.puts notification.example.full_description + @output.puts '-' * 100 + end + + def start(example_count) + @output.puts '-' * 100 + @output.puts 'EPP REQUEST - RESPONSE DOCUMENTATION' + @output.puts "GENERATED AT: #{Time.now}" + @output.puts "EXAMPLE COUNT: #{example_count.count}" end def example_passed(_example) - @output << "\n\n" + dash = '-' * 48 + @output.puts "#{dash}PASS#{dash}\n\n" end def example_failed(_example) - @output << "\n\n" + dash = '-' * 48 + @output.puts "#{dash}FAIL#{dash}\n\n" + end + + def example_pending(_example) + dash_1 = '-' * 47 + dash_2 = '-' * 46 + @output.puts "#{dash_1}PENDING#{dash_2}\n\n" end end