some cleanup (#840)
* some cleanup * results from mvn spotless:apply * fix contructor --> constructor * revert change to fix CdsHooksServletIT * revert change to charts README.md * bump chart version, required due to changes in README.md
This commit is contained in:
@@ -15,7 +15,7 @@ on the jetbrains website, in addition to the [API reference][Link-HTTP-Client-Re
|
||||
|
||||
### Formatting
|
||||
Each test file corresponds to a given section within the hapifhir documentation as close as possible. For
|
||||
example, there is a `plain_server.rest` file, which attemps to smoke test all basic functionality outlined in the section
|
||||
example, there is a `plain_server.rest` file, which attempts to smoke test all basic functionality outlined in the section
|
||||
[within the docs][Link-HAPI-FHIR-docs-plain-server].
|
||||
|
||||
Individual tests are formatted as follows:
|
||||
@@ -38,7 +38,7 @@ To run these tests against a specific server, configure the server details withi
|
||||
```
|
||||
|
||||
### Running the Tests
|
||||
Within IntelliJ, right click the file you wish to run tests in and select the `Run All` option from the menu.
|
||||
Within IntelliJ, right-click the file you wish to run tests in and select the `Run All` option from the menu.
|
||||
|
||||
**Important:** Tests may not work individually when run. Often times, tests need to be run sequentially, as they depend
|
||||
on resources/references from previous tests to complete. _(An example of this would be adding a Patient, saving the id,
|
||||
|
||||
@@ -81,13 +81,13 @@ Content-Type: application/json
|
||||
client.assert(resourceType === "Bundle", "Expected 'Bundle' but received '" + resourceType + "'");
|
||||
});
|
||||
client.test("All patient additions successful", function() {
|
||||
for (var index = 0; index < response.body.entry.length; index++) {
|
||||
for (let index = 0; index < response.body.entry.length; index++) {
|
||||
client.assert(response.body.entry[index].response.status === "201 Created", "Expected '201 Created' for patient index " + index + " but received '" + response.body.entry[index].response.status + "'");
|
||||
}
|
||||
});
|
||||
const batch_patient_location = response.body.entry[0].response.location;
|
||||
const indexOfHistory = batch_patient_location.lastIndexOf("/_history");
|
||||
var trimmed_location = batch_patient_location.substring(0, indexOfHistory);
|
||||
let trimmed_location = batch_patient_location.substring(0, indexOfHistory);
|
||||
trimmed_location = trimmed_location.replace("Patient/", "")
|
||||
client.global.set("batch_patient_id", trimmed_location);
|
||||
%}
|
||||
|
||||
Reference in New Issue
Block a user