Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions lib/epp-xml.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,7 @@ def domain

def contact
@cached_contact ||= EppXml::Contact.new(cl_trid: cl_trid,
cl_trid_prefix: cl_trid_prefix,
schema_version: schema_version,
schema_prefix: schema_prefix)
cl_trid_prefix: cl_trid_prefix)
end

def session
Expand Down
4 changes: 2 additions & 2 deletions lib/epp-xml/contact.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def transfer(xml_params = {}, op = 'query', custom_params = {})
xml.epp('xmlns' => 'https://epp.tld.ee/schema/epp-ee-1.0.xsd') do
xml.command do
xml.transfer('op' => op) do
xml.tag!('contact:transfer', 'xmlns:contact' => generate_path) do
xml.tag!('contact:transfer', 'xmlns:contact' => "https://epp.tld.ee/schema/contact-ee-1.1.xsd") do
EppXml.generate_xml_from_hash(xml_params, xml, 'contact:')
end
end
Expand All @@ -54,7 +54,7 @@ def build(command, xml_params, custom_params)
xml.epp('xmlns' => 'https://epp.tld.ee/schema/epp-ee-1.0.xsd') do
xml.command do
xml.tag!(command) do
xml.tag!("contact:#{command}", 'xmlns:contact' => generate_path) do
xml.tag!("contact:#{command}", 'xmlns:contact' => "https://epp.tld.ee/schema/contact-ee-1.1.xsd") do
EppXml.generate_xml_from_hash(xml_params, xml, 'contact:')
end
end
Expand Down
2 changes: 1 addition & 1 deletion lib/epp-xml/keyrelay.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def keyrelay(xml_params = {}, custom_params = {})
xml.epp(
'xmlns' => 'https://epp.tld.ee/schema/epp-ee-1.0.xsd',
'xmlns:secDNS' => 'urn:ietf:params:xml:ns:secDNS-1.1',
'xmlns:domain' => 'https://epp.tld.ee/schema/domain-eis-1.0.xsd',
'xmlns:domain' => 'https://epp.tld.ee/schema/domain-ee-1.1.xsd',
'xmlns:ext' => 'urn:ietf:params:xml:ns:keyrelay-1.0'
) do
xml.tag!('command') do
Expand Down
2 changes: 1 addition & 1 deletion lib/epp-xml/session.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def login(xml_params = {})
},
svcs: {
_objURIs: [
{ objURI: { value: 'https://epp.tld.ee/schema/domain-eis-1.0.xsd' } },
{ objURI: { value: 'https://epp.tld.ee/schema/domain-ee-1.1.xsd' } },
{ objURI: { value: 'https://epp.tld.ee/schema/contact-ee-1.1.xsd' } },
{ objURI: { value: 'urn:ietf:params:xml:ns:host-1.0' } },
{ objURI: { value: 'urn:ietf:params:xml:ns:keyrelay-1.0' } }
Expand Down
4 changes: 2 additions & 2 deletions spec/keyrelay_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
expected = Nokogiri::XML('<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<epp xmlns="https://epp.tld.ee/schema/epp-ee-1.0.xsd"
xmlns:secDNS="urn:ietf:params:xml:ns:secDNS-1.1"
xmlns:domain="https://epp.tld.ee/schema/domain-eis-1.0.xsd"
xmlns:domain="https://epp.tld.ee/schema/domain-ee-1.1.xsd"
xmlns:ext="urn:ietf:params:xml:ns:keyrelay-1.0">
<command>
<ext:keyrelay>
Expand Down Expand Up @@ -61,7 +61,7 @@
expected = Nokogiri::XML('<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<epp xmlns="https://epp.tld.ee/schema/epp-ee-1.0.xsd"
xmlns:secDNS="urn:ietf:params:xml:ns:secDNS-1.1"
xmlns:domain="https://epp.tld.ee/schema/domain-eis-1.0.xsd"
xmlns:domain="https://epp.tld.ee/schema/domain-ee-1.1.xsd"
xmlns:ext="urn:ietf:params:xml:ns:keyrelay-1.0">
<command>
<ext:keyrelay>
Expand Down
4 changes: 2 additions & 2 deletions spec/session_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<lang>en</lang>
</options>
<svcs>
<objURI>https://epp.tld.ee/schema/domain-eis-1.0.xsd</objURI>
<objURI>https://epp.tld.ee/schema/domain-ee-1.1.xsd</objURI>
<objURI>https://epp.tld.ee/schema/contact-ee-1.1.xsd</objURI>
<objURI>urn:ietf:params:xml:ns:host-1.0</objURI>
<objURI>urn:ietf:params:xml:ns:keyrelay-1.0</objURI>
Expand Down Expand Up @@ -47,7 +47,7 @@
<lang>en</lang>
</options>
<svcs>
<objURI>https://epp.tld.ee/schema/domain-eis-1.0.xsd</objURI>
<objURI>https://epp.tld.ee/schema/domain-ee-1.1.xsd</objURI>
<objURI>https://epp.tld.ee/schema/contact-ee-1.1.xsd</objURI>
<objURI>urn:ietf:params:xml:ns:host-1.0</objURI>
<objURI>urn:ietf:params:xml:ns:keyrelay-1.0</objURI>
Expand Down