Bump epp-xml, improved login xml

This commit is contained in:
Martin Lensment 2015-01-05 17:35:02 +02:00
parent fb93e2ba5f
commit 796b25ace8
8 changed files with 302 additions and 291 deletions

View file

@ -99,7 +99,7 @@ group :development, :test do
gem 'epp', '~> 1.4.0' gem 'epp', '~> 1.4.0'
# EPP XMLs # EPP XMLs
gem 'epp-xml', '~> 0.10.2' gem 'epp-xml', '~> 0.10.3'
# Replacement for fixtures # Replacement for fixtures
gem 'fabrication', '~> 2.11.3' gem 'fabrication', '~> 2.11.3'

View file

@ -107,7 +107,7 @@ GEM
epp (1.4.0) epp (1.4.0)
hpricot hpricot
libxml-ruby libxml-ruby
epp-xml (0.10.2) epp-xml (0.10.3)
activesupport (~> 4.1) activesupport (~> 4.1)
builder (~> 3.2) builder (~> 3.2)
equalizer (0.0.9) equalizer (0.0.9)
@ -388,7 +388,7 @@ DEPENDENCIES
delayed_job_active_record (~> 4.0.2) delayed_job_active_record (~> 4.0.2)
devise (~> 3.3.0) devise (~> 3.3.0)
epp (~> 1.4.0) epp (~> 1.4.0)
epp-xml (~> 0.10.2) epp-xml (~> 0.10.3)
fabrication (~> 2.11.3) fabrication (~> 2.11.3)
faker (~> 1.3.0) faker (~> 1.3.0)
guard (~> 2.6.1) guard (~> 2.6.1)

View file

@ -2,7 +2,7 @@ require 'mina/bundler'
require 'mina/rails' require 'mina/rails'
require 'mina/git' require 'mina/git'
require 'mina/whenever' require 'mina/whenever'
require 'mina/rbenv' # for rbenv support. (http://rbenv.org) # require 'mina/rbenv' # for rbenv support. (http://rbenv.org)
# require 'mina/rvm' # for rvm support. (http://rvm.io) # require 'mina/rvm' # for rvm support. (http://rvm.io)
# Basic settings: # Basic settings:
@ -50,7 +50,7 @@ set :shared_paths, [
task :environment do task :environment do
# If you're using rbenv, use this to load the rbenv environment. # If you're using rbenv, use this to load the rbenv environment.
# Be sure to commit your .rbenv-version to your repository. # Be sure to commit your .rbenv-version to your repository.
invoke :'rbenv:load' # invoke :'rbenv:load'
# For those using RVM, use this to load an RVM version@gemset. # For those using RVM, use this to load an RVM version@gemset.
# invoke :'rvm:use[ruby-1.9.3-p125@default]' # invoke :'rvm:use[ruby-1.9.3-p125@default]'

File diff suppressed because it is too large Load diff

View file

@ -1,23 +0,0 @@
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<epp xmlns="urn:ietf:params:xml:ns:epp-1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:ietf:params:xml:ns:epp-1.0 epp-1.0.xsd">
<command>
<login>
<clID>gitlab</clID>
<pw>ghyt9e4fu</pw>
<options>
<version>1.0</version>
<lang>en</lang>
</options>
<svcs>
<objURI>urn:ietf:params:xml:ns:contact-1.0</objURI>
<!-- <objURI>http://www.nic.cz/xml/epp/nsset-1.2</objURI> -->
<!-- <objURI>http://F/xml/epp/domain-1.4</objURI> -->
<!-- <objURI>http://www.nic.cz/xml/epp/keyset-1.3</objURI> -->
<!-- <svcExtension>
<extURI>http://www.nic.cz/xml/epp/enumval-1.2</extURI>
</svcExtension> -->
</svcs>
</login>
<clTRID>wgyn001#10-02-08at13:58:06</clTRID>
</command>
</epp>

View file

@ -1,7 +0,0 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<epp xmlns="urn:ietf:params:xml:ns:epp-1.0">
<command>
<logout/>
<clTRID>ABC-12345</clTRID>
</command>
</epp>

View file

@ -52,8 +52,7 @@ describe 'EPP Session', epp: true do
epp_plain_request(login_xml_cache, :xml) epp_plain_request(login_xml_cache, :xml)
expect(EppSession.first[:epp_user_id]).to eq(1) expect(EppSession.first[:epp_user_id]).to eq(1)
response = epp_plain_request(epp_xml.session.logout, :xml)
response = epp_plain_request('logout.xml')
expect(response[:result_code]).to eq('1500') expect(response[:result_code]).to eq('1500')
expect(response[:msg]).to eq('Command completed successfully; ending session') expect(response[:msg]).to eq('Command completed successfully; ending session')

View file

@ -6,7 +6,7 @@ class EppDoc
end end
def start(example_count) def start(example_count)
@output.puts '# EPP REQUEST - RESPONSE DOCUMENTATION' @output.puts '# EPP REQUEST - RESPONSE EXAMPLES'
@output.puts "GENERATED AT: #{Time.now} " @output.puts "GENERATED AT: #{Time.now} "
@output.puts "EXAMPLE COUNT: #{example_count.count} " @output.puts "EXAMPLE COUNT: #{example_count.count} "
@output.puts "\n---\n\n" @output.puts "\n---\n\n"