t5550: put auth-required repo in auth/dumb

In most of our tests, we put repos to be accessed by dumb protocols in /dumb, and repos to be accessed by smart protocols in /smart. In our test apache setup, the whole /auth hierarchy requires authentication. However, we don't bother to split it by smart and dumb here because we are not currently testing smart-http authentication at all. That will change in future patches, so let's be explicit that we are interested in testing dumb access here. This also happens to match what t5540 does for the push tests. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Jeff King committed Aug 27, 2012 at 09:23 UTC 726800a8b3bf3702490a79f0205e33b2a0dbbb64
1 file changed +9 -9
t/t5550-http-fetch.sh
+9 -9
@@ -41,9 +41,9 @@ test_expect_success 'clone http repository' '
41 '
42
43 test_expect_success 'create password-protected repository' '
44 - mkdir "$HTTPD_DOCUMENT_ROOT_PATH/auth/" &&
44 + mkdir -p "$HTTPD_DOCUMENT_ROOT_PATH/auth/dumb/" &&
45 cp -Rf "$HTTPD_DOCUMENT_ROOT_PATH/repo.git" \
46 - "$HTTPD_DOCUMENT_ROOT_PATH/auth/repo.git"
46 + "$HTTPD_DOCUMENT_ROOT_PATH/auth/dumb/repo.git"
47 '
48
49 test_expect_success 'setup askpass helpers' '
@@ -81,28 +81,28 @@ expect_askpass() {
81 test_expect_success 'cloning password-protected repository can fail' '
82 >askpass-query &&
83 echo wrong >askpass-response &&
84 - test_must_fail git clone "$HTTPD_URL/auth/repo.git" clone-auth-fail &&
84 + test_must_fail git clone "$HTTPD_URL/auth/dumb/repo.git" clone-auth-fail &&
85 expect_askpass both wrong
86 '
87
88 test_expect_success 'http auth can use user/pass in URL' '
89 >askpass-query &&
90 echo wrong >askpass-response &&
91 - git clone "$HTTPD_URL_USER_PASS/auth/repo.git" clone-auth-none &&
91 + git clone "$HTTPD_URL_USER_PASS/auth/dumb/repo.git" clone-auth-none &&
92 expect_askpass none
93 '
94
95 test_expect_success 'http auth can use just user in URL' '
96 >askpass-query &&
97 echo user@host >askpass-response &&
98 - git clone "$HTTPD_URL_USER/auth/repo.git" clone-auth-pass &&
98 + git clone "$HTTPD_URL_USER/auth/dumb/repo.git" clone-auth-pass &&
99 expect_askpass pass user@host
100 '
101
102 test_expect_success 'http auth can request both user and pass' '
103 >askpass-query &&
104 echo user@host >askpass-response &&
105 - git clone "$HTTPD_URL/auth/repo.git" clone-auth-both &&
105 + git clone "$HTTPD_URL/auth/dumb/repo.git" clone-auth-both &&
106 expect_askpass both user@host
107 '
108
@@ -114,7 +114,7 @@ test_expect_success 'http auth respects credential helper config' '
114 }; f" &&
115 >askpass-query &&
116 echo wrong >askpass-response &&
117 - git clone "$HTTPD_URL/auth/repo.git" clone-auth-helper &&
117 + git clone "$HTTPD_URL/auth/dumb/repo.git" clone-auth-helper &&
118 expect_askpass none
119 '
120
@@ -122,7 +122,7 @@ test_expect_success 'http auth can get username from config' '
122 test_config_global "credential.$HTTPD_URL.username" user@host &&
123 >askpass-query &&
124 echo user@host >askpass-response &&
125 - git clone "$HTTPD_URL/auth/repo.git" clone-auth-user &&
125 + git clone "$HTTPD_URL/auth/dumb/repo.git" clone-auth-user &&
126 expect_askpass pass user@host
127 '
128
@@ -130,7 +130,7 @@ test_expect_success 'configured username does not override URL' '
130 test_config_global "credential.$HTTPD_URL.username" wrong &&
131 >askpass-query &&
132 echo user@host >askpass-response &&
133 - git clone "$HTTPD_URL_USER/auth/repo.git" clone-auth-user2 &&
133 + git clone "$HTTPD_URL_USER/auth/dumb/repo.git" clone-auth-user2 &&
134 expect_askpass pass user@host
135 '
136