Mailing List Archive

[Bug 65985] New: some error about executing the test_006_asserts.py
https://bz.apache.org/bugzilla/show_bug.cgi?id=65985

Bug ID: 65985
Summary: some error about executing the test_006_asserts.py
Product: Apache httpd-2
Version: 2.4.51
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P2
Component: mod_http2
Assignee: bugs@httpd.apache.org
Reporter: chengyechun1@huawei.com
Target Milestone: ---

Some errors appear when the test_006_asserts.py case is executed. After the
ngHTTP is used to request the local HTML file, the service responds only to the
HTML file. However, the JS and CSS links in the HTML file do not appear to be
returned as the result. However, the test case expects that the result is
returned.
test_006_assets.py ..FFF

[100%]

===============================================================================================
FAILURES
===============================================================================================
________________________________________________________________________________________
TestStore.test_006_03
_________________________________________________________________________________________

self = <test_006_assets.TestStore object at 0x7f1461e63b20>, env =
<h2_env.H2TestEnv object at 0x7f1461e63a90>

def test_006_03(self, env):
# create the tiles files we originally had checked in
exp_assets = [.
{"status": 200, "size": "10K", "path": "/004.html"},
{"status": 200, "size": "742", "path": "/004/gophertiles.jpg"},
]
for i in range(2, 181):
with
open(f"{env.server_docs_dir}/test1/004/gophertiles_{i:03d}.jpg", "w") as fd:
fd.write("0123456789\n")
exp_assets.append(
{"status": 200, "size": "11", "path":
f"/004/gophertiles_{i:03d}.jpg"},
)

url = env.mkurl("https", "test1", "/004.html")
r = env.nghttp().assets(url, options=["-Haccept-encoding: none"])
print(r.assets)
assert 0 == r.exit_code
> assert 181 == len(r.assets)
E AssertionError: assert 181 == 1
E + where 1 = len([{'path': '/004.html', 'size': '10K', 'status':
200}])
E + where [{'path': '/004.html', 'size': '10K', 'status': 200}] =
<h2_result.ExecResult object at 0x7f1462b2a0d0>.assets

test_006_assets.py:51: AssertionError
-----------------------------------------------------------------------------------------
Captured stdout call
-----------------------------------------------------------------------------------------
execute: nghttp --header=host: test1.tests.httpd.apache.org:40002
-Haccept-encoding: none -ans https://127.0.0.1:40002//004.html
[{'path': '/004.html', 'status': 200, 'size': '10K'}]
________________________________________________________________________________________
TestStore.test_006_04
_________________________________________________________________________________________

self = <test_006_assets.TestStore object at 0x7f1462b344c0>, env =
<h2_env.H2TestEnv object at 0x7f1461e63a90>

def test_006_04(self, env):
url = env.mkurl("https", "test1", "/006.html")
r = env.nghttp().assets(url, options=["-Haccept-encoding: none"])
assert 0 == r.exit_code
> assert 3 == len(r.assets)
E AssertionError: assert 3 == 1
E + where 1 = len([{'path': '/006.html', 'size': '543', 'status':
200}])
E + where [{'path': '/006.html', 'size': '543', 'status': 200}] =
<h2_result.ExecResult object at 0x7f1462b34be0>.assets

test_006_assets.py:59: AssertionError
-----------------------------------------------------------------------------------------
Captured stdout call
-----------------------------------------------------------------------------------------
execute: nghttp --header=host: test1.tests.httpd.apache.org:40002
-Haccept-encoding: none -ans https://127.0.0.1:40002//006.html
________________________________________________________________________________________
TestStore.test_006_05
_________________________________________________________________________________________

self = <test_006_assets.TestStore object at 0x7f1461ae3c70>, env =
<h2_env.H2TestEnv object at 0x7f1461e63a90>

def test_006_05(self, env):
url = env.mkurl("https", "test1", "/003.html")
r = env.nghttp().assets(url, options=["--window-bits=24",
"-Haccept-encoding: none"])
assert 0 == r.exit_code
> assert 2 == len(r.assets)
E AssertionError: assert 2 == 1
E + where 1 = len([{'path': '/003.html', 'size': '316', 'status':
200}])
E + where [{'path': '/003.html', 'size': '316', 'status': 200}] =
<h2_result.ExecResult object at 0x7f1461ae3f70>.assets

test_006_assets.py:71: AssertionError
-----------------------------------------------------------------------------------------
Captured stdout call
-----------------------------------------------------------------------------------------
execute: nghttp --header=host: test1.tests.httpd.apache.org:40002
--window-bits=24 -Haccept-encoding: none -ans https://127.0.0.1:40002//003.html

--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org