-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathrun-http-specs
executable file
·30 lines (21 loc) · 1.02 KB
/
run-http-specs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/bin/bash
time (
http-spec example-file-not-found.htsf && exit 1
http-spec example-line-count-mismatch.htsf && exit 1
http-spec example-request-only.htsf && exit 1
http-spec example-uuid.htsf && exit 1
http-spec example-not-found.htsf \
example-post.htsf \
example-regexp-and-substitution.htsf \
example-sleep.htsf || exit 1
http-spec -skip-tls-verification example-insecure.htsf || exit 1
http-spec example-do-not-follow-redirect.htsf || exit 1
http-spec example-built-in-substitution.htsf || exit 1
http-spec -hostname api.subledger.com -scheme http \
example-scheme-and-hostname-1.htsf || exit 1
http-spec -hostname api.subledger.com -scheme https \
example-scheme-and-hostname-2.htsf || exit 1
) || exit 1
echo
echo Tests ran successfully!
exit 0