@nsshunt/ststestrunner 1.1.87 → 1.1.89

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.
@@ -959,7 +959,7 @@ var TestCaseFhirBase = class {
959
959
  const message = `TestCaseFhir02:ExecuteQuery(): Retry auth attempt: retryCount: [${this.retryCount}], maxAuthRetryCount: [${this.maxAuthRetryCount}]`;
960
960
  this.Error(message);
961
961
  await (0, _nsshunt_stsutils.Sleep)(this.retryCount * 1e3);
962
- return this._ExecuteQuery();
962
+ return await this._ExecuteQuery();
963
963
  } else {
964
964
  const message = `TestCaseFhir02:ExecuteQuery(): Max auth retries exceeded: retryCount: [${this.retryCount}], maxAuthRetryCount: [${this.maxAuthRetryCount}], Error: [${error}]`;
965
965
  this.Error(message);
@@ -1068,6 +1068,21 @@ var TestCaseFhir02 = class extends TestCaseFhirQueryBase {
1068
1068
  const __snapshot3 = this._CheckOutputLongDurationError(__snapshot2, "await this.GetPersonRecord()");
1069
1069
  const retVal = await client.PostResource("Person", personRecord);
1070
1070
  this._CheckOutputLongDurationError(__snapshot3, "await this.PostResource()");
1071
+ delete personRecord.meta;
1072
+ delete retVal.body.meta;
1073
+ const p1 = JSON.stringify(personRecord);
1074
+ const p2 = JSON.stringify(retVal.body);
1075
+ if (p1.localeCompare(p2) !== 0) {
1076
+ this.runner.instrumentData.errorCount++;
1077
+ console.log("");
1078
+ console.log(chalk.default.red(` ==> 2.1 ************************************************************************************************`));
1079
+ console.log(p1);
1080
+ console.log(chalk.default.red(`************************************************************************************************`));
1081
+ console.log(p2);
1082
+ console.log(chalk.default.red(`************************************************************************************************`));
1083
+ console.log("");
1084
+ process.exit(1);
1085
+ }
1071
1086
  return retVal.body;
1072
1087
  };
1073
1088
  };
@@ -1086,7 +1101,17 @@ var TestCaseFhir03 = class extends TestCaseFhirQueryBase {
1086
1101
  delete retVal.body.meta;
1087
1102
  const p1 = JSON.stringify(personRecord);
1088
1103
  const p2 = JSON.stringify(retVal.body);
1089
- if (p1.localeCompare(p2) !== 0) this.runner.instrumentData.errorCount++;
1104
+ if (p1.localeCompare(p2) !== 0) {
1105
+ this.runner.instrumentData.errorCount++;
1106
+ console.log("");
1107
+ console.log(chalk.default.red(` ==> 3.1 ************************************************************************************************`));
1108
+ console.log(p1);
1109
+ console.log(chalk.default.red(`************************************************************************************************`));
1110
+ console.log(p2);
1111
+ console.log(chalk.default.red(`************************************************************************************************`));
1112
+ console.log("");
1113
+ process.exit(1);
1114
+ }
1090
1115
  return retVal.body;
1091
1116
  };
1092
1117
  };
@@ -1110,6 +1135,14 @@ var TestCaseFhir04 = class extends TestCaseFhirQueryBase {
1110
1135
  const p2 = JSON.stringify(loadedPersonRecorded);
1111
1136
  if (p1.localeCompare(p2) !== 0) {
1112
1137
  this.runner.instrumentData.errorCount++;
1138
+ console.log("");
1139
+ console.log(chalk.default.red(` ==> 4.1 ************************************************************************************************`));
1140
+ console.log(p1);
1141
+ console.log(chalk.default.red(`************************************************************************************************`));
1142
+ console.log(p2);
1143
+ console.log(chalk.default.red(`************************************************************************************************`));
1144
+ console.log("");
1145
+ process.exit(1);
1113
1146
  return retVal.body;
1114
1147
  }
1115
1148
  const originalPersonRecord = retVal.body;
@@ -1122,7 +1155,17 @@ var TestCaseFhir04 = class extends TestCaseFhirQueryBase {
1122
1155
  delete originalPersonRecord.meta;
1123
1156
  const p1 = JSON.stringify(updatedRecord);
1124
1157
  const p2 = JSON.stringify(originalPersonRecord);
1125
- if (p1.localeCompare(p2) !== 0) this.runner.instrumentData.errorCount++;
1158
+ if (p1.localeCompare(p2) !== 0) {
1159
+ this.runner.instrumentData.errorCount++;
1160
+ console.log("");
1161
+ console.log(chalk.default.red(` ==> 4.2 ************************************************************************************************`));
1162
+ console.log(p1);
1163
+ console.log(chalk.default.red(`************************************************************************************************`));
1164
+ console.log(p2);
1165
+ console.log(chalk.default.red(`************************************************************************************************`));
1166
+ console.log("");
1167
+ process.exit(1);
1168
+ }
1126
1169
  return retVal.body;
1127
1170
  } else {
1128
1171
  this.runner.instrumentData.errorCount++;
@@ -1148,7 +1191,17 @@ var TestCaseFhir05 = class extends TestCaseFhirQueryBase {
1148
1191
  delete originalPersonRecord.meta;
1149
1192
  const p1 = JSON.stringify(updatedRecord);
1150
1193
  const p2 = JSON.stringify(originalPersonRecord);
1151
- if (p1.localeCompare(p2) !== 0) this.runner.instrumentData.errorCount++;
1194
+ if (p1.localeCompare(p2) !== 0) {
1195
+ this.runner.instrumentData.errorCount++;
1196
+ console.log("");
1197
+ console.log(chalk.default.red(` ==> 5.2 ************************************************************************************************`));
1198
+ console.log(p1);
1199
+ console.log(chalk.default.red(`************************************************************************************************`));
1200
+ console.log(p2);
1201
+ console.log(chalk.default.red(`************************************************************************************************`));
1202
+ console.log("");
1203
+ process.exit(1);
1204
+ }
1152
1205
  return retVal.body;
1153
1206
  } else {
1154
1207
  this.runner.instrumentData.errorCount++;