]> git.ipfire.org Git - thirdparty/git.git/commit - t/lib-httpd.sh
t5563: add tests for basic and anoymous HTTP access
authorMatthew John Cheetham <mjcheetham@outlook.com>
Mon, 27 Feb 2023 17:20:18 +0000 (17:20 +0000)
committerJunio C Hamano <gitster@pobox.com>
Mon, 27 Feb 2023 18:40:40 +0000 (10:40 -0800)
commit988aad99b44f3fb3f04f4a75cadf0dbb7ac89ffe
tree73575f7c1da1441def99ccf6fd49c5a4870bb662
parent7876265d61cebef91f5b26db2dceab0fb95cfa3d
t5563: add tests for basic and anoymous HTTP access

Add a test showing simple anoymous HTTP access to an unprotected
repository, that results in no credential helper invocations.
Also add a test demonstrating simple basic authentication with
simple credential helper support.

Leverage a no-parsed headers (NPH) CGI script so that we can directly
control the HTTP responses to simulate a multitude of good, bad and ugly
remote server implementations around auth.

Signed-off-by: Matthew John Cheetham <mjcheetham@outlook.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/lib-httpd.sh
t/lib-httpd/apache.conf
t/lib-httpd/nph-custom-auth.sh [new file with mode: 0644]
t/t5563-simple-http-auth.sh [new file with mode: 0755]