template: create-domain.tt

vars:
  domain: cheese.co.te
  ns:
    - ns1.hidns.com
    - ns2.hidns.com
    - ns3.hidns.com
  owner: id123
  admin: shazzam1234
  tech: alcatraz367

input_assertions:
  class: SRS::EPP::Command::Create::Domain

SRS:
  - assertions:

    fake_response: |-
      <NZSRSResponse VerMajor="5" VerMinor="0">
        <Response Action="DomainCreate" FeId="8" FeSeq="4794857" OrigRegistrarId="90" RecipientRegistrarId="90" TransId="brause2345">
          <FeTimeStamp Day="6" Hour="12" Minute="01" Month="7" Second="11" TimeZoneOffset="+12:00" Year="2010"/>
          <Error ErrorId="INVALID_CCTLD" Hint="SRS::Error::UNKNOWN_ERROR" Severity="err">
            <Description><![CDATA[Domain Name CCTLD not permitted]]></Description>
            <ErrorDetails><![CDATA[cheese.co.te]]></ErrorDetails>
          </Error>
        </Response>
      </NZSRSResponse>

output_assertions:
  attr_is:
    - [ '//epp:result', 'code', '2400', 'EPP: correct response code' ]