-
-
Save nickstenning/4b272d604c8df4f1f9f74161e0749615 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Feature: Real-time websocket streaming # features/streamer.feature:1 | |
Scenario: Receiving recently-created annotations over the websocket # features/streamer.feature:2 | |
Given I am acting as the test user "smokey" # features/steps/api.py:44 | |
And I am listening for notifications on the websocket # features/steps/websocket.py:74 | |
2017-05-16 17:46:50 [DEBUG] client >> Frame(fin=True, opcode=1, data=b'{"value": "b7e94573-9de9-4599-8551-6ae4f4d2be5c", "messageType": "client_id"}') | |
2017-05-16 17:46:50 [DEBUG] client >> Frame(fin=True, opcode=1, data=b'{"filter": {"clauses": [], "match_policy": "include_all", "actions": {"update": true, "delete": true, "create": true}}}') | |
When I create a test annotation # features/steps/api.py:60 | |
Then I should receive a websocket notification within 30s # features/steps/websocket.py:102 | |
waiting up to 29.99999861093238s for a notification | |
2017-05-16 17:46:51 [DEBUG] client << Frame(fin=True, opcode=1, data=b'{"type": "annotation-notification", "options": {"action": "create"}, "payload": [{"updated": "2017-05-16T15:46:51.531198+00:00", "group": "__world__", "links": {"json": "https://qa.hypothes.is/api/annotations/4Qt5WjpOEeev2rtqgswHBg", "html": "https://qa.hypothes.is/a/4Qt5WjpOEeev2rtqgswHBg", "incontext": "https://qa.hyp.is/4Qt5WjpOEeev2rtqgswHBg/example.com"}, "smokey": true, "tags": [], "text": "", "created": "2017-05-16T15:46:51.531198+00:00", "uri": "http://example.com", "user": "acct:nickstenning@hypothes.is", "target": [{"source": "http://example.com"}], "document": {"title": ["Example Domain"]}, "id": "4Qt5WjpOEeev2rtqgswHBg", "permissions": {"read": ["group:__world__"], "admin": ["acct:nickstenning@hypothes.is"], "update": ["acct:nickstenning@hypothes.is"], "delete": ["acct:nickstenning@hypothes.is"]}}]}') | |
2017-05-16 17:46:51 [DEBUG] client >> Frame(fin=True, opcode=8, data=b'\x03\xe8') | |
2017-05-16 17:46:51 [DEBUG] client << Frame(fin=True, opcode=8, data=b'\x03\xe8') | |
1 feature passed, 0 failed, 0 skipped | |
1 scenario passed, 0 failed, 0 skipped | |
4 steps passed, 0 failed, 0 skipped, 0 undefined | |
Took 0m1.643s |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment