mirror of
https://github.com/internetee/registry.git
synced 2025-07-03 09:43:36 +02:00
Honor legacy domains without versions #2778
This commit is contained in:
parent
4b1bf92a27
commit
c10ad96947
2 changed files with 116 additions and 109 deletions
|
@ -1,3 +1,4 @@
|
||||||
|
- if version.present? && domain.present?
|
||||||
- children = HashWithIndifferentAccess.new(version.children)
|
- children = HashWithIndifferentAccess.new(version.children)
|
||||||
- nameservers = children[:nameservers] || []
|
- nameservers = children[:nameservers] || []
|
||||||
- tech_contacts = children[:tech_contacts] || []
|
- tech_contacts = children[:tech_contacts] || []
|
||||||
|
|
|
@ -184,6 +184,12 @@ describe 'EPP Contact', epp: true do
|
||||||
response[:result_code].should == '2005'
|
response[:result_code].should == '2005'
|
||||||
end
|
end
|
||||||
|
|
||||||
|
fit 'should not allow spaces in custom code' do
|
||||||
|
response = create_request({ id: { value: '1111111111111111111111111111111111111111111111111111111111111111111111111111111111111111' } })
|
||||||
|
response[:msg].should == 'is invalid [code]'
|
||||||
|
response[:result_code].should == '2005'
|
||||||
|
end
|
||||||
|
|
||||||
it 'should not saves ident type with wrong country code' do
|
it 'should not saves ident type with wrong country code' do
|
||||||
extension = {
|
extension = {
|
||||||
ident: {
|
ident: {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue