Skip to content

Commit

Permalink
tests/e2e_tests: add is_hierarchy to event data
Browse files Browse the repository at this point in the history
Add event data field `is_hierarchy` to e2e tests.

Signed-off-by: Jeny Sadadia <[email protected]>
  • Loading branch information
Jeny Sadadia authored and JenySadadia committed May 24, 2024
1 parent c12195a commit e6d8197
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/e2e_tests/test_pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ async def test_node_pipeline(test_async_client):
event_data = from_json(task_listen.result().json().get('data')).data
assert event_data != 'BEEP'
keys = {'op', 'id', 'kind', 'name', 'path',
'group', 'state', 'result', 'owner', 'data'}
'group', 'state', 'result', 'owner', 'data', 'is_hierarchy'}
assert keys == event_data.keys()
assert event_data.get('op') == 'created'
assert event_data.get('id') == response.json()['id']
Expand All @@ -85,6 +85,6 @@ async def test_node_pipeline(test_async_client):
event_data = from_json(task_listen.result().json().get('data')).data
assert event_data != 'BEEP'
keys = {'op', 'id', 'kind', 'name', 'path',
'group', 'state', 'result', 'owner', 'data'}
'group', 'state', 'result', 'owner', 'data', 'is_hierarchy'}
assert keys == event_data.keys()
assert event_data.get('op') == 'updated'

0 comments on commit e6d8197

Please sign in to comment.