@nsshunt/ststestrunner 1.1.125 → 1.1.126
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
|
@@ -2168,15 +2168,31 @@ var TestCaseFhir07 = class extends TestCaseFhirQueryBase {
|
|
|
2168
2168
|
const __snapshot4 = this._CheckOutputLongDurationError(__snapshot3, "await this.GetResource()");
|
|
2169
2169
|
if (retVal.status === StatusCodes.UNAUTHORIZED) throw new Error("UNAUTHORIZED");
|
|
2170
2170
|
const resource = retVal.body;
|
|
2171
|
+
const patchText = `Json Patched record TestCaseFhir07 ${this.runner.iteration}`;
|
|
2171
2172
|
const observer = fast_json_patch_default.observe(resource);
|
|
2172
|
-
resource.text.div =
|
|
2173
|
+
resource.text.div = patchText;
|
|
2173
2174
|
const patchRecord = fast_json_patch_default.generate(observer);
|
|
2174
2175
|
const retValPatched = await client.PatchResource("Person", personRecord.id, patchRecord, `application/json-patch+json`, `W/"3"`);
|
|
2175
2176
|
this._CheckOutputLongDurationError(__snapshot4, "await this.PatchResource()");
|
|
2176
2177
|
if (retValPatched.status === StatusCodes.UNAUTHORIZED) throw new Error("UNAUTHORIZED");
|
|
2177
|
-
|
|
2178
|
-
|
|
2179
|
-
|
|
2178
|
+
const retRecordCheck = { ...retValPatched.body };
|
|
2179
|
+
personRecord.text.div = patchText;
|
|
2180
|
+
personRecord.meta.versionId = "4";
|
|
2181
|
+
delete personRecord.meta.lastUpdated;
|
|
2182
|
+
delete retRecordCheck.meta.lastUpdated;
|
|
2183
|
+
const p1 = JSON.stringify(personRecord);
|
|
2184
|
+
const p2 = JSON.stringify(retRecordCheck);
|
|
2185
|
+
if (p1.localeCompare(p2) !== 0) {
|
|
2186
|
+
this.runner.instrumentData.errorCount++;
|
|
2187
|
+
console.log("");
|
|
2188
|
+
console.log(chalk.default.red(` ==> 7.1 ************************************************************************************************`));
|
|
2189
|
+
console.log(p1);
|
|
2190
|
+
console.log(chalk.default.red(`************************************************************************************************`));
|
|
2191
|
+
console.log(p2);
|
|
2192
|
+
console.log(chalk.default.red(`************************************************************************************************`));
|
|
2193
|
+
console.log("");
|
|
2194
|
+
process.exit(1);
|
|
2195
|
+
}
|
|
2180
2196
|
return retValPatched.body;
|
|
2181
2197
|
};
|
|
2182
2198
|
};
|