mirror of
https://github.com/internetee/registry.git
synced 2025-07-01 16:53:37 +02:00
Bump epp-xml, improved login xml
This commit is contained in:
parent
fb93e2ba5f
commit
796b25ace8
8 changed files with 302 additions and 291 deletions
2
Gemfile
2
Gemfile
|
@ -99,7 +99,7 @@ group :development, :test do
|
|||
gem 'epp', '~> 1.4.0'
|
||||
|
||||
# EPP XMLs
|
||||
gem 'epp-xml', '~> 0.10.2'
|
||||
gem 'epp-xml', '~> 0.10.3'
|
||||
|
||||
# Replacement for fixtures
|
||||
gem 'fabrication', '~> 2.11.3'
|
||||
|
|
|
@ -107,7 +107,7 @@ GEM
|
|||
epp (1.4.0)
|
||||
hpricot
|
||||
libxml-ruby
|
||||
epp-xml (0.10.2)
|
||||
epp-xml (0.10.3)
|
||||
activesupport (~> 4.1)
|
||||
builder (~> 3.2)
|
||||
equalizer (0.0.9)
|
||||
|
@ -388,7 +388,7 @@ DEPENDENCIES
|
|||
delayed_job_active_record (~> 4.0.2)
|
||||
devise (~> 3.3.0)
|
||||
epp (~> 1.4.0)
|
||||
epp-xml (~> 0.10.2)
|
||||
epp-xml (~> 0.10.3)
|
||||
fabrication (~> 2.11.3)
|
||||
faker (~> 1.3.0)
|
||||
guard (~> 2.6.1)
|
||||
|
|
|
@ -2,7 +2,7 @@ require 'mina/bundler'
|
|||
require 'mina/rails'
|
||||
require 'mina/git'
|
||||
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)
|
||||
|
||||
# Basic settings:
|
||||
|
@ -50,7 +50,7 @@ set :shared_paths, [
|
|||
task :environment do
|
||||
# If you're using rbenv, use this to load the rbenv environment.
|
||||
# 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.
|
||||
# invoke :'rvm:use[ruby-1.9.3-p125@default]'
|
||||
|
|
548
doc/epp-doc.md
548
doc/epp-doc.md
File diff suppressed because it is too large
Load diff
|
@ -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>
|
|
@ -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>
|
|
@ -52,8 +52,7 @@ describe 'EPP Session', epp: true do
|
|||
epp_plain_request(login_xml_cache, :xml)
|
||||
|
||||
expect(EppSession.first[:epp_user_id]).to eq(1)
|
||||
|
||||
response = epp_plain_request('logout.xml')
|
||||
response = epp_plain_request(epp_xml.session.logout, :xml)
|
||||
expect(response[:result_code]).to eq('1500')
|
||||
expect(response[:msg]).to eq('Command completed successfully; ending session')
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@ class EppDoc
|
|||
end
|
||||
|
||||
def start(example_count)
|
||||
@output.puts '# EPP REQUEST - RESPONSE DOCUMENTATION'
|
||||
@output.puts '# EPP REQUEST - RESPONSE EXAMPLES'
|
||||
@output.puts "GENERATED AT: #{Time.now} "
|
||||
@output.puts "EXAMPLE COUNT: #{example_count.count} "
|
||||
@output.puts "\n---\n\n"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue