diff options
author | Andrei Zeliankou <zelenkov@nginx.com> | 2024-01-15 17:53:46 +0000 |
---|---|---|
committer | andrey-zelenkov <xim.andrew@gmail.com> | 2024-01-16 15:59:30 +0000 |
commit | 4e08f4954917ba8485823ab56619089a75c25129 (patch) | |
tree | c567ee89c231ce1cec1416dc89ecabe9e93a49f7 /test/test_ruby_application.py | |
parent | a1e00b4e28d56365b4b5cc4aa44185c4b53f5c33 (diff) | |
download | unit-4e08f4954917ba8485823ab56619089a75c25129.tar.gz unit-4e08f4954917ba8485823ab56619089a75c25129.tar.bz2 |
Tests: added Ruby tests with array in header values
Diffstat (limited to '')
-rw-r--r-- | test/test_ruby_application.py | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/test/test_ruby_application.py b/test/test_ruby_application.py index aae89999..127b75b7 100644 --- a/test/test_ruby_application.py +++ b/test/test_ruby_application.py @@ -309,6 +309,26 @@ def test_ruby_application_header_status(): assert client.get()['status'] == 200, 'header status' +def test_ruby_application_header_array(): + client.load('header_array') + + assert client.get()['headers']['x-array'] == 'name=value; ; value; av' + + +def test_ruby_application_header_array_nil(): + client.load('header_array_nil') + + assert client.get()['status'] == 503 + + +def test_ruby_application_header_array_empty(): + client.load('header_array_empty') + + headers = client.get()['headers'] + assert 'x-array' in headers + assert headers['x-array'] == '' + + @pytest.mark.skip('not yet') def test_ruby_application_header_rack(): client.load('header_rack') |