@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.
|
@@ -13184,7 +13184,7 @@ var __privateWrapper = (obj, member, setter, getter) => ({
|
|
|
13184
13184
|
super(workerInstance, runner);
|
|
13185
13185
|
__publicField(this, "ExecuteRunner", async () => {
|
|
13186
13186
|
if (this.runner.iteration % 100 === 0) {
|
|
13187
|
-
this.Debug(
|
|
13187
|
+
this.Debug(`TestCaseFhir01(): -->> Iteration: ${this.runner.iteration}`);
|
|
13188
13188
|
}
|
|
13189
13189
|
const start = performance.now();
|
|
13190
13190
|
const options = this.runner.options;
|
|
@@ -13212,7 +13212,7 @@ var __privateWrapper = (obj, member, setter, getter) => ({
|
|
|
13212
13212
|
super(workerInstance, runner);
|
|
13213
13213
|
__publicField(this, "ExecuteRunner", async () => {
|
|
13214
13214
|
if (this.runner.iteration % 100 === 0) {
|
|
13215
|
-
this.Debug(
|
|
13215
|
+
this.Debug(`TestCaseFhir02(): -->> Iteration: ${this.runner.iteration}`);
|
|
13216
13216
|
}
|
|
13217
13217
|
const iteration = this.runner.iteration;
|
|
13218
13218
|
const start = performance.now();
|
|
@@ -13250,7 +13250,7 @@ var __privateWrapper = (obj, member, setter, getter) => ({
|
|
|
13250
13250
|
super(workerInstance, runner);
|
|
13251
13251
|
__publicField(this, "ExecuteRunner", async () => {
|
|
13252
13252
|
if (this.runner.iteration % 100 === 0) {
|
|
13253
|
-
this.Debug(
|
|
13253
|
+
this.Debug(`TestCaseFhir03(): -->> Iteration: ${this.runner.iteration}`);
|
|
13254
13254
|
}
|
|
13255
13255
|
const iteration = this.runner.iteration;
|
|
13256
13256
|
const start = performance.now();
|
|
@@ -13290,7 +13290,7 @@ var __privateWrapper = (obj, member, setter, getter) => ({
|
|
|
13290
13290
|
super(workerInstance, runner);
|
|
13291
13291
|
__publicField(this, "ExecuteRunner", async () => {
|
|
13292
13292
|
if (this.runner.iteration % 100 === 0) {
|
|
13293
|
-
this.Debug(
|
|
13293
|
+
this.Debug(`TestCaseFhir04(): -->> Iteration: ${this.runner.iteration}`);
|
|
13294
13294
|
}
|
|
13295
13295
|
const iteration = this.runner.iteration;
|
|
13296
13296
|
const start = performance.now();
|
|
@@ -13345,7 +13345,7 @@ var __privateWrapper = (obj, member, setter, getter) => ({
|
|
|
13345
13345
|
super(workerInstance, runner);
|
|
13346
13346
|
__publicField(this, "ExecuteRunner", async () => {
|
|
13347
13347
|
if (this.runner.iteration % 100 === 0) {
|
|
13348
|
-
this.Debug(
|
|
13348
|
+
this.Debug(`TestCaseFhir05(): -->> Iteration: ${this.runner.iteration}`);
|
|
13349
13349
|
}
|
|
13350
13350
|
const iteration = this.runner.iteration;
|
|
13351
13351
|
const start = performance.now();
|
|
@@ -13422,7 +13422,7 @@ var __privateWrapper = (obj, member, setter, getter) => ({
|
|
|
13422
13422
|
super(...arguments);
|
|
13423
13423
|
__publicField(this, "ExecuteQuery", async (iteration, fhirClient) => {
|
|
13424
13424
|
if (this.runner.iteration % 100 === 0) {
|
|
13425
|
-
this.Debug(
|
|
13425
|
+
this.Debug(`TestCaseFhir06(): -->> Iteration: ${this.runner.iteration}`);
|
|
13426
13426
|
}
|
|
13427
13427
|
const searchLetter = String.fromCharCode(65 + iteration % 26);
|
|
13428
13428
|
const retVal = await fhirClient.GetResources("Person", [], {
|
|
@@ -13441,7 +13441,7 @@ var __privateWrapper = (obj, member, setter, getter) => ({
|
|
|
13441
13441
|
super(...arguments);
|
|
13442
13442
|
__publicField(this, "ExecuteQuery", async (iteration, fhirClient) => {
|
|
13443
13443
|
if (this.runner.iteration % 100 === 0) {
|
|
13444
|
-
this.Debug(
|
|
13444
|
+
this.Debug(`TestCaseFhir07(): -->> Iteration: ${this.runner.iteration}`);
|
|
13445
13445
|
}
|
|
13446
13446
|
const searchLetter = String.fromCharCode(65 + iteration % 26);
|
|
13447
13447
|
const retVal = await fhirClient.GetResources("Person", [], {
|
|
@@ -13459,7 +13459,7 @@ var __privateWrapper = (obj, member, setter, getter) => ({
|
|
|
13459
13459
|
super(...arguments);
|
|
13460
13460
|
__publicField(this, "ExecuteQuery", async (iteration, fhirClient) => {
|
|
13461
13461
|
if (this.runner.iteration % 100 === 0) {
|
|
13462
|
-
this.Debug(
|
|
13462
|
+
this.Debug(`TestCaseFhir08(): -->> Iteration: ${this.runner.iteration}`);
|
|
13463
13463
|
}
|
|
13464
13464
|
const searchLetter = String.fromCharCode(65 + iteration % 26);
|
|
13465
13465
|
const retVal = await fhirClient.GetResources("Person", [], {
|
|
@@ -13477,7 +13477,7 @@ var __privateWrapper = (obj, member, setter, getter) => ({
|
|
|
13477
13477
|
super(workerInstance, runner);
|
|
13478
13478
|
__publicField(this, "ExecuteRunner", async () => {
|
|
13479
13479
|
if (this.runner.iteration % 100 === 0) {
|
|
13480
|
-
this.Debug(
|
|
13480
|
+
this.Debug(`TestCaseFhir09(): -->> Iteration: ${this.runner.iteration}`);
|
|
13481
13481
|
}
|
|
13482
13482
|
const iteration = this.runner.iteration;
|
|
13483
13483
|
const start = performance.now();
|
|
@@ -22926,7 +22926,7 @@ ${" ".repeat(r2.length - i2.length)}^`), o2))];
|
|
|
22926
22926
|
__publicField(this, "GetArchiveList", async (runnerSearchFilters) => {
|
|
22927
22927
|
const raw = __privateGet(this, _EmitEvent).call(this, "GetArchiveList", __privateGet(this, _LogPayloadEventRetVal).call(this, {
|
|
22928
22928
|
...__privateGet(this, _GetKeyPayloadData).call(this, IEventRequestCommand.GetArchiveList, IEventReturnValueBaseType.archiveList),
|
|
22929
|
-
archiveList:
|
|
22929
|
+
archiveList: await __privateGet(this, _wm).GetArchiveList(runnerSearchFilters)
|
|
22930
22930
|
}));
|
|
22931
22931
|
raw.archiveList = gzipSync(strToU8(JSON.stringify(raw.archiveList)));
|
|
22932
22932
|
return raw;
|
|
@@ -22944,7 +22944,7 @@ ${" ".repeat(r2.length - i2.length)}^`), o2))];
|
|
|
22944
22944
|
__publicField(this, "GetWorkersSmall", async (states) => {
|
|
22945
22945
|
const raw = __privateGet(this, _EmitEvent).call(this, "GetWorkersSmall", __privateGet(this, _LogPayloadEventRetVal).call(this, {
|
|
22946
22946
|
...__privateGet(this, _GetKeyPayloadData).call(this, IEventRequestCommand.GetWorkersSmall, IEventReturnValueBaseType.workers),
|
|
22947
|
-
workers:
|
|
22947
|
+
workers: await __privateGet(this, _wm).GetWorkersSmall(states)
|
|
22948
22948
|
}));
|
|
22949
22949
|
raw.workers = gzipSync(strToU8(JSON.stringify(raw.workers)));
|
|
22950
22950
|
return raw;
|
|
@@ -23113,32 +23113,32 @@ ${" ".repeat(r2.length - i2.length)}^`), o2))];
|
|
|
23113
23113
|
});
|
|
23114
23114
|
__privateSet(this, _options5, options);
|
|
23115
23115
|
__privateSet(this, _clientName, options.name);
|
|
23116
|
+
__privateGet(this, _EmitEvent).call(this, "Starting", {});
|
|
23117
|
+
let socketUtilsoptions = {
|
|
23118
|
+
logger: stsutils.defaultLogger
|
|
23119
|
+
};
|
|
23120
|
+
if (__privateGet(this, _options5).agentOptions) {
|
|
23121
|
+
const agentManager = new stsutils.AgentManager({
|
|
23122
|
+
agentOptions: __privateGet(this, _options5).agentOptions,
|
|
23123
|
+
httpAgentFactory(options2) {
|
|
23124
|
+
return new https.Agent(options2);
|
|
23125
|
+
},
|
|
23126
|
+
httpsAgentFactory(options2) {
|
|
23127
|
+
return new https.Agent(options2);
|
|
23128
|
+
}
|
|
23129
|
+
});
|
|
23130
|
+
socketUtilsoptions.agentManager = agentManager;
|
|
23131
|
+
}
|
|
23132
|
+
__privateSet(this, _socketUtils2, new SocketIoClientHelper(socketUtilsoptions));
|
|
23133
|
+
__privateGet(this, _info2).call(this, chalk$1.yellow(`STS Test Runner Service Instance.`));
|
|
23134
|
+
__privateGet(this, _info2).call(this, chalk$1.yellow(`This service instance emulates instances of the ststestrunnernode service.`));
|
|
23135
|
+
__privateGet(this, _info2).call(this, chalk$1.yellow(`Service Instance ID: [${__privateGet(this, _id2)}]`));
|
|
23136
|
+
__privateGet(this, _info2).call(this, chalk$1.yellow(`Service Instance Name: [${__privateGet(this, _options5).name}]`));
|
|
23137
|
+
__privateGet(this, _info2).call(this, chalk$1.yellow(`Options: [${JSON.stringify(options)}]`));
|
|
23138
|
+
__privateSet(this, _wm, __privateGet(this, _options5).CreateSTSWorkerManager());
|
|
23139
|
+
__privateGet(this, _info2).call(this, chalk$1.yellow(`Worker Manager ID: [${__privateGet(this, _wm).id}]`));
|
|
23140
|
+
__privateGet(this, _SetupWSSClient2).call(this, __privateGet(this, _clientName), []);
|
|
23116
23141
|
const start = async () => {
|
|
23117
|
-
__privateGet(this, _EmitEvent).call(this, "Starting", {});
|
|
23118
|
-
let socketUtilsoptions = {
|
|
23119
|
-
logger: stsutils.defaultLogger
|
|
23120
|
-
};
|
|
23121
|
-
if (__privateGet(this, _options5).agentOptions) {
|
|
23122
|
-
const agentManager = new stsutils.AgentManager({
|
|
23123
|
-
agentOptions: __privateGet(this, _options5).agentOptions,
|
|
23124
|
-
httpAgentFactory(options2) {
|
|
23125
|
-
return new https.Agent(options2);
|
|
23126
|
-
},
|
|
23127
|
-
httpsAgentFactory(options2) {
|
|
23128
|
-
return new https.Agent(options2);
|
|
23129
|
-
}
|
|
23130
|
-
});
|
|
23131
|
-
socketUtilsoptions.agentManager = agentManager;
|
|
23132
|
-
}
|
|
23133
|
-
__privateSet(this, _socketUtils2, new SocketIoClientHelper(socketUtilsoptions));
|
|
23134
|
-
__privateGet(this, _info2).call(this, chalk$1.yellow(`STS Test Runner Service Instance.`));
|
|
23135
|
-
__privateGet(this, _info2).call(this, chalk$1.yellow(`This service instance emulates instances of the ststestrunnernode service.`));
|
|
23136
|
-
__privateGet(this, _info2).call(this, chalk$1.yellow(`Service Instance ID: [${__privateGet(this, _id2)}]`));
|
|
23137
|
-
__privateGet(this, _info2).call(this, chalk$1.yellow(`Service Instance Name: [${__privateGet(this, _options5).name}]`));
|
|
23138
|
-
__privateGet(this, _info2).call(this, chalk$1.yellow(`Options: [${JSON.stringify(options)}]`));
|
|
23139
|
-
__privateSet(this, _wm, __privateGet(this, _options5).CreateSTSWorkerManager());
|
|
23140
|
-
__privateGet(this, _info2).call(this, chalk$1.yellow(`Worker Manager ID: [${__privateGet(this, _wm).id}]`));
|
|
23141
|
-
__privateGet(this, _SetupWSSClient2).call(this, __privateGet(this, _clientName), []);
|
|
23142
23142
|
for (let i2 = 0; i2 < __privateGet(this, _options5).workers; i2++) {
|
|
23143
23143
|
await this.AddWorker({
|
|
23144
23144
|
tags: [""],
|