mirror of
https://github.com/internetee/registry.git
synced 2025-07-21 18:26:06 +02:00
Basic contact check command implementation
This commit is contained in:
parent
65bb5166cc
commit
1f29925004
6 changed files with 106 additions and 0 deletions
|
@ -45,6 +45,16 @@ describe 'EPP Contact', epp: true do
|
|||
expect(response[:msg]).to eq('Object does not exist')
|
||||
end
|
||||
|
||||
it 'checks contacts' do
|
||||
Fabricate(:contact)
|
||||
Fabricate(:contact, id:'sh8914')
|
||||
|
||||
response = epp_request('contacts/check.xml')
|
||||
expect(response[:result_code]).to eq('1000')
|
||||
expect(response[:msg]).to eq('Command completed successfully')
|
||||
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
end
|
||||
|
|
13
spec/epp/requests/contacts/check.xml
Normal file
13
spec/epp/requests/contacts/check.xml
Normal file
|
@ -0,0 +1,13 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<epp xmlns="urn:ietf:params:xml:ns:epp-1.0">
|
||||
<command>
|
||||
<check>
|
||||
<contact:check
|
||||
xmlns:contact="urn:ietf:params:xml:ns:contact-1.0">
|
||||
<contact:id>sh8913</contact:id>
|
||||
<contact:id>sh8914</contact:id>
|
||||
</contact:check>
|
||||
</check>
|
||||
<clTRID>ABC-12345</clTRID>
|
||||
</command>
|
||||
</epp>
|
Loading…
Add table
Add a link
Reference in a new issue