110308584-schema-change

This commit is contained in:
Stas 2016-05-25 17:57:45 +03:00
parent f8702395af
commit e1dc3b389f
4 changed files with 5 additions and 5 deletions

View file

@ -2,7 +2,7 @@ require 'rails_helper'
describe 'EPP Contact', epp: true 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: 'pri.ee')
Fabricate(:zonefile_setting, origin: 'med.ee')

View file

@ -2,7 +2,7 @@ require 'rails_helper'
describe 'EPP Domain', epp: true 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')
Fabricate(:zonefile_setting, origin: 'ee')

View file

@ -12,7 +12,7 @@ describe 'EPP Poll', epp: true do
end
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: 'registrar2', registrar: registrar2)

View file

@ -5,7 +5,7 @@ describe 'EPP Session', epp: true do
@api_user = Fabricate(:gitlab_api_user)
@epp_xml = EppXml.new(cl_trid: 'ABC-12345')
@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
context 'when not connected' do
@ -51,7 +51,7 @@ describe 'EPP Session', epp: true do
end
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[:msg].should == 'You need to login first.'
response[:result_code].should == '2002'