mirror of
https://github.com/internetee/registry.git
synced 2025-07-19 17:25:57 +02:00
Allow latin only characters #2613
This commit is contained in:
parent
7f116527c4
commit
aeb3f2c9e0
3 changed files with 25 additions and 0 deletions
|
@ -55,6 +55,14 @@ describe 'EPP Session', epp: true do
|
|||
response[:clTRID].should be_nil
|
||||
end
|
||||
|
||||
it 'should return latin only error' do
|
||||
wrong_user = @epp_xml.session.login(clID: { value: '你好你好' }, pw: { value: 'ghyt9e4fu' })
|
||||
response = epp_plain_request(wrong_user)
|
||||
response[:msg].should == 'Parameter value policy error. Allowed only Latin characters.'
|
||||
response[:result_code].should == '2306'
|
||||
response[:clTRID].should == 'ABC-12345'
|
||||
end
|
||||
|
||||
context 'with valid user' do
|
||||
it 'logs in epp user' do
|
||||
response = epp_plain_request(@login_xml_cache)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue