mirror of
https://github.com/internetee/registry.git
synced 2025-07-24 11:38:30 +02:00
Add basic contact creation request to EPP
This commit is contained in:
parent
d0251de28f
commit
2187be6364
6 changed files with 100 additions and 1 deletions
18
spec/epp/contact_spec.rb
Normal file
18
spec/epp/contact_spec.rb
Normal file
|
@ -0,0 +1,18 @@
|
|||
require 'rails_helper'
|
||||
|
||||
describe 'EPP Contact', epp: true do
|
||||
let(:server) { Epp::Server.new({server: 'localhost', tag: 'test', password: 'test', port: 701}) }
|
||||
|
||||
context 'with valid user' do
|
||||
before(:each) { Fabricate(:epp_user) }
|
||||
|
||||
# incomplete
|
||||
it 'creates a contact' do
|
||||
response = epp_request('contacts/create.xml')
|
||||
expect(response[:result_code]).to eq('1000')
|
||||
expect(response[:msg]).to eq('Command completed successfully')
|
||||
expect(response[:clTRID]).to eq('ABC-12345')
|
||||
end
|
||||
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue