@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.mjs
CHANGED
|
@@ -743,6 +743,11 @@ var TestCaseFhirBase = class {
|
|
|
743
743
|
return true;
|
|
744
744
|
}
|
|
745
745
|
} else this.Error(chalk.red(`TestCaseFhirBase:HandleError(): AXIOS Error = [${axiosError}]`));
|
|
746
|
+
} else if (error.message === "UNAUTHORIZED") {
|
|
747
|
+
this.runner.instrumentData.authenticationErrorCount++;
|
|
748
|
+
this.Error(chalk.red(`TestCaseFhirBase:HandleError(): UNAUTHORIZED - Reset Access Token`));
|
|
749
|
+
this.ResetAccessToken();
|
|
750
|
+
return true;
|
|
746
751
|
}
|
|
747
752
|
return false;
|
|
748
753
|
};
|
|
@@ -1053,6 +1058,7 @@ var TestCaseFhir02 = class extends TestCaseFhirQueryBase {
|
|
|
1053
1058
|
const __snapshot3 = this._CheckOutputLongDurationError(__snapshot2, "await this.GetPersonRecord()");
|
|
1054
1059
|
const retVal = await client.PostResource("Person", personRecord);
|
|
1055
1060
|
this._CheckOutputLongDurationError(__snapshot3, "await this.PostResource()");
|
|
1061
|
+
if (retVal.status === StatusCodes.UNAUTHORIZED) throw new Error("UNAUTHORIZED");
|
|
1056
1062
|
delete personRecord.meta;
|
|
1057
1063
|
delete retVal.body.meta;
|
|
1058
1064
|
const p1 = JSON.stringify(personRecord);
|