This commit is contained in:
parent
5d253948bc
commit
4f12ce6901
|
@ -1,7 +1,7 @@
|
|||
#ifndef __LPE_CHECK_COMMAND_HPP
|
||||
#define __LPE_CHECK_COMMAND_HPP
|
||||
|
||||
#include "OTE/LPECheckCommand.hpp"
|
||||
#include "se/CheckCommand.hpp"
|
||||
#include "se/StandardObjectType.hpp"
|
||||
|
||||
#include <string>
|
||||
|
|
|
@ -32,11 +32,11 @@ void doWork()
|
|||
vector<string> techIds;
|
||||
techIds.push_back("JTKCON2");
|
||||
string registrant("JTKCON");
|
||||
*ote", "jtkUT3st", ®istrant, &techIds,
|
||||
OteLPECreateCommand cmd("jtkutest.co.ae", "jtkUT3st", ®istrant, &techIds,
|
||||
eligibilityType, policyReason, registrantName);
|
||||
const string xml(cmd.toXML());
|
||||
ASSERT_EQ(xml,
|
||||
*oteProperties></create></extension><clTRID>JTKUTEST.20070101.010101.0</clTRID></command></epp>");
|
||||
"<?xml version=\"1.0\" encoding=\"UTF-8\"?><epp xmlns=\"urn:ietf:params:xml:ns:epp-1.0\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:schemaLocation=\"urn:ietf:params:xml:ns:epp-1.0 epp-1.0.xsd\"><command><create><create xmlns=\"urn:ietf:params:xml:ns:domain-1.0\" xsi:schemaLocation=\"urn:ietf:params:xml:ns:domain-1.0 domain-1.0.xsd\"><name>jtkutest.co.ae</name><registrant>JTKCON</registrant><contact type=\"tech\">JTKCON2</contact><authInfo><pw>jtkUT3st</pw></authInfo></create></create><extension><create xmlns=\"urn:X-ae:params:xml:ns:aeext-1.0\" xsi:schemaLocation=\"urn:X-ae:params:xml:ns:aeext-1.0 aeext-1.0.xsd\"><aeProperties><registrantName>AusRegistry</registrantName><eligibilityType>Trade License (IT)</eligibilityType><policyReason>1</policyReason></aeProperties></create></extension><clTRID>JTKUTEST.20070101.010101.0</clTRID></command></epp>");
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -65,7 +65,7 @@ void doWork()
|
|||
Period period(48, PeriodUnit::MONTHS());
|
||||
|
||||
OteLPECreateCommand cmd(
|
||||
*ote", "jtkUT3st", ®istrant,
|
||||
"jtkutest.co.ae", "jtkUT3st", ®istrant,
|
||||
&techIds, &adminContacts,
|
||||
NULL, &nameServers, &period,
|
||||
eligibilityType, policyReason,
|
||||
|
@ -73,7 +73,7 @@ void doWork()
|
|||
®istrantIDType, &eligibilityName,
|
||||
&eligibilityID, &eligibilityIDType);
|
||||
const string xml(cmd.toXML());
|
||||
*oteProperties></create></extension><clTRID>JTKUTEST.20070101.010101.0</clTRID></command></epp>");
|
||||
ASSERT_EQ(xml, "<?xml version=\"1.0\" encoding=\"UTF-8\"?><epp xmlns=\"urn:ietf:params:xml:ns:epp-1.0\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:schemaLocation=\"urn:ietf:params:xml:ns:epp-1.0 epp-1.0.xsd\"><command><create><create xmlns=\"urn:ietf:params:xml:ns:domain-1.0\" xsi:schemaLocation=\"urn:ietf:params:xml:ns:domain-1.0 domain-1.0.xsd\"><name>jtkutest.co.ae</name><period unit=\"m\">48</period><ns><hostObj>ns1.ausregistry.net</hostObj><hostObj>ns2.ausregistry.net</hostObj></ns><registrant>JTKCON</registrant><contact type=\"admin\">JTKCON</contact><contact type=\"admin\">JTKCON2</contact><contact type=\"tech\">JTKCON2</contact><authInfo><pw>jtkUT3st</pw></authInfo></create></create><extension><create xmlns=\"urn:X-ae:params:xml:ns:aeext-1.0\" xsi:schemaLocation=\"urn:X-ae:params:xml:ns:aeext-1.0 aeext-1.0.xsd\"><aeProperties><registrantName>AusRegistry</registrantName><registrantID type=\"Trade License\">01241326211</registrantID><eligibilityType>Trade License (IT)</eligibilityType><eligibilityName>Blah</eligibilityName><eligibilityID type=\"Trademark\">1231239523</eligibilityID><policyReason>1</policyReason></aeProperties></create></extension><clTRID>JTKUTEST.20070101.010101.0</clTRID></command></epp>");
|
||||
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue