@nsshunt/ststestrunner 1.0.2 → 1.0.4
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
|
@@ -9140,7 +9140,8 @@ class TestCaseFhir01 extends TestCaseFhirBase {
|
|
|
9140
9140
|
if (this.runner.instrumentData.requestCount % options.agentResetMod === 0) {
|
|
9141
9141
|
this.runner.instrumentData.message.push(chalk$1.green(`Iteration: [${this.runner.iteration} #authUtilsNode(): Agent Reset`));
|
|
9142
9142
|
}
|
|
9143
|
-
await this.GetAccessToken();
|
|
9143
|
+
const retVal = await this.GetAccessToken();
|
|
9144
|
+
this.Debug(`ExecuteRunner(): RetVal: [${retVal}]`);
|
|
9144
9145
|
this.accesssToken = null;
|
|
9145
9146
|
this.runner.instrumentData.coreCount = 1;
|
|
9146
9147
|
this.runner.instrumentData.requestCount++;
|
|
@@ -9172,12 +9173,15 @@ class TestCaseFhir02 extends TestCaseFhirBase {
|
|
|
9172
9173
|
this.runner.instrumentData.message.push(chalk$1.green(`Iteration: [${iteration} #authUtilsNode(): Agent Reset`));
|
|
9173
9174
|
}
|
|
9174
9175
|
const personRecord = this.GetPersonRecord(`${options.personPrefix}`, iteration);
|
|
9176
|
+
console.log(chalk$1.yellow(JSON.stringify(personRecord, null, 2)));
|
|
9175
9177
|
try {
|
|
9176
9178
|
const retVal = await this.fhirClient.CreateResource("Person", personRecord, (error) => {
|
|
9177
9179
|
this.LogErrorMessage(`test(POST /stsresource and query using filter): ${error}`);
|
|
9178
9180
|
this.runner.instrumentData.errorCount++;
|
|
9179
9181
|
});
|
|
9182
|
+
console.log(chalk$1.rgb(200, 100, 50)(JSON.stringify(retVal, null, 2)));
|
|
9180
9183
|
} catch (error) {
|
|
9184
|
+
console.log(chalk$1.rgb(200, 100, 50)(error));
|
|
9181
9185
|
this.runner.instrumentData.errorCount++;
|
|
9182
9186
|
}
|
|
9183
9187
|
this.runner.instrumentData.coreCount = 1;
|