Allow specifying 'verified' attribute #2660

This commit is contained in:
Martin Lensment 2015-05-29 17:08:58 +03:00
parent bd53db2040
commit ed44238ec5
3 changed files with 22 additions and 7 deletions

View file

@ -241,13 +241,29 @@
Allow the registrant value to be nullified by changing the
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">
<minLength value="0"/>
<maxLength value="16"/>
</restriction>
</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
empty element within the choice.

View file

@ -53,7 +53,6 @@ Abstract client and object identifier type.
<simpleType name="clIDType">
<restriction base="token">
<minLength value="3"/>
<maxLength value="20"/>
</restriction>
</simpleType>

View file

@ -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 ==
'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, '\
'extension > create > dsData'
response[:result_code].should == '2306'
@ -1307,7 +1307,7 @@ describe 'EPP Domain', epp: true do
end
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[:msg].should == 'Attribute is invalid: op'
end