Skip to content

Commit

Permalink
pass load-test header to metadata endpoint for load tests
Browse files Browse the repository at this point in the history
  • Loading branch information
halprin committed Jan 3, 2025
1 parent 7896fd0 commit 022e9b5
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions operations/locustfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def post_message_request(self, endpoint, message):
headers={
"Authorization": self.access_token,
"RecordId": self.submission_id,
"Load-Test": "True",
"Load-Test": "true",
},
data=message.replace("{{placer_order_id}}", poi),
)
Expand All @@ -92,7 +92,10 @@ def get_v1_etor_metadata(self):
if self.message_api_called:
self.client.get(
f"{METADATA_ENDPOINT}/{self.submission_id}",
headers={"Authorization": self.access_token},
headers={
"Authorization": self.access_token,
"Load-Test": "true",
},
name=f"{METADATA_ENDPOINT}/{{id}}",
)

Expand Down

0 comments on commit 022e9b5

Please sign in to comment.