2014-01-28 19:23:02 +00:00
|
|
|
/*
|
|
|
|
* donutsOTEB.h
|
|
|
|
*
|
|
|
|
* Created on: Jan 28, 2014
|
|
|
|
* Author: jdaugherty
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef DONUTSOTEB_H_
|
|
|
|
#define DONUTSOTEB_H_
|
|
|
|
|
2014-02-04 19:58:44 +00:00
|
|
|
const char *name1 = "yoda.guru";
|
|
|
|
const char *name2 = "unicycles.bike";
|
|
|
|
const char *name3 = "test-validate.claimsgasix";
|
|
|
|
const char *name4 = "horny.singles";
|
|
|
|
const char *name5 = "atmospheric.lighting";
|
|
|
|
const char *name6 = "mushroomtheory.management";
|
|
|
|
|
|
|
|
static const string smdData(
|
|
|
|
"DQo8c21kOnNpZ25lZE1hcmsgeG1sbnM6c21kPSJ1cm46aWV0ZjpwYXJhbXM6eG1sOm5zOnNpZ25l"
|
|
|
|
"ZE1hcmstMS4wIiBpZD0iX3NpZ25lZE1hcmsiPjxzbWQ6aWQ+MS0yPC9zbWQ6aWQ+DQogIDwhLS0g"
|
|
|
|
"aW5zZXJ0IHNtZDppZCAtLT4NCiAgPHNtZDppc3N1ZXJJbmZvIGlzc3VlcklEPSIyIj4NCiAgICA8"
|
|
|
|
"c21kOm9yZz5FeGFtcGxlIEluYy48L3NtZDpvcmc+DQogICAgPHNtZDplbWFpbD5zdXBwb3J0QGV4"
|
|
|
|
"YW1wbGUudGxkPC9zbWQ6ZW1haWw+DQogICAgPHNtZDp1cmw+aHR0cDovL3d3dy5leGFtcGxlLnRs"
|
|
|
|
"ZDwvc21kOnVybD4NCiAgICA8c21kOnZvaWNlIHg9IjEyMzQiPisxLjcwMzU1NTU1NTU8L3NtZDp2"
|
|
|
|
"b2ljZT4NCiAgPC9zbWQ6aXNzdWVySW5mbz48c21kOm5vdEJlZm9yZT4yMDA5LTA4LTE2VDA5OjAw"
|
|
|
|
"OjAwLjBaPC9zbWQ6bm90QmVmb3JlPjxzbWQ6bm90QWZ0ZXI+M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DN1ZnaWFLZ3VTYlNyUjVuRjRpUzZXQUVtakdMZ01v"
|
|
|
|
"RHhzUU5KM3RSQUJMUGJSTHVIYVUxWjZ2UmRtQ3VMczVrcVFTWThZZXB1bGJaYnRyY3hEQU1BcE5q"
|
|
|
|
"SHVSc2M0a0NSZ1VvNlFHVG1zbTwvWDUwOUNlcnRpZmljYXRlPjwvWDUwOURhdGE+PC9LZXlJbmZv"
|
|
|
|
"PjwvU2lnbmF0dXJlPjwvc21kOnNpZ25lZE1hcms+");
|
|
|
|
|
2014-01-28 19:23:02 +00:00
|
|
|
void ausRegEPPTK::doOTEB()
|
|
|
|
{
|
|
|
|
bool addDomains = false, debug=true, contactCreated = true, doTransfers = false,
|
2014-01-29 18:10:26 +00:00
|
|
|
transferGainer = false, doDPML=true;
|
2014-01-28 19:23:02 +00:00
|
|
|
int cmd=0;
|
|
|
|
const char *thatAccount="secura2-ote2", *thisAccount="secura1-ote";
|
|
|
|
|
2014-02-04 19:58:44 +00:00
|
|
|
string op("newInstance");
|
|
|
|
const string claims("claims"), dpml("custom"), landrush("landrush"), sunrise("sunrise");
|
2014-01-28 19:23:02 +00:00
|
|
|
|
|
|
|
LPCrtCmdExtension crtE1( &claims ), crtE2( &dpml );
|
|
|
|
|
|
|
|
Transaction thisTest;
|
|
|
|
|
|
|
|
scenario(thisConfig->tkScenario,thisConfig->cfg_path);
|
|
|
|
|
|
|
|
while(debug) { debug=false; // debugger needs this
|
|
|
|
try {
|
|
|
|
Timer::setTime("20140101.010101");
|
|
|
|
auto_ptr<SessionManager> manager(SessionManagerFactory::newInstance(&props));
|
|
|
|
auto_ptr<Session> sess(SessionFactory::newInstance(&props));
|
|
|
|
op = "startup";
|
|
|
|
manager->startup();
|
|
|
|
op = "run (keep-alive)";
|
|
|
|
manager->run();
|
|
|
|
|
|
|
|
sess->open();
|
|
|
|
|
|
|
|
theseLogs->logN(2,"OTE %s [Hello] (%d).",thisAccount,cmd++);
|
|
|
|
sess->writeXML(TEST_SE);
|
|
|
|
sess->read();
|
|
|
|
|
|
|
|
theseLogs->logN(1,"OTE Basic Access Setup (%d).",cmd++);
|
|
|
|
|
|
|
|
const std::string rrj("renjuan");
|
|
|
|
const std::string rrjPW("Ab9dW@rd");
|
|
|
|
const std::string rrjEmail("juan@acm.org");
|
|
|
|
const std::string rrjName("Ren Ren-Juan");
|
|
|
|
const std::string rrjCity("Niagara Falls");
|
|
|
|
const std::vector<std::string>
|
|
|
|
rrjCrib(1,"2926 2nd Strt");
|
|
|
|
const std::string rrjProv("NY");
|
|
|
|
const std::string rrjPC("14305");
|
|
|
|
const std::string rrjGuo("US");
|
|
|
|
const std::string rrjOrg("American Kybernetik");
|
|
|
|
|
|
|
|
const IntPostalInfo rrjPO(rrjName,rrjOrg,
|
|
|
|
rrjCrib,rrjCity,rrjProv,rrjPC,rrjGuo);
|
|
|
|
|
|
|
|
ContactCreateCommand oteCommand_0(rrj,rrjPW,&rrjPO,rrjEmail);
|
|
|
|
ContactCreateResponse oteResponse_0;
|
|
|
|
|
|
|
|
theseLogs->logN(1,"(skip) Create Contact(s).");
|
|
|
|
|
|
|
|
if (!contactCreated) try {
|
|
|
|
thisTest = Transaction(&oteCommand_0, &oteResponse_0);
|
|
|
|
manager->execute(thisTest);
|
|
|
|
}
|
|
|
|
catch(const std::exception e)
|
|
|
|
{
|
|
|
|
theseLogs->logN(1,"Case %d: %s.",cmd++,e.what());
|
|
|
|
}
|
|
|
|
catch(...)
|
|
|
|
{
|
|
|
|
theseLogs->logN(1,"Case %d Failed, harness catch.",cmd++);
|
|
|
|
}
|
|
|
|
|
|
|
|
theseLogs->logN(1,"Continue OTE Transactions.");
|
|
|
|
sleep(2);
|
2014-01-29 18:10:26 +00:00
|
|
|
theseLogs->logN(2,"(%d) Non-LPE check of %s",cmd++,name5);
|
2014-01-28 19:23:02 +00:00
|
|
|
|
2014-01-29 18:10:26 +00:00
|
|
|
DomainCheckCommand oteCommand_1(name5);
|
2014-01-28 19:23:02 +00:00
|
|
|
DomainCheckResponse oteResponse_1;
|
|
|
|
|
|
|
|
try {
|
|
|
|
thisTest = Transaction(&oteCommand_1, &oteResponse_1);
|
|
|
|
manager->execute(thisTest);
|
|
|
|
}
|
2014-01-29 18:10:26 +00:00
|
|
|
catch (EPPException& e)
|
|
|
|
{ const char *eMsg = e.getMessage().c_str();
|
|
|
|
const char *opNow = op.c_str();
|
|
|
|
theseLogs->logN(2,"EPP Exception during OTE B (%s): %s .",opNow,eMsg);
|
|
|
|
throw e;
|
|
|
|
}
|
|
|
|
catch (...)
|
2014-01-28 19:23:02 +00:00
|
|
|
{
|
2014-01-29 18:10:26 +00:00
|
|
|
theseLogs->logN(1,"General Exception OTE B (%s).",op.c_str());
|
2014-01-28 19:23:02 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
theseLogs->logN(2,"(%d) Perform Claims type Check of %s",cmd++,name3);
|
|
|
|
|
|
|
|
DomainCheckCommand oteCommand_2(name3);
|
|
|
|
LPChkCmdExtension chkE(&claims);
|
|
|
|
oteCommand_2.appendExtension(chkE);
|
|
|
|
DomainCheckResponse oteResponse_2;
|
|
|
|
LPChkRespExtension chkRspE;
|
|
|
|
oteResponse_2.registerExtension(&chkRspE);
|
|
|
|
|
|
|
|
try {
|
|
|
|
thisTest = Transaction(&oteCommand_2, &oteResponse_2);
|
|
|
|
manager->execute(thisTest);
|
|
|
|
theseLogs->logN(3,"(%d) Claims %s exist for %s.",
|
|
|
|
cmd,(chkRspE.doClaimsExist() ? "do" : " do not "),name3);
|
|
|
|
if (chkRspE.doClaimsExist())
|
|
|
|
theseLogs->logN(3,"(%d) claim: %s .",cmd,chkRspE.getClaimsKey());
|
|
|
|
}
|
|
|
|
catch (EPPException& e)
|
|
|
|
{ const char *eMsg = e.getMessage().c_str();
|
|
|
|
const char *opNow = op.c_str();
|
|
|
|
theseLogs->logN(2,"EPP Exception during OTE B (%s): %s .",opNow,eMsg);
|
|
|
|
throw e;
|
|
|
|
}
|
|
|
|
catch (...)
|
|
|
|
{
|
|
|
|
theseLogs->logN(1,"General Exception OTE B (%s).",op.c_str());
|
|
|
|
}
|
|
|
|
|
|
|
|
// Used in all of below
|
|
|
|
|
|
|
|
const std::string pw("Ab9dW@rd");
|
|
|
|
const std::string RID("renjuan");
|
|
|
|
std::vector<std::string> tech(1,std::string("renjuan") );
|
|
|
|
std::vector<std::string> admin(1,std::string("renjuan") );
|
|
|
|
std::vector<std::string> billing(1,std::string("renjuan") );
|
|
|
|
std::vector<std::string> ns(1,std::string("ns1.google.com") );;
|
|
|
|
|
|
|
|
|
|
|
|
if (addDomains) {
|
|
|
|
|
|
|
|
try {
|
|
|
|
|
|
|
|
if (1) {
|
|
|
|
|
|
|
|
theseLogs->logN(3," (%d) normal create %s in OTE %s.",cmd++, name5, thisAccount);
|
|
|
|
DomainCreateCommand
|
|
|
|
oteCommand_3(name5,pw,&RID, &tech, &ns, &admin, &billing);
|
|
|
|
DomainCreateResponse oteResponse_3;
|
|
|
|
thisTest = Transaction(&oteCommand_3, &oteResponse_3);
|
|
|
|
manager->execute(thisTest);
|
|
|
|
|
|
|
|
} if (1) {
|
|
|
|
|
|
|
|
theseLogs->logN(3," (%d) normal create %s in OTE %s.",cmd++, name4, thisAccount);
|
|
|
|
DomainCreateCommand
|
|
|
|
oteCommand_3a(name4,pw,&RID, &tech, &ns, &admin, &billing);
|
|
|
|
DomainCreateResponse oteResponse_3a;
|
|
|
|
thisTest = Transaction(&oteCommand_3a, &oteResponse_3a);
|
|
|
|
manager->execute(thisTest);
|
|
|
|
|
|
|
|
} if (0) {
|
|
|
|
theseLogs->logN(3," (%d) LPE create %s in OTE %s.",cmd++, name5, thisAccount);
|
|
|
|
DomainCreateCommand
|
|
|
|
oteCommand_3b(name5,pw,&RID, &tech, &ns, &admin, &billing);
|
|
|
|
oteCommand_3b.appendExtension(crtE1);
|
|
|
|
DomainCreateResponse oteResponse_3b;
|
|
|
|
|
|
|
|
thisTest = Transaction(&oteCommand_3b, &oteResponse_3b);
|
|
|
|
manager->execute(thisTest);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
catch (EPPException& e)
|
|
|
|
{ const char *eMsg = e.getMessage().c_str();
|
|
|
|
const char *opNow = op.c_str();
|
|
|
|
theseLogs->logN(2,"EPP Exception during OTE B (%s): %s .",opNow,eMsg);
|
|
|
|
throw e;
|
|
|
|
}
|
|
|
|
catch (...)
|
|
|
|
{
|
|
|
|
theseLogs->logN(1,"General Exception OTE B (%s).",op.c_str());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (doTransfers) {
|
|
|
|
|
|
|
|
DomainTransferRequestCommand
|
|
|
|
oteCommand_4a(name1,rrjPW);
|
|
|
|
DomainTransferApproveCommand
|
|
|
|
oteCommand_4b(name1,rrjPW);
|
|
|
|
DomainTransferResponse oteResponse_4;
|
|
|
|
|
|
|
|
DomainTransferRequestCommand
|
|
|
|
oteCommand_4c(name2,rrjPW);
|
|
|
|
DomainTransferApproveCommand
|
|
|
|
oteCommand_4d(name2,rrjPW);
|
|
|
|
DomainTransferResponse oteResponse_4a;
|
|
|
|
|
|
|
|
try {
|
|
|
|
|
|
|
|
theseLogs->logN(4," %s (%d) %s -> %s.", (transferGainer ? "Request" : "Approve") ,cmd++, name1,thatAccount);
|
|
|
|
|
|
|
|
thisTest = transferGainer ? Transaction(&oteCommand_4a, &oteResponse_4) :
|
|
|
|
Transaction(&oteCommand_4b, &oteResponse_4) ;
|
|
|
|
manager->execute(thisTest);
|
|
|
|
|
|
|
|
theseLogs->logN(4," %s (%d) %s -> %s.", (transferGainer ? "Request" : "Approve") ,cmd++, name2,thatAccount);
|
|
|
|
|
|
|
|
thisTest = transferGainer ? Transaction(&oteCommand_4c, &oteResponse_4a) :
|
|
|
|
Transaction(&oteCommand_4d, &oteResponse_4) ;
|
|
|
|
|
|
|
|
manager->execute(thisTest);
|
|
|
|
|
|
|
|
}
|
|
|
|
catch(...)
|
|
|
|
{
|
2014-01-29 18:10:26 +00:00
|
|
|
theseLogs->logN(1,"Case %d Failed, harness catch.",cmd++);
|
2014-01-28 19:23:02 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if (0) {
|
|
|
|
|
|
|
|
theseLogs->logN(2,"(%d) Sunrise create %s with ICANN SMD test data.",++cmd,name1);
|
|
|
|
|
|
|
|
DomainCreateCommand oteCommand_5(name1,pw,&RID, &tech, &ns, &admin, &billing);
|
|
|
|
oteCommand_5.appendExtension(crtE1);
|
|
|
|
DomainCreateResponse oteResponse_5;
|
|
|
|
|
|
|
|
try {
|
|
|
|
thisTest = Transaction(&oteCommand_5, &oteResponse_5);
|
|
|
|
manager->execute(thisTest);
|
|
|
|
}
|
|
|
|
catch (EPPException& e)
|
|
|
|
{ const char *eMsg = e.getMessage().c_str();
|
|
|
|
const char *opNow = op.c_str();
|
|
|
|
theseLogs->logN(2,"EPP Exception during OTE B (%s): %s .",opNow,eMsg);
|
|
|
|
throw e;
|
|
|
|
}
|
|
|
|
catch (...)
|
|
|
|
{
|
|
|
|
theseLogs->logN(1,"General Exception OTE B (%s).",op.c_str());
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2014-01-29 18:10:26 +00:00
|
|
|
theseLogs->logN(2,"(%d) skip Create %s w Notice ID test data (TCN).",++cmd,name3);
|
2014-01-28 19:23:02 +00:00
|
|
|
|
2014-01-29 18:10:26 +00:00
|
|
|
if (0) { // done
|
2014-01-28 19:23:02 +00:00
|
|
|
string noticeID("d85159710000000000000008692"),
|
|
|
|
notAfter("2015-01-01T12:00:00Z"), acceptedDate("2014-01-27T19:00:00Z");
|
|
|
|
|
|
|
|
DomainCreateCommand oteCommand_6(name3,pw,&RID, &tech, &ns, &admin, &billing);
|
|
|
|
crtE1.setNoticeID(noticeID, notAfter, acceptedDate);
|
|
|
|
oteCommand_6.appendExtension(crtE1);
|
|
|
|
DomainCreateResponse oteResponse_6;
|
|
|
|
|
|
|
|
try {
|
|
|
|
thisTest = Transaction(&oteCommand_6, &oteResponse_6);
|
|
|
|
manager->execute(thisTest);
|
|
|
|
}
|
|
|
|
catch (EPPException& e)
|
|
|
|
{ const char *eMsg = e.getMessage().c_str();
|
|
|
|
const char *opNow = op.c_str();
|
|
|
|
theseLogs->logN(2,"EPP Exception during OTE B (%s): %s .",opNow,eMsg);
|
|
|
|
throw e;
|
|
|
|
}
|
|
|
|
catch (...)
|
|
|
|
{
|
|
|
|
theseLogs->logN(1,"General Exception OTE B (%s).",op.c_str());
|
|
|
|
}
|
2014-01-29 18:10:26 +00:00
|
|
|
}
|
2014-01-28 19:23:02 +00:00
|
|
|
|
2014-01-29 18:10:26 +00:00
|
|
|
if (doDPML) { std::string dpmlName("face.dpml.zone");
|
2014-01-28 19:23:02 +00:00
|
|
|
|
|
|
|
theseLogs->logN(2,"(%d) Create %s w ICANN SMD file.",++cmd,dpmlName.c_str());
|
|
|
|
|
|
|
|
DomainCreateCommand oteCommand_7(dpmlName,pw,&RID, &tech, &ns, &admin, &billing);
|
2014-02-04 19:58:44 +00:00
|
|
|
crtE2.setSMD(smdData);
|
2014-01-28 19:23:02 +00:00
|
|
|
oteCommand_7.appendExtension(crtE2);
|
|
|
|
DomainCreateResponse oteResponse_7;
|
|
|
|
|
|
|
|
try {
|
|
|
|
thisTest = Transaction(&oteCommand_7, &oteResponse_7);
|
|
|
|
manager->execute(thisTest);
|
|
|
|
}
|
|
|
|
catch (EPPException& e)
|
|
|
|
{ const char *eMsg = e.getMessage().c_str();
|
|
|
|
const char *opNow = op.c_str();
|
|
|
|
theseLogs->logN(2,"EPP Exception during OTE B (%s): %s .",opNow,eMsg);
|
|
|
|
throw e;
|
|
|
|
}
|
|
|
|
catch (...)
|
|
|
|
{
|
|
|
|
theseLogs->logN(1,"General Exception OTE B (%s).",op.c_str());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
theseLogs->logN(0,"End OTE Session.");
|
|
|
|
|
|
|
|
sess->close();
|
|
|
|
manager->shutdown();
|
|
|
|
|
|
|
|
}
|
|
|
|
catch (EPPException& e)
|
|
|
|
{ const char *eMsg = e.getMessage().c_str();
|
|
|
|
const char *opNow = op.c_str();
|
|
|
|
theseLogs->logN(2,"Outer EPP Exception during OTE (%s): %s .",opNow,eMsg);
|
|
|
|
throw e;
|
|
|
|
}
|
|
|
|
catch (...)
|
|
|
|
{
|
|
|
|
theseLogs->logN(2,"Outer General Exception in OTE (%s).",op.c_str());
|
|
|
|
}
|
|
|
|
|
|
|
|
}// debug while
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#endif /* DONUTSOTEB_H_ */
|