jembi / hearth

A fast FHIR-compliant server focused on longitudinal data stores.
BSD 3-Clause "New" or "Revised" License
26 stars 20 forks source link

add a test suite for hearth #171

Closed bradsawadye closed 4 years ago

bradsawadye commented 4 years ago

This adds a test for a case where a patient, an encounter and procedures are created sequentially. This is so we test hearth under different conditions

IHS-130

BMartinos commented 4 years ago

@bradsawadye this build is failing due to linting issues that need to be resolved first

BMartinos commented 4 years ago

@bradsawadye should these comments still be addressed?

BMartinos commented 4 years ago

@bradsawadye so a slight change in how these two flow tests should be run. Lets set their config options to be the same for both as they are doing exactly the same flow, just in a different way.

This way we can more accurately compare the performance difference between the two tests

export const options = {
  stages: [
    { duration: '30s', target: 100 },
    { duration: '1m' },
    { duration: '30s', target: 0 }
  ],
  thresholds: {
    http_req_duration: ['p(95)<1000']
  },
  noVUConnectionReuse: true,
  discardResponseBodies: false
}