Allow auth info in contact delete command #2660

This commit is contained in:
Martin Lensment 2015-06-02 12:01:34 +03:00
parent b4bbdef67b
commit 1d76e10b55
2 changed files with 2 additions and 2 deletions

View file

@ -26,7 +26,7 @@
--> -->
<element name="check" type="contact:mIDType"/> <element name="check" type="contact:mIDType"/>
<element name="create" type="contact:createType"/> <element name="create" type="contact:createType"/>
<element name="delete" type="contact:sIDType"/> <element name="delete" type="contact:authIDType"/>
<element name="info" type="contact:authIDType"/> <element name="info" type="contact:authIDType"/>
<element name="transfer" type="contact:authIDType"/> <element name="transfer" type="contact:authIDType"/>
<element name="update" type="contact:updateType"/> <element name="update" type="contact:updateType"/>

View file

@ -753,7 +753,7 @@ describe 'EPP Contact', epp: true do
it 'should not delete when not owner with wrong password' do it 'should not delete when not owner with wrong password' do
login_as :registrar2 do login_as :registrar2 do
response = delete_request({ authInfo: { value: 'wrong password' } }) response = delete_request({ authInfo: { pw: { value: 'wrong password' } } })
response[:msg].should == 'Authorization error' response[:msg].should == 'Authorization error'
response[:result_code].should == '2201' response[:result_code].should == '2201'
response[:results].count.should == 1 response[:results].count.should == 1