Skip to content

Create a mechanism to test different HTTP protocols (HTTP/1.1 and HTTP/2) with the same test case #3194

@sethmlarson

Description

@sethmlarson

Currently our test suite only has to worry about HTTP/1.1, but with HTTP/2 support coming we're going to need to run tests both in HTTP/1.1 and HTTP/2 modes to avoid duplicating the entire test suite for the high-level tests like for PoolManager.

My proposal for the mechanism would be to control Hypercorn's ALPN to only offer http/1.1 or h2 depending on the test suite and then either run tests twice using a fixture or allowing external control somehow (environment variable?) and then running a separate job on CI? Open to other ideas too!

Metadata

Metadata

Assignees

No one assigned

    Labels

    💰 Bounty $100If you complete this issue we'll pay you $100 on OpenCollective!

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions