Skip to content

Commit

Permalink
tests/e2e_tests: update assertion for pubsub event data
Browse files Browse the repository at this point in the history
`Node.owner` field has been added to pubsub event data
for `node` channel. Update assert statement for verifying
pubsub event data in `test_node_pipeline` accordingly.

Signed-off-by: Jeny Sadadia <[email protected]>
  • Loading branch information
Jeny Sadadia authored and gctucker committed Sep 5, 2023
1 parent 83c6822 commit 7b137f3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/e2e_tests/test_pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@ async def test_node_pipeline(test_async_client):
await task_listen
event_data = from_json(task_listen.result().json().get('data')).data
assert event_data != 'BEEP'
keys = {'op', 'id', 'name', 'path', 'group', 'state', 'result', 'revision'}
keys = {'op', 'id', 'name', 'path', 'group', 'state', 'result', 'revision',
'owner'}
assert keys == event_data.keys()
assert event_data.get('op') == 'created'
assert event_data.get('id') == response.json()['id']
Expand All @@ -81,6 +82,7 @@ async def test_node_pipeline(test_async_client):
await task_listen
event_data = from_json(task_listen.result().json().get('data')).data
assert event_data != 'BEEP'
keys = {'op', 'id', 'name', 'path', 'group', 'state', 'result', 'revision'}
keys = {'op', 'id', 'name', 'path', 'group', 'state', 'result', 'revision',
'owner'}
assert keys == event_data.keys()
assert event_data.get('op') == 'updated'

0 comments on commit 7b137f3

Please sign in to comment.