(proxy_test_server, get_request)
| 592 | |
| 593 | @pytest.mark.xfail |
| 594 | async def xtest_proxy_https_auth(proxy_test_server, get_request): |
| 595 | url = "https://secure.aiohttp.io/path" |
| 596 | auth = aiohttp.BasicAuth("user", "pass") |
| 597 | |
| 598 | proxy = await proxy_test_server() |
| 599 | await get_request(url=url, proxy=proxy.url) |
| 600 | |
| 601 | connect = proxy.requests_list[0] |
| 602 | assert "Authorization" not in connect.headers |
| 603 | assert "Proxy-Authorization" not in connect.headers |
| 604 | assert "Authorization" not in proxy.request.headers |
| 605 | assert "Proxy-Authorization" not in proxy.request.headers |
| 606 | |
| 607 | proxy = await proxy_test_server() |
| 608 | await get_request(url=url, auth=auth, proxy=proxy.url) |
| 609 | |
| 610 | connect = proxy.requests_list[0] |
| 611 | assert "Authorization" not in connect.headers |
| 612 | assert "Proxy-Authorization" not in connect.headers |
| 613 | assert "Authorization" in proxy.request.headers |
| 614 | assert "Proxy-Authorization" not in proxy.request.headers |
| 615 | |
| 616 | proxy = await proxy_test_server() |
| 617 | await get_request(url=url, proxy_auth=auth, proxy=proxy.url) |
| 618 | |
| 619 | connect = proxy.requests_list[0] |
| 620 | assert "Authorization" not in connect.headers |
| 621 | assert "Proxy-Authorization" in connect.headers |
| 622 | assert "Authorization" not in proxy.request.headers |
| 623 | assert "Proxy-Authorization" not in proxy.request.headers |
| 624 | |
| 625 | proxy = await proxy_test_server() |
| 626 | await get_request(url=url, auth=auth, proxy_auth=auth, proxy=proxy.url) |
| 627 | |
| 628 | connect = proxy.requests_list[0] |
| 629 | assert "Authorization" not in connect.headers |
| 630 | assert "Proxy-Authorization" in connect.headers |
| 631 | assert "Authorization" in proxy.request.headers |
| 632 | assert "Proxy-Authorization" not in proxy.request.headers |
| 633 | |
| 634 | |
| 635 | @pytest.mark.xfail |
nothing calls this directly
no test coverage detected