Merge branch 'master' of github.com:domify/registry

This commit is contained in:
Martin Lensment 2015-06-29 16:19:45 +03:00
commit 72bb02825d
2 changed files with 0 additions and 65 deletions

View file

@ -13213,53 +13213,3 @@ RESPONSE:
</response>
</epp>
```
### EPP Session when connected with valid user fails if new password is not valid
REQUEST:
```xml
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<epp xmlns="urn:ietf:params:xml:ns:epp-1.0">
<command>
<login>
<clID>gitlab</clID>
<pw>ghyt9e4fu</pw>
<newPW/>
<options>
<version>1.0</version>
<lang>en</lang>
</options>
<svcs>
<objURI>https://raw.githubusercontent.com/internetee/registry/alpha/doc/schemas/domain-eis-1.0.xsd</objURI>
<objURI>https://raw.githubusercontent.com/internetee/registry/alpha/doc/schemas/contact-eis-1.0.xsd</objURI>
<objURI>urn:ietf:params:xml:ns:host-1.0</objURI>
<objURI>urn:ietf:params:xml:ns:keyrelay-1.0</objURI>
<svcExtension>
<extURI>urn:ietf:params:xml:ns:secDNS-1.1</extURI>
<extURI>https://raw.githubusercontent.com/internetee/registry/alpha/doc/schemas/eis-1.0.xsd</extURI>
</svcExtension>
</svcs>
</login>
<clTRID>ABC-12345</clTRID>
</command>
</epp>
```
RESPONSE:
```xml
<?xml version="1.0" encoding="UTF-8"?>
<epp schemaLocation="urn:ietf:params:xml:ns:epp-1.0 epp-1.0.xsd">
<response>
<result code="2306">
<msg lang="en">Password is missing [password]</msg>
</result>
<trID>
<clTRID>ABC-12345</clTRID>
<svTRID>ccReg-0674363838</svTRID>
</trID>
</response>
</epp>
```

View file

@ -133,21 +133,6 @@ describe 'EPP Session', epp: true do
@api_user.reload
@api_user.password.should == 'ghyt9e4fu'
end
it 'fails if new password is not valid' do
@api_user.update(password: 'ghyt9e4fu')
response = epp_plain_request(@epp_xml.session.login(
clID: { value: 'gitlab' },
pw: { value: 'ghyt9e4fu' },
newPW: { value: '' }
), validate_input: false)
response[:msg].should == 'Password is missing [password]'
response[:result_code].should == '2306'
@api_user.reload
@api_user.password.should == 'ghyt9e4fu'
end
end
end
end