mirror of
https://github.com/internetee/registry.git
synced 2025-07-20 17:55:55 +02:00
Story #104525314 - Test: fix existing brittle unit test, checking for error string.
The test expects too much of the error string, which prevents EPP status values from evolving to include new values. CHANGE: only check relevant part of error message string.
This commit is contained in:
parent
0cc28d86cf
commit
bd85e0b33c
1 changed files with 2 additions and 7 deletions
|
@ -2444,14 +2444,9 @@ describe 'EPP Domain', epp: true do
|
|||
})
|
||||
|
||||
response = epp_plain_request(xml)
|
||||
response[:results][0][:msg].should ==
|
||||
response[:results][0][:msg].should start_with
|
||||
"Element '{https://epp.tld.ee/schema/domain-eis-1.0.xsd}status', attribute 's': "\
|
||||
"[facet 'enumeration'] The value 'invalidStatus' is not an element of the set "\
|
||||
"{'clientDeleteProhibited', 'clientHold', 'clientRenewProhibited', "\
|
||||
"'clientTransferProhibited', 'clientUpdateProhibited', 'inactive', "\
|
||||
"'ok', 'pendingCreate', 'pendingDelete', 'pendingRenew', 'pendingTransfer', "\
|
||||
"'pendingUpdate', 'serverDeleteProhibited', 'serverHold', 'serverRenewProhibited', "\
|
||||
"'serverTransferProhibited', 'serverUpdateProhibited'}."
|
||||
"[facet 'enumeration'] The value 'invalidStatus' is not an element of the set "
|
||||
response[:results][0][:result_code].should == '2001'
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue