Skip to content

Commit f027f09

Browse files
Add UI test
Try and download a few things to confirm the UI loads properly
1 parent 83ecd57 commit f027f09

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

tests/proxy/ui.t

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
$ . ${TESTDIR}/setup_test_env.sh
2+
$ cd ${TESTTMP}
3+
$ curl -s -I http://127.0.0.1:8002/
4+
HTTP/1.1 302 Found\r (esc)
5+
location: /~/ui/\r (esc)
6+
date: * (glob)
7+
\r (esc)
8+
$ curl -s -I http://127.0.0.1:8002/~/ui/index.html
9+
HTTP/1.1 200 OK\r (esc)
10+
etag: * (glob)
11+
last-modified: * (glob)
12+
accept-ranges: bytes\r (esc)
13+
content-length: 633\r (esc)
14+
content-type: text/html\r (esc)
15+
date: * (glob)
16+
\r (esc)
17+
$ curl -s -I http://127.0.0.1:8002/~/ui/favicon.ico
18+
HTTP/1.1 200 OK\r (esc)
19+
etag: * (glob)
20+
last-modified: * (glob)
21+
accept-ranges: bytes\r (esc)
22+
content-length: 12014\r (esc)
23+
content-type: image/x-icon\r (esc)
24+
date: * (glob)
25+
\r (esc)
26+
$ curl -s -I http://127.0.0.1:8002/a/repo
27+
HTTP/1.1 302 Found\r (esc)
28+
location: /~/ui/browse?repo=/a/repo.git&path=&filter=%3A%2F&rev=HEAD\r (esc)
29+
date: * (glob)
30+
\r (esc)

0 commit comments

Comments
 (0)