mirror of
https://github.com/internetee/epp_proxy.git
synced 2025-08-22 07:00:47 +02:00
Add test case for command
This commit is contained in:
parent
d8e03ed484
commit
31fa20a9a6
3 changed files with 60 additions and 24 deletions
|
@ -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
|
||||
|
|
12
apps/epp_proxy/priv/test_backend_app/views/command/poll.erb
Normal file
12
apps/epp_proxy/priv/test_backend_app/views/command/poll.erb
Normal 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>
|
Loading…
Add table
Add a link
Reference in a new issue