mirror of
https://github.com/internetee/registry.git
synced 2025-05-17 09:57:23 +02:00
Include EppXml gem
This commit is contained in:
parent
cc8571de26
commit
d52eb161c9
3 changed files with 13 additions and 1 deletions
3
Gemfile
3
Gemfile
|
@ -84,6 +84,9 @@ group :development, :test do
|
||||||
# EPP client
|
# EPP client
|
||||||
gem 'epp', '~> 1.4.0'
|
gem 'epp', '~> 1.4.0'
|
||||||
|
|
||||||
|
# EPP XMLs
|
||||||
|
gem 'epp-xml', git: 'git@github.com:gitlabeu/epp-xml.git'
|
||||||
|
|
||||||
# Replacement for fixtures
|
# Replacement for fixtures
|
||||||
gem 'fabrication', '~> 2.11.3'
|
gem 'fabrication', '~> 2.11.3'
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,11 @@
|
||||||
|
GIT
|
||||||
|
remote: git@github.com:gitlabeu/epp-xml.git
|
||||||
|
revision: c9f4de93b942bcf8f19c59e7bf5680961593ddd3
|
||||||
|
specs:
|
||||||
|
epp-xml (0.0.1)
|
||||||
|
activesupport (~> 4.1, >= 4.1.4)
|
||||||
|
builder (~> 3.2, >= 3.2.2)
|
||||||
|
|
||||||
GEM
|
GEM
|
||||||
remote: https://rubygems.org/
|
remote: https://rubygems.org/
|
||||||
specs:
|
specs:
|
||||||
|
@ -359,6 +367,7 @@ DEPENDENCIES
|
||||||
database_cleaner (~> 1.3.0)
|
database_cleaner (~> 1.3.0)
|
||||||
devise (~> 3.3.0)
|
devise (~> 3.3.0)
|
||||||
epp (~> 1.4.0)
|
epp (~> 1.4.0)
|
||||||
|
epp-xml!
|
||||||
fabrication (~> 2.11.3)
|
fabrication (~> 2.11.3)
|
||||||
faker (~> 1.3.0)
|
faker (~> 1.3.0)
|
||||||
guard (~> 2.6.1)
|
guard (~> 2.6.1)
|
||||||
|
|
|
@ -2,7 +2,7 @@ require 'rails_helper'
|
||||||
|
|
||||||
describe 'EPP Session', epp: true do
|
describe 'EPP Session', epp: true do
|
||||||
let(:server_gitlab) { Epp::Server.new({ server: 'localhost', tag: 'gitlab', password: 'ghyt9e4fu', port: 701 }) }
|
let(:server_gitlab) { Epp::Server.new({ server: 'localhost', tag: 'gitlab', password: 'ghyt9e4fu', port: 701 }) }
|
||||||
let(:login_xml_cache) { login_xml }
|
let(:login_xml_cache) { EppXml::Session.login(clID: { value: 'gitlab' }, pw: { value: 'ghyt9e4fu' }) }
|
||||||
|
|
||||||
context 'when not connected' do
|
context 'when not connected' do
|
||||||
it 'greets client upon connection' do
|
it 'greets client upon connection' do
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue