@nsshunt/ststestrunner 1.1.124 → 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 +29 -1
- package/dist/ststestrunner.cjs.map +1 -1
- package/dist/ststestrunner.mjs +29 -1
- package/dist/ststestrunner.mjs.map +1 -1
- package/package.json +1 -1
- package/types/libmodule/testCaseFhir06.d.ts.map +1 -1
- package/types/libmodule/testCaseFhir07.d.ts.map +1 -1
- package/types/libmodule/testCaseFhir08.d.ts.map +1 -1
- package/types/libmodule/testCaseFhir09.d.ts.map +1 -1
package/dist/ststestrunner.cjs
CHANGED
|
@@ -1502,6 +1502,9 @@ var TestCaseFhir06 = class extends TestCaseFhirQueryBase {
|
|
|
1502
1502
|
this._CheckOutputLongDurationError(__snapshot3, "await this.GetResources()");
|
|
1503
1503
|
if (retVal.status === StatusCodes.UNAUTHORIZED) throw new Error("UNAUTHORIZED");
|
|
1504
1504
|
}
|
|
1505
|
+
console.log("06");
|
|
1506
|
+
console.log(personRecord);
|
|
1507
|
+
console.log(retVal.body);
|
|
1505
1508
|
return retVal.body;
|
|
1506
1509
|
};
|
|
1507
1510
|
};
|
|
@@ -2165,12 +2168,31 @@ var TestCaseFhir07 = class extends TestCaseFhirQueryBase {
|
|
|
2165
2168
|
const __snapshot4 = this._CheckOutputLongDurationError(__snapshot3, "await this.GetResource()");
|
|
2166
2169
|
if (retVal.status === StatusCodes.UNAUTHORIZED) throw new Error("UNAUTHORIZED");
|
|
2167
2170
|
const resource = retVal.body;
|
|
2171
|
+
const patchText = `Json Patched record TestCaseFhir07 ${this.runner.iteration}`;
|
|
2168
2172
|
const observer = fast_json_patch_default.observe(resource);
|
|
2169
|
-
resource.text.div =
|
|
2173
|
+
resource.text.div = patchText;
|
|
2170
2174
|
const patchRecord = fast_json_patch_default.generate(observer);
|
|
2171
2175
|
const retValPatched = await client.PatchResource("Person", personRecord.id, patchRecord, `application/json-patch+json`, `W/"3"`);
|
|
2172
2176
|
this._CheckOutputLongDurationError(__snapshot4, "await this.PatchResource()");
|
|
2173
2177
|
if (retValPatched.status === StatusCodes.UNAUTHORIZED) throw new Error("UNAUTHORIZED");
|
|
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
|
+
}
|
|
2174
2196
|
return retValPatched.body;
|
|
2175
2197
|
};
|
|
2176
2198
|
};
|
|
@@ -2191,6 +2213,9 @@ var TestCaseFhir08 = class extends TestCaseFhirQueryBase {
|
|
|
2191
2213
|
const retValPatched = await client.PatchResource("Person", personRecord.id, resource, `application/merge-patch+json`, `W/"4"`);
|
|
2192
2214
|
this._CheckOutputLongDurationError(__snapshot4, "await this.PatchResource()");
|
|
2193
2215
|
if (retValPatched.status === StatusCodes.UNAUTHORIZED) throw new Error("UNAUTHORIZED");
|
|
2216
|
+
console.log("08");
|
|
2217
|
+
console.log(personRecord);
|
|
2218
|
+
console.log(retValPatched.body);
|
|
2194
2219
|
return retValPatched.body;
|
|
2195
2220
|
};
|
|
2196
2221
|
};
|
|
@@ -2207,6 +2232,9 @@ var TestCaseFhir09 = class extends TestCaseFhirQueryBase {
|
|
|
2207
2232
|
const retVal = await client.DeleteResource("Person", personRecord.id, `W/"5"`);
|
|
2208
2233
|
this._CheckOutputLongDurationError(__snapshot3, "await this.DeleteResource()");
|
|
2209
2234
|
if (retVal.status === StatusCodes.UNAUTHORIZED) throw new Error("UNAUTHORIZED");
|
|
2235
|
+
console.log("09");
|
|
2236
|
+
console.log(personRecord);
|
|
2237
|
+
console.log(retVal.body);
|
|
2210
2238
|
return retVal.body;
|
|
2211
2239
|
} catch (error) {
|
|
2212
2240
|
if (axios.default.isAxiosError(error)) {
|