@nsshunt/ststestrunner 1.1.66 → 1.1.69
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 +23 -1
- package/dist/ststestrunner.cjs.map +1 -1
- package/dist/ststestrunner.mjs +23 -1
- package/dist/ststestrunner.mjs.map +1 -1
- package/package.json +1 -1
- package/types/libmodule/testCaseFhirBase.d.ts.map +1 -1
- package/types/libmodule/workerFhirTestCases.d.ts +2 -0
- package/types/libmodule/workerFhirTestCases.d.ts.map +1 -1
package/dist/ststestrunner.cjs
CHANGED
|
@@ -154,8 +154,25 @@ var TestCaseFhirBase = class {
|
|
|
154
154
|
GetFhirSocketClient = async () => {
|
|
155
155
|
try {
|
|
156
156
|
this.#clientSocketFetchCount++;
|
|
157
|
+
const optionszz = this.runnerExecutionWorker.Options;
|
|
158
|
+
if (optionszz) {
|
|
159
|
+
console.log(`-----------------------------------------------------------------------------------------------------------------`);
|
|
160
|
+
console.log(`optionszz`);
|
|
161
|
+
console.log(optionszz);
|
|
162
|
+
console.log(this.runnerExecutionWorker.id);
|
|
163
|
+
console.log(`-----------------------------------------------------------------------------------------------------------------`);
|
|
164
|
+
} else {
|
|
165
|
+
console.log(`-----------------------------------------------------------------------------------------------------------------`);
|
|
166
|
+
console.log(`no optionszz`);
|
|
167
|
+
console.log(this.runnerExecutionWorker.id);
|
|
168
|
+
console.log(`-----------------------------------------------------------------------------------------------------------------`);
|
|
169
|
+
}
|
|
157
170
|
let fhirClient = this.runnerExecutionWorker.GetFhirClient();
|
|
158
|
-
if (fhirClient)
|
|
171
|
+
if (fhirClient) {
|
|
172
|
+
console.log(chalk.default.green(`[${this.runnerExecutionWorker.id}] Getting existing fhir client`));
|
|
173
|
+
return fhirClient;
|
|
174
|
+
}
|
|
175
|
+
console.log(chalk.default.red(`[${this.runnerExecutionWorker.id}] fhir client does not exist - setting up new client`));
|
|
159
176
|
const fhirOptions = this.#options.fhirOptions;
|
|
160
177
|
const options = {
|
|
161
178
|
fhirServerEndpoint: fhirOptions.stsfhirserverendpoint,
|
|
@@ -175,6 +192,7 @@ var TestCaseFhirBase = class {
|
|
|
175
192
|
if (this.runner.options.fhirOptions.stsfhirsocketclientmode === "socket-client-all-in-one") fhirClient = new _nsshunt_stsfhirclient.FhirSocketClientAllInOne("FhirSocketClient", options);
|
|
176
193
|
else fhirClient = new _nsshunt_stsfhirclient.FhirSocketClientIndividual("FhirSocketClient", options);
|
|
177
194
|
await fhirClient.WaitForSocketConnected();
|
|
195
|
+
console.log(chalk.default.red(`[${this.runnerExecutionWorker.id}] setting fhir client into object`));
|
|
178
196
|
this.runnerExecutionWorker.SetFhirClient(fhirClient);
|
|
179
197
|
return fhirClient;
|
|
180
198
|
} catch (error) {
|
|
@@ -35805,11 +35823,15 @@ var WorkerFhirTestCases = class extends _nsshunt_stsrunnerframework.AbstractRunn
|
|
|
35805
35823
|
_options;
|
|
35806
35824
|
_resourceDataGenerator;
|
|
35807
35825
|
fhirClient = void 0;
|
|
35826
|
+
_id = crypto.randomUUID();
|
|
35808
35827
|
constructor(options) {
|
|
35809
35828
|
super();
|
|
35810
35829
|
this._options = options;
|
|
35811
35830
|
this._resourceDataGenerator = new ResourceDataGenerator();
|
|
35812
35831
|
}
|
|
35832
|
+
get id() {
|
|
35833
|
+
return this._id;
|
|
35834
|
+
}
|
|
35813
35835
|
GetFhirClient = () => {
|
|
35814
35836
|
return this.fhirClient;
|
|
35815
35837
|
};
|