qt6-bb10/tests/auto/network/access/http2
Mårten Nordheim f4c8e11ad7 tst_http2: increase testing for authenticationRequired
Make sure the reply is marked as finished and that the body is received
even if we didn't succeed.

In a real scenario that would include some text like Access Denied.

Also, no longer clear() the authenticationHeader in the server, since
that meant the server would not send the header again if the client
failed to authenticate. Luckily this wasn't actually causing any
problems before, since we only tested the expected www-authenticate
header.

As a drive-by: clang-tidy complained about not using const-ref for a
lambda.

Pick-to: 6.6 6.5 6.2
Change-Id: Ia4452fff7d9370d7d460433257d84eff0a6f469b
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
2023-11-15 13:18:13 +02:00
..
certs
CMakeLists.txt CMake: Make network tests standalone projects 2023-07-05 15:09:32 +02:00
http2srv.cpp tst_http2: increase testing for authenticationRequired 2023-11-15 13:18:13 +02:00
http2srv.h Http2: Don't skip checking flag for trailing HEADERS frame if PRIORITY 2023-04-01 00:36:58 +02:00
tst_http2.cpp tst_http2: increase testing for authenticationRequired 2023-11-15 13:18:13 +02:00