New helper tools/adhoc-httpd to facilitate manual HTTP debugging#6169
Conversation
This helper exposes `serve_path_via_http` via a cmdline utility that is capable of deploying an ad-hoc instance of the same HTTP server that we are using for internal testing (with SSL and auth, if desired). This lowers the threshold for debugging real usage, by avoiding the need to develop a dedicated test for a scenario. It also makes it possibly to bypass to additional implications of a datalad test implementation, like the fake homedir (see datalad#6164, datalad#6160).
|
Nice! |
Codecov Report
@@ Coverage Diff @@
## master #6169 +/- ##
=======================================
Coverage 89.70% 89.71%
=======================================
Files 318 318
Lines 41896 41900 +4
=======================================
+ Hits 37584 37589 +5
+ Misses 4312 4311 -1
Continue to review full report at Codecov.
|
|
sweet -- will come handy. |
yes, good catch. I should have added this to the message. I discovered that the check for proper function of an SSL enabled webserver that also had basic auth enabled would not pass, because the check itself did not perform authentication properly. This is inconsequential for datalad as of now, because I am only adding such tests in a local branch that improves the RIA/ORA testing. But given that the helper can actually trigger the problem, I thought to include the fix here. More comprehensive machinery on this will come. |
This helper exposes
serve_path_via_httpvia a cmdline utility that iscapable of deploying an ad-hoc instance of the same HTTP server that we
are using for internal testing (with SSL and auth, if desired).
This lowers the threshold for debugging real usage, by avoiding the need
to develop a dedicated test for a scenario. It also makes it possibly to
bypass to additional implications of a datalad test implementation, like
the fake homedir (see #6164, #6160).