23 $ cd ../test |
23 $ cd ../test |
24 |
24 |
25 expect ssl error |
25 expect ssl error |
26 |
26 |
27 $ req |
27 $ req |
28 pushing to http://localhost:*/ (glob) |
28 pushing to http://localhost:$HGPORT/ |
29 searching for changes |
29 searching for changes |
30 remote: ssl required |
30 remote: ssl required |
31 % serve errors |
31 % serve errors |
32 |
32 |
33 expect authorization error |
33 expect authorization error |
34 |
34 |
35 $ echo '[web]' > .hg/hgrc |
35 $ echo '[web]' > .hg/hgrc |
36 $ echo 'push_ssl = false' >> .hg/hgrc |
36 $ echo 'push_ssl = false' >> .hg/hgrc |
37 $ req |
37 $ req |
38 pushing to http://localhost:*/ (glob) |
38 pushing to http://localhost:$HGPORT/ |
39 searching for changes |
39 searching for changes |
40 abort: authorization failed |
40 abort: authorization failed |
41 % serve errors |
41 % serve errors |
42 |
42 |
43 expect authorization error: must have authorized user |
43 expect authorization error: must have authorized user |
44 |
44 |
45 $ echo 'allow_push = unperson' >> .hg/hgrc |
45 $ echo 'allow_push = unperson' >> .hg/hgrc |
46 $ req |
46 $ req |
47 pushing to http://localhost:*/ (glob) |
47 pushing to http://localhost:$HGPORT/ |
48 searching for changes |
48 searching for changes |
49 abort: authorization failed |
49 abort: authorization failed |
50 % serve errors |
50 % serve errors |
51 |
51 |
52 expect success |
52 expect success |
53 |
53 |
54 $ echo 'allow_push = *' >> .hg/hgrc |
54 $ echo 'allow_push = *' >> .hg/hgrc |
55 $ echo '[hooks]' >> .hg/hgrc |
55 $ echo '[hooks]' >> .hg/hgrc |
56 $ echo 'changegroup = python ../printenv.py changegroup 0' >> .hg/hgrc |
56 $ echo 'changegroup = python ../printenv.py changegroup 0' >> .hg/hgrc |
57 $ req |
57 $ req |
58 pushing to http://localhost:*/ (glob) |
58 pushing to http://localhost:$HGPORT/ |
59 searching for changes |
59 searching for changes |
60 remote: adding changesets |
60 remote: adding changesets |
61 remote: adding manifests |
61 remote: adding manifests |
62 remote: adding file changes |
62 remote: adding file changes |
63 remote: added 1 changesets with 1 changes to 1 files |
63 remote: added 1 changesets with 1 changes to 1 files |
70 |
70 |
71 $ echo '[web]' > .hg/hgrc |
71 $ echo '[web]' > .hg/hgrc |
72 $ echo 'push_ssl = false' >> .hg/hgrc |
72 $ echo 'push_ssl = false' >> .hg/hgrc |
73 $ echo 'deny_push = *' >> .hg/hgrc |
73 $ echo 'deny_push = *' >> .hg/hgrc |
74 $ req |
74 $ req |
75 pushing to http://localhost:*/ (glob) |
75 pushing to http://localhost:$HGPORT/ |
76 searching for changes |
76 searching for changes |
77 abort: authorization failed |
77 abort: authorization failed |
78 % serve errors |
78 % serve errors |
79 |
79 |
80 expect authorization error: some users denied, users must be authenticated |
80 expect authorization error: some users denied, users must be authenticated |
81 |
81 |
82 $ echo 'deny_push = unperson' >> .hg/hgrc |
82 $ echo 'deny_push = unperson' >> .hg/hgrc |
83 $ req |
83 $ req |
84 pushing to http://localhost:*/ (glob) |
84 pushing to http://localhost:$HGPORT/ |
85 searching for changes |
85 searching for changes |
86 abort: authorization failed |
86 abort: authorization failed |
87 % serve errors |
87 % serve errors |