This commit is contained in:
Ren RenJuan 2014-01-11 02:22:40 +00:00
parent 46a1583e07
commit 8034a4c87a
102 changed files with 131 additions and 132 deletions

View File

@ -88,7 +88,7 @@ void init(const std::string& system_props_file)
static const Init doInit(system_props_file); static const Init doInit(system_props_file);
} }
std::string stdPropsPath("/home/jdaugherty/dnseppus/etc/toolkit2.conf"); std::string stdPropsPath(""/home/drde/etc/toolkit2.conf/toolkit2.conf");
void scenario(int scenario) void scenario(int scenario)
{ {

View File

@ -9,7 +9,7 @@ using namespace std;
void doWork() void doWork()
{ {
init("etc/toolkit2.conf"); init("/home/drde/etc/toolkit2.conf");
const string registrantName = "AusRegistry"; const string registrantName = "AusRegistry";
const string registrantID = "01241326211"; const string registrantID = "01241326211";

View File

@ -10,7 +10,7 @@ using namespace std;
void doWork() void doWork()
{ {
init("etc/toolkit2.conf"); init("/home/drde/etc/toolkit2.conf");
{ {
Timer::setTime("20070101.010101"); Timer::setTime("20070101.010101");
CLTRID::setClID("JTKUTEST"); CLTRID::setClID("JTKUTEST");

View File

@ -10,7 +10,7 @@ using namespace std;
void doWork() void doWork()
{ {
init("etc/toolkit2.conf"); init("/home/drde/etc/toolkit2.conf");
{ {
Timer::setTime("20070101.010101"); Timer::setTime("20070101.010101");
CLTRID::setClID("JTKUTEST"); CLTRID::setClID("JTKUTEST");

View File

@ -11,7 +11,7 @@ using namespace std;
void doWork() void doWork()
{ {
init("etc/toolkit2.conf"); init("/home/drde/etc/toolkit2.conf");
Timer::setTime("20070101.010101"); Timer::setTime("20070101.010101");
CLTRID::setClID("JTKUTEST"); CLTRID::setClID("JTKUTEST");

View File

@ -11,7 +11,7 @@ using namespace std;
void doWork() void doWork()
{ {
init("etc/toolkit2.conf"); init("/home/drde/etc/toolkit2.conf");
Timer::setTime("20070101.010101"); Timer::setTime("20070101.010101");
CLTRID::setClID("JTKUTEST"); CLTRID::setClID("JTKUTEST");

View File

@ -9,7 +9,7 @@ using namespace std;
void doWork() void doWork()
{ {
init("etc/toolkit2.conf"); init("/home/drde/etc/toolkit2.conf");
const string xml1 = const string xml1 =
"<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?><epp xmlns=\"urn:ietf:params:xml:ns:epp-1.0\"><response><result code=\"1000\"><msg>Command completed successfully</msg></result><resData><urenData xmlns=\"urn:X-ar:params:xml:ns:ardomain-1.0\"><name>example.com</name><exDate>2009-04-03T22:00:00.0Z</exDate></urenData></resData><trID><clTRID>ABC-12345</clTRID><svTRID>54321-XYZ</svTRID></trID></response></epp>"; "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?><epp xmlns=\"urn:ietf:params:xml:ns:epp-1.0\"><response><result code=\"1000\"><msg>Command completed successfully</msg></result><resData><urenData xmlns=\"urn:X-ar:params:xml:ns:ardomain-1.0\"><name>example.com</name><exDate>2009-04-03T22:00:00.0Z</exDate></urenData></resData><trID><clTRID>ABC-12345</clTRID><svTRID>54321-XYZ</svTRID></trID></response></epp>";
const string xml2 = const string xml2 =

View File

@ -9,7 +9,7 @@ using namespace std;
void doWork() void doWork()
{ {
init("etc/toolkit2.conf"); init("/home/drde/etc/toolkit2.conf");
const string registrantName = "AusRegistry"; const string registrantName = "AusRegistry";
const string registrantID = "01241326211"; const string registrantID = "01241326211";

View File

@ -8,7 +8,7 @@ using namespace std;
void doWork() void doWork()
{ {
init("etc/toolkit2.conf"); init("/home/drde/etc/toolkit2.conf");
const string xml = const string xml =
"<?xml version=\"1.0\" encoding=\"UTF-8\" standalone='no'?><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\"><response><result code=\"1000\"><msg>Command completed successfully</msg></result><resData><domain:infData xmlns:domain=\"urn:ietf:params:xml:ns:domain-1.0\" xsi:schemaLocation=\"urn:ietf:params:xml:ns:domain-1.0 domain-1.0.xsd\"><domain:name>example.com.au</domain:name><domain:roid>D0000003-AR</domain:roid><domain:status s=\"ok\" lang=\"en\"/><domain:registrant>EXAMPLE</domain:registrant><domain:contact type=\"tech\">EXAMPLE</domain:contact><domain:ns><domain:hostObj>ns1.example.com.au</domain:hostObj><domain:hostObj>ns2.example.com.au</domain:hostObj></domain:ns><domain:host>ns1.example.com.au</domain:host><domain:host>ns2.exmaple.com.au</domain:host><domain:clID>Registrar</domain:clID><domain:crID>Registrar</domain:crID><domain:crDate>2006-02-09T15:44:58.0Z</domain:crDate><domain:exDate>2008-02-10T00:00:00.0Z</domain:exDate><domain:authInfo><domain:pw>0192pqow</domain:pw></domain:authInfo></domain:infData></resData><extension><auext:infData xmlns:auext=\"urn:X-au:params:xml:ns:auext-1.1\" xsi:schemaLocation=\"urn:X-au:params:xml:ns:auext-1.1 auext-1.1.xsd\"><auext:auProperties><auext:registrantName>RegistrantName Pty. Ltd.</auext:registrantName><auext:registrantID type=\"ACN\">123456789</auext:registrantID><auext:eligibilityType>Other</auext:eligibilityType><auext:eligibilityName>Registrant Eligi</auext:eligibilityName><auext:eligibilityID type=\"ABN\">987654321</auext:eligibilityID><auext:policyReason>2</auext:policyReason></auext:auProperties></auext:infData></extension><trID><clTRID>ABC-12345</clTRID><svTRID>805</svTRID></trID></response></epp>"; "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone='no'?><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\"><response><result code=\"1000\"><msg>Command completed successfully</msg></result><resData><domain:infData xmlns:domain=\"urn:ietf:params:xml:ns:domain-1.0\" xsi:schemaLocation=\"urn:ietf:params:xml:ns:domain-1.0 domain-1.0.xsd\"><domain:name>example.com.au</domain:name><domain:roid>D0000003-AR</domain:roid><domain:status s=\"ok\" lang=\"en\"/><domain:registrant>EXAMPLE</domain:registrant><domain:contact type=\"tech\">EXAMPLE</domain:contact><domain:ns><domain:hostObj>ns1.example.com.au</domain:hostObj><domain:hostObj>ns2.example.com.au</domain:hostObj></domain:ns><domain:host>ns1.example.com.au</domain:host><domain:host>ns2.exmaple.com.au</domain:host><domain:clID>Registrar</domain:clID><domain:crID>Registrar</domain:crID><domain:crDate>2006-02-09T15:44:58.0Z</domain:crDate><domain:exDate>2008-02-10T00:00:00.0Z</domain:exDate><domain:authInfo><domain:pw>0192pqow</domain:pw></domain:authInfo></domain:infData></resData><extension><auext:infData xmlns:auext=\"urn:X-au:params:xml:ns:auext-1.1\" xsi:schemaLocation=\"urn:X-au:params:xml:ns:auext-1.1 auext-1.1.xsd\"><auext:auProperties><auext:registrantName>RegistrantName Pty. Ltd.</auext:registrantName><auext:registrantID type=\"ACN\">123456789</auext:registrantID><auext:eligibilityType>Other</auext:eligibilityType><auext:eligibilityName>Registrant Eligi</auext:eligibilityName><auext:eligibilityID type=\"ABN\">987654321</auext:eligibilityID><auext:policyReason>2</auext:policyReason></auext:auProperties></auext:infData></extension><trID><clTRID>ABC-12345</clTRID><svTRID>805</svTRID></trID></response></epp>";
AuDomainInfoResponse response; AuDomainInfoResponse response;

View File

@ -13,7 +13,7 @@ using namespace std;
void doWork() void doWork()
{ {
init("etc/toolkit2.conf"); init("/home/drde/etc/toolkit2.conf");
const string xml = const string xml =
"<?xml version=\"1.0\" encoding=\"UTF-8\" standalone='no'?><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\"><response><result code=\"1000\"><msg>Command completed successfully</msg></result><resData><domain:infData xmlns:domain=\"urn:ietf:params:xml:ns:domain-1.0\" xsi:schemaLocation=\"urn:ietf:params:xml:ns:domain-1.0 domain-1.0.xsd\"><domain:name>example.com.au</domain:name><domain:roid>D0000003-AR</domain:roid><domain:status s=\"ok\" lang=\"en\"/><domain:registrant>EXAMPLE</domain:registrant><domain:contact type=\"tech\">EXAMPLE</domain:contact><domain:ns><domain:hostObj>ns1.example.com.au</domain:hostObj><domain:hostObj>ns2.example.com.au</domain:hostObj></domain:ns><domain:host>ns1.example.com.au</domain:host><domain:host>ns2.exmaple.com.au</domain:host><domain:clID>Registrar</domain:clID><domain:crID>Registrar</domain:crID><domain:crDate>2006-02-09T15:44:58.0Z</domain:crDate><domain:exDate>2008-02-10T00:00:00.0Z</domain:exDate><domain:authInfo><domain:pw>0192pqow</domain:pw></domain:authInfo></domain:infData></resData><extension><auext:extensionAU xmlns:auext=\"urn:au:params:xml:ns:auext-1.0\" xsi:schemaLocation=\"urn:au:params:xml:ns:auext-1.0 auext-1.0.xsd\"><auext:info><auext:registrantName>RegistrantName Pty. Ltd.</auext:registrantName><auext:registrantID type=\"ACN\">123456789</auext:registrantID><auext:eligibilityType>Other</auext:eligibilityType><auext:eligibilityName>Registrant Eligi</auext:eligibilityName><auext:eligibilityID type=\"ABN\">987654321</auext:eligibilityID><auext:policyReason>2</auext:policyReason></auext:info></auext:extensionAU></extension><trID><clTRID>ABC-12345</clTRID><svTRID>805</svTRID></trID></response></epp>"; "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone='no'?><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\"><response><result code=\"1000\"><msg>Command completed successfully</msg></result><resData><domain:infData xmlns:domain=\"urn:ietf:params:xml:ns:domain-1.0\" xsi:schemaLocation=\"urn:ietf:params:xml:ns:domain-1.0 domain-1.0.xsd\"><domain:name>example.com.au</domain:name><domain:roid>D0000003-AR</domain:roid><domain:status s=\"ok\" lang=\"en\"/><domain:registrant>EXAMPLE</domain:registrant><domain:contact type=\"tech\">EXAMPLE</domain:contact><domain:ns><domain:hostObj>ns1.example.com.au</domain:hostObj><domain:hostObj>ns2.example.com.au</domain:hostObj></domain:ns><domain:host>ns1.example.com.au</domain:host><domain:host>ns2.exmaple.com.au</domain:host><domain:clID>Registrar</domain:clID><domain:crID>Registrar</domain:crID><domain:crDate>2006-02-09T15:44:58.0Z</domain:crDate><domain:exDate>2008-02-10T00:00:00.0Z</domain:exDate><domain:authInfo><domain:pw>0192pqow</domain:pw></domain:authInfo></domain:infData></resData><extension><auext:extensionAU xmlns:auext=\"urn:au:params:xml:ns:auext-1.0\" xsi:schemaLocation=\"urn:au:params:xml:ns:auext-1.0 auext-1.0.xsd\"><auext:info><auext:registrantName>RegistrantName Pty. Ltd.</auext:registrantName><auext:registrantID type=\"ACN\">123456789</auext:registrantID><auext:eligibilityType>Other</auext:eligibilityType><auext:eligibilityName>Registrant Eligi</auext:eligibilityName><auext:eligibilityID type=\"ABN\">987654321</auext:eligibilityID><auext:policyReason>2</auext:policyReason></auext:info></auext:extensionAU></extension><trID><clTRID>ABC-12345</clTRID><svTRID>805</svTRID></trID></response></epp>";

View File

@ -9,7 +9,7 @@ using namespace std;
void doWork() void doWork()
{ {
init("etc/toolkit2.conf"); init("/home/drde/etc/toolkit2.conf");
const string registrantName = "AusRegistry"; const string registrantName = "AusRegistry";
const string registrantID = "01241326211"; const string registrantID = "01241326211";

View File

@ -12,7 +12,7 @@ using namespace std;
void doWork() void doWork()
{ {
init("etc/toolkit2.conf"); init("/home/drde/etc/toolkit2.conf");
const int policyReason = 1; const int policyReason = 1;
const string registrantName = "AusRegistry"; const string registrantName = "AusRegistry";

View File

@ -9,7 +9,7 @@ using namespace std;
void doWork() void doWork()
{ {
init("etc/toolkit2.conf"); init("/home/drde/etc/toolkit2.conf");
const string xml = const string xml =
"<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?><epp xmlns=\"urn:ietf:params:xml:ns:epp-1.0\"><response><result code=\"1000\"><msg>Command completed successfully</msg></result><resData><rtrnData xmlns=\"urn:X-au:params:xml:ns:audomain-1.0\"><name>example.com</name><exDate>2009-04-03T22:00:00.0Z</exDate></rtrnData></resData><trID><clTRID>ABC-12345</clTRID><svTRID>54321-XYZ</svTRID></trID></response></epp>"; "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?><epp xmlns=\"urn:ietf:params:xml:ns:epp-1.0\"><response><result code=\"1000\"><msg>Command completed successfully</msg></result><resData><rtrnData xmlns=\"urn:X-au:params:xml:ns:audomain-1.0\"><name>example.com</name><exDate>2009-04-03T22:00:00.0Z</exDate></rtrnData></resData><trID><clTRID>ABC-12345</clTRID><svTRID>54321-XYZ</svTRID></trID></response></epp>";

View File

@ -8,7 +8,7 @@ using namespace std;
void doWork() void doWork()
{ {
init("etc/toolkit2.conf"); init("/home/drde/etc/toolkit2.conf");
{ {
Timer::setTime("20070101.010101"); Timer::setTime("20070101.010101");
CLTRID::setClID("JTKUTEST"); CLTRID::setClID("JTKUTEST");

View File

@ -8,7 +8,7 @@ using namespace std;
void doWork() void doWork()
{ {
init("etc/toolkit2.conf"); init("/home/drde/etc/toolkit2.conf");
const string xml = "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?><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\"><response><result code=\"1000\"><msg>Command completed successfully</msg></result><resData><contact:chkData xmlns:contact=\"urn:ietf:params:xml:ns:contact-1.0\" xsi:schemaLocation=\"urn:ietf:params:xml:ns:contact-1.0 contact-1.0.xsd\"><contact:cd><contact:id avail=\"1\">sh8013</contact:id></contact:cd><contact:cd><contact:id avail=\"0\">sah8013</contact:id><contact:reason>In use</contact:reason></contact:cd><contact:cd><contact:id avail=\"1\">8013sah</contact:id></contact:cd></contact:chkData></resData><trID><clTRID>ABC-12345</clTRID><svTRID>54322-XYZ</svTRID></trID></response></epp>"; const string xml = "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?><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\"><response><result code=\"1000\"><msg>Command completed successfully</msg></result><resData><contact:chkData xmlns:contact=\"urn:ietf:params:xml:ns:contact-1.0\" xsi:schemaLocation=\"urn:ietf:params:xml:ns:contact-1.0 contact-1.0.xsd\"><contact:cd><contact:id avail=\"1\">sh8013</contact:id></contact:cd><contact:cd><contact:id avail=\"0\">sah8013</contact:id><contact:reason>In use</contact:reason></contact:cd><contact:cd><contact:id avail=\"1\">8013sah</contact:id></contact:cd></contact:chkData></resData><trID><clTRID>ABC-12345</clTRID><svTRID>54322-XYZ</svTRID></trID></response></epp>";

View File

@ -10,7 +10,7 @@ using namespace std;
void doWork() void doWork()
{ {
init("etc/toolkit2.conf"); init("/home/drde/etc/toolkit2.conf");
{ {
CLTRID::setClID("JTKUTEST"); CLTRID::setClID("JTKUTEST");
Timer::setTime("20070101.010101"); Timer::setTime("20070101.010101");

View File

@ -10,7 +10,7 @@ using namespace std;
void doWork() void doWork()
{ {
init("etc/toolkit2.conf"); init("/home/drde/etc/toolkit2.conf");
{ {
CLTRID::setClID("JTKUTEST"); CLTRID::setClID("JTKUTEST");
Timer::setTime("20070101.010101"); Timer::setTime("20070101.010101");

View File

@ -13,7 +13,7 @@ using namespace std;
void doWork() void doWork()
{ {
init("etc/toolkit2.conf"); init("/home/drde/etc/toolkit2.conf");
const string xml( const string xml(
"<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?><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\"><response><result code=\"1000\"><msg>Command completed successfully</msg></result><resData><contact:infData xmlns:contact=\"urn:ietf:params:xml:ns:contact-1.0\" xsi:schemaLocation=\"urn:ietf:params:xml:ns:contact-1.0 contact-1.0.xsd\"><contact:id>sh8013</contact:id><contact:roid>SH8013-REP</contact:roid><contact:status s=\"linked\"/><contact:status s=\"clientDeleteProhibited\"/><contact:postalInfo type=\"int\"><contact:name>John Doe</contact:name><contact:org>Example Inc.</contact:org><contact:addr><contact:street>123 Example Dr.</contact:street><contact:street>Suite 100</contact:street><contact:city>Dulles</contact:city><contact:sp>VA</contact:sp><contact:pc>20166-6503</contact:pc><contact:cc>US</contact:cc></contact:addr></contact:postalInfo><contact:voice x=\"1234\">+1.7035555555</contact:voice><contact:fax>+1.7035555556</contact:fax><contact:email>jdoe@example.com</contact:email><contact:clID>ClientY</contact:clID><contact:crID>ClientX</contact:crID><contact:crDate>1999-04-03T22:00:00.0Z</contact:crDate><contact:upID>ClientX</contact:upID><contact:upDate>1999-12-03T09:00:00.0Z</contact:upDate><contact:trDate>2000-04-08T09:00:00.0Z</contact:trDate><contact:authInfo><contact:pw>2fooBAR</contact:pw></contact:authInfo></contact:infData></resData><trID><clTRID>ABC-12345</clTRID><svTRID>54322-XYZ</svTRID></trID></response></epp>"); "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?><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\"><response><result code=\"1000\"><msg>Command completed successfully</msg></result><resData><contact:infData xmlns:contact=\"urn:ietf:params:xml:ns:contact-1.0\" xsi:schemaLocation=\"urn:ietf:params:xml:ns:contact-1.0 contact-1.0.xsd\"><contact:id>sh8013</contact:id><contact:roid>SH8013-REP</contact:roid><contact:status s=\"linked\"/><contact:status s=\"clientDeleteProhibited\"/><contact:postalInfo type=\"int\"><contact:name>John Doe</contact:name><contact:org>Example Inc.</contact:org><contact:addr><contact:street>123 Example Dr.</contact:street><contact:street>Suite 100</contact:street><contact:city>Dulles</contact:city><contact:sp>VA</contact:sp><contact:pc>20166-6503</contact:pc><contact:cc>US</contact:cc></contact:addr></contact:postalInfo><contact:voice x=\"1234\">+1.7035555555</contact:voice><contact:fax>+1.7035555556</contact:fax><contact:email>jdoe@example.com</contact:email><contact:clID>ClientY</contact:clID><contact:crID>ClientX</contact:crID><contact:crDate>1999-04-03T22:00:00.0Z</contact:crDate><contact:upID>ClientX</contact:upID><contact:upDate>1999-12-03T09:00:00.0Z</contact:upDate><contact:trDate>2000-04-08T09:00:00.0Z</contact:trDate><contact:authInfo><contact:pw>2fooBAR</contact:pw></contact:authInfo></contact:infData></resData><trID><clTRID>ABC-12345</clTRID><svTRID>54322-XYZ</svTRID></trID></response></epp>");

View File

@ -12,7 +12,7 @@ using namespace std;
void doWork() void doWork()
{ {
init("etc/toolkit2.conf"); init("/home/drde/etc/toolkit2.conf");
{ {
Timer::setTime("20070101.010101"); Timer::setTime("20070101.010101");
CLTRID::setClID("JTKUTEST"); CLTRID::setClID("JTKUTEST");

View File

@ -10,7 +10,7 @@ using namespace std;
void doWork() void doWork()
{ {
init("etc/toolkit2.conf"); init("/home/drde/etc/toolkit2.conf");
{ {
CLTRID::setClID("JTKUTEST"); CLTRID::setClID("JTKUTEST");
Timer::setTime("20070101.010101"); Timer::setTime("20070101.010101");

View File

@ -12,7 +12,7 @@ using namespace std;
void doWork() void doWork()
{ {
init("etc/toolkit2.conf"); init("/home/drde/etc/toolkit2.conf");
const string xml = const string xml =
"<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?><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\"><response><result code=\"1000\"><msg>Command completed successfully</msg></result><resData><domain:chkData xmlns:domain=\"urn:ietf:params:xml:ns:domain-1.0\" xsi:schemaLocation=\"urn:ietf:params:xml:ns:domain-1.0 domain-1.0.xsd\"><domain:cd><domain:name avail=\"1\">example.com</domain:name></domain:cd><domain:cd><domain:name avail=\"0\">example.net</domain:name><domain:reason>In use</domain:reason></domain:cd><domain:cd><domain:name avail=\"1\">example.org</domain:name></domain:cd></domain:chkData></resData><trID><clTRID>ABC-12345</clTRID><svTRID>54322-XYZ</svTRID></trID></response></epp>"; "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?><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\"><response><result code=\"1000\"><msg>Command completed successfully</msg></result><resData><domain:chkData xmlns:domain=\"urn:ietf:params:xml:ns:domain-1.0\" xsi:schemaLocation=\"urn:ietf:params:xml:ns:domain-1.0 domain-1.0.xsd\"><domain:cd><domain:name avail=\"1\">example.com</domain:name></domain:cd><domain:cd><domain:name avail=\"0\">example.net</domain:name><domain:reason>In use</domain:reason></domain:cd><domain:cd><domain:name avail=\"1\">example.org</domain:name></domain:cd></domain:chkData></resData><trID><clTRID>ABC-12345</clTRID><svTRID>54322-XYZ</svTRID></trID></response></epp>";

View File

@ -10,7 +10,7 @@ using namespace std;
void doWork() void doWork()
{ {
init("etc/toolkit2.conf"); init("/home/drde/etc/toolkit2.conf");
{ {
CLTRID::setClID("JTKUTEST"); CLTRID::setClID("JTKUTEST");
Timer::setTime("20070101.010101"); Timer::setTime("20070101.010101");

View File

@ -10,7 +10,7 @@ using namespace std;
void doWork() void doWork()
{ {
init("etc/toolkit2.conf"); init("/home/drde/etc/toolkit2.conf");
{ {
CLTRID::setClID("JTKUTEST"); CLTRID::setClID("JTKUTEST");
Timer::setTime("20070101.010101"); Timer::setTime("20070101.010101");

View File

@ -113,7 +113,7 @@ void checkKeyValueList(const DomainInfoKVResponseExtension &kvExtension, const s
int main(int argc, char* argv[]) int main(int argc, char* argv[])
{ {
init("etc/toolkit2.conf"); init("/home/drde/etc/toolkit2.conf");
TEST_run(testNonExistentListName); TEST_run(testNonExistentListName);
TEST_run(testNonExistentItem); TEST_run(testNonExistentItem);
TEST_run(testNotInitialisedWhenNoKVExtensionPresent); TEST_run(testNotInitialisedWhenNoKVExtensionPresent);

View File

@ -82,7 +82,7 @@ void addSampleItemsToExtension(DomainKVCommandExtension &extension, const string
int main(int argc, char* argv[]) int main(int argc, char* argv[])
{ {
init("etc/toolkit2.conf"); init("/home/drde/etc/toolkit2.conf");
TEST_run(testUpdateSingleKVList); TEST_run(testUpdateSingleKVList);
TEST_run(testCreateSingleKVList); TEST_run(testCreateSingleKVList);
TEST_run(testMultipleKVList); TEST_run(testMultipleKVList);

View File

@ -66,7 +66,7 @@ void addSampleKVItems(DomainRegistrantTransferCommand *command)
int main(int argc, char* argv[]) int main(int argc, char* argv[])
{ {
init("etc/toolkit2.conf"); init("/home/drde/etc/toolkit2.conf");
TEST_run(testWithoutPeriod); TEST_run(testWithoutPeriod);
// TEST_run(testWithPeriod); // TEST_run(testWithPeriod);
return TEST_errorCount(); return TEST_errorCount();

View File

@ -9,7 +9,7 @@ using namespace std;
void doWork() void doWork()
{ {
init("etc/toolkit2.conf"); init("/home/drde/etc/toolkit2.conf");
const string xml = const string xml =
"<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?><epp xmlns=\"urn:ietf:params:xml:ns:epp-1.0\"><response><result code=\"1000\"><msg>Command completed successfully</msg></result><resData><rtrnData xmlns=\"urn:X-ar:params:xml:ns:registrant-1.0\"><name>example.com</name><exDate>2009-04-03T22:00:00.0Z</exDate></rtrnData></resData><trID><clTRID>ABC-12345</clTRID><svTRID>54321-XYZ</svTRID></trID></response></epp>"; "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?><epp xmlns=\"urn:ietf:params:xml:ns:epp-1.0\"><response><result code=\"1000\"><msg>Command completed successfully</msg></result><resData><rtrnData xmlns=\"urn:X-ar:params:xml:ns:registrant-1.0\"><name>example.com</name><exDate>2009-04-03T22:00:00.0Z</exDate></rtrnData></resData><trID><clTRID>ABC-12345</clTRID><svTRID>54321-XYZ</svTRID></trID></response></epp>";

View File

@ -10,7 +10,7 @@ using namespace std;
void doWork() void doWork()
{ {
init("etc/toolkit2.conf"); init("/home/drde/etc/toolkit2.conf");
{ {
CLTRID::setClID("JTKUTEST"); CLTRID::setClID("JTKUTEST");
Timer::setTime("20070101.010101"); Timer::setTime("20070101.010101");

View File

@ -113,7 +113,7 @@ void testSyncExpiryDateExtensionWithNullDate(void)
int main(int argc, char* argv[]) int main(int argc, char* argv[])
{ {
init("etc/toolkit2.conf"); init("/home/drde/etc/toolkit2.conf");
TEST_run(testSimpleUpdate); TEST_run(testSimpleUpdate);
TEST_run(testFullUpdate); TEST_run(testFullUpdate);
TEST_run(testSyncExpiryDateExtension); TEST_run(testSyncExpiryDateExtension);

View File

@ -10,7 +10,7 @@ using namespace std;
void doWork() void doWork()
{ {
init("etc/toolkit2.conf"); init("/home/drde/etc/toolkit2.conf");
const string xml = const string xml =
"<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?><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\"><response><result code=\"1000\"><msg>Command completed successfully</msg></result><resData><domain:infData xmlns:domain=\"urn:ietf:params:xml:ns:domain-1.0\" xsi:schemaLocation=\"urn:ietf:params:xml:ns:domain-1.0 domain-1.0.xsd\"><domain:name>3.8.0.0.6.9.2.3.6.1.4.4.e164.arpa</domain:name><domain:roid>EXAMPLE1-REP</domain:roid><domain:status s=\"ok\"/><domain:registrant>jd1234</domain:registrant><domain:contact type=\"admin\">sh8013</domain:contact><domain:contact type=\"tech\">sh8013</domain:contact><domain:ns><domain:hostObj>ns1.example.com</domain:hostObj><domain:hostObj>ns2.example.com</domain:hostObj></domain:ns><domain:host>ns1.example.com</domain:host><domain:host>ns2.example.com</domain:host><domain:clID>ClientX</domain:clID><domain:crID>ClientY</domain:crID><domain:crDate>1999-04-03T22:00:00.0Z</domain:crDate><domain:upID>ClientX</domain:upID><domain:upDate>1999-12-03T09:00:00.0Z</domain:upDate><domain:exDate>2005-04-03T22:00:00.0Z</domain:exDate><domain:trDate>2000-04-08T09:00:00.0Z</domain:trDate><domain:authInfo><domain:pw>2fooBAR</domain:pw></domain:authInfo></domain:infData></resData><extension><e164:infData xmlns:e164=\"urn:ietf:params:xml:ns:e164epp-1.0\" xsi:schemaLocation=\"urn:ietf:params:xml:ns:e164epp-1.0 e164epp-1.0.xsd\"><e164:naptr><e164:order>10</e164:order><e164:pref>100</e164:pref><e164:flags>u</e164:flags><e164:svc>E2U+sip</e164:svc><e164:regex>\"!^.*$!sip:info@example.com!\"</e164:regex></e164:naptr><e164:naptr><e164:order>10</e164:order><e164:pref>102</e164:pref><e164:flags>u</e164:flags><e164:svc>E2U+msg</e164:svc><e164:regex>\"!^.*$!mailto:info@example.com!\"</e164:regex></e164:naptr></e164:infData></extension><trID><clTRID>ABC-12345</clTRID><svTRID>54322-XYZ</svTRID></trID></response></epp>"; "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?><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\"><response><result code=\"1000\"><msg>Command completed successfully</msg></result><resData><domain:infData xmlns:domain=\"urn:ietf:params:xml:ns:domain-1.0\" xsi:schemaLocation=\"urn:ietf:params:xml:ns:domain-1.0 domain-1.0.xsd\"><domain:name>3.8.0.0.6.9.2.3.6.1.4.4.e164.arpa</domain:name><domain:roid>EXAMPLE1-REP</domain:roid><domain:status s=\"ok\"/><domain:registrant>jd1234</domain:registrant><domain:contact type=\"admin\">sh8013</domain:contact><domain:contact type=\"tech\">sh8013</domain:contact><domain:ns><domain:hostObj>ns1.example.com</domain:hostObj><domain:hostObj>ns2.example.com</domain:hostObj></domain:ns><domain:host>ns1.example.com</domain:host><domain:host>ns2.example.com</domain:host><domain:clID>ClientX</domain:clID><domain:crID>ClientY</domain:crID><domain:crDate>1999-04-03T22:00:00.0Z</domain:crDate><domain:upID>ClientX</domain:upID><domain:upDate>1999-12-03T09:00:00.0Z</domain:upDate><domain:exDate>2005-04-03T22:00:00.0Z</domain:exDate><domain:trDate>2000-04-08T09:00:00.0Z</domain:trDate><domain:authInfo><domain:pw>2fooBAR</domain:pw></domain:authInfo></domain:infData></resData><extension><e164:infData xmlns:e164=\"urn:ietf:params:xml:ns:e164epp-1.0\" xsi:schemaLocation=\"urn:ietf:params:xml:ns:e164epp-1.0 e164epp-1.0.xsd\"><e164:naptr><e164:order>10</e164:order><e164:pref>100</e164:pref><e164:flags>u</e164:flags><e164:svc>E2U+sip</e164:svc><e164:regex>\"!^.*$!sip:info@example.com!\"</e164:regex></e164:naptr><e164:naptr><e164:order>10</e164:order><e164:pref>102</e164:pref><e164:flags>u</e164:flags><e164:svc>E2U+msg</e164:svc><e164:regex>\"!^.*$!mailto:info@example.com!\"</e164:regex></e164:naptr></e164:infData></extension><trID><clTRID>ABC-12345</clTRID><svTRID>54322-XYZ</svTRID></trID></response></epp>";

View File

@ -9,7 +9,7 @@ using namespace std;
void doWork() void doWork()
{ {
init("etc/toolkit2.conf"); init("/home/drde/etc/toolkit2.conf");
CLTRID::setClID("JTKUTEST"); CLTRID::setClID("JTKUTEST");
Hello cmd; Hello cmd;

View File

@ -10,7 +10,7 @@ using namespace std;
void doWork() void doWork()
{ {
init("etc/toolkit2.conf"); init("/home/drde/etc/toolkit2.conf");
{ {
CLTRID::setClID("JTKUTEST"); CLTRID::setClID("JTKUTEST");
Timer::setTime("20070101.010101"); Timer::setTime("20070101.010101");

View File

@ -10,7 +10,7 @@ using namespace std;
void doWork() void doWork()
{ {
init("etc/toolkit2.conf"); init("/home/drde/etc/toolkit2.conf");
{ {
CLTRID::setClID("JTKUTEST"); CLTRID::setClID("JTKUTEST");
Timer::setTime("20070101.010101"); Timer::setTime("20070101.010101");

View File

@ -10,7 +10,7 @@ using namespace std;
void doWork() void doWork()
{ {
init("etc/toolkit2.conf"); init("/home/drde/etc/toolkit2.conf");
{ {
CLTRID::setClID("JTKUTEST"); CLTRID::setClID("JTKUTEST");
Timer::setTime("20070101.010101"); Timer::setTime("20070101.010101");

View File

@ -8,7 +8,7 @@ using namespace std;
void doWork() void doWork()
{ {
init("etc/toolkit2.conf"); init("/home/drde/etc/toolkit2.conf");
Timer::setTime("20070101.010101"); Timer::setTime("20070101.010101");
CLTRID::setClID("JTKUTEST"); CLTRID::setClID("JTKUTEST");

View File

@ -12,7 +12,7 @@ using namespace std;
void doWork() void doWork()
{ {
init("etc/toolkit2.conf"); init("/home/drde/etc/toolkit2.conf");
const string xml( const string xml(
"<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?><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\"><response><result code=\"1000\"><msg>Command completed successfully</msg></result><resData><host:infData xmlns:host=\"urn:ietf:params:xml:ns:host-1.0\" xsi:schemaLocation=\"urn:ietf:params:xml:ns:host-1.0 host-1.0.xsd\"><host:name>ns1.example.com</host:name><host:roid>NS1_EXAMPLE1-REP</host:roid><host:status s=\"linked\"/><host:status s=\"clientUpdateProhibited\"/><host:addr ip=\"v4\">192.0.2.2</host:addr><host:addr ip=\"v4\">192.0.2.29</host:addr><host:addr ip=\"v6\">1080:0:0:0:8:800:200C:417A</host:addr><host:clID>ClientY</host:clID><host:crID>ClientX</host:crID><host:crDate>1999-04-03T22:00:00.0Z</host:crDate><host:upID>ClientX</host:upID><host:upDate>1999-12-03T09:00:00.0Z</host:upDate><host:trDate>2000-04-08T09:00:00.0Z</host:trDate></host:infData></resData><trID><clTRID>ABC-12345</clTRID><svTRID>54322-XYZ</svTRID></trID></response></epp>"); "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?><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\"><response><result code=\"1000\"><msg>Command completed successfully</msg></result><resData><host:infData xmlns:host=\"urn:ietf:params:xml:ns:host-1.0\" xsi:schemaLocation=\"urn:ietf:params:xml:ns:host-1.0 host-1.0.xsd\"><host:name>ns1.example.com</host:name><host:roid>NS1_EXAMPLE1-REP</host:roid><host:status s=\"linked\"/><host:status s=\"clientUpdateProhibited\"/><host:addr ip=\"v4\">192.0.2.2</host:addr><host:addr ip=\"v4\">192.0.2.29</host:addr><host:addr ip=\"v6\">1080:0:0:0:8:800:200C:417A</host:addr><host:clID>ClientY</host:clID><host:crID>ClientX</host:crID><host:crDate>1999-04-03T22:00:00.0Z</host:crDate><host:upID>ClientX</host:upID><host:upDate>1999-12-03T09:00:00.0Z</host:upDate><host:trDate>2000-04-08T09:00:00.0Z</host:trDate></host:infData></resData><trID><clTRID>ABC-12345</clTRID><svTRID>54322-XYZ</svTRID></trID></response></epp>");

View File

@ -10,7 +10,7 @@ using namespace std;
void doWork() void doWork()
{ {
init("etc/toolkit2.conf"); init("/home/drde/etc/toolkit2.conf");
{ {
ASSERT_EQ(IPVersion::IPv4()->toString(), "v4"); ASSERT_EQ(IPVersion::IPv4()->toString(), "v4");
ASSERT_EQ(IPVersion::IPv6()->toString(), "v6"); ASSERT_EQ(IPVersion::IPv6()->toString(), "v6");

View File

@ -19,7 +19,7 @@ void doWork()
const vector<string> extURIs(1, "urn:au:params:xml:ns:auext-1.0"); const vector<string> extURIs(1, "urn:au:params:xml:ns:auext-1.0");
init("etc/toolkit2.conf"); init("/home/drde/etc/toolkit2.conf");
{ {
Timer::setTime("20070101.010101"); Timer::setTime("20070101.010101");
CLTRID::setClID("JTKUTEST"); CLTRID::setClID("JTKUTEST");

View File

@ -10,7 +10,7 @@ using namespace std;
void doWork() void doWork()
{ {
init("etc/toolkit2.conf"); init("/home/drde/etc/toolkit2.conf");
{ {
CLTRID::setClID("JTKUTEST"); CLTRID::setClID("JTKUTEST");
Timer::setTime("20070101.010101"); Timer::setTime("20070101.010101");

View File

@ -8,7 +8,7 @@ using namespace std;
void doWork() void doWork()
{ {
init("etc/toolkit2.conf"); init("/home/drde/etc/toolkit2.conf");
Timer::setTime("20070101.010101"); Timer::setTime("20070101.010101");
CLTRID::setClID("JTKUTEST"); CLTRID::setClID("JTKUTEST");

View File

@ -16,7 +16,7 @@ PollResponse& getPollResponse(const string xml);
void doWork() void doWork()
{ {
init("etc/toolkit2.conf"); init("/home/drde/etc/toolkit2.conf");
testContactTransferApprovePoll(); testContactTransferApprovePoll();
testDomainTransferApprovePoll(); testDomainTransferApprovePoll();

View File

@ -147,7 +147,7 @@ void testSecDNSJustKeyData()
int main(int argc, char* argv[]) int main(int argc, char* argv[])
{ {
init("etc/toolkit2.conf"); init("/home/drde/etc/toolkit2.conf");
TEST_run(testSecDNSAllFields); TEST_run(testSecDNSAllFields);
TEST_run(testSecDNSMultipleDSDataWithoutMaxSigLife); TEST_run(testSecDNSMultipleDSDataWithoutMaxSigLife);
TEST_run(testSecDNSAllFieldsMin); TEST_run(testSecDNSAllFieldsMin);

View File

@ -239,7 +239,7 @@ void buildXmlResponseBeforeExtension(const string& domainName,
int main(int argc, char* argv[]) int main(int argc, char* argv[])
{ {
init("etc/toolkit2.conf"); init("/home/drde/etc/toolkit2.conf");
TEST_run(testSecDNSInfoExtensionAllFields); TEST_run(testSecDNSInfoExtensionAllFields);
TEST_run(testSecDNSInfoExtensionOnlyKeyData); TEST_run(testSecDNSInfoExtensionOnlyKeyData);
TEST_run(testSecDNSInfoExtensionMultipleDsRecords); TEST_run(testSecDNSInfoExtensionMultipleDsRecords);

View File

@ -191,7 +191,7 @@ void testSecDNSRemoveAllAndAddKeyDataAndChangeMaxSigLife()
int main(int argc, char* argv[]) int main(int argc, char* argv[])
{ {
init("etc/toolkit2.conf"); init("/home/drde/etc/toolkit2.conf");
TEST_run(testSecDNSAddFieldsUrgent); TEST_run(testSecDNSAddFieldsUrgent);
TEST_run(testSecDNSRemoveFieldsNotUrgent); TEST_run(testSecDNSRemoveFieldsNotUrgent);
TEST_run(testSecDNSRemoveAll); TEST_run(testSecDNSRemoveAll);

View File

@ -88,7 +88,7 @@ void testPollCount()
int main(int argc, char* argv[]) int main(int argc, char* argv[])
{ {
init("etc/toolkit2.conf"); init("/home/drde/etc/toolkit2.conf");
TEST_run(testLoginCount); TEST_run(testLoginCount);
TEST_run(testMixedCommandsCount); TEST_run(testMixedCommandsCount);

View File

@ -26,7 +26,7 @@ static TestEnvironment props;
void doWork() void doWork()
{ {
if (!tkScenario) if (!tkScenario)
init("etc/toolkit2.conf"); init("/home/drde/etc/toolkit2.conf");
else else
scenario(tkScenario); scenario(tkScenario);

View File

@ -20,7 +20,7 @@ extern int tkScenario;
void doWork() void doWork()
{ {
if (!tkScenario) if (!tkScenario)
init("etc/toolkit2.conf"); init("/home/drde/etc/toolkit2.conf");
else else
scenario(tkScenario); scenario(tkScenario);
{ {

View File

@ -14,7 +14,6 @@ using namespace std;
/* /*
* This is the shell for the Unix Client Server (Cliever) daemon. * This is the shell for the Unix Client Server (Cliever) daemon.
* There is a different shell for the Windows Service.
* *
*/ */
void runCommander(); void runCommander();
@ -25,7 +24,7 @@ using namespace std;
using namespace boost::interprocess; using namespace boost::interprocess;
using namespace std; using namespace std;
void aucClientServer() { // AKA "Cliever" void acClientServer() { // AKA "Cliever"
int i,lfp; int i,lfp;
char str[10]; char str[10];
@ -45,19 +44,19 @@ void aucClientServer() { // AKA "Cliever"
if (lfp<0) {puts("Can't open lockfile!"); exit(1);} if (lfp<0) {puts("Can't open lockfile!"); exit(1);}
if (lockf(lfp,F_TLOCK,0)<0) if (lockf(lfp,F_TLOCK,0)<0)
{puts("Can't lock lockfile!"); exit(0);} {puts("Can't lock lockfile!"); exit(0);}
shared_memory_object shm(open_only, "auc-cd-global", read_write); shared_memory_object shm(open_only, "ac-cd-global", read_write);
mapped_region aucCDglobal(shm, read_write); mapped_region acCDglobal(shm, read_write);
gm = (auc_cd_global *)aucCDglobal.get_address(); gm = (ac_cd_global *)acCDglobal.get_address();
if (strcmp(gm->id,"auc-cd")) // Same deal if (strcmp(gm->id,"ac-cd")) // Same deal
{theseLogs.logN(0,"Daemon couldn't identify global memory. Bye."); exit(1);} {theseLogs.logN(0,"Daemon couldn't identify global memory. Bye."); exit(1);}
gm->daemon_pid = getpid(); gm->daemon_pid = getpid();
sprintf(str,"%d",getpid()); sprintf(str,"%d",getpid());
theseLogs.logN(1,"auc-cd running (%s)",str); theseLogs.logN(1,"ac-cd running (%s)",str);
strcat(str,"\n"); strcat(str,"\n");
write(lfp,str,strlen(str)); /* record pid to lockfile */ write(lfp,str,strlen(str)); /* record pid to lockfile */
setSignals(); setSignals();
theseLogs.init("auc-cd"); theseLogs.init("ac-cd");
theseLogs.logN(0,CD_NAME " " CD_VERSION " compiled on " __DATE__ " @ " __TIME__); theseLogs.logN(0,CD_NAME " " CD_VERSION " compiled on " __DATE__ " @ " __TIME__);
theseLogs.logN(3,"Cliever processing(%d) begins for devices on port %s to MD at %s.",getpid(),thisConfig->telemetryPortStr.c_str(),thisConfig->mdAddress.c_str()); theseLogs.logN(3,"Cliever processing(%d) begins for devices on port %s to MD at %s.",getpid(),thisConfig->telemetryPortStr.c_str(),thisConfig->mdAddress.c_str());
@ -82,14 +81,14 @@ void aucClientServer() { // AKA "Cliever"
if (!dataLayer.joinable() || !cliever.joinable()) { if (!dataLayer.joinable() || !cliever.joinable()) {
if (!dataLayer.joinable()) if (!dataLayer.joinable())
theseLogs.logN(0,"Failed to start data layer, auc-cd process will terminate."); theseLogs.logN(0,"Failed to start data layer, ac-cd process will terminate.");
if (!cliever.joinable()) if (!cliever.joinable())
theseLogs.logN(0,"Failed to start client-server, auc-cd process will terminate."); theseLogs.logN(0,"Failed to start client-server, ac-cd process will terminate.");
} }
else { else {
theseLogs.logN(0,"Cliever started OK."); theseLogs.logN(0,"Cliever started OK.");
dataLayer.join(); dataLayer.join();
theseLogs.logN(0,"auc-cd EOJ."); theseLogs.logN(0,"ac-cd EOJ.");
} }
} }
@ -117,17 +116,17 @@ int main(int const argc, const char ** const argv)
//RAII constructor/destructor //RAII constructor/destructor
struct shm_remove struct shm_remove
{ {
shm_remove() { shared_memory_object::remove("auc-cd-global"); } shm_remove() { shared_memory_object::remove("ac-cd-global"); }
~shm_remove() { shared_memory_object::remove("auc-cd-global"); } ~shm_remove() { shared_memory_object::remove("ac-cd-global"); }
} remover; } remover;
shared_memory_object shm(create_only, "auc-cd-global", read_write); shared_memory_object shm(create_only, "ac-cd-global", read_write);
shm.truncate(CD_GLOBAL_SIZE); shm.truncate(CD_GLOBAL_SIZE);
mapped_region aucCDglobal(shm, read_write); mapped_region acCDglobal(shm, read_write);
memset(aucCDglobal.get_address(), 0, aucCDglobal.get_size()); memset(acCDglobal.get_address(), 0, acCDglobal.get_size());
gm = (auc_cd_global *)aucCDglobal.get_address(); gm = (ac_cd_global *)acCDglobal.get_address();
strcpy(gm->id,"auc-cd"); strcpy(gm->id,"ac-cd");
strcmp(gm->id,"auc-cd"); // Will segfault if there is a problem so catches are are futile. strcmp(gm->id,"ac-cd"); // Will segfault if there is a problem so catches are are futile.
// But the signal trap will catch the fault. // But the signal trap will catch the fault.
thisConfig = new clientDaemonConfig(); thisConfig = new clientDaemonConfig();
@ -163,7 +162,7 @@ int main(int const argc, const char ** const argv)
} }
if (thisConfig->runCommander) printf(banner,thisConfig->shellProcess); if (thisConfig->runCommander) printf(banner,thisConfig->shellProcess);
aucClientServer(); acClientServer();
while(!gm->graceful) sleep(2); while(!gm->graceful) sleep(2);
} }
@ -173,16 +172,16 @@ void runCommander() {
int i; int i;
mdCommander commander; mdCommander commander;
theseLogs.init("auc-cd-ui"); theseLogs.init("ac-cd-ui");
theseLogs.logN(0,"Interactive command processor started."); theseLogs.logN(0,"Interactive command processor started.");
commander.driver(); commander.driver();
if (thisConfig->terminateRequest) { if (thisConfig->terminateRequest) {
theseLogs.logN(0,"Interactive shutdown requested."); theseLogs.logN(0,"Interactive shutdown requested.");
puts("auc-cd operator issued terminate command."); puts("ac-cd operator issued terminate command.");
kill(gm->daemon_pid,SIGTERM); kill(gm->daemon_pid,SIGTERM);
} else { } else {
theseLogs.logN(0,"Interactive command processor ended."); theseLogs.logN(0,"Interactive command processor ended.");
sprintf(msg,"Commander terminated, auc-cd continues (%d).",gm->daemon_pid); sprintf(msg,"Commander terminated, ac-cd continues (%d).",gm->daemon_pid);
puts(msg); puts(msg);
} }
@ -212,10 +211,10 @@ void signal_handler(int sig)
case SIGUSR1: case SIGUSR1:
break; break;
case SIGHUP: case SIGHUP:
theseLogs.logN(0,"hangup signal caught, currently auc-cd ignores this."); theseLogs.logN(0,"hangup signal caught, currently ac-cd ignores this.");
break; break;
case SIGTERM: case SIGTERM:
theseLogs.logN(0,"terminate signal caught, auc-cd will shutdown."); theseLogs.logN(0,"terminate signal caught, ac-cd will shutdown.");
cdShutdown termEvent; cdShutdown termEvent;
termEvent.send(); termEvent.send();
break; break;

View File

@ -1,4 +1,4 @@
#include "auc-cd.h" #include "ac-cd.h"
#include "log4cpp/Category.hh" #include "log4cpp/Category.hh"
#include "log4cpp/Appender.hh" #include "log4cpp/Appender.hh"
@ -19,7 +19,7 @@ using namespace log4cpp;
void cdLogger::init(const char *baseName) { void cdLogger::init(const char *baseName) {
const char *defaultBasename = "auc-cd-99"; const char *defaultBasename = "ac-cd-99";
char mainLogFileName[128]; char mainLogFileName[128];
if (!strlen(baseName)) strcpy(mainLogFileName,defaultBasename); if (!strlen(baseName)) strcpy(mainLogFileName,defaultBasename);

View File

@ -1,4 +1,4 @@
#include "auc-cd.h" #include "ac-cd.h"
#include "../server/Listener.cpp" #include "../server/Listener.cpp"
#include "../server/EventSender.cpp" #include "../server/EventSender.cpp"
#include <time.h> #include <time.h>

View File

@ -1,5 +1,5 @@
#include "auc-cd.h" #include "ac-cd.h"
int clientDaemonConfig::loadMachineConfiguration() { int clientDaemonConfig::loadMachineConfiguration() {

View File

@ -1,4 +1,4 @@
#include "auc-cd.h" #include "ac-cd.h"
int is_numeric(const char *p) { int i = strlen(p),j=0; int is_numeric(const char *p) { int i = strlen(p),j=0;
if (*p) { if (*p) {
@ -46,12 +46,12 @@ void mdCommander::driver() {
} }
if (strlen(rawString) >= 4 && strlen(rawString) <= 6 ) if (strlen(rawString) >= 4 && strlen(rawString) <= 6 )
{if (!strcmp(rawString,"log\n")) { {if (!strcmp(rawString,"log\n")) {
system("less /tmp/auc-cd.log"); system("less /tmp/ac-cd.log");
continue; continue;
} }
if (!strcmp(rawString,"rlog\n")) { if (!strcmp(rawString,"rlog\n")) {
system(PULL_MD_LOG); system(PULL_MD_LOG);
system("less auc-md.log"); system("less ac-md.log");
continue; continue;
} }
if (!strcmp(rawString,"clips\n")) { if (!strcmp(rawString,"clips\n")) {
@ -88,7 +88,7 @@ void mdCommander::driver() {
} }
void mdCommander::greet() { void mdCommander::greet() {
puts("auc-cd command processor"); puts("ac-cd command processor");
puts("Enter ? for help or a cliever low level command"); puts("Enter ? for help or a cliever low level command");
acceptingInput = true; acceptingInput = true;
SCPImode = true; SCPImode = true;

View File

@ -48,7 +48,7 @@
#define CD_EPOCH date() #define CD_EPOCH date()
#define CD_GLOBAL_SIZE 4096 #define CD_GLOBAL_SIZE 4096
#define CD_LOCK_FILE "auc-cd.lock" #define CD_LOCK_FILE "ac-cd.lock"
#define CD_NAME DACLIPS_APP " Cliever" #define CD_NAME DACLIPS_APP " Cliever"
#define CD_VERSION "1.1" #define CD_VERSION "1.1"
#define CD_REFRESH MD_HEARTBEAT // default milliseconds between telemetry frame updates #define CD_REFRESH MD_HEARTBEAT // default milliseconds between telemetry frame updates
@ -68,7 +68,7 @@ class mdCliever;
#ifdef CD_MAIN #ifdef CD_MAIN
auc_cd_global *gm; ac_cd_global *gm;
boost::asio::io_service io_bg,io_fg; boost::asio::io_service io_bg,io_fg;
cdLogger theseLogs; cdLogger theseLogs;
clientDaemonConfig *thisConfig; clientDaemonConfig *thisConfig;
@ -84,7 +84,7 @@ class mdCliever;
#else #else
extern auc_cd_global *gm; extern ac_cd_global *gm;
extern boost::asio::io_service io_bg,io_fg; extern boost::asio::io_service io_bg,io_fg;
extern const char *cdOrKb; extern const char *cdOrKb;
extern cdLogger theseLogs; extern cdLogger theseLogs;

View File

@ -55,6 +55,6 @@ struct CD_GLOBAL {
bool cmdrShutdown; bool cmdrShutdown;
bool graceful; bool graceful;
} }
auc_cd_global; ac_cd_global;
#endif #endif

View File

@ -102,7 +102,7 @@ enum md_mand {
MD_NMANDS MD_NMANDS
}; };
enum mdErrorCode { // In auc-md/kb index to masterDaemonConfig.err enum mdErrorCode { // In ac-md/kb index to masterDaemonConfig.err
MDERR_OK, MDERR_OK,
MDERR_MISSING, MDERR_MISSING,
MDERR_EXISTS, MDERR_EXISTS,

View File

@ -126,7 +126,7 @@ void masterDaemon::dispatch(const mdIncoming &what) {
int masterDaemon::initAusRegTK(void) { int masterDaemon::initAusRegTK(void) {
int rc=OK; int rc=OK;
const std::string nil("/home/jdaugherty/dnseppus/etc/toolkit2.conf"); const std::string nil(""/home/drde/etc/toolkit2.conf/toolkit2.conf");
try { try {

View File

@ -9,7 +9,7 @@ using namespace std;
void doWork() void doWork()
{ {
init("etc/toolkit2.conf"); init("/home/drde/etc/toolkit2.conf");
const string registrantName = "AusRegistry"; const string registrantName = "AusRegistry";
const string registrantID = "01241326211"; const string registrantID = "01241326211";

View File

@ -10,7 +10,7 @@ using namespace std;
void doWork() void doWork()
{ {
init("etc/toolkit2.conf"); init("/home/drde/etc/toolkit2.conf");
{ {
Timer::setTime("20070101.010101"); Timer::setTime("20070101.010101");
CLTRID::setClID("JTKUTEST"); CLTRID::setClID("JTKUTEST");

View File

@ -10,7 +10,7 @@ using namespace std;
void doWork() void doWork()
{ {
init("etc/toolkit2.conf"); init("/home/drde/etc/toolkit2.conf");
{ {
Timer::setTime("20070101.010101"); Timer::setTime("20070101.010101");
CLTRID::setClID("JTKUTEST"); CLTRID::setClID("JTKUTEST");

View File

@ -11,7 +11,7 @@ using namespace std;
void doWork() void doWork()
{ {
init("etc/toolkit2.conf"); init("/home/drde/etc/toolkit2.conf");
Timer::setTime("20070101.010101"); Timer::setTime("20070101.010101");
CLTRID::setClID("JTKUTEST"); CLTRID::setClID("JTKUTEST");

View File

@ -11,7 +11,7 @@ using namespace std;
void doWork() void doWork()
{ {
init("etc/toolkit2.conf"); init("/home/drde/etc/toolkit2.conf");
Timer::setTime("20070101.010101"); Timer::setTime("20070101.010101");
CLTRID::setClID("JTKUTEST"); CLTRID::setClID("JTKUTEST");

View File

@ -9,7 +9,7 @@ using namespace std;
void doWork() void doWork()
{ {
init("etc/toolkit2.conf"); init("/home/drde/etc/toolkit2.conf");
const string xml1 = const string xml1 =
"<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?><epp xmlns=\"urn:ietf:params:xml:ns:epp-1.0\"><response><result code=\"1000\"><msg>Command completed successfully</msg></result><resData><urenData xmlns=\"urn:X-ar:params:xml:ns:ardomain-1.0\"><name>example.com</name><exDate>2009-04-03T22:00:00.0Z</exDate></urenData></resData><trID><clTRID>ABC-12345</clTRID><svTRID>54321-XYZ</svTRID></trID></response></epp>"; "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?><epp xmlns=\"urn:ietf:params:xml:ns:epp-1.0\"><response><result code=\"1000\"><msg>Command completed successfully</msg></result><resData><urenData xmlns=\"urn:X-ar:params:xml:ns:ardomain-1.0\"><name>example.com</name><exDate>2009-04-03T22:00:00.0Z</exDate></urenData></resData><trID><clTRID>ABC-12345</clTRID><svTRID>54321-XYZ</svTRID></trID></response></epp>";
const string xml2 = const string xml2 =

View File

@ -9,7 +9,7 @@ using namespace std;
void doWork() void doWork()
{ {
init("etc/toolkit2.conf"); init("/home/drde/etc/toolkit2.conf");
const string registrantName = "AusRegistry"; const string registrantName = "AusRegistry";
const string registrantID = "01241326211"; const string registrantID = "01241326211";

View File

@ -8,7 +8,7 @@ using namespace std;
void doWork() void doWork()
{ {
init("etc/toolkit2.conf"); init("/home/drde/etc/toolkit2.conf");
const string xml = const string xml =
"<?xml version=\"1.0\" encoding=\"UTF-8\" standalone='no'?><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\"><response><result code=\"1000\"><msg>Command completed successfully</msg></result><resData><domain:infData xmlns:domain=\"urn:ietf:params:xml:ns:domain-1.0\" xsi:schemaLocation=\"urn:ietf:params:xml:ns:domain-1.0 domain-1.0.xsd\"><domain:name>example.com.au</domain:name><domain:roid>D0000003-AR</domain:roid><domain:status s=\"ok\" lang=\"en\"/><domain:registrant>EXAMPLE</domain:registrant><domain:contact type=\"tech\">EXAMPLE</domain:contact><domain:ns><domain:hostObj>ns1.example.com.au</domain:hostObj><domain:hostObj>ns2.example.com.au</domain:hostObj></domain:ns><domain:host>ns1.example.com.au</domain:host><domain:host>ns2.exmaple.com.au</domain:host><domain:clID>Registrar</domain:clID><domain:crID>Registrar</domain:crID><domain:crDate>2006-02-09T15:44:58.0Z</domain:crDate><domain:exDate>2008-02-10T00:00:00.0Z</domain:exDate><domain:authInfo><domain:pw>0192pqow</domain:pw></domain:authInfo></domain:infData></resData><extension><auext:infData xmlns:auext=\"urn:X-au:params:xml:ns:auext-1.1\" xsi:schemaLocation=\"urn:X-au:params:xml:ns:auext-1.1 auext-1.1.xsd\"><auext:auProperties><auext:registrantName>RegistrantName Pty. Ltd.</auext:registrantName><auext:registrantID type=\"ACN\">123456789</auext:registrantID><auext:eligibilityType>Other</auext:eligibilityType><auext:eligibilityName>Registrant Eligi</auext:eligibilityName><auext:eligibilityID type=\"ABN\">987654321</auext:eligibilityID><auext:policyReason>2</auext:policyReason></auext:auProperties></auext:infData></extension><trID><clTRID>ABC-12345</clTRID><svTRID>805</svTRID></trID></response></epp>"; "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone='no'?><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\"><response><result code=\"1000\"><msg>Command completed successfully</msg></result><resData><domain:infData xmlns:domain=\"urn:ietf:params:xml:ns:domain-1.0\" xsi:schemaLocation=\"urn:ietf:params:xml:ns:domain-1.0 domain-1.0.xsd\"><domain:name>example.com.au</domain:name><domain:roid>D0000003-AR</domain:roid><domain:status s=\"ok\" lang=\"en\"/><domain:registrant>EXAMPLE</domain:registrant><domain:contact type=\"tech\">EXAMPLE</domain:contact><domain:ns><domain:hostObj>ns1.example.com.au</domain:hostObj><domain:hostObj>ns2.example.com.au</domain:hostObj></domain:ns><domain:host>ns1.example.com.au</domain:host><domain:host>ns2.exmaple.com.au</domain:host><domain:clID>Registrar</domain:clID><domain:crID>Registrar</domain:crID><domain:crDate>2006-02-09T15:44:58.0Z</domain:crDate><domain:exDate>2008-02-10T00:00:00.0Z</domain:exDate><domain:authInfo><domain:pw>0192pqow</domain:pw></domain:authInfo></domain:infData></resData><extension><auext:infData xmlns:auext=\"urn:X-au:params:xml:ns:auext-1.1\" xsi:schemaLocation=\"urn:X-au:params:xml:ns:auext-1.1 auext-1.1.xsd\"><auext:auProperties><auext:registrantName>RegistrantName Pty. Ltd.</auext:registrantName><auext:registrantID type=\"ACN\">123456789</auext:registrantID><auext:eligibilityType>Other</auext:eligibilityType><auext:eligibilityName>Registrant Eligi</auext:eligibilityName><auext:eligibilityID type=\"ABN\">987654321</auext:eligibilityID><auext:policyReason>2</auext:policyReason></auext:auProperties></auext:infData></extension><trID><clTRID>ABC-12345</clTRID><svTRID>805</svTRID></trID></response></epp>";
AuDomainInfoResponse response; AuDomainInfoResponse response;

View File

@ -13,7 +13,7 @@ using namespace std;
void doWork() void doWork()
{ {
init("etc/toolkit2.conf"); init("/home/drde/etc/toolkit2.conf");
const string xml = const string xml =
"<?xml version=\"1.0\" encoding=\"UTF-8\" standalone='no'?><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\"><response><result code=\"1000\"><msg>Command completed successfully</msg></result><resData><domain:infData xmlns:domain=\"urn:ietf:params:xml:ns:domain-1.0\" xsi:schemaLocation=\"urn:ietf:params:xml:ns:domain-1.0 domain-1.0.xsd\"><domain:name>example.com.au</domain:name><domain:roid>D0000003-AR</domain:roid><domain:status s=\"ok\" lang=\"en\"/><domain:registrant>EXAMPLE</domain:registrant><domain:contact type=\"tech\">EXAMPLE</domain:contact><domain:ns><domain:hostObj>ns1.example.com.au</domain:hostObj><domain:hostObj>ns2.example.com.au</domain:hostObj></domain:ns><domain:host>ns1.example.com.au</domain:host><domain:host>ns2.exmaple.com.au</domain:host><domain:clID>Registrar</domain:clID><domain:crID>Registrar</domain:crID><domain:crDate>2006-02-09T15:44:58.0Z</domain:crDate><domain:exDate>2008-02-10T00:00:00.0Z</domain:exDate><domain:authInfo><domain:pw>0192pqow</domain:pw></domain:authInfo></domain:infData></resData><extension><auext:extensionAU xmlns:auext=\"urn:au:params:xml:ns:auext-1.0\" xsi:schemaLocation=\"urn:au:params:xml:ns:auext-1.0 auext-1.0.xsd\"><auext:info><auext:registrantName>RegistrantName Pty. Ltd.</auext:registrantName><auext:registrantID type=\"ACN\">123456789</auext:registrantID><auext:eligibilityType>Other</auext:eligibilityType><auext:eligibilityName>Registrant Eligi</auext:eligibilityName><auext:eligibilityID type=\"ABN\">987654321</auext:eligibilityID><auext:policyReason>2</auext:policyReason></auext:info></auext:extensionAU></extension><trID><clTRID>ABC-12345</clTRID><svTRID>805</svTRID></trID></response></epp>"; "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone='no'?><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\"><response><result code=\"1000\"><msg>Command completed successfully</msg></result><resData><domain:infData xmlns:domain=\"urn:ietf:params:xml:ns:domain-1.0\" xsi:schemaLocation=\"urn:ietf:params:xml:ns:domain-1.0 domain-1.0.xsd\"><domain:name>example.com.au</domain:name><domain:roid>D0000003-AR</domain:roid><domain:status s=\"ok\" lang=\"en\"/><domain:registrant>EXAMPLE</domain:registrant><domain:contact type=\"tech\">EXAMPLE</domain:contact><domain:ns><domain:hostObj>ns1.example.com.au</domain:hostObj><domain:hostObj>ns2.example.com.au</domain:hostObj></domain:ns><domain:host>ns1.example.com.au</domain:host><domain:host>ns2.exmaple.com.au</domain:host><domain:clID>Registrar</domain:clID><domain:crID>Registrar</domain:crID><domain:crDate>2006-02-09T15:44:58.0Z</domain:crDate><domain:exDate>2008-02-10T00:00:00.0Z</domain:exDate><domain:authInfo><domain:pw>0192pqow</domain:pw></domain:authInfo></domain:infData></resData><extension><auext:extensionAU xmlns:auext=\"urn:au:params:xml:ns:auext-1.0\" xsi:schemaLocation=\"urn:au:params:xml:ns:auext-1.0 auext-1.0.xsd\"><auext:info><auext:registrantName>RegistrantName Pty. Ltd.</auext:registrantName><auext:registrantID type=\"ACN\">123456789</auext:registrantID><auext:eligibilityType>Other</auext:eligibilityType><auext:eligibilityName>Registrant Eligi</auext:eligibilityName><auext:eligibilityID type=\"ABN\">987654321</auext:eligibilityID><auext:policyReason>2</auext:policyReason></auext:info></auext:extensionAU></extension><trID><clTRID>ABC-12345</clTRID><svTRID>805</svTRID></trID></response></epp>";

View File

@ -9,7 +9,7 @@ using namespace std;
void doWork() void doWork()
{ {
init("etc/toolkit2.conf"); init("/home/drde/etc/toolkit2.conf");
const string registrantName = "AusRegistry"; const string registrantName = "AusRegistry";
const string registrantID = "01241326211"; const string registrantID = "01241326211";

View File

@ -12,7 +12,7 @@ using namespace std;
void doWork() void doWork()
{ {
init("etc/toolkit2.conf"); init("/home/drde/etc/toolkit2.conf");
const int policyReason = 1; const int policyReason = 1;
const string registrantName = "AusRegistry"; const string registrantName = "AusRegistry";

View File

@ -9,7 +9,7 @@ using namespace std;
void doWork() void doWork()
{ {
init("etc/toolkit2.conf"); init("/home/drde/etc/toolkit2.conf");
const string xml = const string xml =
"<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?><epp xmlns=\"urn:ietf:params:xml:ns:epp-1.0\"><response><result code=\"1000\"><msg>Command completed successfully</msg></result><resData><rtrnData xmlns=\"urn:X-au:params:xml:ns:audomain-1.0\"><name>example.com</name><exDate>2009-04-03T22:00:00.0Z</exDate></rtrnData></resData><trID><clTRID>ABC-12345</clTRID><svTRID>54321-XYZ</svTRID></trID></response></epp>"; "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?><epp xmlns=\"urn:ietf:params:xml:ns:epp-1.0\"><response><result code=\"1000\"><msg>Command completed successfully</msg></result><resData><rtrnData xmlns=\"urn:X-au:params:xml:ns:audomain-1.0\"><name>example.com</name><exDate>2009-04-03T22:00:00.0Z</exDate></rtrnData></resData><trID><clTRID>ABC-12345</clTRID><svTRID>54321-XYZ</svTRID></trID></response></epp>";

View File

@ -8,7 +8,7 @@ using namespace std;
void doWork() void doWork()
{ {
init("etc/toolkit2.conf"); init("/home/drde/etc/toolkit2.conf");
{ {
Timer::setTime("20070101.010101"); Timer::setTime("20070101.010101");
CLTRID::setClID("JTKUTEST"); CLTRID::setClID("JTKUTEST");

View File

@ -8,7 +8,7 @@ using namespace std;
void doWork() void doWork()
{ {
init("etc/toolkit2.conf"); init("/home/drde/etc/toolkit2.conf");
const string xml = "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?><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\"><response><result code=\"1000\"><msg>Command completed successfully</msg></result><resData><contact:chkData xmlns:contact=\"urn:ietf:params:xml:ns:contact-1.0\" xsi:schemaLocation=\"urn:ietf:params:xml:ns:contact-1.0 contact-1.0.xsd\"><contact:cd><contact:id avail=\"1\">sh8013</contact:id></contact:cd><contact:cd><contact:id avail=\"0\">sah8013</contact:id><contact:reason>In use</contact:reason></contact:cd><contact:cd><contact:id avail=\"1\">8013sah</contact:id></contact:cd></contact:chkData></resData><trID><clTRID>ABC-12345</clTRID><svTRID>54322-XYZ</svTRID></trID></response></epp>"; const string xml = "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?><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\"><response><result code=\"1000\"><msg>Command completed successfully</msg></result><resData><contact:chkData xmlns:contact=\"urn:ietf:params:xml:ns:contact-1.0\" xsi:schemaLocation=\"urn:ietf:params:xml:ns:contact-1.0 contact-1.0.xsd\"><contact:cd><contact:id avail=\"1\">sh8013</contact:id></contact:cd><contact:cd><contact:id avail=\"0\">sah8013</contact:id><contact:reason>In use</contact:reason></contact:cd><contact:cd><contact:id avail=\"1\">8013sah</contact:id></contact:cd></contact:chkData></resData><trID><clTRID>ABC-12345</clTRID><svTRID>54322-XYZ</svTRID></trID></response></epp>";

View File

@ -10,7 +10,7 @@ using namespace std;
void doWork() void doWork()
{ {
init("etc/toolkit2.conf"); init("/home/drde/etc/toolkit2.conf");
{ {
CLTRID::setClID("JTKUTEST"); CLTRID::setClID("JTKUTEST");
Timer::setTime("20070101.010101"); Timer::setTime("20070101.010101");

View File

@ -10,7 +10,7 @@ using namespace std;
void doWork() void doWork()
{ {
init("etc/toolkit2.conf"); init("/home/drde/etc/toolkit2.conf");
{ {
CLTRID::setClID("JTKUTEST"); CLTRID::setClID("JTKUTEST");
Timer::setTime("20070101.010101"); Timer::setTime("20070101.010101");

View File

@ -13,7 +13,7 @@ using namespace std;
void doWork() void doWork()
{ {
init("etc/toolkit2.conf"); init("/home/drde/etc/toolkit2.conf");
const string xml( const string xml(
"<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?><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\"><response><result code=\"1000\"><msg>Command completed successfully</msg></result><resData><contact:infData xmlns:contact=\"urn:ietf:params:xml:ns:contact-1.0\" xsi:schemaLocation=\"urn:ietf:params:xml:ns:contact-1.0 contact-1.0.xsd\"><contact:id>sh8013</contact:id><contact:roid>SH8013-REP</contact:roid><contact:status s=\"linked\"/><contact:status s=\"clientDeleteProhibited\"/><contact:postalInfo type=\"int\"><contact:name>John Doe</contact:name><contact:org>Example Inc.</contact:org><contact:addr><contact:street>123 Example Dr.</contact:street><contact:street>Suite 100</contact:street><contact:city>Dulles</contact:city><contact:sp>VA</contact:sp><contact:pc>20166-6503</contact:pc><contact:cc>US</contact:cc></contact:addr></contact:postalInfo><contact:voice x=\"1234\">+1.7035555555</contact:voice><contact:fax>+1.7035555556</contact:fax><contact:email>jdoe@example.com</contact:email><contact:clID>ClientY</contact:clID><contact:crID>ClientX</contact:crID><contact:crDate>1999-04-03T22:00:00.0Z</contact:crDate><contact:upID>ClientX</contact:upID><contact:upDate>1999-12-03T09:00:00.0Z</contact:upDate><contact:trDate>2000-04-08T09:00:00.0Z</contact:trDate><contact:authInfo><contact:pw>2fooBAR</contact:pw></contact:authInfo></contact:infData></resData><trID><clTRID>ABC-12345</clTRID><svTRID>54322-XYZ</svTRID></trID></response></epp>"); "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?><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\"><response><result code=\"1000\"><msg>Command completed successfully</msg></result><resData><contact:infData xmlns:contact=\"urn:ietf:params:xml:ns:contact-1.0\" xsi:schemaLocation=\"urn:ietf:params:xml:ns:contact-1.0 contact-1.0.xsd\"><contact:id>sh8013</contact:id><contact:roid>SH8013-REP</contact:roid><contact:status s=\"linked\"/><contact:status s=\"clientDeleteProhibited\"/><contact:postalInfo type=\"int\"><contact:name>John Doe</contact:name><contact:org>Example Inc.</contact:org><contact:addr><contact:street>123 Example Dr.</contact:street><contact:street>Suite 100</contact:street><contact:city>Dulles</contact:city><contact:sp>VA</contact:sp><contact:pc>20166-6503</contact:pc><contact:cc>US</contact:cc></contact:addr></contact:postalInfo><contact:voice x=\"1234\">+1.7035555555</contact:voice><contact:fax>+1.7035555556</contact:fax><contact:email>jdoe@example.com</contact:email><contact:clID>ClientY</contact:clID><contact:crID>ClientX</contact:crID><contact:crDate>1999-04-03T22:00:00.0Z</contact:crDate><contact:upID>ClientX</contact:upID><contact:upDate>1999-12-03T09:00:00.0Z</contact:upDate><contact:trDate>2000-04-08T09:00:00.0Z</contact:trDate><contact:authInfo><contact:pw>2fooBAR</contact:pw></contact:authInfo></contact:infData></resData><trID><clTRID>ABC-12345</clTRID><svTRID>54322-XYZ</svTRID></trID></response></epp>");

View File

@ -12,7 +12,7 @@ using namespace std;
void doWork() void doWork()
{ {
init("etc/toolkit2.conf"); init("/home/drde/etc/toolkit2.conf");
{ {
Timer::setTime("20070101.010101"); Timer::setTime("20070101.010101");
CLTRID::setClID("JTKUTEST"); CLTRID::setClID("JTKUTEST");

View File

@ -10,7 +10,7 @@ using namespace std;
void doWork() void doWork()
{ {
init("etc/toolkit2.conf"); init("/home/drde/etc/toolkit2.conf");
{ {
CLTRID::setClID("JTKUTEST"); CLTRID::setClID("JTKUTEST");
Timer::setTime("20070101.010101"); Timer::setTime("20070101.010101");

View File

@ -12,7 +12,7 @@ using namespace std;
void doWork() void doWork()
{ {
init("etc/toolkit2.conf"); init("/home/drde/etc/toolkit2.conf");
const string xml = const string xml =
"<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?><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\"><response><result code=\"1000\"><msg>Command completed successfully</msg></result><resData><domain:chkData xmlns:domain=\"urn:ietf:params:xml:ns:domain-1.0\" xsi:schemaLocation=\"urn:ietf:params:xml:ns:domain-1.0 domain-1.0.xsd\"><domain:cd><domain:name avail=\"1\">example.com</domain:name></domain:cd><domain:cd><domain:name avail=\"0\">example.net</domain:name><domain:reason>In use</domain:reason></domain:cd><domain:cd><domain:name avail=\"1\">example.org</domain:name></domain:cd></domain:chkData></resData><trID><clTRID>ABC-12345</clTRID><svTRID>54322-XYZ</svTRID></trID></response></epp>"; "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?><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\"><response><result code=\"1000\"><msg>Command completed successfully</msg></result><resData><domain:chkData xmlns:domain=\"urn:ietf:params:xml:ns:domain-1.0\" xsi:schemaLocation=\"urn:ietf:params:xml:ns:domain-1.0 domain-1.0.xsd\"><domain:cd><domain:name avail=\"1\">example.com</domain:name></domain:cd><domain:cd><domain:name avail=\"0\">example.net</domain:name><domain:reason>In use</domain:reason></domain:cd><domain:cd><domain:name avail=\"1\">example.org</domain:name></domain:cd></domain:chkData></resData><trID><clTRID>ABC-12345</clTRID><svTRID>54322-XYZ</svTRID></trID></response></epp>";

View File

@ -10,7 +10,7 @@ using namespace std;
void doWork() void doWork()
{ {
init("etc/toolkit2.conf"); init("/home/drde/etc/toolkit2.conf");
{ {
CLTRID::setClID("JTKUTEST"); CLTRID::setClID("JTKUTEST");
Timer::setTime("20070101.010101"); Timer::setTime("20070101.010101");

View File

@ -10,7 +10,7 @@ using namespace std;
void doWork() void doWork()
{ {
init("etc/toolkit2.conf"); init("/home/drde/etc/toolkit2.conf");
{ {
CLTRID::setClID("JTKUTEST"); CLTRID::setClID("JTKUTEST");
Timer::setTime("20070101.010101"); Timer::setTime("20070101.010101");

View File

@ -113,7 +113,7 @@ void checkKeyValueList(const DomainInfoKVResponseExtension &kvExtension, const s
int main(int argc, char* argv[]) int main(int argc, char* argv[])
{ {
init("etc/toolkit2.conf"); init("/home/drde/etc/toolkit2.conf");
TEST_run(testNonExistentListName); TEST_run(testNonExistentListName);
TEST_run(testNonExistentItem); TEST_run(testNonExistentItem);
TEST_run(testNotInitialisedWhenNoKVExtensionPresent); TEST_run(testNotInitialisedWhenNoKVExtensionPresent);

View File

@ -82,7 +82,7 @@ void addSampleItemsToExtension(DomainKVCommandExtension &extension, const string
int main(int argc, char* argv[]) int main(int argc, char* argv[])
{ {
init("etc/toolkit2.conf"); init("/home/drde/etc/toolkit2.conf");
TEST_run(testUpdateSingleKVList); TEST_run(testUpdateSingleKVList);
TEST_run(testCreateSingleKVList); TEST_run(testCreateSingleKVList);
TEST_run(testMultipleKVList); TEST_run(testMultipleKVList);

View File

@ -66,7 +66,7 @@ void addSampleKVItems(DomainRegistrantTransferCommand *command)
int main(int argc, char* argv[]) int main(int argc, char* argv[])
{ {
init("etc/toolkit2.conf"); init("/home/drde/etc/toolkit2.conf");
TEST_run(testWithoutPeriod); TEST_run(testWithoutPeriod);
// TEST_run(testWithPeriod); // TEST_run(testWithPeriod);
return TEST_errorCount(); return TEST_errorCount();

View File

@ -9,7 +9,7 @@ using namespace std;
void doWork() void doWork()
{ {
init("etc/toolkit2.conf"); init("/home/drde/etc/toolkit2.conf");
const string xml = const string xml =
"<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?><epp xmlns=\"urn:ietf:params:xml:ns:epp-1.0\"><response><result code=\"1000\"><msg>Command completed successfully</msg></result><resData><rtrnData xmlns=\"urn:X-ar:params:xml:ns:registrant-1.0\"><name>example.com</name><exDate>2009-04-03T22:00:00.0Z</exDate></rtrnData></resData><trID><clTRID>ABC-12345</clTRID><svTRID>54321-XYZ</svTRID></trID></response></epp>"; "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?><epp xmlns=\"urn:ietf:params:xml:ns:epp-1.0\"><response><result code=\"1000\"><msg>Command completed successfully</msg></result><resData><rtrnData xmlns=\"urn:X-ar:params:xml:ns:registrant-1.0\"><name>example.com</name><exDate>2009-04-03T22:00:00.0Z</exDate></rtrnData></resData><trID><clTRID>ABC-12345</clTRID><svTRID>54321-XYZ</svTRID></trID></response></epp>";

View File

@ -10,7 +10,7 @@ using namespace std;
void doWork() void doWork()
{ {
init("etc/toolkit2.conf"); init("/home/drde/etc/toolkit2.conf");
{ {
CLTRID::setClID("JTKUTEST"); CLTRID::setClID("JTKUTEST");
Timer::setTime("20070101.010101"); Timer::setTime("20070101.010101");

View File

@ -113,7 +113,7 @@ void testSyncExpiryDateExtensionWithNullDate(void)
int main(int argc, char* argv[]) int main(int argc, char* argv[])
{ {
init("etc/toolkit2.conf"); init("/home/drde/etc/toolkit2.conf");
TEST_run(testSimpleUpdate); TEST_run(testSimpleUpdate);
TEST_run(testFullUpdate); TEST_run(testFullUpdate);
TEST_run(testSyncExpiryDateExtension); TEST_run(testSyncExpiryDateExtension);

View File

@ -10,7 +10,7 @@ using namespace std;
void doWork() void doWork()
{ {
init("etc/toolkit2.conf"); init("/home/drde/etc/toolkit2.conf");
const string xml = const string xml =
"<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?><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\"><response><result code=\"1000\"><msg>Command completed successfully</msg></result><resData><domain:infData xmlns:domain=\"urn:ietf:params:xml:ns:domain-1.0\" xsi:schemaLocation=\"urn:ietf:params:xml:ns:domain-1.0 domain-1.0.xsd\"><domain:name>3.8.0.0.6.9.2.3.6.1.4.4.e164.arpa</domain:name><domain:roid>EXAMPLE1-REP</domain:roid><domain:status s=\"ok\"/><domain:registrant>jd1234</domain:registrant><domain:contact type=\"admin\">sh8013</domain:contact><domain:contact type=\"tech\">sh8013</domain:contact><domain:ns><domain:hostObj>ns1.example.com</domain:hostObj><domain:hostObj>ns2.example.com</domain:hostObj></domain:ns><domain:host>ns1.example.com</domain:host><domain:host>ns2.example.com</domain:host><domain:clID>ClientX</domain:clID><domain:crID>ClientY</domain:crID><domain:crDate>1999-04-03T22:00:00.0Z</domain:crDate><domain:upID>ClientX</domain:upID><domain:upDate>1999-12-03T09:00:00.0Z</domain:upDate><domain:exDate>2005-04-03T22:00:00.0Z</domain:exDate><domain:trDate>2000-04-08T09:00:00.0Z</domain:trDate><domain:authInfo><domain:pw>2fooBAR</domain:pw></domain:authInfo></domain:infData></resData><extension><e164:infData xmlns:e164=\"urn:ietf:params:xml:ns:e164epp-1.0\" xsi:schemaLocation=\"urn:ietf:params:xml:ns:e164epp-1.0 e164epp-1.0.xsd\"><e164:naptr><e164:order>10</e164:order><e164:pref>100</e164:pref><e164:flags>u</e164:flags><e164:svc>E2U+sip</e164:svc><e164:regex>\"!^.*$!sip:info@example.com!\"</e164:regex></e164:naptr><e164:naptr><e164:order>10</e164:order><e164:pref>102</e164:pref><e164:flags>u</e164:flags><e164:svc>E2U+msg</e164:svc><e164:regex>\"!^.*$!mailto:info@example.com!\"</e164:regex></e164:naptr></e164:infData></extension><trID><clTRID>ABC-12345</clTRID><svTRID>54322-XYZ</svTRID></trID></response></epp>"; "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?><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\"><response><result code=\"1000\"><msg>Command completed successfully</msg></result><resData><domain:infData xmlns:domain=\"urn:ietf:params:xml:ns:domain-1.0\" xsi:schemaLocation=\"urn:ietf:params:xml:ns:domain-1.0 domain-1.0.xsd\"><domain:name>3.8.0.0.6.9.2.3.6.1.4.4.e164.arpa</domain:name><domain:roid>EXAMPLE1-REP</domain:roid><domain:status s=\"ok\"/><domain:registrant>jd1234</domain:registrant><domain:contact type=\"admin\">sh8013</domain:contact><domain:contact type=\"tech\">sh8013</domain:contact><domain:ns><domain:hostObj>ns1.example.com</domain:hostObj><domain:hostObj>ns2.example.com</domain:hostObj></domain:ns><domain:host>ns1.example.com</domain:host><domain:host>ns2.example.com</domain:host><domain:clID>ClientX</domain:clID><domain:crID>ClientY</domain:crID><domain:crDate>1999-04-03T22:00:00.0Z</domain:crDate><domain:upID>ClientX</domain:upID><domain:upDate>1999-12-03T09:00:00.0Z</domain:upDate><domain:exDate>2005-04-03T22:00:00.0Z</domain:exDate><domain:trDate>2000-04-08T09:00:00.0Z</domain:trDate><domain:authInfo><domain:pw>2fooBAR</domain:pw></domain:authInfo></domain:infData></resData><extension><e164:infData xmlns:e164=\"urn:ietf:params:xml:ns:e164epp-1.0\" xsi:schemaLocation=\"urn:ietf:params:xml:ns:e164epp-1.0 e164epp-1.0.xsd\"><e164:naptr><e164:order>10</e164:order><e164:pref>100</e164:pref><e164:flags>u</e164:flags><e164:svc>E2U+sip</e164:svc><e164:regex>\"!^.*$!sip:info@example.com!\"</e164:regex></e164:naptr><e164:naptr><e164:order>10</e164:order><e164:pref>102</e164:pref><e164:flags>u</e164:flags><e164:svc>E2U+msg</e164:svc><e164:regex>\"!^.*$!mailto:info@example.com!\"</e164:regex></e164:naptr></e164:infData></extension><trID><clTRID>ABC-12345</clTRID><svTRID>54322-XYZ</svTRID></trID></response></epp>";

View File

@ -9,7 +9,7 @@ using namespace std;
void doWork() void doWork()
{ {
init("etc/toolkit2.conf"); init("/home/drde/etc/toolkit2.conf");
CLTRID::setClID("JTKUTEST"); CLTRID::setClID("JTKUTEST");
Hello cmd; Hello cmd;

View File

@ -10,7 +10,7 @@ using namespace std;
void doWork() void doWork()
{ {
init("etc/toolkit2.conf"); init("/home/drde/etc/toolkit2.conf");
{ {
CLTRID::setClID("JTKUTEST"); CLTRID::setClID("JTKUTEST");
Timer::setTime("20070101.010101"); Timer::setTime("20070101.010101");

View File

@ -10,7 +10,7 @@ using namespace std;
void doWork() void doWork()
{ {
init("etc/toolkit2.conf"); init("/home/drde/etc/toolkit2.conf");
{ {
CLTRID::setClID("JTKUTEST"); CLTRID::setClID("JTKUTEST");
Timer::setTime("20070101.010101"); Timer::setTime("20070101.010101");

View File

@ -10,7 +10,7 @@ using namespace std;
void doWork() void doWork()
{ {
init("etc/toolkit2.conf"); init("/home/drde/etc/toolkit2.conf");
{ {
CLTRID::setClID("JTKUTEST"); CLTRID::setClID("JTKUTEST");
Timer::setTime("20070101.010101"); Timer::setTime("20070101.010101");

View File

@ -8,7 +8,7 @@ using namespace std;
void doWork() void doWork()
{ {
init("etc/toolkit2.conf"); init("/home/drde/etc/toolkit2.conf");
Timer::setTime("20070101.010101"); Timer::setTime("20070101.010101");
CLTRID::setClID("JTKUTEST"); CLTRID::setClID("JTKUTEST");

View File

@ -12,7 +12,7 @@ using namespace std;
void doWork() void doWork()
{ {
init("etc/toolkit2.conf"); init("/home/drde/etc/toolkit2.conf");
const string xml( const string xml(
"<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?><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\"><response><result code=\"1000\"><msg>Command completed successfully</msg></result><resData><host:infData xmlns:host=\"urn:ietf:params:xml:ns:host-1.0\" xsi:schemaLocation=\"urn:ietf:params:xml:ns:host-1.0 host-1.0.xsd\"><host:name>ns1.example.com</host:name><host:roid>NS1_EXAMPLE1-REP</host:roid><host:status s=\"linked\"/><host:status s=\"clientUpdateProhibited\"/><host:addr ip=\"v4\">192.0.2.2</host:addr><host:addr ip=\"v4\">192.0.2.29</host:addr><host:addr ip=\"v6\">1080:0:0:0:8:800:200C:417A</host:addr><host:clID>ClientY</host:clID><host:crID>ClientX</host:crID><host:crDate>1999-04-03T22:00:00.0Z</host:crDate><host:upID>ClientX</host:upID><host:upDate>1999-12-03T09:00:00.0Z</host:upDate><host:trDate>2000-04-08T09:00:00.0Z</host:trDate></host:infData></resData><trID><clTRID>ABC-12345</clTRID><svTRID>54322-XYZ</svTRID></trID></response></epp>"); "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?><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\"><response><result code=\"1000\"><msg>Command completed successfully</msg></result><resData><host:infData xmlns:host=\"urn:ietf:params:xml:ns:host-1.0\" xsi:schemaLocation=\"urn:ietf:params:xml:ns:host-1.0 host-1.0.xsd\"><host:name>ns1.example.com</host:name><host:roid>NS1_EXAMPLE1-REP</host:roid><host:status s=\"linked\"/><host:status s=\"clientUpdateProhibited\"/><host:addr ip=\"v4\">192.0.2.2</host:addr><host:addr ip=\"v4\">192.0.2.29</host:addr><host:addr ip=\"v6\">1080:0:0:0:8:800:200C:417A</host:addr><host:clID>ClientY</host:clID><host:crID>ClientX</host:crID><host:crDate>1999-04-03T22:00:00.0Z</host:crDate><host:upID>ClientX</host:upID><host:upDate>1999-12-03T09:00:00.0Z</host:upDate><host:trDate>2000-04-08T09:00:00.0Z</host:trDate></host:infData></resData><trID><clTRID>ABC-12345</clTRID><svTRID>54322-XYZ</svTRID></trID></response></epp>");

View File

@ -10,7 +10,7 @@ using namespace std;
void doWork() void doWork()
{ {
init("etc/toolkit2.conf"); init("/home/drde/etc/toolkit2.conf");
{ {
ASSERT_EQ(IPVersion::IPv4()->toString(), "v4"); ASSERT_EQ(IPVersion::IPv4()->toString(), "v4");
ASSERT_EQ(IPVersion::IPv6()->toString(), "v6"); ASSERT_EQ(IPVersion::IPv6()->toString(), "v6");

View File

@ -19,7 +19,7 @@ void doWork()
const vector<string> extURIs(1, "urn:au:params:xml:ns:auext-1.0"); const vector<string> extURIs(1, "urn:au:params:xml:ns:auext-1.0");
init("etc/toolkit2.conf"); init("/home/drde/etc/toolkit2.conf");
{ {
Timer::setTime("20070101.010101"); Timer::setTime("20070101.010101");
CLTRID::setClID("JTKUTEST"); CLTRID::setClID("JTKUTEST");

View File

@ -10,7 +10,7 @@ using namespace std;
void doWork() void doWork()
{ {
init("etc/toolkit2.conf"); init("/home/drde/etc/toolkit2.conf");
{ {
CLTRID::setClID("JTKUTEST"); CLTRID::setClID("JTKUTEST");
Timer::setTime("20070101.010101"); Timer::setTime("20070101.010101");

View File

@ -8,7 +8,7 @@ using namespace std;
void doWork() void doWork()
{ {
init("etc/toolkit2.conf"); init("/home/drde/etc/toolkit2.conf");
Timer::setTime("20070101.010101"); Timer::setTime("20070101.010101");
CLTRID::setClID("JTKUTEST"); CLTRID::setClID("JTKUTEST");

View File

@ -16,7 +16,7 @@ PollResponse& getPollResponse(const string xml);
void doWork() void doWork()
{ {
init("etc/toolkit2.conf"); init("/home/drde/etc/toolkit2.conf");
testContactTransferApprovePoll(); testContactTransferApprovePoll();
testDomainTransferApprovePoll(); testDomainTransferApprovePoll();

View File

@ -147,7 +147,7 @@ void testSecDNSJustKeyData()
int main(int argc, char* argv[]) int main(int argc, char* argv[])
{ {
init("etc/toolkit2.conf"); init("/home/drde/etc/toolkit2.conf");
TEST_run(testSecDNSAllFields); TEST_run(testSecDNSAllFields);
TEST_run(testSecDNSMultipleDSDataWithoutMaxSigLife); TEST_run(testSecDNSMultipleDSDataWithoutMaxSigLife);
TEST_run(testSecDNSAllFieldsMin); TEST_run(testSecDNSAllFieldsMin);

View File

@ -239,7 +239,7 @@ void buildXmlResponseBeforeExtension(const string& domainName,
int main(int argc, char* argv[]) int main(int argc, char* argv[])
{ {
init("etc/toolkit2.conf"); init("/home/drde/etc/toolkit2.conf");
TEST_run(testSecDNSInfoExtensionAllFields); TEST_run(testSecDNSInfoExtensionAllFields);
TEST_run(testSecDNSInfoExtensionOnlyKeyData); TEST_run(testSecDNSInfoExtensionOnlyKeyData);
TEST_run(testSecDNSInfoExtensionMultipleDsRecords); TEST_run(testSecDNSInfoExtensionMultipleDsRecords);

View File

@ -191,7 +191,7 @@ void testSecDNSRemoveAllAndAddKeyDataAndChangeMaxSigLife()
int main(int argc, char* argv[]) int main(int argc, char* argv[])
{ {
init("etc/toolkit2.conf"); init("/home/drde/etc/toolkit2.conf");
TEST_run(testSecDNSAddFieldsUrgent); TEST_run(testSecDNSAddFieldsUrgent);
TEST_run(testSecDNSRemoveFieldsNotUrgent); TEST_run(testSecDNSRemoveFieldsNotUrgent);
TEST_run(testSecDNSRemoveAll); TEST_run(testSecDNSRemoveAll);

View File

@ -88,7 +88,7 @@ void testPollCount()
int main(int argc, char* argv[]) int main(int argc, char* argv[])
{ {
init("etc/toolkit2.conf"); init("/home/drde/etc/toolkit2.conf");
TEST_run(testLoginCount); TEST_run(testLoginCount);
TEST_run(testMixedCommandsCount); TEST_run(testMixedCommandsCount);

Some files were not shown because too many files have changed in this diff Show More