Skip to content

Commit

Permalink
Allow setting stack to none in order to disable stack check
Browse files Browse the repository at this point in the history
  • Loading branch information
Wout Feys committed Oct 8, 2024
1 parent cb4ea57 commit eb3fed0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion end2end/quart_postgres_uvicorn_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def test_firewall_started_okay():
events = fetch_events_from_mock("http://localhost:5000")
started_events = filter_on_event_type(events, "started")
assert len(started_events) == 1
validate_started_event(started_events[0], ["flask", "quart", "asyncpg"])
validate_started_event(started_events[0], None)

def test_safe_response_with_firewall():
dog_name = "Bobby Tables"
Expand Down
3 changes: 2 additions & 1 deletion end2end/server/check_events_from_mock.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,5 @@ def validate_started_event(event, stack, dry_mode=False, serverless=False, os_na
assert event["agent"]["os"]["name"] == os_name
assert event["agent"]["platform"]["name"] == platform
assert event["agent"]["serverless"] == serverless
assert set(event["agent"]["stack"]) == set(stack)
if stack is not None:
assert set(event["agent"]["stack"]) == set(stack)

0 comments on commit eb3fed0

Please sign in to comment.