@nsshunt/ststestrunner 1.0.61 → 1.0.63
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 +26 -9
- package/dist/ststestrunner.mjs.map +1 -1
- package/dist/ststestrunner.umd.js +26 -9
- package/dist/ststestrunner.umd.js.map +1 -1
- package/package.json +1 -1
- package/types/testCaseFhir01.d.ts.map +1 -1
- package/types/testCaseFhir02.d.ts.map +1 -1
- package/types/testCaseFhir03.d.ts.map +1 -1
- package/types/testCaseFhir04.d.ts.map +1 -1
- package/types/testCaseFhir05.d.ts.map +1 -1
- package/types/testCaseFhir06.d.ts.map +1 -1
- package/types/testCaseFhir09.d.ts.map +1 -1
- package/types/testCaseFhirBase.d.ts +2 -0
- package/types/testCaseFhirBase.d.ts.map +1 -1
- package/types/testCaseFhirQueryBase.d.ts.map +1 -1
package/dist/ststestrunner.mjs
CHANGED
|
@@ -12592,7 +12592,7 @@ class TestCaseFhirBase {
|
|
|
12592
12592
|
constructor(workerInstance, runner) {
|
|
12593
12593
|
__privateAdd(this, _options4);
|
|
12594
12594
|
//#authUtilsNode: AuthUtilsNode;
|
|
12595
|
-
__privateAdd(this, _agentManager
|
|
12595
|
+
__privateAdd(this, _agentManager);
|
|
12596
12596
|
__privateAdd(this, _randomDataRecordset, []);
|
|
12597
12597
|
__privateAdd(this, _runner2);
|
|
12598
12598
|
__privateAdd(this, _workerInstance2);
|
|
@@ -12811,13 +12811,12 @@ class TestCaseFhirBase {
|
|
|
12811
12811
|
await Sleep(10);
|
|
12812
12812
|
}
|
|
12813
12813
|
console.log(`Finished load for VU: [${VU}]`);
|
|
12814
|
-
console.log(chalk$1.magenta(`StartTestDataLoad(): End`));
|
|
12815
12814
|
console.log(`First 10 entries`);
|
|
12816
12815
|
for (let i = 0; i < 10; i++) {
|
|
12817
12816
|
console.log(__privateGet(this, _randomDataRecordset)[i].id);
|
|
12818
12817
|
}
|
|
12819
12818
|
console.log(`block num: [${blockNum}] length: [${__privateGet(this, _randomDataRecordset).length}] VU: [${VU}]`);
|
|
12820
|
-
|
|
12819
|
+
console.log(chalk$1.magenta(`StartTestDataLoad(): End`));
|
|
12821
12820
|
});
|
|
12822
12821
|
__privateAdd(this, _ForcePublishTelemetryData2, async () => {
|
|
12823
12822
|
await __privateGet(this, _PublishTelemetryData2).call(this);
|
|
@@ -12969,6 +12968,9 @@ class TestCaseFhirBase {
|
|
|
12969
12968
|
*/
|
|
12970
12969
|
}));
|
|
12971
12970
|
}
|
|
12971
|
+
get agentManager() {
|
|
12972
|
+
return __privateGet(this, _agentManager);
|
|
12973
|
+
}
|
|
12972
12974
|
get accesssToken() {
|
|
12973
12975
|
return __privateGet(this, _accesssToken);
|
|
12974
12976
|
}
|
|
@@ -13260,6 +13262,9 @@ class TestCaseFhir01 extends TestCaseFhirBase {
|
|
|
13260
13262
|
await this.PublishTelemetry();
|
|
13261
13263
|
return true;
|
|
13262
13264
|
});
|
|
13265
|
+
if (this.agentManager) {
|
|
13266
|
+
this.agentManager.agentResetCount = runner.options.agentResetMod;
|
|
13267
|
+
}
|
|
13263
13268
|
}
|
|
13264
13269
|
}
|
|
13265
13270
|
class TestCaseFhir02 extends TestCaseFhirBase {
|
|
@@ -13280,8 +13285,6 @@ class TestCaseFhir02 extends TestCaseFhirBase {
|
|
|
13280
13285
|
this.runner.instrumentData.message.push(chalk$1.green(`Iteration: [${iteration} #authUtilsNode(): Agent Reset`));
|
|
13281
13286
|
}
|
|
13282
13287
|
const personRecord = this.GetPersonRecord(`${options.personPrefix}`, iteration);
|
|
13283
|
-
console.log(`***************************************************************`);
|
|
13284
|
-
console.log(`case 02 ID: [${personRecord.id}]`);
|
|
13285
13288
|
try {
|
|
13286
13289
|
const retVal = await this.fhirClient.CreateResource("Person", personRecord, (error) => {
|
|
13287
13290
|
this.LogErrorMessage(`test(POST /stsresource and query using filter): ${error}`);
|
|
@@ -13300,6 +13303,9 @@ class TestCaseFhir02 extends TestCaseFhirBase {
|
|
|
13300
13303
|
await this.PublishTelemetry();
|
|
13301
13304
|
return true;
|
|
13302
13305
|
});
|
|
13306
|
+
if (this.agentManager) {
|
|
13307
|
+
this.agentManager.agentResetCount = runner.options.agentResetMod;
|
|
13308
|
+
}
|
|
13303
13309
|
}
|
|
13304
13310
|
}
|
|
13305
13311
|
class TestCaseFhir03 extends TestCaseFhirBase {
|
|
@@ -13320,8 +13326,6 @@ class TestCaseFhir03 extends TestCaseFhirBase {
|
|
|
13320
13326
|
this.runner.instrumentData.message.push(chalk$1.green(`Iteration: [${iteration} #authUtilsNode(): Agent Reset`));
|
|
13321
13327
|
}
|
|
13322
13328
|
const personRecord = this.GetPersonRecord(`${options.personPrefix}`, iteration);
|
|
13323
|
-
console.log(`***************************************************************`);
|
|
13324
|
-
console.log(`case 03 ID: [${personRecord.id}]`);
|
|
13325
13329
|
const retVal = await this.fhirClient.GetResource("Person", personRecord.id, null, (error) => {
|
|
13326
13330
|
this.LogErrorMessage(`test(POST /stsresource and query using filter): ${error}`);
|
|
13327
13331
|
this.runner.instrumentData.errorCount++;
|
|
@@ -13342,6 +13346,9 @@ class TestCaseFhir03 extends TestCaseFhirBase {
|
|
|
13342
13346
|
await this.PublishTelemetry();
|
|
13343
13347
|
return true;
|
|
13344
13348
|
});
|
|
13349
|
+
if (this.agentManager) {
|
|
13350
|
+
this.agentManager.agentResetCount = runner.options.agentResetMod;
|
|
13351
|
+
}
|
|
13345
13352
|
}
|
|
13346
13353
|
}
|
|
13347
13354
|
class TestCaseFhir04 extends TestCaseFhirBase {
|
|
@@ -13397,6 +13404,9 @@ class TestCaseFhir04 extends TestCaseFhirBase {
|
|
|
13397
13404
|
await this.PublishTelemetry();
|
|
13398
13405
|
return true;
|
|
13399
13406
|
});
|
|
13407
|
+
if (this.agentManager) {
|
|
13408
|
+
this.agentManager.agentResetCount = runner.options.agentResetMod;
|
|
13409
|
+
}
|
|
13400
13410
|
}
|
|
13401
13411
|
}
|
|
13402
13412
|
class TestCaseFhir05 extends TestCaseFhirBase {
|
|
@@ -13442,6 +13452,9 @@ class TestCaseFhir05 extends TestCaseFhirBase {
|
|
|
13442
13452
|
await this.PublishTelemetry();
|
|
13443
13453
|
return true;
|
|
13444
13454
|
});
|
|
13455
|
+
if (this.agentManager) {
|
|
13456
|
+
this.agentManager.agentResetCount = runner.options.agentResetMod;
|
|
13457
|
+
}
|
|
13445
13458
|
}
|
|
13446
13459
|
}
|
|
13447
13460
|
class TestCaseFhirQueryBase extends TestCaseFhirBase {
|
|
@@ -13474,6 +13487,9 @@ class TestCaseFhirQueryBase extends TestCaseFhirBase {
|
|
|
13474
13487
|
await this.PublishTelemetry();
|
|
13475
13488
|
return true;
|
|
13476
13489
|
});
|
|
13490
|
+
if (this.agentManager) {
|
|
13491
|
+
this.agentManager.agentResetCount = runner.options.agentResetMod;
|
|
13492
|
+
}
|
|
13477
13493
|
}
|
|
13478
13494
|
}
|
|
13479
13495
|
class TestCaseFhir06 extends TestCaseFhirQueryBase {
|
|
@@ -13549,8 +13565,6 @@ class TestCaseFhir09 extends TestCaseFhirBase {
|
|
|
13549
13565
|
this.runner.instrumentData.message.push(chalk$1.green(`Iteration: [${iteration} #authUtilsNode(): Agent Reset`));
|
|
13550
13566
|
}
|
|
13551
13567
|
const personRecord = this.GetPersonRecord(`${options.personPrefix}`, iteration);
|
|
13552
|
-
console.log(`***************************************************************`);
|
|
13553
|
-
console.log(`case 09 ID: [${personRecord.id}]`);
|
|
13554
13568
|
if (personRecord.text) {
|
|
13555
13569
|
await this.fhirClient.DeleteResource("Person", personRecord.id, (error) => {
|
|
13556
13570
|
this.LogErrorMessage(`test(POST /stsresource and query using filter): ${error}`);
|
|
@@ -13569,6 +13583,9 @@ class TestCaseFhir09 extends TestCaseFhirBase {
|
|
|
13569
13583
|
await this.PublishTelemetry();
|
|
13570
13584
|
return true;
|
|
13571
13585
|
});
|
|
13586
|
+
if (this.agentManager) {
|
|
13587
|
+
this.agentManager.agentResetCount = runner.options.agentResetMod;
|
|
13588
|
+
}
|
|
13572
13589
|
}
|
|
13573
13590
|
}
|
|
13574
13591
|
class StartUpDelFhirResources extends TestCaseFhirBase {
|