Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tests for HTTP/2 #739

Closed
2 tasks done
krizhanovsky opened this issue May 29, 2017 · 0 comments · Fixed by tempesta-tech/tempesta-test#155
Closed
2 tasks done

Tests for HTTP/2 #739

krizhanovsky opened this issue May 29, 2017 · 0 comments · Fixed by tempesta-tech/tempesta-test#155
Assignees
Milestone

Comments

@krizhanovsky
Copy link
Contributor

krizhanovsky commented May 29, 2017

The task has 2 parts: a larger one is about HTTP unit test for accurate module testing of HTTP/2 routines and the second is just about basic functional test that a HTTP/2 client can run an HTTP/2 transaction w/ Tempesta.

Probably the HTTP/2 samples would also be useful.

Unit tests

Current test_http_parser.c can be extended for HTTP/2 requests processing. (There are some intersections between HTTP/1.1 and HTTP/2 in headers parsing, so it seems it makes sense to keep the tests in the same file, but maybe I'm wrong and we can effectively separate the tests).

Exact minimal list for the tests is TBD, at least following must be implemented:

  • Huffman encoding and decoding
  • HPACK

Functional tests

Need to test at least that a client can establish an HTTP/2 connection with Tempesta FW, send HTTP/2 message to it and that the message is forwarded to an upstream in HTTP/1.1 and a response is normally delivered to the client in HTTP/2 format. This is requirement for #309 .

More sophisticated functional tests must be listed in tempesta-tech/tempesta-test#88

@krizhanovsky krizhanovsky added this to the 0.5.0 Web Server milestone May 29, 2017
@krizhanovsky krizhanovsky assigned intelfx and unassigned sysprg Jul 19, 2017
@krizhanovsky krizhanovsky assigned vladtcvs and unassigned intelfx Jan 8, 2018
@krizhanovsky krizhanovsky modified the milestones: 0.5.0 Web Server, 0.7 HTTP/2 Jan 8, 2018
@krizhanovsky krizhanovsky modified the milestones: 1.0 Beta, 0.7 HTTP/2 Nov 17, 2018
@krizhanovsky krizhanovsky changed the title Functional test for HTTP/2 Tests for HTTP/2 Feb 8, 2019
@krizhanovsky krizhanovsky added the h2 label Mar 3, 2020
vankoven added a commit to tempesta-tech/tempesta-test that referenced this issue Mar 11, 2020
Run h2spec utility against Tempesta and evaluate return code. Increase
debug level to get h2spec detailed results.

A new directive in `tests_config.ini` under section `[Client]` may be
required since h2spec is never available through pacage manager and
need to be installed from https://github.com/summerwind/h2spec :

    h2spec = /path/to/h2spec

Fix tempesta-tech/tempesta#739
vankoven added a commit to tempesta-tech/tempesta-test that referenced this issue Mar 11, 2020
Run h2spec utility against Tempesta and evaluate return code. Increase
debug level to get h2spec detailed results.

A new directive in `tests_config.ini` under section `[Client]` may be
required since h2spec is never available through pacage manager and
need to be installed from https://github.com/summerwind/h2spec :

    h2spec = /path/to/h2spec

Fix tempesta-tech/tempesta#739
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants