Skip to content
This repository has been archived by the owner on Feb 7, 2025. It is now read-only.

Delete Demographics #1072

Merged
merged 6 commits into from
May 8, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
delete demographics from the load tests
halprin committed May 8, 2024
commit ee366923414829bf191613b97ea139a1aa1f324a
18 changes: 0 additions & 18 deletions operations/locustfile.py
Original file line number Diff line number Diff line change
@@ -10,13 +10,11 @@

HEALTH_ENDPOINT = "/health"
AUTH_ENDPOINT = "/v1/auth/token"
DEMOGRAPHICS_ENDPOINT = "/v1/etor/demographics"
ORDERS_ENDPOINT = "/v1/etor/orders"
RESULTS_ENDPOINT = "/v1/etor/results"
METADATA_ENDPOINT = "/v1/etor/metadata"
CONSOLIDATED_ENDPOINT = "/v1/etor/metadata/summary"

demographics_request_body = None
order_request_body = None
result_request_body = None
auth_request_body = None
@@ -58,14 +56,6 @@ def authenticate(self):
def get_health(self):
self.client.get(HEALTH_ENDPOINT)

@task(5)
def post_v1_etor_demographics(self):
self.client.post(
DEMOGRAPHICS_ENDPOINT,
data=demographics_request_body,
headers={"Authorization": self.access_token},
)

@task(5)
def post_v1_etor_orders(self):
response = self.client.post(
@@ -112,7 +102,6 @@ def get_v1_metadata_consolidated(self):

@events.test_start.add_listener
def test_start(environment):
global demographics_request_body
global auth_request_body
global order_request_body
global result_request_body
@@ -121,7 +110,6 @@ def test_start(environment):
# in a distributed run, the master does not typically need any test data
return

demographics_request_body = get_demographics_request_body()
auth_request_body = get_auth_request_body()
order_request_body = get_orders_request_body()
result_request_body = get_results_request_body()
@@ -151,12 +139,6 @@ def get_auth_request_body():
return params.encode("utf-8")


def get_demographics_request_body():
# read the sample request body for the demographics endpoint
with open("examples/Test/e2e/demographics/001_Patient_NBS.fhir", "r") as f:
return f.read()


def get_orders_request_body():
# read the sample request body for the orders endpoint
with open("examples/Test/e2e/orders/001_OML_O21_short.fhir", "r") as f: