Update server greeting, add it to examples

This commit is contained in:
Martin Lensment 2015-01-05 17:01:40 +02:00
parent 9713053f31
commit aa8b0603d3
5 changed files with 736 additions and 266 deletions

View file

@ -1,16 +1,17 @@
xml.epp_head do
xml.greeting do
xml.svID 'EPP server (DSDng)'
xml.svDate '2014-06-18T17:46:59+03:00'
xml.svID 'EPP server (EIS)'
xml.svDate Time.now.utc.iso8601
xml.svcMenu do
xml.version '1.0'
xml.lang 'en'
xml.objURI 'http://www.nic.cz/xml/epp/contact-1.6'
xml.objURI 'http://www.nic.cz/xml/epp/domain-1.4'
xml.objURI 'http://www.nic.cz/xml/epp/nsset-1.2'
xml.objURI 'http://www.nic.cz/xml/epp/keyset-1.3'
xml.objURI 'urn:ietf:params:xml:ns:domain-1.0'
xml.objURI 'urn:ietf:params:xml:ns:contact-1.0'
xml.objURI 'urn:ietf:params:xml:ns:host-1.0'
xml.objURI 'urn:ietf:params:xml:ns:keyrelay-1.0'
xml.svcExtension do
xml.extURI 'http://www.nic.cz/xml/epp/enumval-1.2'
xml.extURI 'urn:ietf:params:xml:ns:secDNS-1.1'
xml.extURI 'urn:ee:eis:xml:epp:eis-1.0'
end
end

View file

@ -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]'

File diff suppressed because it is too large Load diff

View file

@ -11,7 +11,7 @@
<svcs>
<objURI>urn:ietf:params:xml:ns:contact-1.0</objURI>
<!-- <objURI>http://www.nic.cz/xml/epp/nsset-1.2</objURI> -->
<!-- <objURI>http://www.nic.cz/xml/epp/domain-1.4</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>

View file

@ -8,8 +8,10 @@ describe 'EPP Session', epp: true do
context 'when not connected' do
it 'greets client upon connection' do
response = Nokogiri::XML(server_gitlab.open_connection)
expect(response.css('epp svID').text).to eq('EPP server (DSDng)')
expect(response.css('epp svID').text).to eq('EPP server (EIS)')
server_gitlab.close_connection
puts "RESPONSE:\n\n```xml\n#{response}```\n\n" if ENV['EPP_DOC']
end
end