@nsshunt/ststestrunner 1.1.31 → 1.1.33

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.
@@ -51,6 +51,7 @@ var TestCaseFhirBase = class {
51
51
  #publishTelemetryTimeout = null;
52
52
  #publishTelemetryTimeoutVal = 1e3;
53
53
  #originRegex = /^(api:\/\/\w+)/;
54
+ #authAgentManager;
54
55
  accessTokenTime = performance.now();
55
56
  newTokenLimitTime = 30;
56
57
  fhirClient = null;
@@ -83,6 +84,7 @@ var TestCaseFhirBase = class {
83
84
  this.#options = runner.options;
84
85
  this.#runnerExecutionWorker = runnerExecutionWorker;
85
86
  this.#runner = runner;
87
+ this.#authAgentManager = this.GetAuthAgentManager();
86
88
  }
87
89
  get runnerExecutionWorker() {
88
90
  return this.#runnerExecutionWorker;
@@ -270,8 +272,7 @@ var TestCaseFhirBase = class {
270
272
  const url = endPoint ? `${endPoint}${this.#options.authOptions.asoauthapiroot}/token` : `${this.#options.authOptions.asendpoint}:${this.#options.authOptions.asport}${this.#options.authOptions.asoauthapiroot}/token`;
271
273
  stage = `6.5: url: [${url}] payload: [${JSON.stringify(payload)}]`;
272
274
  const axiosConfig = new _nsshunt_stsutils.STSAxiosConfig(url, "post").withDefaultHeaders().withData(payload);
273
- const agentManager = this.GetAuthAgentManager();
274
- if (agentManager) axiosConfig.withAgentManager(agentManager);
275
+ if (this.#authAgentManager) axiosConfig.withAgentManager(this.#authAgentManager);
275
276
  const retVal = await (0, _nsshunt_stsfhirclient.createRetryAxiosClient)({
276
277
  maxRetries: 4,
277
278
  retryDelayMs: 300,