mirror of
https://github.com/internetee/registry.git
synced 2025-05-19 02:39:37 +02:00
20 lines
588 B
Ruby
20 lines
588 B
Ruby
require 'rails_helper'
|
|
|
|
describe 'EPP Contact', epp: true do
|
|
let(:server) { Epp::Server.new({server: 'localhost', tag: 'gitlab', password: 'ghyt9e4fu', 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('neka005#10-02-08at13:51:37')
|
|
|
|
expect(Contact.count).to eq(1)
|
|
end
|
|
|
|
end
|
|
end
|