Skip to content

Commit

Permalink
Backed out 8 changesets (bug 1898565, bug 1880803, bug 1850680) for c…
Browse files Browse the repository at this point in the history
…ausing high frequency failures at url_patterns.py . CLOSED TREE

Backed out changeset 2e388b7f6f91 (bug 1898565)
Backed out changeset 3147811b0446 (bug 1850680)
Backed out changeset 9a98ace82049 (bug 1850680)
Backed out changeset 8ff3dc16fcf9 (bug 1850680)
Backed out changeset 1c4084febc9c (bug 1850680)
Backed out changeset aeeda14ca643 (bug 1850680)
Backed out changeset fb750d3b365d (bug 1880803)
Backed out changeset 4d63b73b4125 (bug 1880803)

gecko-commit: c5f0d71de69cf598d009f69c9ddf56fb6058bc9e
  • Loading branch information
Butkovits Atila authored and moz-wptsync-bot committed May 25, 2024
1 parent a92b1b3 commit f2cdcb7
Show file tree
Hide file tree
Showing 6 changed files with 1 addition and 274 deletions.
3 changes: 1 addition & 2 deletions webdriver/tests/bidi/network/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ async def setup_blocked_request(
password="password",
realm="test",
navigate=False,
**kwargs,
):
await setup_network_test(events=[f"network.{phase}"])

Expand Down Expand Up @@ -100,7 +99,7 @@ async def setup_blocked_request(
)
)
else:
asyncio.ensure_future(fetch(blocked_url, context=context, **kwargs))
asyncio.ensure_future(fetch(blocked_url, context=context))

event = await wait_for_future_safe(network_event)
request = event["request"]["request"]
Expand Down
37 changes: 0 additions & 37 deletions webdriver/tests/bidi/network/continue_request/body.py

This file was deleted.

104 changes: 0 additions & 104 deletions webdriver/tests/bidi/network/continue_request/cookies.py

This file was deleted.

60 changes: 0 additions & 60 deletions webdriver/tests/bidi/network/continue_request/headers.py

This file was deleted.

34 changes: 0 additions & 34 deletions webdriver/tests/bidi/network/continue_request/invalid.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,19 +192,6 @@ async def test_params_headers_header_name_invalid_type(
)


@pytest.mark.parametrize("value", ["", "\u0000", "\"", "{","\u0080"])
async def test_params_headers_header_name_invalid_value(
setup_blocked_request, bidi_session, value
):
request = await setup_blocked_request("beforeRequestSent")

with pytest.raises(error.InvalidArgumentException):
await bidi_session.network.continue_request(
request=request,
headers=[create_header(overrides={"name": value})],
)


@pytest.mark.parametrize("value", [None, False, 42, "foo", []])
async def test_params_headers_header_value_invalid_type(
setup_blocked_request, bidi_session, value
Expand Down Expand Up @@ -270,19 +257,6 @@ async def test_params_headers_header_value_value_invalid_type(
)


@pytest.mark.parametrize("value", [" a", "a ", "\ta", "a\t", "a\nb", "a\0b"])
async def test_params_headers_header_value_value_invalid_value(
setup_blocked_request, bidi_session, value
):
request = await setup_blocked_request("beforeRequestSent")

with pytest.raises(error.InvalidArgumentException):
await bidi_session.network.continue_request(
request=request,
headers=[create_header(value_overrides={"value": value})],
)


@pytest.mark.parametrize("value", [False, 42, {}, []])
async def test_params_method_invalid_type(setup_blocked_request, bidi_session, value):
request = await setup_blocked_request("beforeRequestSent")
Expand All @@ -291,14 +265,6 @@ async def test_params_method_invalid_type(setup_blocked_request, bidi_session, v
await bidi_session.network.continue_request(request=request, method=value)


@pytest.mark.parametrize("value", ["", "\u0000", "\"", "{","\u0080"])
async def test_params_method_invalid_value(setup_blocked_request, bidi_session, value):
request = await setup_blocked_request("beforeRequestSent")

with pytest.raises(error.InvalidArgumentException):
await bidi_session.network.continue_request(request=request, method=value)


@pytest.mark.parametrize("value", [None, False, 42, {}, []])
async def test_params_request_invalid_type(bidi_session, value):
with pytest.raises(error.InvalidArgumentException):
Expand Down
37 changes: 0 additions & 37 deletions webdriver/tests/bidi/network/continue_request/method.py

This file was deleted.

0 comments on commit f2cdcb7

Please sign in to comment.