Basic domain check command implementation

This commit is contained in:
Martin Lensment 2014-06-27 17:46:03 +03:00
parent f8757891ef
commit cd52da3f8f
8 changed files with 49 additions and 9 deletions

View file

@ -1,7 +1,7 @@
require 'rails_helper'
describe 'EPP Domain', epp: true do
let(:server) { server = Epp::Server.new({server: 'localhost', tag: 'test', password: 'test'}) }
let(:server) { server = Epp::Server.new({server: 'localhost', tag: 'test', password: 'test', port: 701}) }
context 'with valid user' do
before(:each) { Fabricate(:epp_user) }
@ -14,5 +14,11 @@ describe 'EPP Domain', epp: true do
expect(Domain.first.registrar.name).to eq('Zone Media OÜ')
end
it 'checks domain' do
response = epp_request('domains/check.xml')
expect(response[:result_code]).to eq('1000')
expect(response[:msg]).to eq('Command completed successfully')
end
end
end