@nsshunt/ststestrunner 1.1.163 → 1.1.165
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.cjs
CHANGED
|
@@ -1554,7 +1554,7 @@ var TestCaseFhir04 = class extends TestCaseFhirQueryBase {
|
|
|
1554
1554
|
this.runner.instrumentData.requestCount++;
|
|
1555
1555
|
const compPersonRecord = { ...personRecord };
|
|
1556
1556
|
const loadedPersonRecorded = { ...retVal.body };
|
|
1557
|
-
const loadedRecordVersion = loadedPersonRecorded.meta.versionId;
|
|
1557
|
+
const loadedRecordVersion = parseInt(loadedPersonRecorded.meta.versionId);
|
|
1558
1558
|
delete compPersonRecord.meta;
|
|
1559
1559
|
delete loadedPersonRecorded.meta;
|
|
1560
1560
|
if (loadedRecordVersion > 1) compPersonRecord.text.div = `Put record TestCaseFhir04 ${this.runner.iteration % this.GetMaxIteration(prefix)}`;
|
|
@@ -2275,7 +2275,7 @@ var TestCaseFhir06 = class extends TestCaseFhirQueryBase {
|
|
|
2275
2275
|
const __snapshot4 = this._CheckOutputLongDurationError(__snapshot3, "await this.GetResource()");
|
|
2276
2276
|
if (retVal.status === StatusCodes.UNAUTHORIZED) throw new Error("UNAUTHORIZED");
|
|
2277
2277
|
const resource = retVal.body;
|
|
2278
|
-
const loadedRecordVersion = resource.meta.versionId;
|
|
2278
|
+
const loadedRecordVersion = parseInt(resource.meta.versionId);
|
|
2279
2279
|
const patchText = `Json Patched record TestCaseFhir07 ${this.runner.iteration % this.GetMaxIteration(prefix)}`;
|
|
2280
2280
|
const observer = fast_json_patch_default.observe(resource);
|
|
2281
2281
|
resource.text.div = patchText;
|
|
@@ -2306,7 +2306,7 @@ var TestCaseFhir07 = class extends TestCaseFhirQueryBase {
|
|
|
2306
2306
|
const __snapshot4 = this._CheckOutputLongDurationError(__snapshot3, "await this.GetResource()");
|
|
2307
2307
|
if (retVal.status === StatusCodes.UNAUTHORIZED) throw new Error("UNAUTHORIZED");
|
|
2308
2308
|
const resource = retVal.body;
|
|
2309
|
-
const loadedRecordVersion = resource.meta.versionId;
|
|
2309
|
+
const loadedRecordVersion = parseInt(resource.meta.versionId);
|
|
2310
2310
|
const patchText = `Merge Patched record TestCaseFhir08 ${this.runner.iteration & this.GetMaxIteration(prefix)}`;
|
|
2311
2311
|
resource.text.div = patchText;
|
|
2312
2312
|
const retValPatched = await client.PatchResource("Person", personRecord.id, resource, `application/merge-patch+json`, `W/"${loadedRecordVersion}"`);
|
|
@@ -2334,7 +2334,8 @@ var TestCaseFhir08 = class extends TestCaseFhirQueryBase {
|
|
|
2334
2334
|
const retVal = await client.GetResource("Person", personRecord.id);
|
|
2335
2335
|
const __snapshot4 = this._CheckOutputLongDurationError(__snapshot3, "await this.GetResource()");
|
|
2336
2336
|
if (retVal.status === StatusCodes.UNAUTHORIZED) throw new Error("UNAUTHORIZED");
|
|
2337
|
-
const
|
|
2337
|
+
const resource = retVal.body;
|
|
2338
|
+
const loadedRecordVersion = parseInt(resource.meta.versionId);
|
|
2338
2339
|
try {
|
|
2339
2340
|
const retVal = await client.DeleteResource("Person", personRecord.id, `W/"${loadedRecordVersion}"`);
|
|
2340
2341
|
this._CheckOutputLongDurationError(__snapshot4, "await this.DeleteResource()");
|