@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.
@@ -935,7 +935,7 @@ var TestCaseFhirBase = class {
935
935
  const message = `TestCaseFhir02:ExecuteQuery(): Retry auth attempt: retryCount: [${this.retryCount}], maxAuthRetryCount: [${this.maxAuthRetryCount}]`;
936
936
  this.Error(message);
937
937
  await Sleep(this.retryCount * 1e3);
938
- return this._ExecuteQuery();
938
+ return await this._ExecuteQuery();
939
939
  } else {
940
940
  const message = `TestCaseFhir02:ExecuteQuery(): Max auth retries exceeded: retryCount: [${this.retryCount}], maxAuthRetryCount: [${this.maxAuthRetryCount}], Error: [${error}]`;
941
941
  this.Error(message);
@@ -1044,6 +1044,21 @@ var TestCaseFhir02 = class extends TestCaseFhirQueryBase {
1044
1044
  const __snapshot3 = this._CheckOutputLongDurationError(__snapshot2, "await this.GetPersonRecord()");
1045
1045
  const retVal = await client.PostResource("Person", personRecord);
1046
1046
  this._CheckOutputLongDurationError(__snapshot3, "await this.PostResource()");
1047
+ delete personRecord.meta;
1048
+ delete retVal.body.meta;
1049
+ const p1 = JSON.stringify(personRecord);
1050
+ const p2 = JSON.stringify(retVal.body);
1051
+ if (p1.localeCompare(p2) !== 0) {
1052
+ this.runner.instrumentData.errorCount++;
1053
+ console.log("");
1054
+ console.log(chalk.red(` ==> 2.1 ************************************************************************************************`));
1055
+ console.log(p1);
1056
+ console.log(chalk.red(`************************************************************************************************`));
1057
+ console.log(p2);
1058
+ console.log(chalk.red(`************************************************************************************************`));
1059
+ console.log("");
1060
+ process.exit(1);
1061
+ }
1047
1062
  return retVal.body;
1048
1063
  };
1049
1064
  };
@@ -1062,7 +1077,17 @@ var TestCaseFhir03 = class extends TestCaseFhirQueryBase {
1062
1077
  delete retVal.body.meta;
1063
1078
  const p1 = JSON.stringify(personRecord);
1064
1079
  const p2 = JSON.stringify(retVal.body);
1065
- if (p1.localeCompare(p2) !== 0) this.runner.instrumentData.errorCount++;
1080
+ if (p1.localeCompare(p2) !== 0) {
1081
+ this.runner.instrumentData.errorCount++;
1082
+ console.log("");
1083
+ console.log(chalk.red(` ==> 3.1 ************************************************************************************************`));
1084
+ console.log(p1);
1085
+ console.log(chalk.red(`************************************************************************************************`));
1086
+ console.log(p2);
1087
+ console.log(chalk.red(`************************************************************************************************`));
1088
+ console.log("");
1089
+ process.exit(1);
1090
+ }
1066
1091
  return retVal.body;
1067
1092
  };
1068
1093
  };
@@ -1086,6 +1111,14 @@ var TestCaseFhir04 = class extends TestCaseFhirQueryBase {
1086
1111
  const p2 = JSON.stringify(loadedPersonRecorded);
1087
1112
  if (p1.localeCompare(p2) !== 0) {
1088
1113
  this.runner.instrumentData.errorCount++;
1114
+ console.log("");
1115
+ console.log(chalk.red(` ==> 4.1 ************************************************************************************************`));
1116
+ console.log(p1);
1117
+ console.log(chalk.red(`************************************************************************************************`));
1118
+ console.log(p2);
1119
+ console.log(chalk.red(`************************************************************************************************`));
1120
+ console.log("");
1121
+ process.exit(1);
1089
1122
  return retVal.body;
1090
1123
  }
1091
1124
  const originalPersonRecord = retVal.body;
@@ -1098,7 +1131,17 @@ var TestCaseFhir04 = class extends TestCaseFhirQueryBase {
1098
1131
  delete originalPersonRecord.meta;
1099
1132
  const p1 = JSON.stringify(updatedRecord);
1100
1133
  const p2 = JSON.stringify(originalPersonRecord);
1101
- if (p1.localeCompare(p2) !== 0) this.runner.instrumentData.errorCount++;
1134
+ if (p1.localeCompare(p2) !== 0) {
1135
+ this.runner.instrumentData.errorCount++;
1136
+ console.log("");
1137
+ console.log(chalk.red(` ==> 4.2 ************************************************************************************************`));
1138
+ console.log(p1);
1139
+ console.log(chalk.red(`************************************************************************************************`));
1140
+ console.log(p2);
1141
+ console.log(chalk.red(`************************************************************************************************`));
1142
+ console.log("");
1143
+ process.exit(1);
1144
+ }
1102
1145
  return retVal.body;
1103
1146
  } else {
1104
1147
  this.runner.instrumentData.errorCount++;
@@ -1124,7 +1167,17 @@ var TestCaseFhir05 = class extends TestCaseFhirQueryBase {
1124
1167
  delete originalPersonRecord.meta;
1125
1168
  const p1 = JSON.stringify(updatedRecord);
1126
1169
  const p2 = JSON.stringify(originalPersonRecord);
1127
- if (p1.localeCompare(p2) !== 0) this.runner.instrumentData.errorCount++;
1170
+ if (p1.localeCompare(p2) !== 0) {
1171
+ this.runner.instrumentData.errorCount++;
1172
+ console.log("");
1173
+ console.log(chalk.red(` ==> 5.2 ************************************************************************************************`));
1174
+ console.log(p1);
1175
+ console.log(chalk.red(`************************************************************************************************`));
1176
+ console.log(p2);
1177
+ console.log(chalk.red(`************************************************************************************************`));
1178
+ console.log("");
1179
+ process.exit(1);
1180
+ }
1128
1181
  return retVal.body;
1129
1182
  } else {
1130
1183
  this.runner.instrumentData.errorCount++;