@nsshunt/ststestrunner 1.0.37 → 1.0.39
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/ststestrunner.mjs
CHANGED
|
@@ -13182,7 +13182,7 @@ class TestCaseFhir01 extends TestCaseFhirBase {
|
|
|
13182
13182
|
super(workerInstance, runner);
|
|
13183
13183
|
__publicField(this, "ExecuteRunner", async () => {
|
|
13184
13184
|
if (this.runner.iteration % 100 === 0) {
|
|
13185
|
-
this.Debug(
|
|
13185
|
+
this.Debug(`TestCaseFhir01(): -->> Iteration: ${this.runner.iteration}`);
|
|
13186
13186
|
}
|
|
13187
13187
|
const start = performance.now();
|
|
13188
13188
|
const options = this.runner.options;
|
|
@@ -13210,7 +13210,7 @@ class TestCaseFhir02 extends TestCaseFhirBase {
|
|
|
13210
13210
|
super(workerInstance, runner);
|
|
13211
13211
|
__publicField(this, "ExecuteRunner", async () => {
|
|
13212
13212
|
if (this.runner.iteration % 100 === 0) {
|
|
13213
|
-
this.Debug(
|
|
13213
|
+
this.Debug(`TestCaseFhir02(): -->> Iteration: ${this.runner.iteration}`);
|
|
13214
13214
|
}
|
|
13215
13215
|
const iteration = this.runner.iteration;
|
|
13216
13216
|
const start = performance.now();
|
|
@@ -13248,7 +13248,7 @@ class TestCaseFhir03 extends TestCaseFhirBase {
|
|
|
13248
13248
|
super(workerInstance, runner);
|
|
13249
13249
|
__publicField(this, "ExecuteRunner", async () => {
|
|
13250
13250
|
if (this.runner.iteration % 100 === 0) {
|
|
13251
|
-
this.Debug(
|
|
13251
|
+
this.Debug(`TestCaseFhir03(): -->> Iteration: ${this.runner.iteration}`);
|
|
13252
13252
|
}
|
|
13253
13253
|
const iteration = this.runner.iteration;
|
|
13254
13254
|
const start = performance.now();
|
|
@@ -13288,7 +13288,7 @@ class TestCaseFhir04 extends TestCaseFhirBase {
|
|
|
13288
13288
|
super(workerInstance, runner);
|
|
13289
13289
|
__publicField(this, "ExecuteRunner", async () => {
|
|
13290
13290
|
if (this.runner.iteration % 100 === 0) {
|
|
13291
|
-
this.Debug(
|
|
13291
|
+
this.Debug(`TestCaseFhir04(): -->> Iteration: ${this.runner.iteration}`);
|
|
13292
13292
|
}
|
|
13293
13293
|
const iteration = this.runner.iteration;
|
|
13294
13294
|
const start = performance.now();
|
|
@@ -13343,7 +13343,7 @@ class TestCaseFhir05 extends TestCaseFhirBase {
|
|
|
13343
13343
|
super(workerInstance, runner);
|
|
13344
13344
|
__publicField(this, "ExecuteRunner", async () => {
|
|
13345
13345
|
if (this.runner.iteration % 100 === 0) {
|
|
13346
|
-
this.Debug(
|
|
13346
|
+
this.Debug(`TestCaseFhir05(): -->> Iteration: ${this.runner.iteration}`);
|
|
13347
13347
|
}
|
|
13348
13348
|
const iteration = this.runner.iteration;
|
|
13349
13349
|
const start = performance.now();
|
|
@@ -13420,7 +13420,7 @@ class TestCaseFhir06 extends TestCaseFhirQueryBase {
|
|
|
13420
13420
|
super(...arguments);
|
|
13421
13421
|
__publicField(this, "ExecuteQuery", async (iteration, fhirClient) => {
|
|
13422
13422
|
if (this.runner.iteration % 100 === 0) {
|
|
13423
|
-
this.Debug(
|
|
13423
|
+
this.Debug(`TestCaseFhir06(): -->> Iteration: ${this.runner.iteration}`);
|
|
13424
13424
|
}
|
|
13425
13425
|
const searchLetter = String.fromCharCode(65 + iteration % 26);
|
|
13426
13426
|
const retVal = await fhirClient.GetResources("Person", [], {
|
|
@@ -13439,7 +13439,7 @@ class TestCaseFhir07 extends TestCaseFhirQueryBase {
|
|
|
13439
13439
|
super(...arguments);
|
|
13440
13440
|
__publicField(this, "ExecuteQuery", async (iteration, fhirClient) => {
|
|
13441
13441
|
if (this.runner.iteration % 100 === 0) {
|
|
13442
|
-
this.Debug(
|
|
13442
|
+
this.Debug(`TestCaseFhir07(): -->> Iteration: ${this.runner.iteration}`);
|
|
13443
13443
|
}
|
|
13444
13444
|
const searchLetter = String.fromCharCode(65 + iteration % 26);
|
|
13445
13445
|
const retVal = await fhirClient.GetResources("Person", [], {
|
|
@@ -13457,7 +13457,7 @@ class TestCaseFhir08 extends TestCaseFhirQueryBase {
|
|
|
13457
13457
|
super(...arguments);
|
|
13458
13458
|
__publicField(this, "ExecuteQuery", async (iteration, fhirClient) => {
|
|
13459
13459
|
if (this.runner.iteration % 100 === 0) {
|
|
13460
|
-
this.Debug(
|
|
13460
|
+
this.Debug(`TestCaseFhir08(): -->> Iteration: ${this.runner.iteration}`);
|
|
13461
13461
|
}
|
|
13462
13462
|
const searchLetter = String.fromCharCode(65 + iteration % 26);
|
|
13463
13463
|
const retVal = await fhirClient.GetResources("Person", [], {
|
|
@@ -13475,7 +13475,7 @@ class TestCaseFhir09 extends TestCaseFhirBase {
|
|
|
13475
13475
|
super(workerInstance, runner);
|
|
13476
13476
|
__publicField(this, "ExecuteRunner", async () => {
|
|
13477
13477
|
if (this.runner.iteration % 100 === 0) {
|
|
13478
|
-
this.Debug(
|
|
13478
|
+
this.Debug(`TestCaseFhir09(): -->> Iteration: ${this.runner.iteration}`);
|
|
13479
13479
|
}
|
|
13480
13480
|
const iteration = this.runner.iteration;
|
|
13481
13481
|
const start = performance.now();
|
|
@@ -20305,7 +20305,7 @@ class ServiceInstance extends tinyEmitterExports.TinyEmitter {
|
|
|
20305
20305
|
__publicField(this, "GetArchiveList", async (runnerSearchFilters) => {
|
|
20306
20306
|
const raw = __privateGet(this, _EmitEvent).call(this, "GetArchiveList", __privateGet(this, _LogPayloadEventRetVal).call(this, {
|
|
20307
20307
|
...__privateGet(this, _GetKeyPayloadData).call(this, IEventRequestCommand.GetArchiveList, IEventReturnValueBaseType.archiveList),
|
|
20308
|
-
archiveList:
|
|
20308
|
+
archiveList: await __privateGet(this, _wm).GetArchiveList(runnerSearchFilters)
|
|
20309
20309
|
}));
|
|
20310
20310
|
raw.archiveList = gzipSync(strToU8(JSON.stringify(raw.archiveList)));
|
|
20311
20311
|
return raw;
|
|
@@ -20323,7 +20323,7 @@ class ServiceInstance extends tinyEmitterExports.TinyEmitter {
|
|
|
20323
20323
|
__publicField(this, "GetWorkersSmall", async (states) => {
|
|
20324
20324
|
const raw = __privateGet(this, _EmitEvent).call(this, "GetWorkersSmall", __privateGet(this, _LogPayloadEventRetVal).call(this, {
|
|
20325
20325
|
...__privateGet(this, _GetKeyPayloadData).call(this, IEventRequestCommand.GetWorkersSmall, IEventReturnValueBaseType.workers),
|
|
20326
|
-
workers:
|
|
20326
|
+
workers: await __privateGet(this, _wm).GetWorkersSmall(states)
|
|
20327
20327
|
}));
|
|
20328
20328
|
raw.workers = gzipSync(strToU8(JSON.stringify(raw.workers)));
|
|
20329
20329
|
return raw;
|
|
@@ -20492,32 +20492,32 @@ class ServiceInstance extends tinyEmitterExports.TinyEmitter {
|
|
|
20492
20492
|
});
|
|
20493
20493
|
__privateSet(this, _options5, options);
|
|
20494
20494
|
__privateSet(this, _clientName, options.name);
|
|
20495
|
+
__privateGet(this, _EmitEvent).call(this, "Starting", {});
|
|
20496
|
+
let socketUtilsoptions = {
|
|
20497
|
+
logger: defaultLogger
|
|
20498
|
+
};
|
|
20499
|
+
if (__privateGet(this, _options5).agentOptions) {
|
|
20500
|
+
const agentManager = new AgentManager({
|
|
20501
|
+
agentOptions: __privateGet(this, _options5).agentOptions,
|
|
20502
|
+
httpAgentFactory(options2) {
|
|
20503
|
+
return new https.Agent(options2);
|
|
20504
|
+
},
|
|
20505
|
+
httpsAgentFactory(options2) {
|
|
20506
|
+
return new https.Agent(options2);
|
|
20507
|
+
}
|
|
20508
|
+
});
|
|
20509
|
+
socketUtilsoptions.agentManager = agentManager;
|
|
20510
|
+
}
|
|
20511
|
+
__privateSet(this, _socketUtils2, new SocketIoClientHelper2(socketUtilsoptions));
|
|
20512
|
+
__privateGet(this, _info2).call(this, chalk$1.yellow(`STS Test Runner Service Instance.`));
|
|
20513
|
+
__privateGet(this, _info2).call(this, chalk$1.yellow(`This service instance emulates instances of the ststestrunnernode service.`));
|
|
20514
|
+
__privateGet(this, _info2).call(this, chalk$1.yellow(`Service Instance ID: [${__privateGet(this, _id2)}]`));
|
|
20515
|
+
__privateGet(this, _info2).call(this, chalk$1.yellow(`Service Instance Name: [${__privateGet(this, _options5).name}]`));
|
|
20516
|
+
__privateGet(this, _info2).call(this, chalk$1.yellow(`Options: [${JSON.stringify(options)}]`));
|
|
20517
|
+
__privateSet(this, _wm, __privateGet(this, _options5).CreateSTSWorkerManager());
|
|
20518
|
+
__privateGet(this, _info2).call(this, chalk$1.yellow(`Worker Manager ID: [${__privateGet(this, _wm).id}]`));
|
|
20519
|
+
__privateGet(this, _SetupWSSClient2).call(this, __privateGet(this, _clientName), []);
|
|
20495
20520
|
const start = async () => {
|
|
20496
|
-
__privateGet(this, _EmitEvent).call(this, "Starting", {});
|
|
20497
|
-
let socketUtilsoptions = {
|
|
20498
|
-
logger: defaultLogger
|
|
20499
|
-
};
|
|
20500
|
-
if (__privateGet(this, _options5).agentOptions) {
|
|
20501
|
-
const agentManager = new AgentManager({
|
|
20502
|
-
agentOptions: __privateGet(this, _options5).agentOptions,
|
|
20503
|
-
httpAgentFactory(options2) {
|
|
20504
|
-
return new https.Agent(options2);
|
|
20505
|
-
},
|
|
20506
|
-
httpsAgentFactory(options2) {
|
|
20507
|
-
return new https.Agent(options2);
|
|
20508
|
-
}
|
|
20509
|
-
});
|
|
20510
|
-
socketUtilsoptions.agentManager = agentManager;
|
|
20511
|
-
}
|
|
20512
|
-
__privateSet(this, _socketUtils2, new SocketIoClientHelper2(socketUtilsoptions));
|
|
20513
|
-
__privateGet(this, _info2).call(this, chalk$1.yellow(`STS Test Runner Service Instance.`));
|
|
20514
|
-
__privateGet(this, _info2).call(this, chalk$1.yellow(`This service instance emulates instances of the ststestrunnernode service.`));
|
|
20515
|
-
__privateGet(this, _info2).call(this, chalk$1.yellow(`Service Instance ID: [${__privateGet(this, _id2)}]`));
|
|
20516
|
-
__privateGet(this, _info2).call(this, chalk$1.yellow(`Service Instance Name: [${__privateGet(this, _options5).name}]`));
|
|
20517
|
-
__privateGet(this, _info2).call(this, chalk$1.yellow(`Options: [${JSON.stringify(options)}]`));
|
|
20518
|
-
__privateSet(this, _wm, __privateGet(this, _options5).CreateSTSWorkerManager());
|
|
20519
|
-
__privateGet(this, _info2).call(this, chalk$1.yellow(`Worker Manager ID: [${__privateGet(this, _wm).id}]`));
|
|
20520
|
-
__privateGet(this, _SetupWSSClient2).call(this, __privateGet(this, _clientName), []);
|
|
20521
20521
|
for (let i = 0; i < __privateGet(this, _options5).workers; i++) {
|
|
20522
20522
|
await this.AddWorker({
|
|
20523
20523
|
tags: [""],
|