@@ -117,47 +117,47 @@ grep 'Debug server on a1' out.18.222.136.83.txt
117117
118118# error case
119119! multicurl -4 -i -o /doesnexist/debug.%.txt debug.fortio.org
120- stderr '\[E\] Error creating file /doesnexist/debug.+: open /doesnexist/debug.+: no such file or directory '
120+ stderr '\[E\] Error creating file /doesnexist/debug'
121121
122122# Weird method test - count depends on number of ip addresses for debug.fortio.org
123123multicurl -4 -X INFO -d 'blah blah' https://debug.fortio.org
124124stdout 'INFO / HTTP/2.0'
125125stdout -count=3 'blah blah'
126126
127127# Debug summary of proxy is escaping the body thus the \n
128- multicurl -4 -d @payloadFile.txt https://debug.fortio.org
129- stderr '\[I\] Read 23 bytes from "payloadFile.txt" as payload'
130- stdout 'POST / HTTP/2.0'
131- stdout 'Content-Length: 23'
132- stdout '^body:$'
133- stdout '^Just a test\\nof payload\\n$'
128+ [unix] multicurl -4 -d @payloadFile.txt https://debug.fortio.org
129+ [unix] stderr '\[I\] Read 23 bytes from "payloadFile.txt" as payload'
130+ [unix] stdout 'POST / HTTP/2.0'
131+ [unix] stdout 'Content-Length: 23'
132+ [unix] stdout '^body:$'
133+ [unix] stdout '^Just a test\\nof payload\\n$'
134134
135135# payload file error
136136! multicurl -4 -d @nosuchfile.txt https://debug.fortio.org
137- stderr '\[F\] Unable to read payload from file "nosuchfile.txt": open nosuchfile.txt: no such file or directory '
137+ stderr '\[F\] Unable to read payload from file "nosuchfile.txt": open nosuchfile.txt'
138138
139139# ip file error
140140! multicurl -4 -I nosuchfile.txt https://debug.fortio.org
141- stderr '\[F\] Unable to resolve ip4 host debug.fortio.org: open nosuchfile.txt: no such file or directory '
141+ stderr '\[F\] Unable to resolve ip4 host debug.fortio.org: open nosuchfile.txt'
142142
143143# ip file
144- multicurl -4 -I ips.txt https://debug.fortio.org
145- stderr 'Using content of "ips.txt" to resolve IPs'
146- stderr '18.222.136.83'
144+ [unix] multicurl -4 -I ips.txt https://debug.fortio.org
145+ [unix] stderr 'Using content of "ips.txt" to resolve IPs'
146+ [unix] stderr '18.222.136.83'
147147
148148# bad ip file
149- ! multicurl -4 -I badIps.txt https://debug.fortio.org
150- stderr '\[F\] Unable to resolve ip4 host debug.fortio.org: unable to parse IP "not-an-ip"'
149+ [unix] ! multicurl -4 -I badIps.txt https://debug.fortio.org
150+ [unix] stderr '\[F\] Unable to resolve ip4 host debug.fortio.org: unable to parse IP "not-an-ip"'
151151
152152# good ipv6
153- ! multicurl -I ipv6.txt http://foo:9099/
154- stderr '\[I\] Resolved ip foo:9099 to port 9099 and 2 addresses \[::1 ::2\]'
155- stderr 'connect: connection refused'
153+ [unix] ! multicurl -I ipv6.txt http://foo:9099/
154+ [unix] stderr '\[I\] Resolved ip foo:9099 to port 9099 and 2 addresses \[::1 ::2\]'
155+ [unix] stderr 'connect: connection refused'
156156
157157# stdin ips
158- stdin ips.txt
159- multicurl -4 -I - https://debug.fortio.org
160- stderr 'Using stdin for list of IPs to connect to'
158+ [unix] stdin ips.txt
159+ [unix] multicurl -4 -I - https://debug.fortio.org
160+ [unix] stderr 'Using stdin for list of IPs to connect to'
161161
162162# retries
163163! multicurl -4 -repeat -1 -repeat-delay 1s -total-timeout 1.9s -expected 301 http://debug.fortio.org
@@ -180,7 +180,7 @@ stderr '\[I\] Certificate "CN=BadSSL Untrusted Root Certificate Authority'
180180
181181# no such ca-cert file
182182! multicurl -4 -cacert nosuchfile https://debug.fortio.org/
183- stderr '\[F\] can.t read CA file: open nosuchfile: no such file or directory '
183+ stderr '\[F\] can.t read CA file: open nosuchfile:'
184184
185185# get the server cert
186186exec sh -c 'openssl s_client -showcerts -servername self-signed.badssl.com -connect self-signed.badssl.com:443 </dev/null | openssl x509 > test.ca'
@@ -189,17 +189,17 @@ stderr '\[I\] Certificate "CN=..badssl.com'
189189
190190# bad client cert path
191191! multicurl -4 -cert nosuchfile.crt -key nosuchfile.key https://debug.fortio.org/
192- stderr '\[F\] LoadX509KeyPair error for cert nosuchfile.crt / key nosuchfile.key: open nosuchfile.crt: no such file or directory '
192+ stderr '\[F\] LoadX509KeyPair error for cert nosuchfile.crt / key nosuchfile.key: open nosuchfile.crt:'
193193
194194# mtls test
195195# on mac you need to use openssl from
196- # brew install openssl@3
197- exec curl -sS -o client.p12 https://badssl.com/certs/badssl.com-client.p12
198- exec openssl version
199- exec openssl pkcs12 -legacy -in client.p12 -out client.crt -clcerts -nokeys -passin pass:badssl.com
200- exec openssl pkcs12 -legacy -in client.p12 -out client.key -nocerts -nodes -passin pass:badssl.com
201- multicurl -4 -cert client.crt -key client.key https://client.badssl.com/
202- stdout 'This site requires a .*client-authenticated.*TLS handshake'
196+ # brew install openssl@3 - so because CI macos doesn't have it, we tag this with linux for now.
197+ [linux] exec curl -sS -o client.p12 https://badssl.com/certs/badssl.com-client.p12
198+ [linux] exec openssl version
199+ [linux] exec openssl pkcs12 -legacy -in client.p12 -out client.crt -clcerts -nokeys -passin pass:badssl.com
200+ [linux] exec openssl pkcs12 -legacy -in client.p12 -out client.key -nocerts -nodes -passin pass:badssl.com
201+ [linux] multicurl -4 -cert client.crt -key client.key https://client.badssl.com/
202+ [linux] stdout 'This site requires a .*client-authenticated.*TLS handshake'
203203
204204# json, no certs, no expiry
205205multicurl -4 -n 1 -json -o none http://debug.fortio.org
0 commit comments