Renew with invalid exp date test

This commit is contained in:
Martin Lensment 2014-08-07 15:45:21 +03:00
parent e18ca330a0
commit 3256534f0d
4 changed files with 27 additions and 7 deletions

View file

@ -5,9 +5,10 @@ class Domain < ActiveRecord::Base
include EppErrors
EPP_CODE_MAP = {
'2302' => ['Domain name already exists', 'Domain name is reserved or restricted'],
'2306' => ['Registrant is missing', 'Nameservers count must be between 1-13', 'Admin contact is missing'],
'2303' => ['Contact was not found']
'2302' => ['Domain name already exists', 'Domain name is reserved or restricted'], # Object exists
'2306' => ['Registrant is missing', 'Admin contact is missing', 'Given and current expire dates do not match'], # Parameter policy error
'2004' => ['Nameservers count must be between 1-13'], # Parameter value range error
'2303' => ['Contact was not found'] # Object does not exist
}
EPP_OBJ = 'domain'