From 92cf30833ccd22d92d7c1b72dc6d574ea7463f57 Mon Sep 17 00:00:00 2001 From: Artur Beljajev Date: Fri, 18 Nov 2016 01:36:28 +0200 Subject: [PATCH 01/11] Update readme #235 --- CHANGELOG.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 49cd0b4e1..cab0582cf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +07.11.2016 +* Use app time zone when calculating valid_to, outzone_at and delete_at domain attributes +* Consider domains having current time at expire_time attribute expired +* Improve domain's outzone and delete logic + 25.10.2016 * Outdated specs removed, failing specs fixed, rspec config improved From 15d0bbb5573c06ca3cb8c8e315c7d527f17bfc49 Mon Sep 17 00:00:00 2001 From: Artur Beljajev Date: Fri, 18 Nov 2016 13:43:18 +0200 Subject: [PATCH 02/11] Update changelog #235 --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index cab0582cf..bc32594d8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,6 @@ 07.11.2016 * Use app time zone when calculating valid_to, outzone_at and delete_at domain attributes -* Consider domains having current time at expire_time attribute expired +* Treat domains as expired when expire_time is set to current time * Improve domain's outzone and delete logic 25.10.2016 From bf7d8b6636957c27d20d116d9c229a720c7df71f Mon Sep 17 00:00:00 2001 From: Artur Beljajev Date: Fri, 2 Dec 2016 00:30:18 +0200 Subject: [PATCH 03/11] Treat specs in api folder as requests, allow redefining spec metadata #251 --- spec/rails_helper.rb | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/spec/rails_helper.rb b/spec/rails_helper.rb index c61568179..30f99594d 100644 --- a/spec/rails_helper.rb +++ b/spec/rails_helper.rb @@ -28,8 +28,13 @@ RSpec.configure do |config| config.include AbstractController::Translation, type: :feature config.define_derived_metadata(file_path: %r{/spec/presenters/}) do |metadata| - metadata[:type] = :presenter - metadata[:db] = false + metadata[:type] = :presenter if metadata[:type].nil? + metadata[:db] = false if metadata[:db].nil? + end + + config.define_derived_metadata(file_path: %r{/spec/api/}) do |metadata| + metadata[:type] = :request if metadata[:type].nil? + metadata[:db] = false if metadata[:db].nil? end config.use_transactional_fixtures = false From 6acc5ca9e216dd410c845d38c99b66fd0617a41c Mon Sep 17 00:00:00 2001 From: Artur Beljajev Date: Fri, 2 Dec 2016 11:22:56 +0200 Subject: [PATCH 04/11] Do not autload app/validators folder --- config/initializers/load_validators.rb | 1 - 1 file changed, 1 deletion(-) delete mode 100644 config/initializers/load_validators.rb diff --git a/config/initializers/load_validators.rb b/config/initializers/load_validators.rb deleted file mode 100644 index ea84920bf..000000000 --- a/config/initializers/load_validators.rb +++ /dev/null @@ -1 +0,0 @@ -Registry::Application.config.autoload_paths += %W(#{Registry::Application.config.root}/app/validators/) From 787f668fcb95be361b4ecf4cc13857050cbf1acb Mon Sep 17 00:00:00 2001 From: Artur Beljajev Date: Mon, 5 Dec 2016 13:43:23 +0200 Subject: [PATCH 05/11] Remove unused doc --- doc/epp-doc.md | 26 -------------------------- 1 file changed, 26 deletions(-) delete mode 100644 doc/epp-doc.md diff --git a/doc/epp-doc.md b/doc/epp-doc.md deleted file mode 100644 index cf6ae2788..000000000 --- a/doc/epp-doc.md +++ /dev/null @@ -1,26 +0,0 @@ -# EPP integration specification - -Main communication specification through EPP: - -[Session related functions](epp/session.md) -[Contact related functions](epp/contact.md) -[Domain related functions](epp/domain.md) -[Keyrelay related functions](epp/keyrelay.md) - -Our implementation supports following protocols: - -[RFC5730 - EPP](http://tools.ietf.org/html/rfc5730) -[RFC5731 - Domain Mapping](http://tools.ietf.org/html/rfc5731) -[RFC5733 - Contact Mapping](http://tools.ietf.org/html/rfc5733) -[RFC5734 - Transport over TCP](http://tools.ietf.org/html/rfc5734) -[RFC5910 - DNSSEC Mapping](http://tools.ietf.org/html/rfc5910) -[RFC3735 - Guidelines for Extending the EPP](http://tools.ietf.org/html/rfc3735) - -EIS specific XML Schema Definitions (may differ from policies applied to registry): - -[contact-eis-1.0.xsd](schemas/contact-eis-1.0.xsd) -[domain-eis-1.0.xsd](schemas/domain-eis-1.0.xsd) -[eis-1.0.xsd](schemas/eis-1.0.xsd) - -More info about The Extensible Provisioning Protocol (EPP):
-http://en.wikipedia.org/wiki/Extensible_Provisioning_Protocol From 90284e4bb173c8ebebf65a4ee4f29b272ca1980e Mon Sep 17 00:00:00 2001 From: Artur Beljajev Date: Mon, 5 Dec 2016 13:43:43 +0200 Subject: [PATCH 06/11] Improve EPP readme --- doc/epp/README.md | 23 ++++++++++++++++++++--- 1 file changed, 20 insertions(+), 3 deletions(-) diff --git a/doc/epp/README.md b/doc/epp/README.md index 78047851c..c2662aa27 100644 --- a/doc/epp/README.md +++ b/doc/epp/README.md @@ -1,13 +1,13 @@ # EPP integration specification -Main communication specification through EPP: +## Main communication specification through EPP [Session related functions](session.md) [Contact related functions](contact.md) [Domain related functions](domain.md) [Keyrelay related functions](keyrelay.md) -Our implementation supports following protocols: +## Supported protocols [RFC5730 - EPP](http://tools.ietf.org/html/rfc5730) [RFC5731 - Domain Mapping](http://tools.ietf.org/html/rfc5731) @@ -16,5 +16,22 @@ 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) -More info about The Extensible Provisioning Protocol (EPP):
+## XML schemas + +### Common +* [all-ee-1.0.xsd](schemas/all-ee-1.0.xsd) +* [contact-1.0.xsd](schemas/contact-1.0.xsd) +* [domain-1.0.xsd](schemas/domain-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) +* [keyrelay-1.0.xsd](schemas/keyrelay-1.0.xsd) +* [secDNS-1.1.xsd](schemas/secDNS-1.1.xsd) + +### EIS-specific +* [eis-1.0.xsd](schemas/eis-1.0.xsd) +* [domain-eis-1.0.xsd](schemas/domain-eis-1.0.xsd) +* [contact-eis-1.0.xsd](schemas/contact-eis-1.0.xsd) + +More info about The Extensible Provisioning Protocol (EPP): http://en.wikipedia.org/wiki/Extensible_Provisioning_Protocol From 62d27d546aa7b2b2bdb9808796e3461e6d041406 Mon Sep 17 00:00:00 2001 From: Artur Beljajev Date: Mon, 5 Dec 2016 13:46:42 +0200 Subject: [PATCH 07/11] Improve EPP readme --- doc/epp/README.md | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/doc/epp/README.md b/doc/epp/README.md index c2662aa27..8fa980f6d 100644 --- a/doc/epp/README.md +++ b/doc/epp/README.md @@ -19,19 +19,19 @@ ## XML schemas ### Common -* [all-ee-1.0.xsd](schemas/all-ee-1.0.xsd) -* [contact-1.0.xsd](schemas/contact-1.0.xsd) -* [domain-1.0.xsd](schemas/domain-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) -* [keyrelay-1.0.xsd](schemas/keyrelay-1.0.xsd) -* [secDNS-1.1.xsd](schemas/secDNS-1.1.xsd) +* [all-ee-1.0.xsd](lib/schemas/all-ee-1.0.xsd) +* [contact-1.0.xsd](lib/schemas/contact-1.0.xsd) +* [domain-1.0.xsd](lib/schemas/domain-1.0.xsd) +* [epp-1.0.xsd](lib/schemas/epp-1.0.xsd) +* [eppcom-1.0.xsd](lib/schemas/eppcom-1.0.xsd) +* [host-1.0.xsd](lib/schemas/host-1.0.xsd) +* [keyrelay-1.0.xsd](lib/schemas/keyrelay-1.0.xsd) +* [secDNS-1.1.xsd](lib/schemas/secDNS-1.1.xsd) ### EIS-specific -* [eis-1.0.xsd](schemas/eis-1.0.xsd) -* [domain-eis-1.0.xsd](schemas/domain-eis-1.0.xsd) -* [contact-eis-1.0.xsd](schemas/contact-eis-1.0.xsd) +* [eis-1.0.xsd](lib/schemas/eis-1.0.xsd) +* [domain-eis-1.0.xsd](lib/schemas/domain-eis-1.0.xsd) +* [contact-eis-1.0.xsd](lib/schemas/contact-eis-1.0.xsd) More info about The Extensible Provisioning Protocol (EPP): http://en.wikipedia.org/wiki/Extensible_Provisioning_Protocol From 81cbe9cfe3b539e54ae4f0066c1f39811260c982 Mon Sep 17 00:00:00 2001 From: Artur Beljajev Date: Mon, 5 Dec 2016 13:48:15 +0200 Subject: [PATCH 08/11] Improve EPP readme --- doc/epp/README.md | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/doc/epp/README.md b/doc/epp/README.md index 8fa980f6d..3acc95f7b 100644 --- a/doc/epp/README.md +++ b/doc/epp/README.md @@ -19,19 +19,19 @@ ## XML schemas ### Common -* [all-ee-1.0.xsd](lib/schemas/all-ee-1.0.xsd) -* [contact-1.0.xsd](lib/schemas/contact-1.0.xsd) -* [domain-1.0.xsd](lib/schemas/domain-1.0.xsd) -* [epp-1.0.xsd](lib/schemas/epp-1.0.xsd) -* [eppcom-1.0.xsd](lib/schemas/eppcom-1.0.xsd) -* [host-1.0.xsd](lib/schemas/host-1.0.xsd) -* [keyrelay-1.0.xsd](lib/schemas/keyrelay-1.0.xsd) -* [secDNS-1.1.xsd](lib/schemas/secDNS-1.1.xsd) +* [all-ee-1.0.xsd](/lib/schemas/all-ee-1.0.xsd) +* [contact-1.0.xsd](/lib/schemas/contact-1.0.xsd) +* [domain-1.0.xsd](/lib/schemas/domain-1.0.xsd) +* [epp-1.0.xsd](/lib/schemas/epp-1.0.xsd) +* [eppcom-1.0.xsd](/lib/schemas/eppcom-1.0.xsd) +* [host-1.0.xsd](/lib/schemas/host-1.0.xsd) +* [keyrelay-1.0.xsd](/lib/schemas/keyrelay-1.0.xsd) +* [secDNS-1.1.xsd](/lib/schemas/secDNS-1.1.xsd) ### EIS-specific -* [eis-1.0.xsd](lib/schemas/eis-1.0.xsd) -* [domain-eis-1.0.xsd](lib/schemas/domain-eis-1.0.xsd) -* [contact-eis-1.0.xsd](lib/schemas/contact-eis-1.0.xsd) +* [eis-1.0.xsd](/lib/schemas/eis-1.0.xsd) +* [domain-eis-1.0.xsd](/lib/schemas/domain-eis-1.0.xsd) +* [contact-eis-1.0.xsd](/lib/schemas/contact-eis-1.0.xsd) More info about The Extensible Provisioning Protocol (EPP): http://en.wikipedia.org/wiki/Extensible_Provisioning_Protocol From c04ec3da9b8a95a1cc51d2b165619af6540b56c2 Mon Sep 17 00:00:00 2001 From: Artur Beljajev Date: Mon, 5 Dec 2016 13:49:20 +0200 Subject: [PATCH 09/11] Improve EPP readme --- doc/epp/README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/epp/README.md b/doc/epp/README.md index 3acc95f7b..33fe4c946 100644 --- a/doc/epp/README.md +++ b/doc/epp/README.md @@ -19,9 +19,9 @@ ## XML schemas ### Common -* [all-ee-1.0.xsd](/lib/schemas/all-ee-1.0.xsd) -* [contact-1.0.xsd](/lib/schemas/contact-1.0.xsd) * [domain-1.0.xsd](/lib/schemas/domain-1.0.xsd) +* [contact-1.0.xsd](/lib/schemas/contact-1.0.xsd) +* [all-ee-1.0.xsd](/lib/schemas/all-ee-1.0.xsd) * [epp-1.0.xsd](/lib/schemas/epp-1.0.xsd) * [eppcom-1.0.xsd](/lib/schemas/eppcom-1.0.xsd) * [host-1.0.xsd](/lib/schemas/host-1.0.xsd) @@ -29,9 +29,9 @@ * [secDNS-1.1.xsd](/lib/schemas/secDNS-1.1.xsd) ### EIS-specific -* [eis-1.0.xsd](/lib/schemas/eis-1.0.xsd) * [domain-eis-1.0.xsd](/lib/schemas/domain-eis-1.0.xsd) * [contact-eis-1.0.xsd](/lib/schemas/contact-eis-1.0.xsd) +* [eis-1.0.xsd](/lib/schemas/eis-1.0.xsd) More info about The Extensible Provisioning Protocol (EPP): http://en.wikipedia.org/wiki/Extensible_Provisioning_Protocol From 9db593edefbf57e61802e9d81ef8ea259b038d56 Mon Sep 17 00:00:00 2001 From: Artur Beljajev Date: Mon, 5 Dec 2016 22:39:34 +0200 Subject: [PATCH 10/11] Move xml schema doc to doc/epp --- doc/schemas/all-ee-1.0.xsd | 47 ---- doc/schemas/contact-1.0.xsd | 388 -------------------------- doc/schemas/contact-eis-1.0.xsd | 366 ------------------------- doc/schemas/domain-1.0.xsd | 432 ----------------------------- doc/schemas/domain-eis-1.0.xsd | 470 -------------------------------- doc/schemas/eis-1.0.xsd | 105 ------- doc/schemas/epp-1.0.xsd | 446 ------------------------------ doc/schemas/eppcom-1.0.xsd | 105 ------- doc/schemas/host-1.0.xsd | 238 ---------------- doc/schemas/keyrelay-1.0.xsd | 63 ----- doc/schemas/secDNS-1.1.xsd | 134 --------- 11 files changed, 2794 deletions(-) delete mode 100644 doc/schemas/all-ee-1.0.xsd delete mode 100644 doc/schemas/contact-1.0.xsd delete mode 100644 doc/schemas/contact-eis-1.0.xsd delete mode 100644 doc/schemas/domain-1.0.xsd delete mode 100644 doc/schemas/domain-eis-1.0.xsd delete mode 100644 doc/schemas/eis-1.0.xsd delete mode 100644 doc/schemas/epp-1.0.xsd delete mode 100644 doc/schemas/eppcom-1.0.xsd delete mode 100644 doc/schemas/host-1.0.xsd delete mode 100644 doc/schemas/keyrelay-1.0.xsd delete mode 100644 doc/schemas/secDNS-1.1.xsd diff --git a/doc/schemas/all-ee-1.0.xsd b/doc/schemas/all-ee-1.0.xsd deleted file mode 100644 index 5ad285c98..000000000 --- a/doc/schemas/all-ee-1.0.xsd +++ /dev/null @@ -1,47 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - Extensible Provisioning Protocol v1.0 - all schema's grouped together - - - - diff --git a/doc/schemas/contact-1.0.xsd b/doc/schemas/contact-1.0.xsd deleted file mode 100644 index 9b4c244cd..000000000 --- a/doc/schemas/contact-1.0.xsd +++ /dev/null @@ -1,388 +0,0 @@ - - - - - - - - - - - Extensible Provisioning Protocol v1.0 - contact provisioning schema. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/doc/schemas/contact-eis-1.0.xsd b/doc/schemas/contact-eis-1.0.xsd deleted file mode 100644 index cec571cec..000000000 --- a/doc/schemas/contact-eis-1.0.xsd +++ /dev/null @@ -1,366 +0,0 @@ - - - - - - - - - - - - Extensible Provisioning Protocol v1.0 - contact provisioning schema. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/doc/schemas/domain-1.0.xsd b/doc/schemas/domain-1.0.xsd deleted file mode 100644 index 46859859e..000000000 --- a/doc/schemas/domain-1.0.xsd +++ /dev/null @@ -1,432 +0,0 @@ - - - - - - - - - - - - Extensible Provisioning Protocol v1.0 - domain provisioning schema. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/doc/schemas/domain-eis-1.0.xsd b/doc/schemas/domain-eis-1.0.xsd deleted file mode 100644 index b38abf9d4..000000000 --- a/doc/schemas/domain-eis-1.0.xsd +++ /dev/null @@ -1,470 +0,0 @@ - - - - - - - - - - - - - - Extensible Provisioning Protocol v1.0 - domain provisioning schema. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/doc/schemas/eis-1.0.xsd b/doc/schemas/eis-1.0.xsd deleted file mode 100644 index 0b2ad8f89..000000000 --- a/doc/schemas/eis-1.0.xsd +++ /dev/null @@ -1,105 +0,0 @@ - - - - - - EIS Extensible Provisioning Protocol v1.0 extension schema. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/doc/schemas/epp-1.0.xsd b/doc/schemas/epp-1.0.xsd deleted file mode 100644 index 3609ad55d..000000000 --- a/doc/schemas/epp-1.0.xsd +++ /dev/null @@ -1,446 +0,0 @@ - - - - - - - - - - - Extensible Provisioning Protocol v1.0 schema. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/doc/schemas/eppcom-1.0.xsd b/doc/schemas/eppcom-1.0.xsd deleted file mode 100644 index 3b7d5d65c..000000000 --- a/doc/schemas/eppcom-1.0.xsd +++ /dev/null @@ -1,105 +0,0 @@ - - - - - - - Extensible Provisioning Protocol v1.0 - shared structures schema. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/doc/schemas/host-1.0.xsd b/doc/schemas/host-1.0.xsd deleted file mode 100644 index d4bbc043e..000000000 --- a/doc/schemas/host-1.0.xsd +++ /dev/null @@ -1,238 +0,0 @@ - - - - - - - - - - Extensible Provisioning Protocol v1.0 - host provisioning schema. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/doc/schemas/keyrelay-1.0.xsd b/doc/schemas/keyrelay-1.0.xsd deleted file mode 100644 index 2239754e7..000000000 --- a/doc/schemas/keyrelay-1.0.xsd +++ /dev/null @@ -1,63 +0,0 @@ - - - - - - - Extensible Provisioning Protocol v1.0 protocol - extension schema for relaying DNSSEC key material. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/doc/schemas/secDNS-1.1.xsd b/doc/schemas/secDNS-1.1.xsd deleted file mode 100644 index a47c07a23..000000000 --- a/doc/schemas/secDNS-1.1.xsd +++ /dev/null @@ -1,134 +0,0 @@ - - - - - - Extensible Provisioning Protocol v1.0 - domain name extension schema - for provisioning DNS security (DNSSEC) extensions. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - From b4ccd867463aeff1f79014b2e6d50da4e3ea97eb Mon Sep 17 00:00:00 2001 From: Artur Beljajev Date: Wed, 7 Dec 2016 19:56:04 +0200 Subject: [PATCH 11/11] Add session helpers for request specs --- spec/rails_helper.rb | 2 ++ spec/support/requests/session_helpers.rb | 32 ++++++++++++++++++++++++ 2 files changed, 34 insertions(+) create mode 100644 spec/support/requests/session_helpers.rb diff --git a/spec/rails_helper.rb b/spec/rails_helper.rb index 30f99594d..cf9e6cfb7 100644 --- a/spec/rails_helper.rb +++ b/spec/rails_helper.rb @@ -6,6 +6,7 @@ require 'capybara/poltergeist' require 'paper_trail/frameworks/rspec' require 'money-rails/test_helpers' require 'support/features/session_helpers' +require 'support/requests/session_helpers' if ENV['ROBOT'] require 'simplecov' @@ -25,6 +26,7 @@ RSpec.configure do |config| config.include ActionView::TestCase::Behavior, type: :presenter config.include ActiveSupport::Testing::TimeHelpers config.include Features::SessionHelpers, type: :feature + config.include Requests::SessionHelpers, type: :request config.include AbstractController::Translation, type: :feature config.define_derived_metadata(file_path: %r{/spec/presenters/}) do |metadata| diff --git a/spec/support/requests/session_helpers.rb b/spec/support/requests/session_helpers.rb new file mode 100644 index 000000000..da2d23e1c --- /dev/null +++ b/spec/support/requests/session_helpers.rb @@ -0,0 +1,32 @@ +module Requests + module SessionHelpers + def sign_in_to_epp_area(user: FactoryGirl.create(:api_user)) + login_xml = " + + + + #{user.username} + #{user.password} + + 1.0 + en + + + https://epp.tld.ee/schema/domain-eis-1.0.xsd + https://epp.tld.ee/schema/contact-ee-1.1.xsd + urn:ietf:params:xml:ns:host-1.0 + urn:ietf:params:xml:ns:keyrelay-1.0 + + urn:ietf:params:xml:ns:secDNS-1.1 + https://epp.tld.ee/schema/eis-1.0.xsd + + + + ABC-12345 + + " + + post '/epp/session/login', frame: login_xml + end + end +end