mirror of
https://github.com/internetee/registry.git
synced 2025-07-02 17:23:34 +02:00
Allow changing auth info on contact update #2833
This commit is contained in:
parent
ba5d1b8e4d
commit
2598b4aa2f
5 changed files with 40 additions and 24 deletions
|
@ -515,6 +515,22 @@ describe 'EPP Contact', epp: true do
|
|||
Setting.client_status_editing_enabled = true
|
||||
end
|
||||
|
||||
it 'should update auth info' do
|
||||
xml = @epp_xml.update({
|
||||
id: { value: 'FIRST0:SH8013' },
|
||||
chg: {
|
||||
authInfo: { pw: { value: 'newpassword' } }
|
||||
}
|
||||
})
|
||||
puts Nokogiri xml
|
||||
response = epp_plain_request(xml, :xml)
|
||||
response[:results][0][:msg].should == 'Command completed successfully'
|
||||
response[:results][0][:result_code].should == '1000'
|
||||
|
||||
contact = Contact.find_by(code: 'FIRST0:SH8013')
|
||||
contact.auth_info.should == 'newpassword'
|
||||
end
|
||||
|
||||
it 'should add value voice value' do
|
||||
xml = @epp_xml.update({
|
||||
id: { value: 'FIRST0:SH8013' },
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue