mirror of
https://github.com/internetee/registry.git
synced 2025-07-14 15:05:19 +02:00
110308584-schema-change
This commit is contained in:
parent
f8702395af
commit
e1dc3b389f
4 changed files with 5 additions and 5 deletions
|
@ -2,7 +2,7 @@ require 'rails_helper'
|
||||||
|
|
||||||
describe 'EPP Contact', epp: true do
|
describe 'EPP Contact', epp: true do
|
||||||
before :all do
|
before :all do
|
||||||
@xsd = Nokogiri::XML::Schema(File.read('lib/schemas/contact-eis-1.0.xsd'))
|
@xsd = Nokogiri::XML::Schema(File.read('lib/schemas/all-ee-1.0.xsd'))
|
||||||
Fabricate(:zonefile_setting, origin: 'ee')
|
Fabricate(:zonefile_setting, origin: 'ee')
|
||||||
Fabricate(:zonefile_setting, origin: 'pri.ee')
|
Fabricate(:zonefile_setting, origin: 'pri.ee')
|
||||||
Fabricate(:zonefile_setting, origin: 'med.ee')
|
Fabricate(:zonefile_setting, origin: 'med.ee')
|
||||||
|
|
|
@ -2,7 +2,7 @@ require 'rails_helper'
|
||||||
|
|
||||||
describe 'EPP Domain', epp: true do
|
describe 'EPP Domain', epp: true do
|
||||||
before(:all) do
|
before(:all) do
|
||||||
@xsd = Nokogiri::XML::Schema(File.read('lib/schemas/domain-eis-1.0.xsd'))
|
@xsd = Nokogiri::XML::Schema(File.read('lib/schemas/all-ee-1.0.xsd'))
|
||||||
@epp_xml = EppXml.new(cl_trid: 'ABC-12345')
|
@epp_xml = EppXml.new(cl_trid: 'ABC-12345')
|
||||||
|
|
||||||
Fabricate(:zonefile_setting, origin: 'ee')
|
Fabricate(:zonefile_setting, origin: 'ee')
|
||||||
|
|
|
@ -12,7 +12,7 @@ describe 'EPP Poll', epp: true do
|
||||||
end
|
end
|
||||||
|
|
||||||
before(:all) do
|
before(:all) do
|
||||||
@xsd = Nokogiri::XML::Schema(File.read('lib/schemas/epp-1.0.xsd'))
|
@xsd = Nokogiri::XML::Schema(File.read('lib/schemas/all-ee-1.0.xsd'))
|
||||||
Fabricate(:api_user, username: 'registrar1', registrar: registrar1)
|
Fabricate(:api_user, username: 'registrar1', registrar: registrar1)
|
||||||
Fabricate(:api_user, username: 'registrar2', registrar: registrar2)
|
Fabricate(:api_user, username: 'registrar2', registrar: registrar2)
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,7 @@ describe 'EPP Session', epp: true do
|
||||||
@api_user = Fabricate(:gitlab_api_user)
|
@api_user = Fabricate(:gitlab_api_user)
|
||||||
@epp_xml = EppXml.new(cl_trid: 'ABC-12345')
|
@epp_xml = EppXml.new(cl_trid: 'ABC-12345')
|
||||||
@login_xml_cache = @epp_xml.session.login(clID: { value: 'gitlab' }, pw: { value: 'ghyt9e4fu' })
|
@login_xml_cache = @epp_xml.session.login(clID: { value: 'gitlab' }, pw: { value: 'ghyt9e4fu' })
|
||||||
@xsd = Nokogiri::XML::Schema(File.read('lib/schemas/epp-1.0.xsd'))
|
@xsd = Nokogiri::XML::Schema(File.read('lib/schemas/all-ee-1.0.xsd'))
|
||||||
end
|
end
|
||||||
|
|
||||||
context 'when not connected' do
|
context 'when not connected' do
|
||||||
|
@ -51,7 +51,7 @@ describe 'EPP Session', epp: true do
|
||||||
end
|
end
|
||||||
|
|
||||||
it 'prohibits further actions unless logged in' do
|
it 'prohibits further actions unless logged in' do
|
||||||
@xsd = Nokogiri::XML::Schema(File.read('lib/schemas/domain-eis-1.0.xsd'))
|
@xsd = Nokogiri::XML::Schema(File.read('lib/schemas/all-ee-1.0.xsd'))
|
||||||
response = epp_plain_request(@epp_xml.domain.info(name: { value: 'test.ee' }))
|
response = epp_plain_request(@epp_xml.domain.info(name: { value: 'test.ee' }))
|
||||||
response[:msg].should == 'You need to login first.'
|
response[:msg].should == 'You need to login first.'
|
||||||
response[:result_code].should == '2002'
|
response[:result_code].should == '2002'
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue