<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/t/lib-httpd, branch v1.7.2</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v1.7.2</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v1.7.2'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2010-01-06T09:16:50Z</updated>
<entry>
<title>Smart-http: check if repository is OK to export before serving it</title>
<updated>2010-01-06T09:16:50Z</updated>
<author>
<name>Tarmigan Casebolt</name>
<email>tarmigan+git@gmail.com</email>
</author>
<published>2009-12-28T21:49:00Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=8b2bd7cdacf71260dbc954316af2bed8e076c182'/>
<id>urn:sha1:8b2bd7cdacf71260dbc954316af2bed8e076c182</id>
<content type='text'>
Similar to how git-daemon checks whether a repository is OK to be
exported, smart-http should also check.  This check can be satisfied
in two different ways: the environmental variable GIT_HTTP_EXPORT_ALL
may be set to export all repositories, or the individual repository
may have the file git-daemon-export-ok.

Acked-by: Shawn O. Pearce &lt;spearce@spearce.org&gt;
Signed-off-by: Tarmigan Casebolt &lt;tarmigan+git@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>test smart http fetch and push</title>
<updated>2009-11-05T01:58:16Z</updated>
<author>
<name>Shawn O. Pearce</name>
<email>spearce@spearce.org</email>
</author>
<published>2009-10-31T00:47:47Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=7da4e2280ccaf5ecb357f7cb2b81d62f78f00f9e'/>
<id>urn:sha1:7da4e2280ccaf5ecb357f7cb2b81d62f78f00f9e</id>
<content type='text'>
The top level directory "/smart/" of the test Apache server is mapped
through our git-http-backend CGI, but uses the same underlying
repository space as the server's document root.  This is the most
simple installation possible.

Server logs are checked to verify the client has accessed only the
smart URLs during the test.  During fetch testing the headers are
also logged from libcurl to ensure we are making a reasonably sane
HTTP request, and getting back reasonably sane response headers
from the CGI.

When validating the request headers used during smart fetch we munge
away the actual Content-Length and replace it with the placeholder
"xxx".  This avoids unnecessary varability in the test caused by
an unrelated change in the requested capabilities in the first want
line of the request.  However, we still want to look for and verify
that Content-Length was used, because smaller payloads should be
using Content-Length and not "Transfer-Encoding: chunked".

When validating the server response headers we must discard both
Content-Length and Transfer-Encoding, as Apache2 can use either
format to return our response.

During development of this test I observed Apache returning both
forms, depending on when the processes got CPU time.  If our CGI
returned the pack data quickly, Apache just buffered the whole
thing and returned a Content-Length.  If our CGI took just a bit
too long to complete, Apache flushed its buffer and instead used
"Transfer-Encoding: chunked".

Signed-off-by: Shawn O. Pearce &lt;spearce@spearce.org&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>http tests: use /dumb/ URL prefix</title>
<updated>2009-11-05T01:58:16Z</updated>
<author>
<name>Shawn O. Pearce</name>
<email>spearce@spearce.org</email>
</author>
<published>2009-10-31T00:47:46Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=024bb1256627219671a0924b195582b6e049ca87'/>
<id>urn:sha1:024bb1256627219671a0924b195582b6e049ca87</id>
<content type='text'>
To clarify what part of the HTTP transprot is being tested we change
the URLs used by existing tests to include /dumb/ at the start,
indicating they use the non-Git aware code paths.

Signed-off-by: Shawn O. Pearce &lt;spearce@spearce.org&gt;
CC: Tay Ray Chuan &lt;rctay89@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>http tests: Darwin is not that special</title>
<updated>2009-03-20T21:41:14Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2009-03-11T20:13:38Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=a797b02f3925c4a6324472e2edaf4a58d4ffc097'/>
<id>urn:sha1:a797b02f3925c4a6324472e2edaf4a58d4ffc097</id>
<content type='text'>
We have PidFile definition in the file already, and we have added
necessary LoadModule for log_config_module recently.

This patch will end up giving LockFile to everybody not just limited to
Darwin, but why not?

Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>test: do not LoadModule log_config_module unconditionally</title>
<updated>2009-03-11T19:41:56Z</updated>
<author>
<name>Johannes Schindelin</name>
<email>Johannes.Schindelin@gmx.de</email>
</author>
<published>2009-03-11T11:47:06Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=7d59ceed9d1e4f8f0dc52cebf55219d6d395c9da'/>
<id>urn:sha1:7d59ceed9d1e4f8f0dc52cebf55219d6d395c9da</id>
<content type='text'>
LoadModule directive for log_config_module will not work if the module is
built-in.

Signed-off-by: Johannes Schindelin &lt;johannes.schindelin@gmx.de&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Include log_config module in apache.conf</title>
<updated>2009-03-11T06:09:48Z</updated>
<author>
<name>Daniel Barkalow</name>
<email>barkalow@iabervon.org</email>
</author>
<published>2009-03-11T03:23:45Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=4d5d3984749bfb7e2137fb4bce6ac1ace9286aca'/>
<id>urn:sha1:4d5d3984749bfb7e2137fb4bce6ac1ace9286aca</id>
<content type='text'>
The log_config module is needed for at least some versions of apache to
support the LogFormat directive.

Signed-off-by: Daniel Barkalow &lt;barkalow@iabervon.org&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Allow HTTP tests to run on Darwin</title>
<updated>2009-02-25T21:58:57Z</updated>
<author>
<name>Jay Soffian</name>
<email>jaysoffian@gmail.com</email>
</author>
<published>2009-02-25T08:28:15Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=69707d616fd3acda6ecc47198edeaaa87f2cfcea'/>
<id>urn:sha1:69707d616fd3acda6ecc47198edeaaa87f2cfcea</id>
<content type='text'>
This patch allows the HTTP tests to run on OS X 10.5. It is not
sufficient to be able to pass in LIB_HTTPD_PATH and
LIB_HTTPD_MODULE_PATH alone, as the apache.conf also needs a couple
tweaks.

These changes are put into an &lt;IfDefine&gt; to keep them Darwin specific,
but this means lib-httpd.sh needs to be modified to pass -DDarwin to
apache when running on Darwin. As long as we're making this change to
lib-httpd.sh, we may as well set LIB_HTTPD_PATH and
LIB_HTTPD_MODULE_PATH to appropriate default values for the platform.

Note that we now pass HTTPD_PARA to apache at shutdown as well.
Otherwise apache will emit a harmless, but noisy warning that LogFormat
is an unknown directive.

Signed-off-by: Jay Soffian &lt;jaysoffian@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>http-push: when making directories, have a trailing slash in the path name</title>
<updated>2009-01-18T02:19:46Z</updated>
<author>
<name>Johannes Schindelin</name>
<email>Johannes.Schindelin@gmx.de</email>
</author>
<published>2009-01-17T15:11:51Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=466ddf90c2f270b973d141f20e912f743743331c'/>
<id>urn:sha1:466ddf90c2f270b973d141f20e912f743743331c</id>
<content type='text'>
The function lock_remote() sends MKCOL requests to make leading
directories; However, if it does not put a forward slash '/' at the end of
the path, the server sends a 301 redirect.

By leaving the '/' in place, we can avoid this additional step.

Incidentally, at least one version of Curl (7.16.3) does not resend
credentials when it follows a 301 redirect, so this commit also fixes
a bug.

Original patch by Tay Ray Chuan &lt;rctay89@gmail.com&gt;.

Signed-off-by: Johannes Schindelin &lt;johannes.schindelin@gmx.de&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Avoid apache complaining about lack of server's FQDN</title>
<updated>2008-07-09T05:50:48Z</updated>
<author>
<name>Mike Hommey</name>
<email>mh@glandium.org</email>
</author>
<published>2008-07-07T20:22:15Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=603fb1168218a813f1b0816b1208c5d0c92cf29d'/>
<id>urn:sha1:603fb1168218a813f1b0816b1208c5d0c92cf29d</id>
<content type='text'>
On some setups, apache will say:
apache2: Could not reliably determine the server's fully qualified
domain name, using $(IP_address) for ServerName

Avoid this message polluting tests output by setting a ServerName in
apache configuration.

Signed-off-by: Mike Hommey &lt;mh@glandium.org&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>http-push: add regression tests</title>
<updated>2008-02-27T23:38:40Z</updated>
<author>
<name>Clemens Buchacher</name>
<email>drizzd@aon.at</email>
</author>
<published>2008-02-27T19:28:45Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=faa4bc35a05ddb1822f3770cd8c51859e3b929ee'/>
<id>urn:sha1:faa4bc35a05ddb1822f3770cd8c51859e3b929ee</id>
<content type='text'>
http-push tests require a web server with WebDAV support.

This commit introduces a HTTPD test library, which can be configured using
the following environment variables.

GIT_TEST_HTTPD		enable HTTPD tests
LIB_HTTPD_PATH		web server path
LIB_HTTPD_MODULE_PATH	web server modules path
LIB_HTTPD_PORT		listening port
LIB_HTTPD_DAV		enable DAV
LIB_HTTPD_SVN		enable SVN
LIB_HTTPD_SSL		enable SSL

Signed-off-by: Clemens Buchacher &lt;drizzd@aon.at&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
</feed>
