3 ## run various requests against running test server.
4 ## this script is pretty useless on it's own, but used by leakcheck.sh/limitcheck.sh
8 curl -H "Authorization: Bearer static-token-for-now" $1 >/dev/null 2>&1
14 curl -X PUT -H "Authorization: Bearer static-token-for-now" $1 --data "$2" >/dev/null 2>&1
20 curl -X DELETE -H "Authorization: Bearer static-token-for-now" $1 --data "$2" >/dev/null 2>&1
24 # retrieve some directories
25 get http://localhost:8181/nil/src/rs-serve/
26 get http://localhost:8181/nil/src/rs-serve/src/
27 get http://localhost:8181/nil/src/rs-serve/scripts/
29 get http://localhost:8181/nil/src/rs-serve/Makefile
30 get http://localhost:8181/nil/src/rs-serve/rs-serve
31 get http://localhost:8181/nil/src/rs-serve/LICENSE
32 get http://localhost:8181/nil/src/rs-serve/src/main.c
33 get http://localhost:8181/nil/src/rs-serve/src/config.h
34 get http://localhost:8181/nil/src/rs-serve/src/rs-serve.h
35 get http://localhost:8181/nil/src/rs-serve/src/storage.c
37 put http://localhost:8181/nil/src/rs-serve/foo/bar/a "File A"
38 put http://localhost:8181/nil/src/rs-serve/foo/bar/b "File B"
39 put http://localhost:8181/nil/src/rs-serve/foo/bar/c "File C"
40 put http://localhost:8181/nil/src/rs-serve/foo/bar/baz/d "File D"
41 put http://localhost:8181/nil/src/rs-serve/foo/bar/baz/e "File E"
42 put http://localhost:8181/nil/src/rs-serve/foo/bar/baz/f "File F"
43 # retrieve just created files & folders
44 get http://localhost:8181/nil/src/rs-serve/foo/
45 get http://localhost:8181/nil/src/rs-serve/foo/bar/
46 get http://localhost:8181/nil/src/rs-serve/foo/bar/a
47 get http://localhost:8181/nil/src/rs-serve/foo/bar/b
48 get http://localhost:8181/nil/src/rs-serve/foo/bar/c
49 get http://localhost:8181/nil/src/rs-serve/foo/bar/baz/
50 get http://localhost:8181/nil/src/rs-serve/foo/bar/baz/d
51 get http://localhost:8181/nil/src/rs-serve/foo/bar/baz/e
52 get http://localhost:8181/nil/src/rs-serve/foo/bar/baz/f
54 delete http://localhost:8181/nil/src/rs-serve/foo/bar/a
55 delete http://localhost:8181/nil/src/rs-serve/foo/bar/b
56 delete http://localhost:8181/nil/src/rs-serve/foo/bar/c
57 # attempt to get deleted files & dir
58 get http://localhost:8181/nil/src/rs-serve/foo/bar/
59 get http://localhost:8181/nil/src/rs-serve/foo/bar/a
60 get http://localhost:8181/nil/src/rs-serve/foo/bar/b
61 get http://localhost:8181/nil/src/rs-serve/foo/bar/c
63 delete http://localhost:8181/nil/src/rs-serve/foo/bar/baz/d
64 delete http://localhost:8181/nil/src/rs-serve/foo/bar/baz/e
65 delete http://localhost:8181/nil/src/rs-serve/foo/bar/baz/f