mirror of
https://github.com/internetee/registry.git
synced 2025-05-28 12:31:21 +02:00
parent
278ae07ac6
commit
2dcf0f5878
2 changed files with 0 additions and 30 deletions
|
@ -1,34 +1,5 @@
|
|||
module Requests
|
||||
module SessionHelpers
|
||||
def sign_in_to_epp_area(user: create(:api_user_epp))
|
||||
login_xml = "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?>
|
||||
<epp xmlns=\"https://epp.tld.ee/schema/epp-ee-1.0.xsd\">
|
||||
<command>
|
||||
<login>
|
||||
<clID>#{user.username}</clID>
|
||||
<pw>#{user.password}</pw>
|
||||
<options>
|
||||
<version>1.0</version>
|
||||
<lang>en</lang>
|
||||
</options>
|
||||
<svcs>
|
||||
<objURI>https://epp.tld.ee/schema/domain-eis-1.0.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>
|
||||
<svcExtension>
|
||||
<extURI>urn:ietf:params:xml:ns:secDNS-1.1</extURI>
|
||||
<extURI>https://epp.tld.ee/schema/eis-1.0.xsd</extURI>
|
||||
</svcExtension>
|
||||
</svcs>
|
||||
</login>
|
||||
<clTRID>ABC-12345</clTRID>
|
||||
</command>
|
||||
</epp>"
|
||||
|
||||
post '/epp/session/login', frame: login_xml
|
||||
end
|
||||
|
||||
def sign_in_to_admin_area(user: create(:admin_user))
|
||||
post admin_sessions_path, admin_user: { username: user.username, password: user.password }
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue