From 6a2a89538d438e9343730825b939c4190219d5e6 Mon Sep 17 00:00:00 2001 From: Martin Lensment Date: Tue, 9 Jun 2015 11:57:58 +0300 Subject: [PATCH] Add schemas for tests #2683 --- doc/epp-doc.md | 10 + doc/schemas/contact-1.0.xsd | 1 - doc/schemas/contact-eis-1.0.xsd | 366 ++++++++++++++++++++++++++ doc/schemas/domain-1.0.xsd | 1 - doc/schemas/domain-eis-1.0.xsd | 451 ++++++++++++++++++++++++++++++++ spec/epp/contact_spec.rb | 2 +- spec/epp/domain_spec.rb | 2 +- 7 files changed, 829 insertions(+), 4 deletions(-) create mode 100644 doc/schemas/contact-eis-1.0.xsd create mode 100644 doc/schemas/domain-eis-1.0.xsd diff --git a/doc/epp-doc.md b/doc/epp-doc.md index 7ac516f3c..0aa3bbb60 100644 --- a/doc/epp-doc.md +++ b/doc/epp-doc.md @@ -16,5 +16,15 @@ Our implementation supports following protocols: [RFC5910 - DNSSEC Mapping](http://tools.ietf.org/html/rfc5910) [RFC3735 - Guidelines for Extending the EPP](http://tools.ietf.org/html/rfc3735) +Related XML Schema Definitions (may differ from policies applied to registry): + +[contact-1.0.xsd](schemas/contact-1.0.xsd) +[domain-1.0.xsd](schemas/domain-1.0.xsd) +[eis-1.0.xsd](schemas/eis-1.0.xsd) +[epp-1.0.xsd](schemas/epp-1.0.xsd) +[eppcom-1.0.xsd](schemas/eppcom-1.0.xsd) +[host-1.0.xsd](schemas/host-1.0.xsd) +[secDNS-1.1.xsd](schemas/secDNS-1.1.xsd) + More info about The Extensible Provisioning Protocol (EPP):
http://en.wikipedia.org/wiki/Extensible_Provisioning_Protocol diff --git a/doc/schemas/contact-1.0.xsd b/doc/schemas/contact-1.0.xsd index 8d8fe7e50..a3c463544 100644 --- a/doc/schemas/contact-1.0.xsd +++ b/doc/schemas/contact-1.0.xsd @@ -12,7 +12,6 @@ --> - diff --git a/doc/schemas/contact-eis-1.0.xsd b/doc/schemas/contact-eis-1.0.xsd new file mode 100644 index 000000000..2ad88b6c9 --- /dev/null +++ b/doc/schemas/contact-eis-1.0.xsd @@ -0,0 +1,366 @@ + + + + + + + + + + + + Extensible Provisioning Protocol v1.0 + contact provisioning schema. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/doc/schemas/domain-1.0.xsd b/doc/schemas/domain-1.0.xsd index 0e77bebe1..2f62e3e8b 100644 --- a/doc/schemas/domain-1.0.xsd +++ b/doc/schemas/domain-1.0.xsd @@ -15,7 +15,6 @@ - diff --git a/doc/schemas/domain-eis-1.0.xsd b/doc/schemas/domain-eis-1.0.xsd new file mode 100644 index 000000000..0e77bebe1 --- /dev/null +++ b/doc/schemas/domain-eis-1.0.xsd @@ -0,0 +1,451 @@ + + + + + + + + + + + + + + Extensible Provisioning Protocol v1.0 + domain provisioning schema. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/spec/epp/contact_spec.rb b/spec/epp/contact_spec.rb index 0bf067ce6..1c934c2cb 100644 --- a/spec/epp/contact_spec.rb +++ b/spec/epp/contact_spec.rb @@ -2,7 +2,7 @@ require 'rails_helper' describe 'EPP Contact', epp: true do before :all do - @xsd = Nokogiri::XML::Schema(File.read('doc/schemas/contact-1.0.xsd')) + @xsd = Nokogiri::XML::Schema(File.read('doc/schemas/contact-eis-1.0.xsd')) @registrar1 = Fabricate(:registrar1) @registrar2 = Fabricate(:registrar2) @epp_xml = EppXml::Contact.new(cl_trid: 'ABC-12345') diff --git a/spec/epp/domain_spec.rb b/spec/epp/domain_spec.rb index f14c79915..0fed345ae 100644 --- a/spec/epp/domain_spec.rb +++ b/spec/epp/domain_spec.rb @@ -2,7 +2,7 @@ require 'rails_helper' describe 'EPP Domain', epp: true do before(:all) do - @xsd = Nokogiri::XML::Schema(File.read('doc/schemas/domain-1.0.xsd')) + @xsd = Nokogiri::XML::Schema(File.read('doc/schemas/domain-eis-1.0.xsd')) @epp_xml = EppXml.new(cl_trid: 'ABC-12345') @registrar1 = Fabricate(:registrar1, code: 'REGDOMAIN1') @registrar2 = Fabricate(:registrar2, code: 'REGDOMAIN2')