@nsshunt/ststestrunner 1.0.44 → 1.0.46
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
|
@@ -13551,21 +13551,30 @@ class StartUpDelFhirResources extends TestCaseFhirBase {
|
|
|
13551
13551
|
let complete = false;
|
|
13552
13552
|
let totalRecordsDelete = 0;
|
|
13553
13553
|
while (!complete) {
|
|
13554
|
+
const start2 = performance.now();
|
|
13554
13555
|
__privateGet(this, _debug3).call(this, chalk$1.magenta(`ExecuteRunner() - pre GetResources()`));
|
|
13555
13556
|
const retVal = await this.fhirClient.GetResources("Person", null, {
|
|
13556
13557
|
limit: options.batchDeleteSize,
|
|
13557
13558
|
prefix: options.personPrefix
|
|
13558
13559
|
}, (error) => {
|
|
13559
|
-
this.LogErrorMessage(chalk$1.red(`
|
|
13560
|
+
this.LogErrorMessage(chalk$1.red(`ExecuteRunner():GetResources: Error: [${error}]`));
|
|
13561
|
+
const duration2 = (performance.now() - start2) / 1e3;
|
|
13562
|
+
__privateGet(this, _debug3).call(this, chalk$1.magenta(`ExecuteRunner() - post GetResources() - Total Duration (error): [${duration2}]`));
|
|
13560
13563
|
});
|
|
13561
|
-
|
|
13564
|
+
const duration = (performance.now() - start2) / 1e3;
|
|
13565
|
+
__privateGet(this, _debug3).call(this, chalk$1.magenta(`ExecuteRunner() - post GetResources() - Total Duration: [${duration}]`));
|
|
13562
13566
|
__privateGet(this, _debug3).call(this, retVal);
|
|
13563
13567
|
if (retVal) {
|
|
13564
13568
|
__privateGet(this, _debug3).call(this, `Records already exist - going to delete ...`);
|
|
13565
13569
|
__privateGet(this, _debug3).call(this, retVal.length);
|
|
13570
|
+
const start3 = performance.now();
|
|
13566
13571
|
const delRetVal = await this.fhirClient.DeleteResources("Person", retVal, (error) => {
|
|
13567
13572
|
this.LogErrorMessage(chalk$1.red(`test(POST /stsresource and query using filter): ${error}`));
|
|
13573
|
+
const duration3 = (performance.now() - start3) / 1e3;
|
|
13574
|
+
__privateGet(this, _debug3).call(this, chalk$1.magenta(`ExecuteRunner() - post DeleteResources() - Total Duration (error): [${duration3}]`));
|
|
13568
13575
|
});
|
|
13576
|
+
const duration2 = (performance.now() - start3) / 1e3;
|
|
13577
|
+
__privateGet(this, _debug3).call(this, chalk$1.magenta(`ExecuteRunner() - post DeleteResources() - Total Duration: [${duration2}]`));
|
|
13569
13578
|
if (delRetVal) {
|
|
13570
13579
|
if (delRetVal.length === 0) {
|
|
13571
13580
|
complete = true;
|