@nsshunt/ststestrunner 1.1.84 → 1.1.85
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
|
@@ -734,11 +734,6 @@ var TestCaseFhirBase = class {
|
|
|
734
734
|
this.Error(chalk.red(`TestCaseFhirBase:HandleError(): AXIOS Error Response.Status = [${axiosError.response.status}]`));
|
|
735
735
|
if (axiosError.response.headers) this.Error(chalk.red(`TestCaseFhirBase:HandleError(): headers: [${JSON.stringify(axiosError.response.headers)}]`));
|
|
736
736
|
if (axiosError.response.data) this.Error(chalk.red(`TestCaseFhirBase:HandleError(): data: [${JSON.stringify(axiosError.response.data)}]`));
|
|
737
|
-
try {
|
|
738
|
-
if (axiosError.response.config) this.Error(chalk.red(`TestCaseFhirBase:HandleError(): config: [${JSON.stringify(axiosError.response.config)}]`));
|
|
739
|
-
} catch (innererror) {
|
|
740
|
-
this.Error(chalk.red(`TestCaseFhirBase:HandleError(): could not get response config, error: [${innererror}]`));
|
|
741
|
-
}
|
|
742
737
|
if (axiosError.response.status === StatusCodes.UNAUTHORIZED) {
|
|
743
738
|
this.runner.instrumentData.authenticationErrorCount++;
|
|
744
739
|
this.Error(chalk.red(`TestCaseFhirBase:HandleError(): UNAUTHORIZED - Reset Access Token`));
|
|
@@ -1047,9 +1042,10 @@ var TestCaseFhir02 = class extends TestCaseFhirQueryBase {
|
|
|
1047
1042
|
this.runner.instrumentData.errorCount++;
|
|
1048
1043
|
if (this.HandleError(error) === true) if (this.retryCount < this.maxAuthRetryCount) {
|
|
1049
1044
|
this.retryCount++;
|
|
1045
|
+
this.runner.instrumentData.authenticationRetryCount++;
|
|
1050
1046
|
const message = `TestCaseFhir02:ExecuteQuery(): Retry auth attempt: retryCount: [${this.retryCount}], maxAuthRetryCount: [${this.maxAuthRetryCount}]`;
|
|
1051
1047
|
this.Error(message);
|
|
1052
|
-
await Sleep(
|
|
1048
|
+
await Sleep(this.retryCount * 1e3);
|
|
1053
1049
|
return this._ExecuteQuery();
|
|
1054
1050
|
} else {
|
|
1055
1051
|
const message = `TestCaseFhir02:ExecuteQuery(): Max auth retries exceeded: retryCount: [${this.retryCount}], maxAuthRetryCount: [${this.maxAuthRetryCount}], Error: [${error}]`;
|