This commit is contained in:
parent
d286261fe5
commit
c20b3301bd
|
@ -102,7 +102,7 @@
|
||||||
<target name="adHoc" path="ACTK1_0" targetID="org.eclipse.cdt.build.MakeTargetBuilder">
|
<target name="adHoc" path="ACTK1_0" targetID="org.eclipse.cdt.build.MakeTargetBuilder">
|
||||||
<buildCommand>make</buildCommand>
|
<buildCommand>make</buildCommand>
|
||||||
<buildArguments/>
|
<buildArguments/>
|
||||||
<buildTarget>build/LPCheck.o</buildTarget>
|
<buildTarget>build/LPChkExtension.o</buildTarget>
|
||||||
<stopOnError>true</stopOnError>
|
<stopOnError>true</stopOnError>
|
||||||
<useDefaultCommand>true</useDefaultCommand>
|
<useDefaultCommand>true</useDefaultCommand>
|
||||||
<runAllBuilders>false</runAllBuilders>
|
<runAllBuilders>false</runAllBuilders>
|
||||||
|
|
|
@ -117,7 +117,7 @@ $(BUILD_OBJ_DIR)/%: $(BUILD_OBJ_DIR)/%.o
|
||||||
#
|
#
|
||||||
ARTKOBJS=build/XMLGregorianCalendar.o build/XMLParser.o build/XMLWriter.o build/ACSession.o build/DomainAddRem.o \
|
ARTKOBJS=build/XMLGregorianCalendar.o build/XMLParser.o build/XMLWriter.o build/ACSession.o build/DomainAddRem.o \
|
||||||
build/EnumDomainInfoResponse.o build/log.o build/PostalInfoType.o build/SessionManagerPropertiesImpl.o \
|
build/EnumDomainInfoResponse.o build/log.o build/PostalInfoType.o build/SessionManagerPropertiesImpl.o \
|
||||||
build/RegistrantObjectType.o build/LPExtension.o \
|
build/RegistrantObjectType.o build/LPExtension.o build/LPChkCmdExtension.o \
|
||||||
build/AddRemType.o build/DomainCheckResponse.o build/EnumDomainUpdateCommand.o build/Properties.o build/SessionPoolImpl.o \
|
build/AddRemType.o build/DomainCheckResponse.o build/EnumDomainUpdateCommand.o build/Properties.o build/SessionPoolImpl.o \
|
||||||
build/boolean.o build/DomainCreateCommand.o build/EnumType.o build/ProtocolExtensionCommand.o build/SSLException.o \
|
build/boolean.o build/DomainCreateCommand.o build/EnumType.o build/ProtocolExtensionCommand.o build/SSLException.o \
|
||||||
build/CertificateUserMismatchException.o build/DomainCreateResponse.o build/EPPDateFormatter.o build/ReceiveSE.o build/StandardCommandType.o \
|
build/CertificateUserMismatchException.o build/DomainCreateResponse.o build/EPPDateFormatter.o build/ReceiveSE.o build/StandardCommandType.o \
|
||||||
|
@ -126,9 +126,9 @@ build/CLTRID.o build/DomainInfoResponse.o
|
||||||
build/CommandCounter.o build/DomainKVCommandExtension.o build/Greeting.o build/NotificationResponse.o build/ResponseExtension.o build/SyncExtension.o \
|
build/CommandCounter.o build/DomainKVCommandExtension.o build/Greeting.o build/NotificationResponse.o build/ResponseExtension.o build/SyncExtension.o \
|
||||||
build/Command.o build/DomainNotificationResponse.o build/HostAddRem.o build/ObjectCommand.o build/Response.o build/SystemProperties.o \
|
build/Command.o build/DomainNotificationResponse.o build/HostAddRem.o build/ObjectCommand.o build/Response.o build/SystemProperties.o \
|
||||||
build/config.o build/DomainRegistrantTransferCommand.o build/HostCheckResponse.o build/ResultCounter.o build/Timer.o \
|
build/config.o build/DomainRegistrantTransferCommand.o build/HostCheckResponse.o build/ResultCounter.o build/Timer.o \
|
||||||
build/Constants.o build/DomainRegistrantTransferResponse.o build/HostCreateCommand.o build/LPCheck.o build/Result.o build/TLSContext.o \
|
build/Constants.o build/DomainRegistrantTransferResponse.o build/HostCreateCommand.o build/Result.o build/TLSContext.o \
|
||||||
build/ContactCheckResponse.o build/DomainRenewCommand.o build/HostCreateResponse.o build/LPLaunch.o build/SecDNSChgType.o build/TLSSession.o \
|
build/ContactCheckResponse.o build/DomainRenewCommand.o build/HostCreateResponse.o build/SecDNSChgType.o build/TLSSession.o \
|
||||||
build/ContactCreateCommand.o build/DomainRenewResponse.o build/HostInfoResponse.o build/LPCreate.o build/SecDNSDSData.o build/TLSSocket.o \
|
build/ContactCreateCommand.o build/DomainRenewResponse.o build/HostInfoResponse.o build/SecDNSDSData.o build/TLSSocket.o \
|
||||||
build/ContactCreateResponse.o build/DomainSecDNSCreateCommandExtension.o build/HostUpdateCommand.o build/SecDNSDSOrKeyType.o build/TransferCommand.o \
|
build/ContactCreateResponse.o build/DomainSecDNSCreateCommandExtension.o build/HostUpdateCommand.o build/SecDNSDSOrKeyType.o build/TransferCommand.o \
|
||||||
build/ContactInfoResponse.o build/DomainSecDNSInfoResponseExtension.o build/InetAddress.o build/SecDNSExtension.o build/TransferOp.o \
|
build/ContactInfoResponse.o build/DomainSecDNSInfoResponseExtension.o build/InetAddress.o build/SecDNSExtension.o build/TransferOp.o \
|
||||||
build/ContactNotificationResponse.o build/DomainSecDNSUpdateCommandExtension.o build/InfoResponse.o build/SecDNSKeyData.o build/TransferResponse.o \
|
build/ContactNotificationResponse.o build/DomainSecDNSUpdateCommandExtension.o build/InfoResponse.o build/SecDNSKeyData.o build/TransferResponse.o \
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
* Subclasses of this must specify the object to which the command is mapped.
|
* Subclasses of this must specify the object to which the command is mapped.
|
||||||
* Instances of this class provide an interface to access availability
|
* Instances of this class provide an interface to access availability
|
||||||
* information for each object identified in a {@link
|
* information for each object identified in a {@link
|
||||||
* com.ausregistry.jtoolkit2.se.CheckCommand}.
|
* mop.bizsregistry.jtoolkit2.se.CheckCommand}.
|
||||||
* This relies on the instance first being initialised by a suitable EPP check
|
* This relies on the instance first being initialised by a suitable EPP check
|
||||||
* response using the method fromXML. For flexibility, this implementation
|
* response using the method fromXML. For flexibility, this implementation
|
||||||
* extracts the data from the response using XPath queries, the expressions for
|
* extracts the data from the response using XPath queries, the expressions for
|
||||||
|
|
|
@ -15,12 +15,12 @@ void doWork()
|
||||||
CLTRID::setClID("ACTKUTST");
|
CLTRID::setClID("ACTKUTST");
|
||||||
Timer::setTime("20140101.010101");
|
Timer::setTime("20140101.010101");
|
||||||
|
|
||||||
DomainCheckCommand cmd("test.com.au");
|
DomainCheckCommand cmd("test.mop.biz");
|
||||||
const string xml(cmd.toXML());
|
const string xml(cmd.toXML());
|
||||||
|
|
||||||
ASSERT_EQ(cmd.getCommandType()->getCommandName(), "check");
|
ASSERT_EQ(cmd.getCommandType()->getCommandName(), "check");
|
||||||
ASSERT_EQ(cmd.getObjectType()->getName(), "domain");
|
ASSERT_EQ(cmd.getObjectType()->getName(), "domain");
|
||||||
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><check><check xmlns=\"urn:ietf:params:xml:ns:domain-1.0\" xsi:schemaLocation=\"urn:ietf:params:xml:ns:domain-1.0 domain-1.0.xsd\"><name>test.com.au</name></check></check><clTRID>ACTKUTST.20140101.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><check><check xmlns=\"urn:ietf:params:xml:ns:domain-1.0\" xsi:schemaLocation=\"urn:ietf:params:xml:ns:domain-1.0 domain-1.0.xsd\"><name>test.mop.biz</name></check></check><clTRID>ACTKUTST.20140101.010101.0</clTRID></command></epp>");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -15,9 +15,9 @@ void doWork()
|
||||||
CLTRID::setClID("ACTKUTST");
|
CLTRID::setClID("ACTKUTST");
|
||||||
Timer::setTime("20140101.010101");
|
Timer::setTime("20140101.010101");
|
||||||
|
|
||||||
DomainDeleteCommand cmd("ACTKUTST.com.au");
|
DomainDeleteCommand cmd("ACTKUTST.mop.biz");
|
||||||
const string xml(cmd.toXML());
|
const string xml(cmd.toXML());
|
||||||
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><delete><delete xmlns=\"urn:ietf:params:xml:ns:domain-1.0\" xsi:schemaLocation=\"urn:ietf:params:xml:ns:domain-1.0 domain-1.0.xsd\"><name>ACTKUTST.com.au</name></delete></delete><clTRID>ACTKUTST.20140101.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><delete><delete xmlns=\"urn:ietf:params:xml:ns:domain-1.0\" xsi:schemaLocation=\"urn:ietf:params:xml:ns:domain-1.0 domain-1.0.xsd\"><name>ACTKUTST.mop.biz</name></delete></delete><clTRID>ACTKUTST.20140101.010101.0</clTRID></command></epp>");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -15,9 +15,9 @@ void doWork()
|
||||||
CLTRID::setClID("ACTKUTST");
|
CLTRID::setClID("ACTKUTST");
|
||||||
Timer::setTime("20140101.010101");
|
Timer::setTime("20140101.010101");
|
||||||
|
|
||||||
DomainInfoCommand cmd("ACTKUTST.com.au");
|
DomainInfoCommand cmd("ACTKUTST.mop.biz");
|
||||||
const string xml(cmd.toXML());
|
const string xml(cmd.toXML());
|
||||||
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><info><info xmlns=\"urn:ietf:params:xml:ns:domain-1.0\" xsi:schemaLocation=\"urn:ietf:params:xml:ns:domain-1.0 domain-1.0.xsd\"><name>ACTKUTST.com.au</name></info></info><clTRID>ACTKUTST.20140101.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><info><info xmlns=\"urn:ietf:params:xml:ns:domain-1.0\" xsi:schemaLocation=\"urn:ietf:params:xml:ns:domain-1.0 domain-1.0.xsd\"><name>ACTKUTST.mop.biz</name></info></info><clTRID>ACTKUTST.20140101.010101.0</clTRID></command></epp>");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -15,30 +15,30 @@ void doWork()
|
||||||
CLTRID::setClID("ACTKUTST");
|
CLTRID::setClID("ACTKUTST");
|
||||||
Timer::setTime("20140101.010101");
|
Timer::setTime("20140101.010101");
|
||||||
|
|
||||||
DomainTransferQueryCommand cmd("ACTKUTST.com.au");
|
DomainTransferQueryCommand cmd("ACTKUTST.mop.biz");
|
||||||
const string xml(cmd.toXML());
|
const string xml(cmd.toXML());
|
||||||
|
|
||||||
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><transfer op=\"query\"><transfer xmlns=\"urn:ietf:params:xml:ns:domain-1.0\" xsi:schemaLocation=\"urn:ietf:params:xml:ns:domain-1.0 domain-1.0.xsd\"><name>ACTKUTST.com.au</name></transfer></transfer><clTRID>ACTKUTST.20140101.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><transfer op=\"query\"><transfer xmlns=\"urn:ietf:params:xml:ns:domain-1.0\" xsi:schemaLocation=\"urn:ietf:params:xml:ns:domain-1.0 domain-1.0.xsd\"><name>ACTKUTST.mop.biz</name></transfer></transfer><clTRID>ACTKUTST.20140101.010101.0</clTRID></command></epp>");
|
||||||
}
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
CLTRID::setClID("ACTKUTST");
|
CLTRID::setClID("ACTKUTST");
|
||||||
Timer::setTime("20140101.010101");
|
Timer::setTime("20140101.010101");
|
||||||
|
|
||||||
DomainTransferQueryCommand cmd("ACTKUTST.com.au", "jtkUt3st");
|
DomainTransferQueryCommand cmd("ACTKUTST.mop.biz", "jtkUt3st");
|
||||||
const string xml(cmd.toXML());
|
const string xml(cmd.toXML());
|
||||||
|
|
||||||
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><transfer op=\"query\"><transfer xmlns=\"urn:ietf:params:xml:ns:domain-1.0\" xsi:schemaLocation=\"urn:ietf:params:xml:ns:domain-1.0 domain-1.0.xsd\"><name>ACTKUTST.com.au</name><authInfo><pw>jtkUt3st</pw></authInfo></transfer></transfer><clTRID>ACTKUTST.20140101.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><transfer op=\"query\"><transfer xmlns=\"urn:ietf:params:xml:ns:domain-1.0\" xsi:schemaLocation=\"urn:ietf:params:xml:ns:domain-1.0 domain-1.0.xsd\"><name>ACTKUTST.mop.biz</name><authInfo><pw>jtkUt3st</pw></authInfo></transfer></transfer><clTRID>ACTKUTST.20140101.010101.0</clTRID></command></epp>");
|
||||||
}
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
CLTRID::setClID("ACTKUTST");
|
CLTRID::setClID("ACTKUTST");
|
||||||
Timer::setTime("20140101.010101");
|
Timer::setTime("20140101.010101");
|
||||||
|
|
||||||
DomainTransferQueryCommand cmd("ACTKUTST.com.au", "C100000-AR", "jtkUt3st");
|
DomainTransferQueryCommand cmd("ACTKUTST.mop.biz", "C100000-AR", "jtkUt3st");
|
||||||
const string xml(cmd.toXML());
|
const string xml(cmd.toXML());
|
||||||
|
|
||||||
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><transfer op=\"query\"><transfer xmlns=\"urn:ietf:params:xml:ns:domain-1.0\" xsi:schemaLocation=\"urn:ietf:params:xml:ns:domain-1.0 domain-1.0.xsd\"><name>ACTKUTST.com.au</name><authInfo><pw roid=\"C100000-AR\">jtkUt3st</pw></authInfo></transfer></transfer><clTRID>ACTKUTST.20140101.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><transfer op=\"query\"><transfer xmlns=\"urn:ietf:params:xml:ns:domain-1.0\" xsi:schemaLocation=\"urn:ietf:params:xml:ns:domain-1.0 domain-1.0.xsd\"><name>ACTKUTST.mop.biz</name><authInfo><pw roid=\"C100000-AR\">jtkUt3st</pw></authInfo></transfer></transfer><clTRID>ACTKUTST.20140101.010101.0</clTRID></command></epp>");
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -21,9 +21,9 @@ void testSimpleUpdate()
|
||||||
Timer::setTime("20140101.010101");
|
Timer::setTime("20140101.010101");
|
||||||
CLTRID::setClID("ACTKUTST");
|
CLTRID::setClID("ACTKUTST");
|
||||||
|
|
||||||
DomainUpdateCommand cmd("ACTKUTST.com.au");
|
DomainUpdateCommand cmd("ACTKUTST.mop.biz");
|
||||||
const string xml(cmd.toXML());
|
const string xml(cmd.toXML());
|
||||||
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><update><update xmlns=\"urn:ietf:params:xml:ns:domain-1.0\" xsi:schemaLocation=\"urn:ietf:params:xml:ns:domain-1.0 domain-1.0.xsd\"><name>ACTKUTST.com.au</name></update></update><clTRID>ACTKUTST.20140101.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><update><update xmlns=\"urn:ietf:params:xml:ns:domain-1.0\" xsi:schemaLocation=\"urn:ietf:params:xml:ns:domain-1.0 domain-1.0.xsd\"><name>ACTKUTST.mop.biz</name></update></update><clTRID>ACTKUTST.20140101.010101.0</clTRID></command></epp>");
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -32,7 +32,7 @@ void testFullUpdate()
|
||||||
Timer::setTime("20140101.010101");
|
Timer::setTime("20140101.010101");
|
||||||
CLTRID::setClID("ACTKUTST");
|
CLTRID::setClID("ACTKUTST");
|
||||||
|
|
||||||
const char* addNsText[] = { "ns1.ACTKUTST.com.au", "ns2.ACTKUTST.com.au" };
|
const char* addNsText[] = { "ns1.ACTKUTST.mop.biz", "ns2.ACTKUTST.mop.biz" };
|
||||||
const vector<string> addNs(addNsText, addNsText + 2);
|
const vector<string> addNs(addNsText, addNsText + 2);
|
||||||
|
|
||||||
const vector<string> addTechContacts(1, "JTKCON");
|
const vector<string> addTechContacts(1, "JTKCON");
|
||||||
|
@ -54,7 +54,7 @@ void testFullUpdate()
|
||||||
&addStatus);
|
&addStatus);
|
||||||
|
|
||||||
|
|
||||||
const char* remNsText[] = { "ns3.ACTKUTST.com.au", "ns4.ACTKUTST.com.au" };
|
const char* remNsText[] = { "ns3.ACTKUTST.mop.biz", "ns4.ACTKUTST.mop.biz" };
|
||||||
const vector<string> remNs(remNsText, remNsText + 2);
|
const vector<string> remNs(remNsText, remNsText + 2);
|
||||||
|
|
||||||
const vector<string> remTechContacts(1, "JTKCON2");
|
const vector<string> remTechContacts(1, "JTKCON2");
|
||||||
|
@ -70,14 +70,14 @@ void testFullUpdate()
|
||||||
NULL,
|
NULL,
|
||||||
&remStatus);
|
&remStatus);
|
||||||
|
|
||||||
const string name("ACTKUTST.com.au");
|
const string name("ACTKUTST.mop.biz");
|
||||||
const string pw("jtkUT3st");
|
const string pw("jtkUT3st");
|
||||||
const string registrantID("JTKCON");
|
const string registrantID("JTKCON");
|
||||||
|
|
||||||
DomainUpdateCommand cmd("ACTKUTST.com.au", &pw, &add, &rem, ®istrantID);
|
DomainUpdateCommand cmd("ACTKUTST.mop.biz", &pw, &add, &rem, ®istrantID);
|
||||||
|
|
||||||
const string xml(cmd.toXML());
|
const string xml(cmd.toXML());
|
||||||
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><update><update xmlns=\"urn:ietf:params:xml:ns:domain-1.0\" xsi:schemaLocation=\"urn:ietf:params:xml:ns:domain-1.0 domain-1.0.xsd\"><name>ACTKUTST.com.au</name><add><ns><hostObj>ns1.ACTKUTST.com.au</hostObj><hostObj>ns2.ACTKUTST.com.au</hostObj></ns><contact type=\"tech\">JTKCON</contact><contact type=\"admin\">JTKCON2</contact><contact type=\"billing\">JTKCON3</contact><status s=\"clientHold\">non-payment</status></add><rem><ns><hostObj>ns3.ACTKUTST.com.au</hostObj><hostObj>ns4.ACTKUTST.com.au</hostObj></ns><contact type=\"tech\">JTKCON2</contact><contact type=\"admin\">JTKCON</contact><status s=\"clientDeleteProhibited\"></status></rem><chg><registrant>JTKCON</registrant><authInfo><pw>jtkUT3st</pw></authInfo></chg></update></update><clTRID>ACTKUTST.20140101.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><update><update xmlns=\"urn:ietf:params:xml:ns:domain-1.0\" xsi:schemaLocation=\"urn:ietf:params:xml:ns:domain-1.0 domain-1.0.xsd\"><name>ACTKUTST.mop.biz</name><add><ns><hostObj>ns1.ACTKUTST.mop.biz</hostObj><hostObj>ns2.ACTKUTST.mop.biz</hostObj></ns><contact type=\"tech\">JTKCON</contact><contact type=\"admin\">JTKCON2</contact><contact type=\"billing\">JTKCON3</contact><status s=\"clientHold\">non-payment</status></add><rem><ns><hostObj>ns3.ACTKUTST.mop.biz</hostObj><hostObj>ns4.ACTKUTST.mop.biz</hostObj></ns><contact type=\"tech\">JTKCON2</contact><contact type=\"admin\">JTKCON</contact><status s=\"clientDeleteProhibited\"></status></rem><chg><registrant>JTKCON</registrant><authInfo><pw>jtkUT3st</pw></authInfo></chg></update></update><clTRID>ACTKUTST.20140101.010101.0</clTRID></command></epp>");
|
||||||
}
|
}
|
||||||
|
|
||||||
void testSyncExpiryDateExtension(void)
|
void testSyncExpiryDateExtension(void)
|
||||||
|
@ -85,7 +85,7 @@ void testSyncExpiryDateExtension(void)
|
||||||
Timer::setTime("20140101.010101");
|
Timer::setTime("20140101.010101");
|
||||||
CLTRID::setClID("ACTKUTST");
|
CLTRID::setClID("ACTKUTST");
|
||||||
|
|
||||||
DomainUpdateCommand cmd("ACTKUTST.com.au");
|
DomainUpdateCommand cmd("ACTKUTST.mop.biz");
|
||||||
XMLGregorianCalendar *newExpiryDate = EPPDateFormatter::fromXSDateTime("2005-04-03T22:00:00.0Z");
|
XMLGregorianCalendar *newExpiryDate = EPPDateFormatter::fromXSDateTime("2005-04-03T22:00:00.0Z");
|
||||||
|
|
||||||
DomainUpdateSyncCommandExtension extension(newExpiryDate);
|
DomainUpdateSyncCommandExtension extension(newExpiryDate);
|
||||||
|
@ -94,7 +94,7 @@ void testSyncExpiryDateExtension(void)
|
||||||
|
|
||||||
delete newExpiryDate;
|
delete newExpiryDate;
|
||||||
ASSERT_EQ(xml,
|
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><update><update xmlns=\"urn:ietf:params:xml:ns:domain-1.0\" xsi:schemaLocation=\"urn:ietf:params:xml:ns:domain-1.0 domain-1.0.xsd\"><name>ACTKUTST.com.au</name></update></update><extension><update xmlns=\"urn:X-ar:params:xml:ns:sync-1.0\"><exDate>2005-04-03T22:00:00.0Z</exDate></update></extension><clTRID>ACTKUTST.20140101.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><update><update xmlns=\"urn:ietf:params:xml:ns:domain-1.0\" xsi:schemaLocation=\"urn:ietf:params:xml:ns:domain-1.0 domain-1.0.xsd\"><name>ACTKUTST.mop.biz</name></update></update><extension><update xmlns=\"urn:X-ar:params:xml:ns:sync-1.0\"><exDate>2005-04-03T22:00:00.0Z</exDate></update></extension><clTRID>ACTKUTST.20140101.010101.0</clTRID></command></epp>");
|
||||||
}
|
}
|
||||||
|
|
||||||
void testSyncExpiryDateExtensionWithNullDate(void)
|
void testSyncExpiryDateExtensionWithNullDate(void)
|
||||||
|
|
|
@ -14,21 +14,21 @@ void doWork()
|
||||||
{
|
{
|
||||||
CLTRID::setClID("ACTKUTST");
|
CLTRID::setClID("ACTKUTST");
|
||||||
Timer::setTime("20140101.010101");
|
Timer::setTime("20140101.010101");
|
||||||
HostCheckCommand hcc("ns1.ACTKUTST.com.au");
|
HostCheckCommand hcc("ns1.ACTKUTST.mop.biz");
|
||||||
const string xml(hcc.toXML());
|
const string xml(hcc.toXML());
|
||||||
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><check><check xmlns=\"urn:ietf:params:xml:ns:host-1.0\" xsi:schemaLocation=\"urn:ietf:params:xml:ns:host-1.0 host-1.0.xsd\"><name>ns1.ACTKUTST.com.au</name></check></check><clTRID>ACTKUTST.20140101.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><check><check xmlns=\"urn:ietf:params:xml:ns:host-1.0\" xsi:schemaLocation=\"urn:ietf:params:xml:ns:host-1.0 host-1.0.xsd\"><name>ns1.ACTKUTST.mop.biz</name></check></check><clTRID>ACTKUTST.20140101.010101.0</clTRID></command></epp>");
|
||||||
}
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
CLTRID::setClID("ACTKUTST");
|
CLTRID::setClID("ACTKUTST");
|
||||||
Timer::setTime("20140101.010101");
|
Timer::setTime("20140101.010101");
|
||||||
std::vector<std::string> names;
|
std::vector<std::string> names;
|
||||||
names.push_back("ns1.ACTKUTST.com.au");
|
names.push_back("ns1.ACTKUTST.mop.biz");
|
||||||
names.push_back("ns2.ACTKUTST.com.au");
|
names.push_back("ns2.ACTKUTST.mop.biz");
|
||||||
|
|
||||||
HostCheckCommand hcc(names);
|
HostCheckCommand hcc(names);
|
||||||
const string xml(hcc.toXML());
|
const string xml(hcc.toXML());
|
||||||
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><check><check xmlns=\"urn:ietf:params:xml:ns:host-1.0\" xsi:schemaLocation=\"urn:ietf:params:xml:ns:host-1.0 host-1.0.xsd\"><name>ns1.ACTKUTST.com.au</name><name>ns2.ACTKUTST.com.au</name></check></check><clTRID>ACTKUTST.20140101.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><check><check xmlns=\"urn:ietf:params:xml:ns:host-1.0\" xsi:schemaLocation=\"urn:ietf:params:xml:ns:host-1.0 host-1.0.xsd\"><name>ns1.ACTKUTST.mop.biz</name><name>ns2.ACTKUTST.mop.biz</name></check></check><clTRID>ACTKUTST.20140101.010101.0</clTRID></command></epp>");
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -15,9 +15,9 @@ void doWork()
|
||||||
CLTRID::setClID("ACTKUTST");
|
CLTRID::setClID("ACTKUTST");
|
||||||
Timer::setTime("20140101.010101");
|
Timer::setTime("20140101.010101");
|
||||||
|
|
||||||
HostCreateCommand hcc("ns1.ACTKUTST.com.au");
|
HostCreateCommand hcc("ns1.ACTKUTST.mop.biz");
|
||||||
const string xml(hcc.toXML());
|
const string xml(hcc.toXML());
|
||||||
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:host-1.0\" xsi:schemaLocation=\"urn:ietf:params:xml:ns:host-1.0 host-1.0.xsd\"><name>ns1.ACTKUTST.com.au</name></create></create><clTRID>ACTKUTST.20140101.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:host-1.0\" xsi:schemaLocation=\"urn:ietf:params:xml:ns:host-1.0 host-1.0.xsd\"><name>ns1.ACTKUTST.mop.biz</name></create></create><clTRID>ACTKUTST.20140101.010101.0</clTRID></command></epp>");
|
||||||
}
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
|
@ -28,9 +28,9 @@ void doWork()
|
||||||
addrs.push_back(InetAddress("192.168.0.1", IPVersion::IPv4()));
|
addrs.push_back(InetAddress("192.168.0.1", IPVersion::IPv4()));
|
||||||
addrs.push_back(InetAddress("::1", IPVersion::IPv6()));
|
addrs.push_back(InetAddress("::1", IPVersion::IPv6()));
|
||||||
|
|
||||||
HostCreateCommand hcc("ns1.ACTKUTST.com.au", &addrs);
|
HostCreateCommand hcc("ns1.ACTKUTST.mop.biz", &addrs);
|
||||||
const string xml(hcc.toXML());
|
const string xml(hcc.toXML());
|
||||||
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:host-1.0\" xsi:schemaLocation=\"urn:ietf:params:xml:ns:host-1.0 host-1.0.xsd\"><name>ns1.ACTKUTST.com.au</name><addr ip=\"v4\">192.168.0.1</addr><addr ip=\"v6\">::1</addr></create></create><clTRID>ACTKUTST.20140101.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:host-1.0\" xsi:schemaLocation=\"urn:ietf:params:xml:ns:host-1.0 host-1.0.xsd\"><name>ns1.ACTKUTST.mop.biz</name><addr ip=\"v4\">192.168.0.1</addr><addr ip=\"v6\">::1</addr></create></create><clTRID>ACTKUTST.20140101.010101.0</clTRID></command></epp>");
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -14,9 +14,9 @@ void doWork()
|
||||||
{
|
{
|
||||||
CLTRID::setClID("ACTKUTST");
|
CLTRID::setClID("ACTKUTST");
|
||||||
Timer::setTime("20140101.010101");
|
Timer::setTime("20140101.010101");
|
||||||
HostDeleteCommand hcc("ns1.ACTKUTST.com.au");
|
HostDeleteCommand hcc("ns1.ACTKUTST.mop.biz");
|
||||||
const string xml(hcc.toXML());
|
const string xml(hcc.toXML());
|
||||||
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><delete><delete xmlns=\"urn:ietf:params:xml:ns:host-1.0\" xsi:schemaLocation=\"urn:ietf:params:xml:ns:host-1.0 host-1.0.xsd\"><name>ns1.ACTKUTST.com.au</name></delete></delete><clTRID>ACTKUTST.20140101.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><delete><delete xmlns=\"urn:ietf:params:xml:ns:host-1.0\" xsi:schemaLocation=\"urn:ietf:params:xml:ns:host-1.0 host-1.0.xsd\"><name>ns1.ACTKUTST.mop.biz</name></delete></delete><clTRID>ACTKUTST.20140101.010101.0</clTRID></command></epp>");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -12,9 +12,9 @@ void doWork()
|
||||||
Timer::setTime("20140101.010101");
|
Timer::setTime("20140101.010101");
|
||||||
CLTRID::setClID("ACTKUTST");
|
CLTRID::setClID("ACTKUTST");
|
||||||
|
|
||||||
HostInfoCommand cmd("ns1.ACTKUTST.com.au");
|
HostInfoCommand cmd("ns1.ACTKUTST.mop.biz");
|
||||||
const string xml = cmd.toXML();
|
const string xml = cmd.toXML();
|
||||||
ASSERT_EQ("<?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><info><info xmlns=\"urn:ietf:params:xml:ns:host-1.0\" xsi:schemaLocation=\"urn:ietf:params:xml:ns:host-1.0 host-1.0.xsd\"><name>ns1.ACTKUTST.com.au</name></info></info><clTRID>ACTKUTST.20140101.010101.0</clTRID></command></epp>", xml);
|
ASSERT_EQ("<?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><info><info xmlns=\"urn:ietf:params:xml:ns:host-1.0\" xsi:schemaLocation=\"urn:ietf:params:xml:ns:host-1.0 host-1.0.xsd\"><name>ns1.ACTKUTST.mop.biz</name></info></info><clTRID>ACTKUTST.20140101.010101.0</clTRID></command></epp>", xml);
|
||||||
}
|
}
|
||||||
|
|
||||||
int main(int argc, char* argv[])
|
int main(int argc, char* argv[])
|
||||||
|
|
|
@ -1,31 +0,0 @@
|
||||||
#include "LPCheck.hpp"
|
|
||||||
#include "xml/XMLHelper.hpp"
|
|
||||||
|
|
||||||
|
|
||||||
namespace {
|
|
||||||
Extension& launchPhaseExtension() {
|
|
||||||
static Extension* lpExtension = new LPExtension();
|
|
||||||
return *lpExtension;
|
|
||||||
}
|
|
||||||
}; // anonymous namespace
|
|
||||||
|
|
||||||
void LPCheck::setExtension ()
|
|
||||||
{
|
|
||||||
DOMElement *lpeCreate =
|
|
||||||
xmlWriter->appendChild( xmlWriter->appendChild( command, "extension"),
|
|
||||||
"launch:check", launchPhaseExtension().getURI());
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
void LPCheck::addToCommand(const Command &command) const
|
|
||||||
{
|
|
||||||
XMLWriter* xmlWriter = command.getXmlWriter();
|
|
||||||
DOMElement* extensionElement = command.getExtensionElement();
|
|
||||||
DOMElement* createElement = xmlWriter->appendChild(extensionElement,
|
|
||||||
"lauch:claims", launchPhaseExtension().getURI());
|
|
||||||
|
|
||||||
if (createData.get() != NULL)
|
|
||||||
{
|
|
||||||
createData->createXMLElement(xmlWriter, createElement);
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,37 +0,0 @@
|
||||||
#ifndef _LPE_CHK_EXTENSION_HPP_
|
|
||||||
#define _LPE_CHK_EXTENSION_HPP_
|
|
||||||
|
|
||||||
#include "se/DomainCheckCommand.hpp"
|
|
||||||
#include "LPLaunch.hpp"
|
|
||||||
|
|
||||||
class LPCheck : public DomainCheckCommand
|
|
||||||
{
|
|
||||||
private:
|
|
||||||
|
|
||||||
LPLaunch *draft_tan_epp_launchphase_12;
|
|
||||||
void setExtension ();
|
|
||||||
|
|
||||||
std::auto_ptr<LPLaunch> createData;
|
|
||||||
|
|
||||||
public:
|
|
||||||
/**
|
|
||||||
* Check the availability of the single identified domain.
|
|
||||||
*
|
|
||||||
* @param name The name of the domain to check the availability of.
|
|
||||||
*/
|
|
||||||
LPCheck (const std::string &name )
|
|
||||||
: DomainCheckCommand (name) { setExtension(); }
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Check the availability of at least one domain.
|
|
||||||
*
|
|
||||||
* @param names The names of the domains to check the availability of.
|
|
||||||
*/
|
|
||||||
LPCheck (std::vector<std::string> &names )
|
|
||||||
: DomainCheckCommand ( names ) { setExtension();}
|
|
||||||
|
|
||||||
virtual void addToCommand(const Command &command) const;
|
|
||||||
|
|
||||||
};
|
|
||||||
|
|
||||||
#endif /* _LPE_COMMAND_EXTENSION_HPP_ */
|
|
|
@ -0,0 +1,21 @@
|
||||||
|
#include "se/LPE/LPChkCmdExtension.hpp"
|
||||||
|
#include "se/Command.hpp"
|
||||||
|
#include "se/LPE/LPExtension.hpp"
|
||||||
|
#include "xml/XMLHelper.hpp"
|
||||||
|
|
||||||
|
namespace {
|
||||||
|
LPExtension& lpExtension() {
|
||||||
|
static LPExtension* lpExtension = new LPExtension();
|
||||||
|
return *lpExtension;
|
||||||
|
}
|
||||||
|
}; // anonymous namespace
|
||||||
|
|
||||||
|
void LPChkCmdExtension::addToCommand(const Command &command) const
|
||||||
|
{
|
||||||
|
XMLWriter* xmlWriter = command.getXmlWriter();
|
||||||
|
DOMElement* extensionElement = command.getExtensionElement();
|
||||||
|
DOMElement* launchElement = xmlWriter->appendChild(extensionElement,
|
||||||
|
"launch:claims", lpExtension().getURI());
|
||||||
|
DOMElement* exPhaseElement = xmlWriter->appendChild(launchElement, "launch:phase");
|
||||||
|
XMLHelper::setTextContent(exPhaseElement, lpePhaseName);
|
||||||
|
}
|
|
@ -0,0 +1,8 @@
|
||||||
|
build/LPChkCmdExtension.o se/LPE/LPChkCmdExtension.d: \
|
||||||
|
se/LPE/LPChkCmdExtension.cpp se/LPE/LPChkCmdExtension.hpp \
|
||||||
|
common/ErrorPkg.hpp common/Properties.hpp config/config.h \
|
||||||
|
common/EPPException.hpp common/ConfigurationError.hpp common/Logger.hpp \
|
||||||
|
se/Command.hpp se/SendSE.hpp xml/EPPWriter.hpp xml/XMLWriter.hpp \
|
||||||
|
xml/ParsingException.hpp se/Extension.hpp se/CommandExtension.hpp \
|
||||||
|
se/IllegalArgException.hpp se/LPE/LPExtension.hpp xml/XMLHelper.hpp \
|
||||||
|
xml/XStr.hpp
|
|
@ -0,0 +1,34 @@
|
||||||
|
#ifndef __DOMAIN_CK_COMMAND_EXTENSION_HPP
|
||||||
|
#define __DOMAIN_CK_COMMAND_EXTENSION_HPP
|
||||||
|
|
||||||
|
#include <string>
|
||||||
|
|
||||||
|
#include "common/ErrorPkg.hpp"
|
||||||
|
#include "se/Command.hpp"
|
||||||
|
#include "se/CommandExtension.hpp"
|
||||||
|
#include "se/IllegalArgException.hpp"
|
||||||
|
|
||||||
|
|
||||||
|
class LPChkCmdExtension : public CommandExtension
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
LPChkCmdExtension(const std::string *phaseName);
|
||||||
|
virtual void addToCommand(const Command &command) const;
|
||||||
|
private:
|
||||||
|
std::string lpePhaseName;
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
inline LPChkCmdExtension::LPChkCmdExtension(
|
||||||
|
const std::string *phaseName)
|
||||||
|
{
|
||||||
|
if (phaseName == NULL)
|
||||||
|
{
|
||||||
|
throw IllegalArgException(
|
||||||
|
ErrorPkg::getMessage("launch extension phase not set"));
|
||||||
|
}
|
||||||
|
|
||||||
|
lpePhaseName = std::string(*phaseName);
|
||||||
|
}
|
||||||
|
|
||||||
|
#endif // __DOMAIN_UPDATE_COMMAND_EXTENSION_HPP
|
|
@ -0,0 +1,7 @@
|
||||||
|
build/LPChkExtension.o se/LPE/LPChkExtension.d: se/LPE/LPChkExtension.cpp \
|
||||||
|
se/LPE/LPChkExtension.hpp common/ErrorPkg.hpp common/Properties.hpp \
|
||||||
|
config/config.h common/EPPException.hpp common/ConfigurationError.hpp \
|
||||||
|
common/Logger.hpp se/Command.hpp se/SendSE.hpp xml/EPPWriter.hpp \
|
||||||
|
xml/XMLWriter.hpp xml/ParsingException.hpp se/Extension.hpp \
|
||||||
|
se/CommandExtension.hpp se/IllegalArgException.hpp \
|
||||||
|
se/LPE/LPExtension.hpp xml/XMLHelper.hpp xml/XStr.hpp
|
|
@ -1,22 +0,0 @@
|
||||||
#include "LPCreate.hpp"
|
|
||||||
#include "xml/XMLHelper.hpp"
|
|
||||||
|
|
||||||
|
|
||||||
namespace {
|
|
||||||
Extension& launchPhaseExtension() {
|
|
||||||
static Extension* lpExtension = new LPExtension();
|
|
||||||
return *lpExtension;
|
|
||||||
}
|
|
||||||
}; // anonymous namespace
|
|
||||||
|
|
||||||
void LPCreate::setExtension ()
|
|
||||||
{
|
|
||||||
|
|
||||||
DOMElement *lpeCreate =
|
|
||||||
xmlWriter->appendChild( xmlWriter->appendChild( command, "extension"),
|
|
||||||
"launch:create", launchPhaseExtension().getURI());
|
|
||||||
DOMElement *lpecd =
|
|
||||||
xmlWriter->appendChild( xmlWriter->appendChild( lpeCreate, "launch:phase"),
|
|
||||||
"launch:phase", launchPhaseExtension().getURI() );
|
|
||||||
|
|
||||||
}
|
|
|
@ -0,0 +1,10 @@
|
||||||
|
build/LPCreate.o se/LPE/LPCreate.d: se/LPE/LPCreate.cpp \
|
||||||
|
se/LPE/LPCreate.hpp se/DomainCreateCommand.hpp se/CreateCommand.hpp \
|
||||||
|
se/ObjectCommand.hpp se/Command.hpp se/SendSE.hpp xml/EPPWriter.hpp \
|
||||||
|
xml/XMLWriter.hpp common/Logger.hpp common/Properties.hpp \
|
||||||
|
config/config.h common/EPPException.hpp common/ConfigurationError.hpp \
|
||||||
|
xml/ParsingException.hpp se/Extension.hpp se/CommandExtension.hpp \
|
||||||
|
se/ObjectType.hpp se/StandardCommandType.hpp se/EnumType.hpp \
|
||||||
|
se/IllegalArgException.hpp se/CommandType.hpp common/StringUtils.hpp \
|
||||||
|
se/Period.hpp se/PeriodUnit.hpp se/LPE/LPLaunch.hpp \
|
||||||
|
se/LPE/LPExtension.hpp xml/XMLHelper.hpp xml/XStr.hpp
|
|
@ -1,42 +0,0 @@
|
||||||
/*
|
|
||||||
* LPCreate.hpp
|
|
||||||
*
|
|
||||||
* Created on: Jan 23, 2014
|
|
||||||
* Author: jdaugherty
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef LPCREATE_HPP_
|
|
||||||
#define LPCREATE_HPP_
|
|
||||||
|
|
||||||
#include "se/DomainCreateCommand.hpp"
|
|
||||||
#include "LPLaunch.hpp"
|
|
||||||
|
|
||||||
class LPCreate : public DomainCreateCommand
|
|
||||||
{
|
|
||||||
private:
|
|
||||||
|
|
||||||
LPLaunch *draft_tan_epp_launchphase_12;
|
|
||||||
void setExtension ();
|
|
||||||
|
|
||||||
public:
|
|
||||||
/**
|
|
||||||
* Constructor for a domain:create EPP command. All core EPP domain:create
|
|
||||||
* attributes may be set using this constructor.
|
|
||||||
*/
|
|
||||||
LPCreate (const std::string& name,
|
|
||||||
const std::string& pw,
|
|
||||||
const std::string* registrantID,
|
|
||||||
const std::vector<std::string>* techContacts = NULL,
|
|
||||||
const std::vector<std::string>* nameservers = NULL,
|
|
||||||
const std::vector<std::string>* adminContacts = NULL,
|
|
||||||
const std::vector<std::string>* billingContacts = NULL,
|
|
||||||
const Period* period = NULL) :
|
|
||||||
DomainCreateCommand( name, pw, registrantID, techContacts, nameservers, adminContacts, billingContacts, period)
|
|
||||||
{ setExtension(); }
|
|
||||||
|
|
||||||
virtual void addToCommand(const Command &command) const;
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#endif /* LPCREATE_HPP_ */
|
|
|
@ -0,0 +1,2 @@
|
||||||
|
build/LPExtension.o se/LPE/LPExtension.d: se/LPE/LPExtension.cpp \
|
||||||
|
se/LPE/LPExtension.hpp se/Extension.hpp
|
|
@ -1,15 +0,0 @@
|
||||||
#include "xml/XMLHelper.hpp"
|
|
||||||
#include "LPLaunch.hpp"
|
|
||||||
|
|
||||||
void LPLaunch::appendData(XMLWriter* xmlWriter, DOMElement* addElement)
|
|
||||||
{
|
|
||||||
DOMElement* lpDataElement = xmlWriter->appendChild(addElement, "claims");
|
|
||||||
XMLHelper::setTextContent(xmlWriter->appendChild(lpDataElement, "claims"), claims);
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
void LPLaunch::createXMLElement(XMLWriter* xmlWriter, DOMElement* addElement)
|
|
||||||
{
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
|
@ -0,0 +1,4 @@
|
||||||
|
build/LPLaunch.o se/LPE/LPLaunch.d: se/LPE/LPLaunch.cpp xml/XMLHelper.hpp \
|
||||||
|
xml/XStr.hpp se/LPE/LPLaunch.hpp xml/XMLWriter.hpp common/Logger.hpp \
|
||||||
|
common/Properties.hpp config/config.h common/EPPException.hpp \
|
||||||
|
common/ConfigurationError.hpp se/LPE/LPExtension.hpp se/Extension.hpp
|
|
@ -1,45 +0,0 @@
|
||||||
#ifndef LPDATA_HPP_
|
|
||||||
#define LPDATA_HPP_
|
|
||||||
|
|
||||||
#include <string>
|
|
||||||
|
|
||||||
#include "xercesc/dom/DOMElement.hpp"
|
|
||||||
#include "xml/XMLWriter.hpp"
|
|
||||||
#include "se/LPE/LPExtension.hpp"
|
|
||||||
|
|
||||||
using namespace std;
|
|
||||||
|
|
||||||
class LPLaunch : public Extension
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
LPLaunch() :
|
|
||||||
claims("claims"),
|
|
||||||
phase("sunrise"),
|
|
||||||
status("available")
|
|
||||||
{}
|
|
||||||
|
|
||||||
virtual ~LPLaunch() {}
|
|
||||||
|
|
||||||
const string getPhase() const;
|
|
||||||
const string getStatus() const;
|
|
||||||
|
|
||||||
void appendData(XMLWriter* xmlWriter, DOMElement* addElement);
|
|
||||||
void createXMLElement(XMLWriter* xmlWriter, DOMElement* addElement);
|
|
||||||
|
|
||||||
|
|
||||||
private:
|
|
||||||
string claims;
|
|
||||||
string phase;
|
|
||||||
string status;
|
|
||||||
};
|
|
||||||
|
|
||||||
inline const string LPLaunch::getPhase() const
|
|
||||||
{
|
|
||||||
return phase;
|
|
||||||
}
|
|
||||||
inline const string LPLaunch::getStatus() const
|
|
||||||
{
|
|
||||||
return status;
|
|
||||||
}
|
|
||||||
|
|
||||||
#endif /* LPDATA_HPP_ */
|
|
|
@ -1,29 +0,0 @@
|
||||||
#include <sstream>
|
|
||||||
|
|
||||||
#include "LPLaunch.hpp"
|
|
||||||
#include "LPRespExtender.hpp"
|
|
||||||
|
|
||||||
using namespace std;
|
|
||||||
|
|
||||||
void LPRespExtender::fromXML(XMLDocument *xmlDoc)
|
|
||||||
{
|
|
||||||
// infData.reset(new LPExtension);
|
|
||||||
|
|
||||||
// if (xmlDoc->getNodeCount("count(" + MAXSIGLIFE_EXPR() + ")") > 0)
|
|
||||||
// {
|
|
||||||
// int maxSigLifeInt = getInt(xmlDoc->getNodeValue(MAXSIGLIFE_EXPR()));
|
|
||||||
|
|
||||||
// auto_ptr<SecDNSMaxSigLifeType> maxSigLife(new SecDNSMaxSigLifeType(maxSigLifeInt));//
|
|
||||||
// infData->setMaxSigLife(maxSigLife.release());
|
|
||||||
// }
|
|
||||||
|
|
||||||
// int secDnsCount = getResponseDSData(xmlDoc);
|
|
||||||
// initialised = (secDnsCount > 0) && (infData->getDSDataListSize() == secDnsCount);
|
|
||||||
|
|
||||||
if (!initialised)
|
|
||||||
{
|
|
||||||
// secDnsCount = getResponseKeyData(xmlDoc);
|
|
||||||
//initialised = (secDnsCount > 0) && (infData->getKeyDataListSize() == secDnsCount);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
bool LPRespExtender::isInitialised() const {return initialised;}
|
|
|
@ -0,0 +1,6 @@
|
||||||
|
build/LPRespExtender.o se/LPE/LPRespExtender.d: se/LPE/LPRespExtender.cpp \
|
||||||
|
se/LPE/LPLaunch.hpp xml/XMLWriter.hpp common/Logger.hpp \
|
||||||
|
common/Properties.hpp config/config.h common/EPPException.hpp \
|
||||||
|
common/ConfigurationError.hpp se/LPE/LPExtension.hpp se/Extension.hpp \
|
||||||
|
se/LPE/LPRespExtender.hpp se/ResponseExtension.hpp se/ReceiveSE.hpp \
|
||||||
|
xml/XMLDocument.hpp
|
|
@ -1,18 +0,0 @@
|
||||||
|
|
||||||
#include "se/ResponseExtension.hpp"
|
|
||||||
#include "LPLaunch.hpp"
|
|
||||||
|
|
||||||
class LPRespExtender : public ResponseExtension
|
|
||||||
{
|
|
||||||
|
|
||||||
public:
|
|
||||||
LPRespExtender() :
|
|
||||||
initialised(false),
|
|
||||||
infData(NULL)
|
|
||||||
{}
|
|
||||||
virtual void fromXML(XMLDocument *xmlDoc);
|
|
||||||
virtual bool isInitialised() const;
|
|
||||||
private:
|
|
||||||
bool initialised;
|
|
||||||
std::auto_ptr<LPLaunch> infData;
|
|
||||||
};
|
|
|
@ -16,7 +16,7 @@ void testSecDNSAllFields()
|
||||||
Timer::setTime("20140101.010101");
|
Timer::setTime("20140101.010101");
|
||||||
CLTRID::setClID("ACTKUTST");
|
CLTRID::setClID("ACTKUTST");
|
||||||
|
|
||||||
DomainCreateCommand createCommand("ACTKUTST.com.au", "jtkUT3st", NULL);
|
DomainCreateCommand createCommand("ACTKUTST.mop.biz", "jtkUT3st", NULL);
|
||||||
|
|
||||||
auto_ptr<SecDNSDSData> dsData(new SecDNSDSData(12345, 3, 1, "49FD46E6C4B45C55D4AC"));
|
auto_ptr<SecDNSDSData> dsData(new SecDNSDSData(12345, 3, 1, "49FD46E6C4B45C55D4AC"));
|
||||||
auto_ptr<SecDNSKeyData> keyData(new SecDNSKeyData(256, 3, 1, "AQPJ////4Q=="));
|
auto_ptr<SecDNSKeyData> keyData(new SecDNSKeyData(256, 3, 1, "AQPJ////4Q=="));
|
||||||
|
@ -34,7 +34,7 @@ void testSecDNSAllFields()
|
||||||
|
|
||||||
const string xml = createCommand.toXML();
|
const string xml = createCommand.toXML();
|
||||||
ASSERT_EQ(xml,
|
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>ACTKUTST.com.au</name><authInfo><pw>jtkUT3st</pw></authInfo></create></create><extension><create xmlns=\"urn:ietf:params:xml:ns:secDNS-1.1\"><maxSigLife>604800</maxSigLife><dsData><keyTag>12345</keyTag><alg>3</alg><digestType>1</digestType><digest>49FD46E6C4B45C55D4AC</digest><keyData><flags>256</flags><protocol>3</protocol><alg>1</alg><pubKey>AQPJ////4Q==</pubKey></keyData></dsData></create></extension><clTRID>ACTKUTST.20140101.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>ACTKUTST.mop.biz</name><authInfo><pw>jtkUT3st</pw></authInfo></create></create><extension><create xmlns=\"urn:ietf:params:xml:ns:secDNS-1.1\"><maxSigLife>604800</maxSigLife><dsData><keyTag>12345</keyTag><alg>3</alg><digestType>1</digestType><digest>49FD46E6C4B45C55D4AC</digest><keyData><flags>256</flags><protocol>3</protocol><alg>1</alg><pubKey>AQPJ////4Q==</pubKey></keyData></dsData></create></extension><clTRID>ACTKUTST.20140101.010101.0</clTRID></command></epp>"
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -43,7 +43,7 @@ void testSecDNSMultipleDSDataWithoutMaxSigLife()
|
||||||
Timer::setTime("20140101.010101");
|
Timer::setTime("20140101.010101");
|
||||||
CLTRID::setClID("ACTKUTST");
|
CLTRID::setClID("ACTKUTST");
|
||||||
|
|
||||||
DomainCreateCommand createCommand("ACTKUTST.com.au", "jtkUT3st", NULL);
|
DomainCreateCommand createCommand("ACTKUTST.mop.biz", "jtkUT3st", NULL);
|
||||||
|
|
||||||
auto_ptr<SecDNSDSData> dsData(new SecDNSDSData(12345, 3, 1, "38FD46E6C4B45C55D4AC"));
|
auto_ptr<SecDNSDSData> dsData(new SecDNSDSData(12345, 3, 1, "38FD46E6C4B45C55D4AC"));
|
||||||
auto_ptr<SecDNSKeyData> keyData(new SecDNSKeyData(256, 3, 1, "AQPJ////4Q=="));
|
auto_ptr<SecDNSKeyData> keyData(new SecDNSKeyData(256, 3, 1, "AQPJ////4Q=="));
|
||||||
|
@ -62,7 +62,7 @@ void testSecDNSMultipleDSDataWithoutMaxSigLife()
|
||||||
|
|
||||||
const string xml = createCommand.toXML();
|
const string xml = createCommand.toXML();
|
||||||
ASSERT_EQ(xml,
|
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>ACTKUTST.com.au</name><authInfo><pw>jtkUT3st</pw></authInfo></create></create><extension><create xmlns=\"urn:ietf:params:xml:ns:secDNS-1.1\"><dsData><keyTag>12345</keyTag><alg>3</alg><digestType>1</digestType><digest>38FD46E6C4B45C55D4AC</digest><keyData><flags>256</flags><protocol>3</protocol><alg>1</alg><pubKey>AQPJ////4Q==</pubKey></keyData></dsData><dsData><keyTag>6789</keyTag><alg>2</alg><digestType>2</digestType><digest>49FD46E6C4B45C55D4AC</digest></dsData></create></extension><clTRID>ACTKUTST.20140101.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>ACTKUTST.mop.biz</name><authInfo><pw>jtkUT3st</pw></authInfo></create></create><extension><create xmlns=\"urn:ietf:params:xml:ns:secDNS-1.1\"><dsData><keyTag>12345</keyTag><alg>3</alg><digestType>1</digestType><digest>38FD46E6C4B45C55D4AC</digest><keyData><flags>256</flags><protocol>3</protocol><alg>1</alg><pubKey>AQPJ////4Q==</pubKey></keyData></dsData><dsData><keyTag>6789</keyTag><alg>2</alg><digestType>2</digestType><digest>49FD46E6C4B45C55D4AC</digest></dsData></create></extension><clTRID>ACTKUTST.20140101.010101.0</clTRID></command></epp>"
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -71,7 +71,7 @@ void testSecDNSAllFieldsMin()
|
||||||
Timer::setTime("20140101.010101");
|
Timer::setTime("20140101.010101");
|
||||||
CLTRID::setClID("ACTKUTST");
|
CLTRID::setClID("ACTKUTST");
|
||||||
|
|
||||||
DomainCreateCommand createCommand("ACTKUTST.com.au", "jtkUT3st", NULL);
|
DomainCreateCommand createCommand("ACTKUTST.mop.biz", "jtkUT3st", NULL);
|
||||||
|
|
||||||
auto_ptr<SecDNSDSData> dsData(new SecDNSDSData(0, 0, 0, "49FD46E6C4B45C55D4AC"));
|
auto_ptr<SecDNSDSData> dsData(new SecDNSDSData(0, 0, 0, "49FD46E6C4B45C55D4AC"));
|
||||||
auto_ptr<SecDNSKeyData> keyData(new SecDNSKeyData(0, 0, 0, "AQPJ////4Q=="));
|
auto_ptr<SecDNSKeyData> keyData(new SecDNSKeyData(0, 0, 0, "AQPJ////4Q=="));
|
||||||
|
@ -89,7 +89,7 @@ void testSecDNSAllFieldsMin()
|
||||||
|
|
||||||
const string xml = createCommand.toXML();
|
const string xml = createCommand.toXML();
|
||||||
ASSERT_EQ(xml,
|
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>ACTKUTST.com.au</name><authInfo><pw>jtkUT3st</pw></authInfo></create></create><extension><create xmlns=\"urn:ietf:params:xml:ns:secDNS-1.1\"><maxSigLife>1</maxSigLife><dsData><keyTag>0</keyTag><alg>0</alg><digestType>0</digestType><digest>49FD46E6C4B45C55D4AC</digest><keyData><flags>0</flags><protocol>0</protocol><alg>0</alg><pubKey>AQPJ////4Q==</pubKey></keyData></dsData></create></extension><clTRID>ACTKUTST.20140101.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>ACTKUTST.mop.biz</name><authInfo><pw>jtkUT3st</pw></authInfo></create></create><extension><create xmlns=\"urn:ietf:params:xml:ns:secDNS-1.1\"><maxSigLife>1</maxSigLife><dsData><keyTag>0</keyTag><alg>0</alg><digestType>0</digestType><digest>49FD46E6C4B45C55D4AC</digest><keyData><flags>0</flags><protocol>0</protocol><alg>0</alg><pubKey>AQPJ////4Q==</pubKey></keyData></dsData></create></extension><clTRID>ACTKUTST.20140101.010101.0</clTRID></command></epp>"
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -98,7 +98,7 @@ void testSecDNSAllFieldsMax()
|
||||||
Timer::setTime("20140101.010101");
|
Timer::setTime("20140101.010101");
|
||||||
CLTRID::setClID("ACTKUTST");
|
CLTRID::setClID("ACTKUTST");
|
||||||
|
|
||||||
DomainCreateCommand createCommand("ACTKUTST.com.au", "jtkUT3st", NULL);
|
DomainCreateCommand createCommand("ACTKUTST.mop.biz", "jtkUT3st", NULL);
|
||||||
|
|
||||||
auto_ptr<SecDNSDSData> dsData(new SecDNSDSData(65535, 255, 255, "49FD46E6C4B45C55D4AC"));
|
auto_ptr<SecDNSDSData> dsData(new SecDNSDSData(65535, 255, 255, "49FD46E6C4B45C55D4AC"));
|
||||||
auto_ptr<SecDNSKeyData> keyData(new SecDNSKeyData(65535, 255, 255, "AQPJ////4Q=="));
|
auto_ptr<SecDNSKeyData> keyData(new SecDNSKeyData(65535, 255, 255, "AQPJ////4Q=="));
|
||||||
|
@ -116,7 +116,7 @@ void testSecDNSAllFieldsMax()
|
||||||
|
|
||||||
const string xml = createCommand.toXML();
|
const string xml = createCommand.toXML();
|
||||||
ASSERT_EQ(xml,
|
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>ACTKUTST.com.au</name><authInfo><pw>jtkUT3st</pw></authInfo></create></create><extension><create xmlns=\"urn:ietf:params:xml:ns:secDNS-1.1\"><maxSigLife>2147483647</maxSigLife><dsData><keyTag>65535</keyTag><alg>255</alg><digestType>255</digestType><digest>49FD46E6C4B45C55D4AC</digest><keyData><flags>65535</flags><protocol>255</protocol><alg>255</alg><pubKey>AQPJ////4Q==</pubKey></keyData></dsData></create></extension><clTRID>ACTKUTST.20140101.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>ACTKUTST.mop.biz</name><authInfo><pw>jtkUT3st</pw></authInfo></create></create><extension><create xmlns=\"urn:ietf:params:xml:ns:secDNS-1.1\"><maxSigLife>2147483647</maxSigLife><dsData><keyTag>65535</keyTag><alg>255</alg><digestType>255</digestType><digest>49FD46E6C4B45C55D4AC</digest><keyData><flags>65535</flags><protocol>255</protocol><alg>255</alg><pubKey>AQPJ////4Q==</pubKey></keyData></dsData></create></extension><clTRID>ACTKUTST.20140101.010101.0</clTRID></command></epp>"
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -125,7 +125,7 @@ void testSecDNSJustKeyData()
|
||||||
Timer::setTime("20140101.010101");
|
Timer::setTime("20140101.010101");
|
||||||
CLTRID::setClID("ACTKUTST");
|
CLTRID::setClID("ACTKUTST");
|
||||||
|
|
||||||
DomainCreateCommand createCommand("ACTKUTST.com.au", "jtkUT3st", NULL);
|
DomainCreateCommand createCommand("ACTKUTST.mop.biz", "jtkUT3st", NULL);
|
||||||
|
|
||||||
auto_ptr<SecDNSKeyData> keyData(new SecDNSKeyData(65535, 255, 255, "AQPJ////4Q=="));
|
auto_ptr<SecDNSKeyData> keyData(new SecDNSKeyData(65535, 255, 255, "AQPJ////4Q=="));
|
||||||
|
|
||||||
|
@ -141,7 +141,7 @@ void testSecDNSJustKeyData()
|
||||||
|
|
||||||
const string xml = createCommand.toXML();
|
const string xml = createCommand.toXML();
|
||||||
ASSERT_EQ(xml,
|
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>ACTKUTST.com.au</name><authInfo><pw>jtkUT3st</pw></authInfo></create></create><extension><create xmlns=\"urn:ietf:params:xml:ns:secDNS-1.1\"><maxSigLife>65535</maxSigLife><keyData><flags>65535</flags><protocol>255</protocol><alg>255</alg><pubKey>AQPJ////4Q==</pubKey></keyData></create></extension><clTRID>ACTKUTST.20140101.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>ACTKUTST.mop.biz</name><authInfo><pw>jtkUT3st</pw></authInfo></create></create><extension><create xmlns=\"urn:ietf:params:xml:ns:secDNS-1.1\"><maxSigLife>65535</maxSigLife><keyData><flags>65535</flags><protocol>255</protocol><alg>255</alg><pubKey>AQPJ////4Q==</pubKey></keyData></create></extension><clTRID>ACTKUTST.20140101.010101.0</clTRID></command></epp>"
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -25,7 +25,7 @@ void buildXmlResponseBeforeExtension(const string& domainName,
|
||||||
|
|
||||||
void testSecDNSInfoExtensionAllFields()
|
void testSecDNSInfoExtensionAllFields()
|
||||||
{
|
{
|
||||||
string domainName = "test.com.au";
|
string domainName = "test.mop.biz";
|
||||||
DomainInfoResponse response;
|
DomainInfoResponse response;
|
||||||
DomainSecDNSInfoResponseExtension extension;
|
DomainSecDNSInfoResponseExtension extension;
|
||||||
response.registerExtension(&extension);
|
response.registerExtension(&extension);
|
||||||
|
@ -45,7 +45,7 @@ void testSecDNSInfoExtensionAllFields()
|
||||||
|
|
||||||
void testSecDNSInfoExtensionOnlyKeyData()
|
void testSecDNSInfoExtensionOnlyKeyData()
|
||||||
{
|
{
|
||||||
string domainName = "test.com.au";
|
string domainName = "test.mop.biz";
|
||||||
DomainInfoResponse response;
|
DomainInfoResponse response;
|
||||||
DomainSecDNSInfoResponseExtension extension;
|
DomainSecDNSInfoResponseExtension extension;
|
||||||
response.registerExtension(&extension);
|
response.registerExtension(&extension);
|
||||||
|
@ -66,7 +66,7 @@ void testSecDNSInfoExtensionOnlyKeyData()
|
||||||
|
|
||||||
void testSecDNSInfoExtensionMultipleDsRecords()
|
void testSecDNSInfoExtensionMultipleDsRecords()
|
||||||
{
|
{
|
||||||
string domainName = "test.com.au";
|
string domainName = "test.mop.biz";
|
||||||
DomainInfoResponse response;
|
DomainInfoResponse response;
|
||||||
DomainSecDNSInfoResponseExtension extension;
|
DomainSecDNSInfoResponseExtension extension;
|
||||||
response.registerExtension(&extension);
|
response.registerExtension(&extension);
|
||||||
|
@ -87,7 +87,7 @@ void testSecDNSInfoExtensionMultipleDsRecords()
|
||||||
|
|
||||||
void testSecDNSInfoNoExtensionInitialised()
|
void testSecDNSInfoNoExtensionInitialised()
|
||||||
{
|
{
|
||||||
string domainName = "test.com.au";
|
string domainName = "test.mop.biz";
|
||||||
DomainInfoResponse response;
|
DomainInfoResponse response;
|
||||||
DomainSecDNSInfoResponseExtension extension;
|
DomainSecDNSInfoResponseExtension extension;
|
||||||
response.registerExtension(&extension);
|
response.registerExtension(&extension);
|
||||||
|
@ -226,10 +226,10 @@ void buildXmlResponseBeforeExtension(const string& domainName,
|
||||||
<< "<status s=\"ok\" lang=\"en\"/>"
|
<< "<status s=\"ok\" lang=\"en\"/>"
|
||||||
<< "<registrant>EXAMPLE</registrant>"
|
<< "<registrant>EXAMPLE</registrant>"
|
||||||
<< "<contact type=\"tech\">EXAMPLE</contact>" << "<ns>"
|
<< "<contact type=\"tech\">EXAMPLE</contact>" << "<ns>"
|
||||||
<< "<hostObj>ns1.example.com.au</hostObj>"
|
<< "<hostObj>ns1.example.mop.biz</hostObj>"
|
||||||
<< "<hostObj>ns2.example.com.au</hostObj>" << "</ns>"
|
<< "<hostObj>ns2.example.mop.biz</hostObj>" << "</ns>"
|
||||||
<< "<host>ns1.example.com.au</host>"
|
<< "<host>ns1.example.mop.biz</host>"
|
||||||
<< "<host>ns2.exmaple.com.au</host>" << "<clID>Registrar</clID>"
|
<< "<host>ns2.exmaple.mop.biz</host>" << "<clID>Registrar</clID>"
|
||||||
<< "<crID>Registrar</crID>"
|
<< "<crID>Registrar</crID>"
|
||||||
<< "<crDate>2006-02-09T15:44:58.0Z</crDate>"
|
<< "<crDate>2006-02-09T15:44:58.0Z</crDate>"
|
||||||
<< "<exDate>2008-02-10T00:00:00.0Z</exDate>" << "<authInfo>"
|
<< "<exDate>2008-02-10T00:00:00.0Z</exDate>" << "<authInfo>"
|
||||||
|
|
|
@ -18,7 +18,7 @@ void testSecDNSAddFieldsUrgent()
|
||||||
|
|
||||||
string passwd = "jtkUT3st";
|
string passwd = "jtkUT3st";
|
||||||
string registrantID = "JTKCON";
|
string registrantID = "JTKCON";
|
||||||
DomainUpdateCommand updateCommand("ACTKUTST.com.au", &passwd, NULL, NULL, ®istrantID);
|
DomainUpdateCommand updateCommand("ACTKUTST.mop.biz", &passwd, NULL, NULL, ®istrantID);
|
||||||
|
|
||||||
auto_ptr<SecDNSDSData> dsData(new SecDNSDSData(12345, 3, 1, "49FD46E6C4B45C55D4AC"));
|
auto_ptr<SecDNSDSData> dsData(new SecDNSDSData(12345, 3, 1, "49FD46E6C4B45C55D4AC"));
|
||||||
auto_ptr<SecDNSKeyData> keyData(new SecDNSKeyData(256, 3, 1, "AQPJ////4Q=="));
|
auto_ptr<SecDNSKeyData> keyData(new SecDNSKeyData(256, 3, 1, "AQPJ////4Q=="));
|
||||||
|
@ -37,7 +37,7 @@ void testSecDNSAddFieldsUrgent()
|
||||||
|
|
||||||
const string xml = updateCommand.toXML();
|
const string xml = updateCommand.toXML();
|
||||||
ASSERT_EQ(xml,
|
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><update><update xmlns=\"urn:ietf:params:xml:ns:domain-1.0\" xsi:schemaLocation=\"urn:ietf:params:xml:ns:domain-1.0 domain-1.0.xsd\"><name>ACTKUTST.com.au</name><chg><registrant>JTKCON</registrant><authInfo><pw>jtkUT3st</pw></authInfo></chg></update></update><extension><update xmlns=\"urn:ietf:params:xml:ns:secDNS-1.1\" urgent=\"true\"><add><maxSigLife>604800</maxSigLife><dsData><keyTag>12345</keyTag><alg>3</alg><digestType>1</digestType><digest>49FD46E6C4B45C55D4AC</digest><keyData><flags>256</flags><protocol>3</protocol><alg>1</alg><pubKey>AQPJ////4Q==</pubKey></keyData></dsData></add></update></extension><clTRID>ACTKUTST.20140101.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><update><update xmlns=\"urn:ietf:params:xml:ns:domain-1.0\" xsi:schemaLocation=\"urn:ietf:params:xml:ns:domain-1.0 domain-1.0.xsd\"><name>ACTKUTST.mop.biz</name><chg><registrant>JTKCON</registrant><authInfo><pw>jtkUT3st</pw></authInfo></chg></update></update><extension><update xmlns=\"urn:ietf:params:xml:ns:secDNS-1.1\" urgent=\"true\"><add><maxSigLife>604800</maxSigLife><dsData><keyTag>12345</keyTag><alg>3</alg><digestType>1</digestType><digest>49FD46E6C4B45C55D4AC</digest><keyData><flags>256</flags><protocol>3</protocol><alg>1</alg><pubKey>AQPJ////4Q==</pubKey></keyData></dsData></add></update></extension><clTRID>ACTKUTST.20140101.010101.0</clTRID></command></epp>"
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -48,7 +48,7 @@ void testSecDNSRemoveFieldsNotUrgent()
|
||||||
|
|
||||||
string passwd = "jtkUT3st";
|
string passwd = "jtkUT3st";
|
||||||
string registrantID = "JTKCON";
|
string registrantID = "JTKCON";
|
||||||
DomainUpdateCommand updateCommand("ACTKUTST.com.au", &passwd, NULL, NULL, ®istrantID);
|
DomainUpdateCommand updateCommand("ACTKUTST.mop.biz", &passwd, NULL, NULL, ®istrantID);
|
||||||
|
|
||||||
auto_ptr<SecDNSDSData> dsData(new SecDNSDSData(65535, 255, 255, "49FD46E6C4B45C55D4AC"));
|
auto_ptr<SecDNSDSData> dsData(new SecDNSDSData(65535, 255, 255, "49FD46E6C4B45C55D4AC"));
|
||||||
auto_ptr<SecDNSKeyData> keyData(new SecDNSKeyData(65535, 255, 255, "AQPJ////4Q=="));
|
auto_ptr<SecDNSKeyData> keyData(new SecDNSKeyData(65535, 255, 255, "AQPJ////4Q=="));
|
||||||
|
@ -65,7 +65,7 @@ void testSecDNSRemoveFieldsNotUrgent()
|
||||||
|
|
||||||
const string xml = updateCommand.toXML();
|
const string xml = updateCommand.toXML();
|
||||||
ASSERT_EQ(xml,
|
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><update><update xmlns=\"urn:ietf:params:xml:ns:domain-1.0\" xsi:schemaLocation=\"urn:ietf:params:xml:ns:domain-1.0 domain-1.0.xsd\"><name>ACTKUTST.com.au</name><chg><registrant>JTKCON</registrant><authInfo><pw>jtkUT3st</pw></authInfo></chg></update></update><extension><update xmlns=\"urn:ietf:params:xml:ns:secDNS-1.1\"><rem><dsData><keyTag>65535</keyTag><alg>255</alg><digestType>255</digestType><digest>49FD46E6C4B45C55D4AC</digest><keyData><flags>65535</flags><protocol>255</protocol><alg>255</alg><pubKey>AQPJ////4Q==</pubKey></keyData></dsData></rem></update></extension><clTRID>ACTKUTST.20140101.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><update><update xmlns=\"urn:ietf:params:xml:ns:domain-1.0\" xsi:schemaLocation=\"urn:ietf:params:xml:ns:domain-1.0 domain-1.0.xsd\"><name>ACTKUTST.mop.biz</name><chg><registrant>JTKCON</registrant><authInfo><pw>jtkUT3st</pw></authInfo></chg></update></update><extension><update xmlns=\"urn:ietf:params:xml:ns:secDNS-1.1\"><rem><dsData><keyTag>65535</keyTag><alg>255</alg><digestType>255</digestType><digest>49FD46E6C4B45C55D4AC</digest><keyData><flags>65535</flags><protocol>255</protocol><alg>255</alg><pubKey>AQPJ////4Q==</pubKey></keyData></dsData></rem></update></extension><clTRID>ACTKUTST.20140101.010101.0</clTRID></command></epp>"
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -76,7 +76,7 @@ void testSecDNSRemoveAll()
|
||||||
|
|
||||||
string passwd = "jtkUT3st";
|
string passwd = "jtkUT3st";
|
||||||
string registrantID = "JTKCON";
|
string registrantID = "JTKCON";
|
||||||
DomainUpdateCommand updateCommand("ACTKUTST.com.au", &passwd, NULL, NULL, ®istrantID);
|
DomainUpdateCommand updateCommand("ACTKUTST.mop.biz", &passwd, NULL, NULL, ®istrantID);
|
||||||
|
|
||||||
|
|
||||||
auto_ptr<SecDNSRemType> remData(new SecDNSRemType());
|
auto_ptr<SecDNSRemType> remData(new SecDNSRemType());
|
||||||
|
@ -90,7 +90,7 @@ void testSecDNSRemoveAll()
|
||||||
|
|
||||||
const string xml = updateCommand.toXML();
|
const string xml = updateCommand.toXML();
|
||||||
ASSERT_EQ(xml,
|
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><update><update xmlns=\"urn:ietf:params:xml:ns:domain-1.0\" xsi:schemaLocation=\"urn:ietf:params:xml:ns:domain-1.0 domain-1.0.xsd\"><name>ACTKUTST.com.au</name><chg><registrant>JTKCON</registrant><authInfo><pw>jtkUT3st</pw></authInfo></chg></update></update><extension><update xmlns=\"urn:ietf:params:xml:ns:secDNS-1.1\" urgent=\"true\"><rem><all>true</all></rem></update></extension><clTRID>ACTKUTST.20140101.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><update><update xmlns=\"urn:ietf:params:xml:ns:domain-1.0\" xsi:schemaLocation=\"urn:ietf:params:xml:ns:domain-1.0 domain-1.0.xsd\"><name>ACTKUTST.mop.biz</name><chg><registrant>JTKCON</registrant><authInfo><pw>jtkUT3st</pw></authInfo></chg></update></update><extension><update xmlns=\"urn:ietf:params:xml:ns:secDNS-1.1\" urgent=\"true\"><rem><all>true</all></rem></update></extension><clTRID>ACTKUTST.20140101.010101.0</clTRID></command></epp>"
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -101,7 +101,7 @@ void testSecDNSRemoveAllAndAddDsData()
|
||||||
|
|
||||||
string passwd = "jtkUT3st";
|
string passwd = "jtkUT3st";
|
||||||
string registrantID = "JTKCON";
|
string registrantID = "JTKCON";
|
||||||
DomainUpdateCommand updateCommand("ACTKUTST.com.au", &passwd, NULL, NULL, ®istrantID);
|
DomainUpdateCommand updateCommand("ACTKUTST.mop.biz", &passwd, NULL, NULL, ®istrantID);
|
||||||
|
|
||||||
|
|
||||||
auto_ptr<SecDNSRemType> remData(new SecDNSRemType());
|
auto_ptr<SecDNSRemType> remData(new SecDNSRemType());
|
||||||
|
@ -120,7 +120,7 @@ void testSecDNSRemoveAllAndAddDsData()
|
||||||
|
|
||||||
const string xml = updateCommand.toXML();
|
const string xml = updateCommand.toXML();
|
||||||
ASSERT_EQ(xml,
|
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><update><update xmlns=\"urn:ietf:params:xml:ns:domain-1.0\" xsi:schemaLocation=\"urn:ietf:params:xml:ns:domain-1.0 domain-1.0.xsd\"><name>ACTKUTST.com.au</name><chg><registrant>JTKCON</registrant><authInfo><pw>jtkUT3st</pw></authInfo></chg></update></update><extension><update xmlns=\"urn:ietf:params:xml:ns:secDNS-1.1\" urgent=\"true\"><rem><all>true</all></rem><add><dsData><keyTag>65535</keyTag><alg>255</alg><digestType>255</digestType><digest>49FD46E6C4B45C55D4AC</digest></dsData></add></update></extension><clTRID>ACTKUTST.20140101.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><update><update xmlns=\"urn:ietf:params:xml:ns:domain-1.0\" xsi:schemaLocation=\"urn:ietf:params:xml:ns:domain-1.0 domain-1.0.xsd\"><name>ACTKUTST.mop.biz</name><chg><registrant>JTKCON</registrant><authInfo><pw>jtkUT3st</pw></authInfo></chg></update></update><extension><update xmlns=\"urn:ietf:params:xml:ns:secDNS-1.1\" urgent=\"true\"><rem><all>true</all></rem><add><dsData><keyTag>65535</keyTag><alg>255</alg><digestType>255</digestType><digest>49FD46E6C4B45C55D4AC</digest></dsData></add></update></extension><clTRID>ACTKUTST.20140101.010101.0</clTRID></command></epp>"
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -131,7 +131,7 @@ void testSecDNSRemoveAllAndAddKeyData()
|
||||||
|
|
||||||
string passwd = "jtkUT3st";
|
string passwd = "jtkUT3st";
|
||||||
string registrantID = "JTKCON";
|
string registrantID = "JTKCON";
|
||||||
DomainUpdateCommand updateCommand("ACTKUTST.com.au", &passwd, NULL, NULL, ®istrantID);
|
DomainUpdateCommand updateCommand("ACTKUTST.mop.biz", &passwd, NULL, NULL, ®istrantID);
|
||||||
|
|
||||||
|
|
||||||
auto_ptr<SecDNSRemType> remData(new SecDNSRemType());
|
auto_ptr<SecDNSRemType> remData(new SecDNSRemType());
|
||||||
|
@ -150,7 +150,7 @@ void testSecDNSRemoveAllAndAddKeyData()
|
||||||
|
|
||||||
const string xml = updateCommand.toXML();
|
const string xml = updateCommand.toXML();
|
||||||
ASSERT_EQ(xml,
|
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><update><update xmlns=\"urn:ietf:params:xml:ns:domain-1.0\" xsi:schemaLocation=\"urn:ietf:params:xml:ns:domain-1.0 domain-1.0.xsd\"><name>ACTKUTST.com.au</name><chg><registrant>JTKCON</registrant><authInfo><pw>jtkUT3st</pw></authInfo></chg></update></update><extension><update xmlns=\"urn:ietf:params:xml:ns:secDNS-1.1\" urgent=\"true\"><rem><all>true</all></rem><add><keyData><flags>65535</flags><protocol>255</protocol><alg>255</alg><pubKey>AQPJ////4Q==</pubKey></keyData></add></update></extension><clTRID>ACTKUTST.20140101.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><update><update xmlns=\"urn:ietf:params:xml:ns:domain-1.0\" xsi:schemaLocation=\"urn:ietf:params:xml:ns:domain-1.0 domain-1.0.xsd\"><name>ACTKUTST.mop.biz</name><chg><registrant>JTKCON</registrant><authInfo><pw>jtkUT3st</pw></authInfo></chg></update></update><extension><update xmlns=\"urn:ietf:params:xml:ns:secDNS-1.1\" urgent=\"true\"><rem><all>true</all></rem><add><keyData><flags>65535</flags><protocol>255</protocol><alg>255</alg><pubKey>AQPJ////4Q==</pubKey></keyData></add></update></extension><clTRID>ACTKUTST.20140101.010101.0</clTRID></command></epp>"
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -161,7 +161,7 @@ void testSecDNSRemoveAllAndAddKeyDataAndChangeMaxSigLife()
|
||||||
|
|
||||||
string passwd = "jtkUT3st";
|
string passwd = "jtkUT3st";
|
||||||
string registrantID = "JTKCON";
|
string registrantID = "JTKCON";
|
||||||
DomainUpdateCommand updateCommand("ACTKUTST.com.au", &passwd, NULL, NULL, ®istrantID);
|
DomainUpdateCommand updateCommand("ACTKUTST.mop.biz", &passwd, NULL, NULL, ®istrantID);
|
||||||
|
|
||||||
|
|
||||||
auto_ptr<SecDNSRemType> remData(new SecDNSRemType());
|
auto_ptr<SecDNSRemType> remData(new SecDNSRemType());
|
||||||
|
@ -185,7 +185,7 @@ void testSecDNSRemoveAllAndAddKeyDataAndChangeMaxSigLife()
|
||||||
|
|
||||||
const string xml = updateCommand.toXML();
|
const string xml = updateCommand.toXML();
|
||||||
ASSERT_EQ(xml,
|
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><update><update xmlns=\"urn:ietf:params:xml:ns:domain-1.0\" xsi:schemaLocation=\"urn:ietf:params:xml:ns:domain-1.0 domain-1.0.xsd\"><name>ACTKUTST.com.au</name><chg><registrant>JTKCON</registrant><authInfo><pw>jtkUT3st</pw></authInfo></chg></update></update><extension><update xmlns=\"urn:ietf:params:xml:ns:secDNS-1.1\" urgent=\"true\"><rem><all>true</all></rem><add><keyData><flags>65535</flags><protocol>255</protocol><alg>255</alg><pubKey>AQPJ////4Q==</pubKey></keyData></add><chg><maxSigLife>604800</maxSigLife></chg></update></extension><clTRID>ACTKUTST.20140101.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><update><update xmlns=\"urn:ietf:params:xml:ns:domain-1.0\" xsi:schemaLocation=\"urn:ietf:params:xml:ns:domain-1.0 domain-1.0.xsd\"><name>ACTKUTST.mop.biz</name><chg><registrant>JTKCON</registrant><authInfo><pw>jtkUT3st</pw></authInfo></chg></update></update><extension><update xmlns=\"urn:ietf:params:xml:ns:secDNS-1.1\" urgent=\"true\"><rem><all>true</all></rem><add><keyData><flags>65535</flags><protocol>255</protocol><alg>255</alg><pubKey>AQPJ////4Q==</pubKey></keyData></add><chg><maxSigLife>604800</maxSigLife></chg></update></extension><clTRID>ACTKUTST.20140101.010101.0</clTRID></command></epp>"
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -23,7 +23,7 @@ enum acTKScenario {
|
||||||
/**
|
/**
|
||||||
* This factory provides instances of SessionManager implementations. The
|
* This factory provides instances of SessionManager implementations. The
|
||||||
* default SessionManager implementation is
|
* default SessionManager implementation is
|
||||||
* com.ausregistry.jtoolkit2.session.SessionManagerImpl. Alternative
|
* mop.bizsregistry.jtoolkit2.session.SessionManagerImpl. Alternative
|
||||||
* implementations may be loaded as described in the newInstance
|
* implementations may be loaded as described in the newInstance
|
||||||
* descriptions.
|
* descriptions.
|
||||||
*/
|
*/
|
||||||
|
@ -35,7 +35,7 @@ public:
|
||||||
/**
|
/**
|
||||||
* Create a new SessionManager instance. The implementation defaults to
|
* Create a new SessionManager instance. The implementation defaults to
|
||||||
* SessionManagerImpl but may be overridden by setting the system
|
* SessionManagerImpl but may be overridden by setting the system
|
||||||
* property com.ausregistry.jtoolkit2.sessionManager.class to the full
|
* property mop.bizsregistry.jtoolkit2.sessionManager.class to the full
|
||||||
* name of the alternative class.
|
* name of the alternative class.
|
||||||
*
|
*
|
||||||
* @param propertiesFile The location of a properties file to be used to
|
* @param propertiesFile The location of a properties file to be used to
|
||||||
|
@ -58,7 +58,7 @@ public:
|
||||||
/**
|
/**
|
||||||
* Create a new SessionManager instance. The implementation defaults to
|
* Create a new SessionManager instance. The implementation defaults to
|
||||||
* SessionManagerImpl but may be overridden by setting the system
|
* SessionManagerImpl but may be overridden by setting the system
|
||||||
* property com.ausregistry.jtoolkit2.sessionManager.class to the full
|
* property mop.bizsregistry.jtoolkit2.sessionManager.class to the full
|
||||||
* name of the alternative class.
|
* name of the alternative class.
|
||||||
*
|
*
|
||||||
* @param props SessionManager properties that have already been loaded.
|
* @param props SessionManager properties that have already been loaded.
|
||||||
|
|
|
@ -79,7 +79,7 @@ public:
|
||||||
* occur during processing. Use of the underlying session is protected
|
* occur during processing. Use of the underlying session is protected
|
||||||
* against concurrent use by other threads by using the
|
* against concurrent use by other threads by using the
|
||||||
* getSession/releaseSession features of this SessionManager's {@link
|
* getSession/releaseSession features of this SessionManager's {@link
|
||||||
* com.ausregistry.jtoolkit2.session.SessionPool}. This method guarantees
|
* mop.bizsregistry.jtoolkit2.session.SessionPool}. This method guarantees
|
||||||
* that the session used will be returned to the pool before the method
|
* that the session used will be returned to the pool before the method
|
||||||
* returns.
|
* returns.
|
||||||
*
|
*
|
||||||
|
|
|
@ -13,7 +13,7 @@ class StatsViewer;
|
||||||
/**
|
/**
|
||||||
* A SessionPool has responsibility for maintaining a persistent pool of EPP
|
* A SessionPool has responsibility for maintaining a persistent pool of EPP
|
||||||
* sessions to a single EPP server. A pool may only grow to the size specified
|
* sessions to a single EPP server. A pool may only grow to the size specified
|
||||||
* in its {@link com.ausregistry.jtoolkit2.session.SessionPoolProperties} and
|
* in its {@link mop.bizsregistry.jtoolkit2.session.SessionPoolProperties} and
|
||||||
* after successful initialisation may be instructed to hold sessions open for
|
* after successful initialisation may be instructed to hold sessions open for
|
||||||
* at least the time specified by the client timeout property. The client must
|
* at least the time specified by the client timeout property. The client must
|
||||||
* correctly specify the EPP server's timeout value in order for the
|
* correctly specify the EPP server's timeout value in order for the
|
||||||
|
|
|
@ -5,8 +5,8 @@
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Configure the behaviour of a SessionPool. {@link
|
* Configure the behaviour of a SessionPool. {@link
|
||||||
* com.ausregistry.jtoolkit2.session.Session}s in the pool are configured from
|
* mop.bizsregistry.jtoolkit2.session.Session}s in the pool are configured from
|
||||||
* the {@link com.ausregistry.jtoolkit2.session.SessionProperties} extended by
|
* the {@link mop.bizsregistry.jtoolkit2.session.SessionProperties} extended by
|
||||||
* this.
|
* this.
|
||||||
*/
|
*/
|
||||||
class SessionPoolProperties : public SessionProperties
|
class SessionPoolProperties : public SessionProperties
|
||||||
|
|
|
@ -14,14 +14,14 @@ public:
|
||||||
/**
|
/**
|
||||||
* Increment the result count for the given code. This is reflected in the
|
* Increment the result count for the given code. This is reflected in the
|
||||||
* return value of {@link
|
* return value of {@link
|
||||||
* com.ausregistry.jtoolkit2.session.StatsViewer#getResultCodeCount}.
|
* mop.bizsregistry.jtoolkit2.session.StatsViewer#getResultCodeCount}.
|
||||||
*/
|
*/
|
||||||
virtual void incResultCounter(int resultCode) = 0;
|
virtual void incResultCounter(int resultCode) = 0;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Increment the command count for the given command type. This is
|
* Increment the command count for the given command type. This is
|
||||||
* reflected in the return value of {@link
|
* reflected in the return value of {@link
|
||||||
* com.ausregistry.jtoolkit2.session.StatsViewer#getCommandCount}.
|
* mop.bizsregistry.jtoolkit2.session.StatsViewer#getCommandCount}.
|
||||||
*/
|
*/
|
||||||
virtual void incCommandCounter(const CommandType* type) = 0;
|
virtual void incCommandCounter(const CommandType* type) = 0;
|
||||||
};
|
};
|
||||||
|
|
|
@ -8,8 +8,8 @@
|
||||||
#include "session/StatsManager.hpp"
|
#include "session/StatsManager.hpp"
|
||||||
#include "se/DomainCheckCommand.hpp"
|
#include "se/DomainCheckCommand.hpp"
|
||||||
#include "se/DomainCheckResponse.hpp"
|
#include "se/DomainCheckResponse.hpp"
|
||||||
#include "se/LPE/LPCheck.hpp"
|
#include "se/LPE/LPChkCmdExtension.hpp"
|
||||||
#include "se/LPE/LPCreate.hpp"
|
//#include "se/LPE/LPCrtExtension.hpp"
|
||||||
#include "se/TransferOp.hpp"
|
#include "se/TransferOp.hpp"
|
||||||
#include "se/IntPostalInfo.hpp"
|
#include "se/IntPostalInfo.hpp"
|
||||||
#include "se/ContactCreateCommand.hpp"
|
#include "se/ContactCreateCommand.hpp"
|
||||||
|
@ -108,9 +108,9 @@ void ausRegEPPTK::doOTEB()
|
||||||
int cmd=0;
|
int cmd=0;
|
||||||
const char *thatAccount="secura2-ote", *thisAccount="secura1-ote";
|
const char *thatAccount="secura2-ote", *thisAccount="secura1-ote";
|
||||||
|
|
||||||
string op("newInstance");
|
string op("newInstance");
|
||||||
Transaction thisTest;
|
const string phase("sunrise");
|
||||||
LPLaunch *lpExts;
|
Transaction thisTest;
|
||||||
|
|
||||||
scenario(thisConfig->tkScenario,thisConfig->cfg_path);
|
scenario(thisConfig->tkScenario,thisConfig->cfg_path);
|
||||||
|
|
||||||
|
@ -185,7 +185,9 @@ void ausRegEPPTK::doOTEB()
|
||||||
|
|
||||||
theseLogs->logN(1,"(%d) LPE Check of unicycles.bike",cmd++);
|
theseLogs->logN(1,"(%d) LPE Check of unicycles.bike",cmd++);
|
||||||
|
|
||||||
LPCheck oteCommand_2("unicycles.bike");
|
DomainCheckCommand oteCommand_2("unicycles.bike");
|
||||||
|
LPChkCmdExtension lpe(&phase);
|
||||||
|
oteCommand_2.appendExtension(lpe);
|
||||||
DomainCheckResponse oteResponse_2;
|
DomainCheckResponse oteResponse_2;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
@ -287,7 +289,7 @@ void ausRegEPPTK::doOTEB()
|
||||||
|
|
||||||
theseLogs->logN(1,"(%d) Sunrise create %s with ICANN SMD test files.",cmd++,name5);
|
theseLogs->logN(1,"(%d) Sunrise create %s with ICANN SMD test files.",cmd++,name5);
|
||||||
|
|
||||||
LPCreate oteCommand_5(name5,pw,&RID, &tech, &ns, &admin, &billing);
|
DomainCreateCommand oteCommand_5(name5,pw,&RID, &tech, &ns, &admin, &billing);
|
||||||
DomainCreateResponse oteResponse_5;
|
DomainCreateResponse oteResponse_5;
|
||||||
|
|
||||||
thisTest = Transaction(&oteCommand_5, &oteResponse_5);
|
thisTest = Transaction(&oteCommand_5, &oteResponse_5);
|
||||||
|
@ -295,7 +297,7 @@ void ausRegEPPTK::doOTEB()
|
||||||
|
|
||||||
theseLogs->logN(1,"(%d) Create test-validate.claimsgasix (TCN).",cmd++);
|
theseLogs->logN(1,"(%d) Create test-validate.claimsgasix (TCN).",cmd++);
|
||||||
|
|
||||||
LPCreate oteCommand_6("test-validate.claimsgasix",pw,&RID, &tech, &ns, &admin, &billing);
|
DomainCreateCommand oteCommand_6("test-validate.claimsgasix",pw,&RID, &tech, &ns, &admin, &billing);
|
||||||
DomainCreateResponse oteResponse_6;
|
DomainCreateResponse oteResponse_6;
|
||||||
|
|
||||||
thisTest = Transaction(&oteCommand_6, &oteResponse_6);
|
thisTest = Transaction(&oteCommand_6, &oteResponse_6);
|
||||||
|
|
Loading…
Reference in New Issue