diff options
author | Daniel Stenberg <daniel@haxx.se> | 2023-03-14 16:17:46 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2023-03-15 00:05:29 +0100 |
commit | c46761bd8bb3d74415b7359e9e204706cee7fb90 (patch) | |
tree | 5cf93701b3321afe2a046fca4b3a245f414e3cc3 /tests/http | |
parent | 495d09810aa9ad6ed70ad0cf122e12007f2b8ae1 (diff) | |
download | curl-c46761bd8bb3d74415b7359e9e204706cee7fb90.tar.gz |
tests/http: remove year ranges from copyrights
Closes #10763
Diffstat (limited to 'tests/http')
-rw-r--r-- | tests/http/.gitignore | 2 | ||||
-rw-r--r-- | tests/http/README.md | 23 | ||||
-rw-r--r-- | tests/http/config.ini.in | 2 | ||||
-rw-r--r-- | tests/http/conftest.py | 2 | ||||
-rw-r--r-- | tests/http/scorecard.py | 2 | ||||
-rw-r--r-- | tests/http/test_01_basic.py | 2 | ||||
-rw-r--r-- | tests/http/test_02_download.py | 2 | ||||
-rw-r--r-- | tests/http/test_03_goaway.py | 2 | ||||
-rw-r--r-- | tests/http/test_04_stuttered.py | 2 | ||||
-rw-r--r-- | tests/http/test_05_errors.py | 2 | ||||
-rw-r--r-- | tests/http/test_06_eyeballs.py | 2 | ||||
-rw-r--r-- | tests/http/test_07_upload.py | 2 | ||||
-rw-r--r-- | tests/http/test_08_caddy.py | 2 | ||||
-rw-r--r-- | tests/http/test_09_push.py | 2 | ||||
-rw-r--r-- | tests/http/test_10_proxy.py | 2 | ||||
-rw-r--r-- | tests/http/test_11_unix.py | 2 | ||||
-rw-r--r-- | tests/http/test_12_reuse.py | 2 | ||||
-rw-r--r-- | tests/http/testenv/__init__.py | 4 | ||||
-rw-r--r-- | tests/http/testenv/caddy.py | 2 | ||||
-rw-r--r-- | tests/http/testenv/certs.py | 2 | ||||
-rw-r--r-- | tests/http/testenv/curl.py | 2 | ||||
-rw-r--r-- | tests/http/testenv/env.py | 2 | ||||
-rw-r--r-- | tests/http/testenv/httpd.py | 2 | ||||
-rw-r--r-- | tests/http/testenv/nghttpx.py | 2 | ||||
-rw-r--r-- | tests/http/testenv/ports.py | 2 |
25 files changed, 33 insertions, 40 deletions
diff --git a/tests/http/.gitignore b/tests/http/.gitignore index 2214815cc..3732aac19 100644 --- a/tests/http/.gitignore +++ b/tests/http/.gitignore @@ -1,4 +1,4 @@ -# Copyright (C) 2000 - 2022 Daniel Stenberg, <daniel@haxx.se>, et al. +# Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al. # # SPDX-License-Identifier: curl diff --git a/tests/http/README.md b/tests/http/README.md index e7069d622..69e6760e8 100644 --- a/tests/http/README.md +++ b/tests/http/README.md @@ -1,5 +1,5 @@ <!-- -Copyright (C) 1998 - 2022 Daniel Stenberg, <daniel@haxx.se>, et al. +Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al. SPDX-License-Identifier: curl --> @@ -18,7 +18,7 @@ platform darwin -- Python 3.9.15, pytest-6.2.0, py-1.10.0, pluggy-0.13.1 rootdir: /Users/sei/projects/curl collected 5 items -tests/httpd/test_01_basic.py ..... +tests/httpd/test_01_basic.py ..... ``` Pytest takes arguments. `-v` increases its verbosity and can be used several times. `-k <expr>` can be used to run only matching test cases. The `expr` can be something resembling a python test or just a string that needs to match test cases in their names. @@ -27,7 +27,7 @@ Pytest takes arguments. `-v` increases its verbosity and can be used several tim curl> pytest -vv -k test_01_02 ``` -runs all test cases that have `test_01_02` in their name. This does not have to be the start of the name. +runs all test cases that have `test_01_02` in their name. This does not have to be the start of the name. Depending on your setup, some test cases may be skipped and appear as `s` in the output. If you run pytest verbose, it will also give you the reason for skipping. @@ -41,10 +41,10 @@ You will need: 3. a local `curl` project build 3. optionally, a `nghttpx` with HTTP/3 enabled or h3 test cases will be skipped. -### Configuration +### Configuration Via curl's `configure` script you may specify: - + * `--with-test-nghttpx=<path-of-nghttpx>` if you have nghttpx to use somewhere outside your `$PATH`. * `--with-test-httpd=<httpd-install-path>` if you have an Apache httpd installed somewhere else. On Debian/Ubuntu it will otherwise look into `/usr/bin` and `/usr/sbin` to find those. @@ -88,7 +88,7 @@ In `conftest.py` 3 "fixtures" are defined that are used by all test cases: 2. `httpd`: the Apache httpd instance, configured and started, then stopped at the end of the test suite. It has sites configured for the domains from `env`. It also loads a local module `mod_curltest?` and makes it available in certain locations. (more on mod_curltest below). 3. `nghttpx`: an instance of nghttpx that provides HTTP/3 support. `nghttpx` proxies those requests to the `httpd` server. In a direct mapping, so you may access all the resources under the same path as with HTTP/2. Only the port number used for HTTP/3 requests will be different. -`pytest` manages these fixture so that they are created once and terminated before exit. This means you can `Ctrl-C` a running pytest and the server will shutdown. Only when you brutally chop its head off, might there be servers left +`pytest` manages these fixture so that they are created once and terminated before exit. This means you can `Ctrl-C` a running pytest and the server will shutdown. Only when you brutally chop its head off, might there be servers left behind. ### Test Cases @@ -108,7 +108,7 @@ The module source code is found in `testenv/mod_curltest`. It is compiled using The module adds 2 "handlers" to the Apache server (right now). Handler are pieces of code that receive HTTP requests and generate the response. Those handlers are: * `curltest-echo`: hooked up on the path `/curltest/echo`. This one echoes a request and copies all data from the request body to the response body. Useful for simulating upload and checking that the data arrived as intended. -* `curltest-tweak`: hooked up on the path `/curltest/tweak`. This handler is more of a Swiss army knife. It interprets parameters from the URL query string to drive its behavior. +* `curltest-tweak`: hooked up on the path `/curltest/tweak`. This handler is more of a Swiss army knife. It interprets parameters from the URL query string to drive its behavior. * `status=nnn`: generate a response with HTTP status code `nnn`. * `chunks=n`: generate `n` chunks of data in the response body, defaults to 3. * `chunk_size=nnn`: each chunk should contain `nnn` bytes of data. Maximum is 16KB right now. @@ -121,15 +121,8 @@ The module adds 2 "handlers" to the Apache server (right now). Handler are piece * `d`: days (probably not useful here) * `h`: hours - * `mi`: minutes + * `mi`: minutes * `s`: seconds (the default) * `ms`: milliseconds As you can see, `mod_curltest`'s tweak handler allow to simulate many kinds of responses. An example of its use is `test_03_01` where responses are delayed using `chunk_delay`. This gives the response a defined duration and the test uses that to reload `httpd` in the middle of the first request. A graceful reload in httpd lets ongoing requests finish, but will close the connection afterwards and tear down the serving process. The following request need then to open a new connection. This is verified by the test case. - - - - - - - diff --git a/tests/http/config.ini.in b/tests/http/config.ini.in index 361292874..42a967906 100644 --- a/tests/http/config.ini.in +++ b/tests/http/config.ini.in @@ -6,7 +6,7 @@ # | (__| |_| | _ <| |___ # \___|\___/|_| \_\_____| # -# Copyright (C) 2008 - 2022, Daniel Stenberg, <daniel@haxx.se>, et al. +# Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al. # # This software is licensed as described in the file COPYING, which # you should have received as part of this distribution. The terms diff --git a/tests/http/conftest.py b/tests/http/conftest.py index 7c40df7bd..8727fc323 100644 --- a/tests/http/conftest.py +++ b/tests/http/conftest.py @@ -5,7 +5,7 @@ # | (__| |_| | _ <| |___ # \___|\___/|_| \_\_____| # -# Copyright (C) 2008 - 2022, Daniel Stenberg, <daniel@haxx.se>, et al. +# Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al. # # This software is licensed as described in the file COPYING, which # you should have received as part of this distribution. The terms diff --git a/tests/http/scorecard.py b/tests/http/scorecard.py index 7d64528c2..c153beac9 100644 --- a/tests/http/scorecard.py +++ b/tests/http/scorecard.py @@ -7,7 +7,7 @@ # | (__| |_| | _ <| |___ # \___|\___/|_| \_\_____| # -# Copyright (C) 2008 - 2022, Daniel Stenberg, <daniel@haxx.se>, et al. +# Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al. # # This software is licensed as described in the file COPYING, which # you should have received as part of this distribution. The terms diff --git a/tests/http/test_01_basic.py b/tests/http/test_01_basic.py index b5a786232..ba513d19a 100644 --- a/tests/http/test_01_basic.py +++ b/tests/http/test_01_basic.py @@ -7,7 +7,7 @@ # | (__| |_| | _ <| |___ # \___|\___/|_| \_\_____| # -# Copyright (C) 2008 - 2022, Daniel Stenberg, <daniel@haxx.se>, et al. +# Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al. # # This software is licensed as described in the file COPYING, which # you should have received as part of this distribution. The terms diff --git a/tests/http/test_02_download.py b/tests/http/test_02_download.py index 5fb8530b8..1f2b36263 100644 --- a/tests/http/test_02_download.py +++ b/tests/http/test_02_download.py @@ -7,7 +7,7 @@ # | (__| |_| | _ <| |___ # \___|\___/|_| \_\_____| # -# Copyright (C) 2008 - 2022, Daniel Stenberg, <daniel@haxx.se>, et al. +# Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al. # # This software is licensed as described in the file COPYING, which # you should have received as part of this distribution. The terms diff --git a/tests/http/test_03_goaway.py b/tests/http/test_03_goaway.py index 872e00437..6db8a6cc9 100644 --- a/tests/http/test_03_goaway.py +++ b/tests/http/test_03_goaway.py @@ -7,7 +7,7 @@ # | (__| |_| | _ <| |___ # \___|\___/|_| \_\_____| # -# Copyright (C) 2008 - 2022, Daniel Stenberg, <daniel@haxx.se>, et al. +# Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al. # # This software is licensed as described in the file COPYING, which # you should have received as part of this distribution. The terms diff --git a/tests/http/test_04_stuttered.py b/tests/http/test_04_stuttered.py index 94afd7bff..19d6a4253 100644 --- a/tests/http/test_04_stuttered.py +++ b/tests/http/test_04_stuttered.py @@ -7,7 +7,7 @@ # | (__| |_| | _ <| |___ # \___|\___/|_| \_\_____| # -# Copyright (C) 2008 - 2022, Daniel Stenberg, <daniel@haxx.se>, et al. +# Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al. # # This software is licensed as described in the file COPYING, which # you should have received as part of this distribution. The terms diff --git a/tests/http/test_05_errors.py b/tests/http/test_05_errors.py index 5a416a947..3de53a4cf 100644 --- a/tests/http/test_05_errors.py +++ b/tests/http/test_05_errors.py @@ -7,7 +7,7 @@ # | (__| |_| | _ <| |___ # \___|\___/|_| \_\_____| # -# Copyright (C) 2008 - 2022, Daniel Stenberg, <daniel@haxx.se>, et al. +# Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al. # # This software is licensed as described in the file COPYING, which # you should have received as part of this distribution. The terms diff --git a/tests/http/test_06_eyeballs.py b/tests/http/test_06_eyeballs.py index 8783f7934..0222abff5 100644 --- a/tests/http/test_06_eyeballs.py +++ b/tests/http/test_06_eyeballs.py @@ -7,7 +7,7 @@ # | (__| |_| | _ <| |___ # \___|\___/|_| \_\_____| # -# Copyright (C) 2008 - 2022, Daniel Stenberg, <daniel@haxx.se>, et al. +# Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al. # # This software is licensed as described in the file COPYING, which # you should have received as part of this distribution. The terms diff --git a/tests/http/test_07_upload.py b/tests/http/test_07_upload.py index 91fc8aa4d..a4752e514 100644 --- a/tests/http/test_07_upload.py +++ b/tests/http/test_07_upload.py @@ -7,7 +7,7 @@ # | (__| |_| | _ <| |___ # \___|\___/|_| \_\_____| # -# Copyright (C) 2008 - 2022, Daniel Stenberg, <daniel@haxx.se>, et al. +# Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al. # # This software is licensed as described in the file COPYING, which # you should have received as part of this distribution. The terms diff --git a/tests/http/test_08_caddy.py b/tests/http/test_08_caddy.py index 67a5f77be..683fb7a33 100644 --- a/tests/http/test_08_caddy.py +++ b/tests/http/test_08_caddy.py @@ -7,7 +7,7 @@ # | (__| |_| | _ <| |___ # \___|\___/|_| \_\_____| # -# Copyright (C) 2008 - 2022, Daniel Stenberg, <daniel@haxx.se>, et al. +# Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al. # # This software is licensed as described in the file COPYING, which # you should have received as part of this distribution. The terms diff --git a/tests/http/test_09_push.py b/tests/http/test_09_push.py index 1b8ee3d54..81a6e4fc7 100644 --- a/tests/http/test_09_push.py +++ b/tests/http/test_09_push.py @@ -7,7 +7,7 @@ # | (__| |_| | _ <| |___ # \___|\___/|_| \_\_____| # -# Copyright (C) 2008 - 2022, Daniel Stenberg, <daniel@haxx.se>, et al. +# Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al. # # This software is licensed as described in the file COPYING, which # you should have received as part of this distribution. The terms diff --git a/tests/http/test_10_proxy.py b/tests/http/test_10_proxy.py index fc64432ee..3bf3cd11f 100644 --- a/tests/http/test_10_proxy.py +++ b/tests/http/test_10_proxy.py @@ -7,7 +7,7 @@ # | (__| |_| | _ <| |___ # \___|\___/|_| \_\_____| # -# Copyright (C) 2008 - 2022, Daniel Stenberg, <daniel@haxx.se>, et al. +# Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al. # # This software is licensed as described in the file COPYING, which # you should have received as part of this distribution. The terms diff --git a/tests/http/test_11_unix.py b/tests/http/test_11_unix.py index 8f88a51bd..e263cc752 100644 --- a/tests/http/test_11_unix.py +++ b/tests/http/test_11_unix.py @@ -7,7 +7,7 @@ # | (__| |_| | _ <| |___ # \___|\___/|_| \_\_____| # -# Copyright (C) 2008 - 2022, Daniel Stenberg, <daniel@haxx.se>, et al. +# Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al. # # This software is licensed as described in the file COPYING, which # you should have received as part of this distribution. The terms diff --git a/tests/http/test_12_reuse.py b/tests/http/test_12_reuse.py index a973d6191..cd43888bd 100644 --- a/tests/http/test_12_reuse.py +++ b/tests/http/test_12_reuse.py @@ -7,7 +7,7 @@ # | (__| |_| | _ <| |___ # \___|\___/|_| \_\_____| # -# Copyright (C) 2008 - 2022, Daniel Stenberg, <daniel@haxx.se>, et al. +# Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al. # # This software is licensed as described in the file COPYING, which # you should have received as part of this distribution. The terms diff --git a/tests/http/testenv/__init__.py b/tests/http/testenv/__init__.py index e15633abc..8eb7632ae 100644 --- a/tests/http/testenv/__init__.py +++ b/tests/http/testenv/__init__.py @@ -7,7 +7,7 @@ # | (__| |_| | _ <| |___ # \___|\___/|_| \_\_____| # -# Copyright (C) 2008 - 2022, Daniel Stenberg, <daniel@haxx.se>, et al. +# Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al. # # This software is licensed as described in the file COPYING, which # you should have received as part of this distribution. The terms @@ -29,4 +29,4 @@ from .certs import TestCA, Credentials from .caddy import Caddy from .httpd import Httpd from .curl import CurlClient, ExecResult -from .nghttpx import Nghttpx
\ No newline at end of file +from .nghttpx import Nghttpx diff --git a/tests/http/testenv/caddy.py b/tests/http/testenv/caddy.py index c97cf661d..d789446f9 100644 --- a/tests/http/testenv/caddy.py +++ b/tests/http/testenv/caddy.py @@ -7,7 +7,7 @@ # | (__| |_| | _ <| |___ # \___|\___/|_| \_\_____| # -# Copyright (C) 2008 - 2022, Daniel Stenberg, <daniel@haxx.se>, et al. +# Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al. # # This software is licensed as described in the file COPYING, which # you should have received as part of this distribution. The terms diff --git a/tests/http/testenv/certs.py b/tests/http/testenv/certs.py index 9bc3d71fc..f575a7412 100644 --- a/tests/http/testenv/certs.py +++ b/tests/http/testenv/certs.py @@ -7,7 +7,7 @@ # | (__| |_| | _ <| |___ # \___|\___/|_| \_\_____| # -# Copyright (C) 2008 - 2022, Daniel Stenberg, <daniel@haxx.se>, et al. +# Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al. # # This software is licensed as described in the file COPYING, which # you should have received as part of this distribution. The terms diff --git a/tests/http/testenv/curl.py b/tests/http/testenv/curl.py index 8f2f18b09..5a953afb0 100644 --- a/tests/http/testenv/curl.py +++ b/tests/http/testenv/curl.py @@ -7,7 +7,7 @@ # | (__| |_| | _ <| |___ # \___|\___/|_| \_\_____| # -# Copyright (C) 2008 - 2022, Daniel Stenberg, <daniel@haxx.se>, et al. +# Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al. # # This software is licensed as described in the file COPYING, which # you should have received as part of this distribution. The terms diff --git a/tests/http/testenv/env.py b/tests/http/testenv/env.py index 3850cee72..bf08104d3 100644 --- a/tests/http/testenv/env.py +++ b/tests/http/testenv/env.py @@ -7,7 +7,7 @@ # | (__| |_| | _ <| |___ # \___|\___/|_| \_\_____| # -# Copyright (C) 2008 - 2022, Daniel Stenberg, <daniel@haxx.se>, et al. +# Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al. # # This software is licensed as described in the file COPYING, which # you should have received as part of this distribution. The terms diff --git a/tests/http/testenv/httpd.py b/tests/http/testenv/httpd.py index de058ebe2..4c7874581 100644 --- a/tests/http/testenv/httpd.py +++ b/tests/http/testenv/httpd.py @@ -7,7 +7,7 @@ # | (__| |_| | _ <| |___ # \___|\___/|_| \_\_____| # -# Copyright (C) 2008 - 2022, Daniel Stenberg, <daniel@haxx.se>, et al. +# Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al. # # This software is licensed as described in the file COPYING, which # you should have received as part of this distribution. The terms diff --git a/tests/http/testenv/nghttpx.py b/tests/http/testenv/nghttpx.py index cc163dcb3..1a26aa84f 100644 --- a/tests/http/testenv/nghttpx.py +++ b/tests/http/testenv/nghttpx.py @@ -7,7 +7,7 @@ # | (__| |_| | _ <| |___ # \___|\___/|_| \_\_____| # -# Copyright (C) 2008 - 2022, Daniel Stenberg, <daniel@haxx.se>, et al. +# Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al. # # This software is licensed as described in the file COPYING, which # you should have received as part of this distribution. The terms diff --git a/tests/http/testenv/ports.py b/tests/http/testenv/ports.py index c040dcb05..b7e8d97f1 100644 --- a/tests/http/testenv/ports.py +++ b/tests/http/testenv/ports.py @@ -7,7 +7,7 @@ # | (__| |_| | _ <| |___ # \___|\___/|_| \_\_____| # -# Copyright (C) 2008 - 2022, Daniel Stenberg, <daniel@haxx.se>, et al. +# Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al. # # This software is licensed as described in the file COPYING, which # you should have received as part of this distribution. The terms |