Bug 1870816 Comment 0 Edit History

Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.

[Central-as-beta simulation:](https://treeherder.mozilla.org/jobs?repo=try&resultStatus=testfailed%2Cbusted%2Cexception%2Crunnable&revision=828e682352889d83d4c8ac21944337d66e621353&selectedTaskRun=G28FdqKsQziXFoE1zYxJxA.0) 
[How to run these simulations:](https://wiki.mozilla.org/Sheriffing/How_To/Beta_simulations#TRUNK_AS_EARLY_BETA)
[Failure log](https://treeherder.mozilla.org/logviewer?job_id=440673371&repo=try&lineNumber=152251)

```
[task 2023-12-19T12:15:18.728Z] 12:15:18     INFO - TEST-PASS | /webdriver/tests/bidi/network/continue_with_auth/action.py | test_default 
[task 2023-12-19T12:15:18.729Z] 12:15:18     INFO - TEST-UNEXPECTED-FAIL | /webdriver/tests/bidi/network/continue_with_auth/action.py | test_provideCredentials - AssertionError
[task 2023-12-19T12:15:18.729Z] 12:15:18     INFO - setup_blocked_request = <function setup_blocked_request.<locals>.setup_blocked_request at 0x7f83f77ac310>
[task 2023-12-19T12:15:18.730Z] 12:15:18     INFO - subscribe_events = <function subscribe_events.<locals>.subscribe_events at 0x7f83f77acb80>
[task 2023-12-19T12:15:18.730Z] 12:15:18     INFO - bidi_session = <webdriver.bidi.client.BidiSession object at 0x7f83f77d7130>
[task 2023-12-19T12:15:18.730Z] 12:15:18     INFO - url = <function url.<locals>.url at 0x7f83f77ac040>
[task 2023-12-19T12:15:18.731Z] 12:15:18     INFO - 
[task 2023-12-19T12:15:18.731Z] 12:15:18     INFO -     async def test_provideCredentials(
[task 2023-12-19T12:15:18.731Z] 12:15:18     INFO -         setup_blocked_request, subscribe_events, bidi_session, url
[task 2023-12-19T12:15:18.731Z] 12:15:18     INFO -     ):
[task 2023-12-19T12:15:18.731Z] 12:15:18     INFO -         # Setup unique username / password because browsers cache credentials.
[task 2023-12-19T12:15:18.732Z] 12:15:18     INFO -         username = "test_provideCredentials"
[task 2023-12-19T12:15:18.732Z] 12:15:18     INFO -         password = "test_provideCredentials_password"
[task 2023-12-19T12:15:18.732Z] 12:15:18     INFO -         request = await setup_blocked_request("authRequired", username=username, password=password)
[task 2023-12-19T12:15:18.732Z] 12:15:18     INFO -     
[task 2023-12-19T12:15:18.732Z] 12:15:18     INFO -         # Additionally subscribe to network.responseCompleted
[task 2023-12-19T12:15:18.732Z] 12:15:18     INFO -         await subscribe_events(events=[RESPONSE_COMPLETED_EVENT])
[task 2023-12-19T12:15:18.732Z] 12:15:18     INFO -     
[task 2023-12-19T12:15:18.732Z] 12:15:18     INFO -         # Track all received network.responseCompleted events in the events array
[task 2023-12-19T12:15:18.732Z] 12:15:18     INFO -         events = []
[task 2023-12-19T12:15:18.732Z] 12:15:18     INFO -     
[task 2023-12-19T12:15:18.732Z] 12:15:18     INFO -         async def on_event(method, data):
[task 2023-12-19T12:15:18.732Z] 12:15:18     INFO -             events.append(data)
[task 2023-12-19T12:15:18.732Z] 12:15:18     INFO -     
[task 2023-12-19T12:15:18.733Z] 12:15:18     INFO -         remove_listener = bidi_session.add_event_listener(
[task 2023-12-19T12:15:18.733Z] 12:15:18     INFO -             RESPONSE_COMPLETED_EVENT, on_event
[task 2023-12-19T12:15:18.733Z] 12:15:18     INFO -         )
[task 2023-12-19T12:15:18.733Z] 12:15:18     INFO -     
[task 2023-12-19T12:15:18.733Z] 12:15:18     INFO -         credentials = AuthCredentials(username=username, password=password)
[task 2023-12-19T12:15:18.733Z] 12:15:18     INFO -         await bidi_session.network.continue_with_auth(
[task 2023-12-19T12:15:18.733Z] 12:15:18     INFO -             request=request, action="provideCredentials", credentials=credentials
[task 2023-12-19T12:15:18.733Z] 12:15:18     INFO -         )
[task 2023-12-19T12:15:18.733Z] 12:15:18     INFO -     
[task 2023-12-19T12:15:18.734Z] 12:15:18     INFO -         wait = AsyncPoll(bidi_session, message="Didn't receive response completed events")
[task 2023-12-19T12:15:18.734Z] 12:15:18     INFO -         await wait.until(lambda _: len(events) >= 2)
[task 2023-12-19T12:15:18.734Z] 12:15:18     INFO -         assert len(events) == 2
[task 2023-12-19T12:15:18.734Z] 12:15:18     INFO -     
[task 2023-12-19T12:15:18.734Z] 12:15:18     INFO - >       assert_response_event(
[task 2023-12-19T12:15:18.734Z] 12:15:18     INFO -             events[0],
[task 2023-12-19T12:15:18.734Z] 12:15:18     INFO -             expected_response={
[task 2023-12-19T12:15:18.734Z] 12:15:18     INFO -                 "status": 401,
[task 2023-12-19T12:15:18.734Z] 12:15:18     INFO -                 "statusText": "Unauthorized",
[task 2023-12-19T12:15:18.734Z] 12:15:18     INFO -             },
[task 2023-12-19T12:15:18.734Z] 12:15:18     INFO -         )
[task 2023-12-19T12:15:18.735Z] 12:15:18     INFO - 
```
Julian, could you please take a look at this?
Thanks.

Back to Bug 1870816 Comment 0