mirror of
https://github.com/internetee/registry.git
synced 2025-05-17 09:57:23 +02:00
Allow specifying 'verified' attribute #2660
This commit is contained in:
parent
bd53db2040
commit
ed44238ec5
3 changed files with 22 additions and 7 deletions
|
@ -241,12 +241,28 @@
|
||||||
Allow the registrant value to be nullified by changing the
|
Allow the registrant value to be nullified by changing the
|
||||||
minLength restriction to "0".
|
minLength restriction to "0".
|
||||||
-->
|
-->
|
||||||
<simpleType name="clIDChgType">
|
|
||||||
|
<complexType name="clIDChgType">
|
||||||
|
<simpleContent>
|
||||||
|
<extension base="domain:clIDChgSimpleType">
|
||||||
|
<attribute name="verified" type="domain:verifiedType"/>
|
||||||
|
</extension>
|
||||||
|
</simpleContent>
|
||||||
|
</complexType>
|
||||||
|
|
||||||
|
<simpleType name="clIDChgSimpleType">
|
||||||
<restriction base="token">
|
<restriction base="token">
|
||||||
<minLength value="0"/>
|
<minLength value="0"/>
|
||||||
<maxLength value="16"/>
|
|
||||||
</restriction>
|
</restriction>
|
||||||
</simpleType>
|
</simpleType>
|
||||||
|
|
||||||
|
<simpleType name="verifiedType">
|
||||||
|
<restriction base="token">
|
||||||
|
<enumeration value="yes"/>
|
||||||
|
<enumeration value="no"/>
|
||||||
|
</restriction>
|
||||||
|
</simpleType>
|
||||||
|
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
Allow the authInfo value to be nullified by including an
|
Allow the authInfo value to be nullified by including an
|
||||||
|
|
|
@ -53,7 +53,6 @@ Abstract client and object identifier type.
|
||||||
<simpleType name="clIDType">
|
<simpleType name="clIDType">
|
||||||
<restriction base="token">
|
<restriction base="token">
|
||||||
<minLength value="3"/>
|
<minLength value="3"/>
|
||||||
<maxLength value="20"/>
|
|
||||||
</restriction>
|
</restriction>
|
||||||
</simpleType>
|
</simpleType>
|
||||||
|
|
||||||
|
|
|
@ -407,7 +407,7 @@ describe 'EPP Domain', epp: true do
|
||||||
]
|
]
|
||||||
})
|
})
|
||||||
|
|
||||||
response = epp_plain_request(xml, :xml)
|
response = epp_plain_request(xml, validate_input: false)
|
||||||
|
|
||||||
response[:results][0][:msg].should ==
|
response[:results][0][:msg].should ==
|
||||||
'Valid algorithms are: 3, 5, 6, 7, 8, 252, 253, 254, 255 [alg]'
|
'Valid algorithms are: 3, 5, 6, 7, 8, 252, 253, 254, 255 [alg]'
|
||||||
|
@ -641,7 +641,7 @@ describe 'EPP Domain', epp: true do
|
||||||
}]
|
}]
|
||||||
})
|
})
|
||||||
|
|
||||||
response = epp_plain_request(xml, :xml)
|
response = epp_plain_request(xml, validate_input: false)
|
||||||
response[:msg].should == 'Mutually exclusive parameters: extension > create > keyData, '\
|
response[:msg].should == 'Mutually exclusive parameters: extension > create > keyData, '\
|
||||||
'extension > create > dsData'
|
'extension > create > dsData'
|
||||||
response[:result_code].should == '2306'
|
response[:result_code].should == '2306'
|
||||||
|
@ -1307,7 +1307,7 @@ describe 'EPP Domain', epp: true do
|
||||||
end
|
end
|
||||||
|
|
||||||
it 'returns an error for incorrect op attribute' do
|
it 'returns an error for incorrect op attribute' do
|
||||||
response = epp_plain_request(domain_transfer_xml({}, 'bla'), :xml)
|
response = epp_plain_request(domain_transfer_xml({}, 'bla'), validate_input: false)
|
||||||
response[:result_code].should == '2306'
|
response[:result_code].should == '2306'
|
||||||
response[:msg].should == 'Attribute is invalid: op'
|
response[:msg].should == 'Attribute is invalid: op'
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue