mirror of
https://github.com/internetee/registry.git
synced 2025-07-21 18:26:06 +02:00
updated contact#create to new attr checking
This commit is contained in:
parent
a3abfa73e5
commit
e99af041f1
3 changed files with 39 additions and 0 deletions
|
@ -6,6 +6,15 @@ describe 'EPP Contact', epp: true do
|
|||
context 'with valid user' do
|
||||
before(:each) { Fabricate(:epp_user) }
|
||||
|
||||
it "doesn't create contact with attributes missing" do
|
||||
response = epp_request('contacts/create_missing_attr.xml')
|
||||
expect(response[:results][0][:result_code]).to eq('2003')
|
||||
expect(response[:results][1][:result_code]).to eq('2003')
|
||||
|
||||
expect(response[:results][0][:msg]).to eq('Required parameter missing: cc')
|
||||
expect(response[:results][1][:msg]).to eq('Required parameter missing: authInfo')
|
||||
end
|
||||
|
||||
# incomplete
|
||||
it 'creates a contact' do
|
||||
response = epp_request('contacts/create.xml')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue