Skip to content

Add facilities to better test versions #480

Open
@theseion

Description

@theseion

I would rather change the way we deal with versions than simply changing the default. For most tests we expect them to work for any HTTP version and we should really test that that assumption is true. I propose to update go-ftw, and possibly the test schema, to run each test against multiple HTTP versions, unless a test defines a restriction. I also think we should transform the HTTP version restrictions into ranges, such that we can say:

  • run for HTTP/1.0 only
  • run for > HTTP/1.0
  • run for < HTTP/2
  • run for HTTP/1.0 - HTTP/1.1
  • ...

Originally posted by @theseion in coreruleset/coreruleset#4043 (comment)

Updating from HTTP/1.0 to HTTP/1.1 is fine. However:

all upgraded tests will be run against 1.1 only
we basically lose the information that all of those tests work for 1.0
the tests that actually target 1.0 could potentially also be valid for other versions but we have no way of declaring that, except for duplicating such tests
the internet is running on HTTP/2.0 and HTTP/2 (quic) and we should run our tests against those protocols
we can update all tests now but will have to do the same thing again for HTTP/2.0 at some point, with the same implications as above

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions