Add test case for command

This commit is contained in:
Maciej Szlosarczyk 2019-07-12 14:47:47 +03:00
parent d8e03ed484
commit 31fa20a9a6
No known key found for this signature in database
GPG key ID: 41D62D42D3B0D765
3 changed files with 60 additions and 24 deletions

View file

@ -21,7 +21,8 @@ class BackendServer < Roda
end
r.on "command" do
r.post "create" do
r.post "poll" do
render("command/poll")
end
end

View file

@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<epp xmlns="https://epp.tld.ee/schema/epp-ee-1.0.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="lib/schemas/epp-ee-1.0.xsd">
<response>
<result code="1300">
<msg>Command completed successfully; no messages</msg>
</result>
<trID>
<clTRID>foo bar baz</clTRID>
<svTRID>ccReg-8688842425</svTRID>
</trID>
</response>
</epp>