@nsshunt/ststestrunner 1.1.94 → 1.1.95
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
|
@@ -767,6 +767,11 @@ var TestCaseFhirBase = class {
|
|
|
767
767
|
return true;
|
|
768
768
|
}
|
|
769
769
|
} else this.Error(chalk.default.red(`TestCaseFhirBase:HandleError(): AXIOS Error = [${axiosError}]`));
|
|
770
|
+
} else if (error.message === "UNAUTHORIZED") {
|
|
771
|
+
this.runner.instrumentData.authenticationErrorCount++;
|
|
772
|
+
this.Error(chalk.default.red(`TestCaseFhirBase:HandleError(): UNAUTHORIZED - Reset Access Token`));
|
|
773
|
+
this.ResetAccessToken();
|
|
774
|
+
return true;
|
|
770
775
|
}
|
|
771
776
|
return false;
|
|
772
777
|
};
|
|
@@ -1077,6 +1082,7 @@ var TestCaseFhir02 = class extends TestCaseFhirQueryBase {
|
|
|
1077
1082
|
const __snapshot3 = this._CheckOutputLongDurationError(__snapshot2, "await this.GetPersonRecord()");
|
|
1078
1083
|
const retVal = await client.PostResource("Person", personRecord);
|
|
1079
1084
|
this._CheckOutputLongDurationError(__snapshot3, "await this.PostResource()");
|
|
1085
|
+
if (retVal.status === StatusCodes.UNAUTHORIZED) throw new Error("UNAUTHORIZED");
|
|
1080
1086
|
delete personRecord.meta;
|
|
1081
1087
|
delete retVal.body.meta;
|
|
1082
1088
|
const p1 = JSON.stringify(personRecord);
|