@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.
@@ -28,6 +28,7 @@ var TestCaseFhirBase = class {
28
28
  #publishTelemetryTimeout = null;
29
29
  #publishTelemetryTimeoutVal = 1e3;
30
30
  #originRegex = /^(api:\/\/\w+)/;
31
+ #authAgentManager;
31
32
  accessTokenTime = performance.now();
32
33
  newTokenLimitTime = 30;
33
34
  fhirClient = null;
@@ -60,6 +61,7 @@ var TestCaseFhirBase = class {
60
61
  this.#options = runner.options;
61
62
  this.#runnerExecutionWorker = runnerExecutionWorker;
62
63
  this.#runner = runner;
64
+ this.#authAgentManager = this.GetAuthAgentManager();
63
65
  }
64
66
  get runnerExecutionWorker() {
65
67
  return this.#runnerExecutionWorker;
@@ -247,8 +249,7 @@ var TestCaseFhirBase = class {
247
249
  const url = endPoint ? `${endPoint}${this.#options.authOptions.asoauthapiroot}/token` : `${this.#options.authOptions.asendpoint}:${this.#options.authOptions.asport}${this.#options.authOptions.asoauthapiroot}/token`;
248
250
  stage = `6.5: url: [${url}] payload: [${JSON.stringify(payload)}]`;
249
251
  const axiosConfig = new STSAxiosConfig(url, "post").withDefaultHeaders().withData(payload);
250
- const agentManager = this.GetAuthAgentManager();
251
- if (agentManager) axiosConfig.withAgentManager(agentManager);
252
+ if (this.#authAgentManager) axiosConfig.withAgentManager(this.#authAgentManager);
252
253
  const retVal = await createRetryAxiosClient({
253
254
  maxRetries: 4,
254
255
  retryDelayMs: 300,