@nsshunt/ststestrunner 1.1.95 → 1.1.97
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 +11 -0
- package/dist/ststestrunner.cjs.map +1 -1
- package/dist/ststestrunner.mjs +11 -0
- package/dist/ststestrunner.mjs.map +1 -1
- package/package.json +1 -1
- package/types/libmodule/testCaseFhir03.d.ts.map +1 -1
- package/types/libmodule/testCaseFhir04.d.ts.map +1 -1
- package/types/libmodule/testCaseFhir05.d.ts.map +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/types/libmodule/testCaseFhir10.d.ts.map +1 -1
package/dist/ststestrunner.cjs
CHANGED
|
@@ -1141,6 +1141,7 @@ var TestCaseFhir04 = class extends TestCaseFhirQueryBase {
|
|
|
1141
1141
|
const __snapshot3 = this._CheckOutputLongDurationError(__snapshot2, "await this.GetPersonRecord()");
|
|
1142
1142
|
const retVal = await client.GetResource("Person", personRecord.id);
|
|
1143
1143
|
const __snapshot4 = this._CheckOutputLongDurationError(__snapshot3, "await this.GetResource()");
|
|
1144
|
+
if (retVal.status === StatusCodes.UNAUTHORIZED) throw new Error("UNAUTHORIZED");
|
|
1144
1145
|
this.runner.instrumentData.requestCount++;
|
|
1145
1146
|
const compPersonRecord = { ...personRecord };
|
|
1146
1147
|
const loadedPersonRecorded = { ...retVal.body };
|
|
@@ -1165,6 +1166,7 @@ var TestCaseFhir04 = class extends TestCaseFhirQueryBase {
|
|
|
1165
1166
|
originalPersonRecord.text.div = `Put record TestCaseFhir04 ${this.runner.iteration}`;
|
|
1166
1167
|
const retVal = await client.PutResource("Person", originalPersonRecord, `W/"1"`);
|
|
1167
1168
|
this._CheckOutputLongDurationError(__snapshot4, "await this.PutResource()");
|
|
1169
|
+
if (retVal.status === StatusCodes.UNAUTHORIZED) throw new Error("UNAUTHORIZED");
|
|
1168
1170
|
const updatedRecord = { ...retVal.body };
|
|
1169
1171
|
delete updatedRecord.meta;
|
|
1170
1172
|
delete originalPersonRecord.meta;
|
|
@@ -1201,6 +1203,7 @@ var TestCaseFhir05 = class extends TestCaseFhirQueryBase {
|
|
|
1201
1203
|
originalPersonRecord.text.div = `Put record TestCaseFhir05 ${this.runner.iteration}`;
|
|
1202
1204
|
const retVal = await client.PutResource("Person", originalPersonRecord, `W/"2"`);
|
|
1203
1205
|
this._CheckOutputLongDurationError(__snapshot3, "await this.PutResource()");
|
|
1206
|
+
if (retVal.status === StatusCodes.UNAUTHORIZED) throw new Error("UNAUTHORIZED");
|
|
1204
1207
|
const updatedRecord = { ...retVal.body };
|
|
1205
1208
|
delete updatedRecord.meta;
|
|
1206
1209
|
delete originalPersonRecord.meta;
|
|
@@ -1244,9 +1247,11 @@ var TestCaseFhir06 = class extends TestCaseFhirQueryBase {
|
|
|
1244
1247
|
};
|
|
1245
1248
|
retVal = await client.GenericSearchTesting("Person", data);
|
|
1246
1249
|
this._CheckOutputLongDurationError(__snapshot3, "await this.GenericSearchTesting()");
|
|
1250
|
+
if (retVal.status === StatusCodes.UNAUTHORIZED) throw new Error("UNAUTHORIZED");
|
|
1247
1251
|
} else {
|
|
1248
1252
|
retVal = await client.GetResources(url);
|
|
1249
1253
|
this._CheckOutputLongDurationError(__snapshot3, "await this.GetResources()");
|
|
1254
|
+
if (retVal.status === StatusCodes.UNAUTHORIZED) throw new Error("UNAUTHORIZED");
|
|
1250
1255
|
}
|
|
1251
1256
|
return retVal.body;
|
|
1252
1257
|
};
|
|
@@ -1909,12 +1914,14 @@ var TestCaseFhir07 = class extends TestCaseFhirQueryBase {
|
|
|
1909
1914
|
const __snapshot3 = this._CheckOutputLongDurationError(__snapshot2, "await this.GetPersonRecord()");
|
|
1910
1915
|
const retVal = await client.GetResource("Person", personRecord.id);
|
|
1911
1916
|
const __snapshot4 = this._CheckOutputLongDurationError(__snapshot3, "await this.GetResource()");
|
|
1917
|
+
if (retVal.status === StatusCodes.UNAUTHORIZED) throw new Error("UNAUTHORIZED");
|
|
1912
1918
|
const resource = retVal.body;
|
|
1913
1919
|
const observer = fast_json_patch_default.observe(resource);
|
|
1914
1920
|
resource.text.div = `Json Patched record TestCaseFhir07 ${this.runner.iteration}`;
|
|
1915
1921
|
const patchRecord = fast_json_patch_default.generate(observer);
|
|
1916
1922
|
const retValPatched = await client.PatchResource("Person", personRecord.id, patchRecord, `application/json-patch+json`, `W/"3"`);
|
|
1917
1923
|
this._CheckOutputLongDurationError(__snapshot4, "await this.PatchResource()");
|
|
1924
|
+
if (retValPatched.status === StatusCodes.UNAUTHORIZED) throw new Error("UNAUTHORIZED");
|
|
1918
1925
|
return retValPatched.body;
|
|
1919
1926
|
};
|
|
1920
1927
|
};
|
|
@@ -1929,10 +1936,12 @@ var TestCaseFhir08 = class extends TestCaseFhirQueryBase {
|
|
|
1929
1936
|
const __snapshot3 = this._CheckOutputLongDurationError(__snapshot2, "await this.GetPersonRecord()");
|
|
1930
1937
|
const retVal = await client.GetResource("Person", personRecord.id);
|
|
1931
1938
|
const __snapshot4 = this._CheckOutputLongDurationError(__snapshot3, "await this.GetResource()");
|
|
1939
|
+
if (retVal.status === StatusCodes.UNAUTHORIZED) throw new Error("UNAUTHORIZED");
|
|
1932
1940
|
const resource = retVal.body;
|
|
1933
1941
|
resource.text.div = `Merge Patched record TestCaseFhir08 ${this.runner.iteration}`;
|
|
1934
1942
|
const retValPatched = await client.PatchResource("Person", personRecord.id, resource, `application/merge-patch+json`, `W/"4"`);
|
|
1935
1943
|
this._CheckOutputLongDurationError(__snapshot4, "await this.PatchResource()");
|
|
1944
|
+
if (retValPatched.status === StatusCodes.UNAUTHORIZED) throw new Error("UNAUTHORIZED");
|
|
1936
1945
|
return retValPatched.body;
|
|
1937
1946
|
};
|
|
1938
1947
|
};
|
|
@@ -1948,6 +1957,7 @@ var TestCaseFhir09 = class extends TestCaseFhirQueryBase {
|
|
|
1948
1957
|
if (personRecord.text) try {
|
|
1949
1958
|
const retVal = await client.DeleteResource("Person", personRecord.id, `W/"5"`);
|
|
1950
1959
|
this._CheckOutputLongDurationError(__snapshot3, "await this.DeleteResource()");
|
|
1960
|
+
if (retVal.status === StatusCodes.UNAUTHORIZED) throw new Error("UNAUTHORIZED");
|
|
1951
1961
|
return retVal.body;
|
|
1952
1962
|
} catch (error) {
|
|
1953
1963
|
if (axios.default.isAxiosError(error)) {
|
|
@@ -1975,6 +1985,7 @@ var TestCaseFhir10 = class extends TestCaseFhirQueryBase {
|
|
|
1975
1985
|
const __snapshot3 = this._CheckOutputLongDurationError(__snapshot2, "await this.GetPersonRecord()");
|
|
1976
1986
|
const retVal = await client.GetHistoryInstanceFhirResource("Person", personRecord.id, "2");
|
|
1977
1987
|
this._CheckOutputLongDurationError(__snapshot3, "await this.GetHistoryInstanceFhirResource()");
|
|
1988
|
+
if (retVal.status === StatusCodes.UNAUTHORIZED) throw new Error("UNAUTHORIZED");
|
|
1978
1989
|
return retVal.body;
|
|
1979
1990
|
};
|
|
1980
1991
|
};
|