Update integ tests

This commit is contained in:
Fabrice Reix 2024-08-07 13:48:17 +02:00 committed by hurl-bot
parent 7969910f3d
commit a81d86fb05
No known key found for this signature in database
GPG Key ID: 1283A2B4A0DCAF8D
18 changed files with 47 additions and 15 deletions

View File

@ -0,0 +1,7 @@
error: Parsing duration
--> tests_error_parser/invalid_option_duration.hurl:3:10
|
3 | delay: 10mms
| ^ the duration unit is not valid. Did you mean ms?
|

View File

@ -0,0 +1,4 @@
GET https://localhost:8000/hello
[Options]
delay: 10mms
HTTP 200

View File

@ -0,0 +1,4 @@
Set-StrictMode -Version latest
$ErrorActionPreference = 'Stop'
hurl tests_error_parser/invalid_option_duration.hurl

View File

@ -0,0 +1,4 @@
#!/bin/bash
set -Eeuo pipefail
hurl tests_error_parser/invalid_option_duration.hurl

View File

@ -3,7 +3,7 @@
*
* Entry options:
* retry: 2
* retry-interval: 0
* retry-interval: 0ms
*
* Cookie store:
*

View File

@ -1,5 +1,5 @@
GET http://localhost:8000/not-found
[Options]
retry: 2
retry-interval: 0
retry-interval: 0ms
HTTP 200

View File

@ -18,7 +18,7 @@ HTTP 200
GET http://localhost:8000/delay-and-retry
[Options]
retry: 10
retry-interval: 10
retry-interval: 10ms
HTTP 200
[Asserts]
body toInt > 5 # Trigger a retry for 5 requests

View File

@ -29,7 +29,7 @@
* Executing entry 2
*
* Entry options:
* delay: 1000
* delay: 1000ms
*
* Delay entry 2 (pause 1000 ms)
*

View File

@ -5,5 +5,5 @@ HTTP 200
# This request must reach the server at least 1000ms after the first request
GET http://localhost:8000/delay
[Options]
delay: 1000
delay: 1000ms
HTTP 200

View File

@ -5,7 +5,7 @@
* Executing entry 1
*
* Entry options:
* delay: 5000
* delay: 5000ms
*
* Delay entry 1 (pause 5000 ms)
*
@ -39,7 +39,7 @@
* Executing entry 1
*
* Entry options:
* delay: 5000
* delay: 5000ms
*
* Delay entry 1 (pause 5000 ms)
*
@ -73,7 +73,7 @@
* Executing entry 1
*
* Entry options:
* delay: 5000
* delay: 5000ms
*
* Delay entry 1 (pause 5000 ms)
*
@ -107,7 +107,7 @@
* Executing entry 1
*
* Entry options:
* delay: 5000
* delay: 5000ms
*
* Delay entry 1 (pause 5000 ms)
*

View File

@ -1,5 +1,5 @@
GET http://localhost:8000/parallel/hello?name={{name}}
[Options]
delay: 5000
delay: 5000ms
HTTP 200
`Hello Bob from a parallel world!\n`

View File

@ -32,7 +32,7 @@
*
* Entry options:
* retry: 10
* retry-interval: 100
* retry-interval: 100ms
*
* Cookie store:
*

View File

@ -11,7 +11,7 @@ jsonpath "$.state" == "RUNNING"
GET http://localhost:8000/jobs/{{job_id}}
[Options]
retry: 10
retry-interval: 100
retry-interval: 100ms
HTTP 200
[Asserts]
jsonpath "$.state" == "COMPLETED"

View File

@ -8,6 +8,8 @@
<span class="line"><span class="string">compressed</span>: <span class="boolean">false</span></span>
<span class="line"><span class="string">connect-to</span>: <span class="string">example.com:443:example.net:8443</span></span>
<span class="line"><span class="string">delay</span>: <span class="number">1000</span></span>
<span class="line"><span class="string">delay</span>: <span class="number">1000</span><span class="unit">ms</span></span>
<span class="line"><span class="string">delay</span>: <span class="number">1</span><span class="unit">s</span></span>
<span class="line"><span class="string">location</span>: <span class="boolean">false</span></span>
<span class="line"><span class="string">location-trusted</span>: <span class="boolean">false</span></span>
<span class="line"><span class="string">http1.0</span>: <span class="boolean">false</span></span>
@ -31,6 +33,8 @@
<span class="line"><span class="string">retry</span>: <span class="number">-1</span></span>
<span class="line"><span class="string">retry</span>: <span class="number">4</span></span>
<span class="line"><span class="string">retry-interval</span>: <span class="number">1000</span></span>
<span class="line"><span class="string">retry-interval</span>: <span class="number">1000</span><span class="unit">ms</span></span>
<span class="line"><span class="string">retry-interval</span>: <span class="number">1</span><span class="unit">s</span></span>
<span class="line"><span class="string">skip</span>: <span class="boolean">false</span></span>
<span class="line"><span class="string">unix-socket</span>: <span class="string">build/unix_socket.sock</span></span>
<span class="line"><span class="string">user</span>: <span class="string">bob:secret</span></span>

View File

@ -8,6 +8,8 @@ key: keyfile
compressed: false
connect-to: example.com:443:example.net:8443
delay: 1000
delay: 1000ms
delay: 1s
location: false
location-trusted: false
http1.0: false
@ -31,6 +33,8 @@ retry: 0
retry: -1
retry: 4
retry-interval: 1000
retry-interval: 1000ms
retry-interval: 1s
skip: false
unix-socket: build/unix_socket.sock
user: bob:secret

View File

@ -1 +1 @@
{"entries":[{"request":{"method":"GET","url":"http://localhost:8000/hello","options":[{"name":"aws-sigv4","value":"aws:amz:eu-central-1:sts"},{"name":"cacert","value":"cacertfile"},{"name":"cert","value":"certfile"},{"name":"cert","value":"certfile:qU114@q,[\"NO"},{"name":"key","value":"keyfile"},{"name":"compressed","value":false},{"name":"connect-to","value":"example.com:443:example.net:8443"},{"name":"delay","value":1000},{"name":"location","value":false},{"name":"location-trusted","value":false},{"name":"http1.0","value":false},{"name":"http1.1","value":false},{"name":"http2","value":false},{"name":"http3","value":false},{"name":"insecure","value":false},{"name":"ipv4","value":false},{"name":"ipv6","value":false},{"name":"max-redirs","value":10},{"name":"netrc","value":false},{"name":"netrc-file","value":"netrcfile"},{"name":"netrc-optional","value":false},{"name":"output","value":"output.txt"},{"name":"path-as-is","value":false},{"name":"proxy","value":"http://proxy.example"},{"name":"repeat","value":-1},{"name":"repeat","value":5},{"name":"resolve","value":"example.com:443:127.0.0.1"},{"name":"retry","value":0},{"name":"retry","value":-1},{"name":"retry","value":4},{"name":"retry-interval","value":1000},{"name":"skip","value":false},{"name":"unix-socket","value":"build/unix_socket.sock"},{"name":"user","value":"bob:secret"},{"name":"variable","value":"user=null"},{"name":"variable","value":"status=true"},{"name":"variable","value":"count=2"},{"name":"variable","value":"score=7.7"},{"name":"variable","value":"name=Bob"},{"name":"verbose","value":false},{"name":"very-verbose","value":false}]}},{"request":{"method":"GET","url":"http://localhost:8000/hello","options":[{"name":"aws-sigv4","value":"{{aws-sigv4}}"},{"name":"cacert","value":"{{cacert}}"},{"name":"cert","value":"{{cert}}"},{"name":"key","value":"{{key}}"},{"name":"compressed","value":"{{compressed}}"},{"name":"connect-to","value":"{{connect-to}}"},{"name":"delay","value":"{{delay}}"},{"name":"location","value":"{{location}}"},{"name":"location-trusted","value":"{{location-trusted}}"},{"name":"http1.0","value":"{{http10}}"},{"name":"http1.1","value":"{{http11}}"},{"name":"http2","value":"{{http2}}"},{"name":"http3","value":"{{http3}}"},{"name":"insecure","value":"{{insecure}}"},{"name":"ipv4","value":"{{ipv4}}"},{"name":"ipv6","value":"{{ipv6}}"},{"name":"max-redirs","value":"{{max-redirs}}"},{"name":"netrc","value":"{{netrc}}"},{"name":"netrc-file","value":"{{netrc-file}}"},{"name":"netrc-optional","value":"{{netrc-optional}}"},{"name":"output","value":"{{output}}"},{"name":"path-as-is","value":"{{path-as-is}}"},{"name":"proxy","value":"{{proxy}}"},{"name":"repeat","value":"{{repeat}}"},{"name":"resolve","value":"{{resolve}}"},{"name":"retry","value":"{{retry}}"},{"name":"retry-interval","value":"{{retry-interval}}"},{"name":"skip","value":"{{skip}}"},{"name":"unix-socket","value":"{{socket-file}}"},{"name":"user","value":"{{user}}"},{"name":"verbose","value":"{{verbose}}"},{"name":"very-verbose","value":"{{very-verbose}}"}]}}]}
{"entries":[{"request":{"method":"GET","url":"http://localhost:8000/hello","options":[{"name":"aws-sigv4","value":"aws:amz:eu-central-1:sts"},{"name":"cacert","value":"cacertfile"},{"name":"cert","value":"certfile"},{"name":"cert","value":"certfile:qU114@q,[\"NO"},{"name":"key","value":"keyfile"},{"name":"compressed","value":false},{"name":"connect-to","value":"example.com:443:example.net:8443"},{"name":"delay","value":1000},{"value":1000,"unit":"ms","name":"delay"},{"value":1,"unit":"s","name":"delay"},{"name":"location","value":false},{"name":"location-trusted","value":false},{"name":"http1.0","value":false},{"name":"http1.1","value":false},{"name":"http2","value":false},{"name":"http3","value":false},{"name":"insecure","value":false},{"name":"ipv4","value":false},{"name":"ipv6","value":false},{"name":"max-redirs","value":10},{"name":"netrc","value":false},{"name":"netrc-file","value":"netrcfile"},{"name":"netrc-optional","value":false},{"name":"output","value":"output.txt"},{"name":"path-as-is","value":false},{"name":"proxy","value":"http://proxy.example"},{"name":"repeat","value":-1},{"name":"repeat","value":5},{"name":"resolve","value":"example.com:443:127.0.0.1"},{"name":"retry","value":0},{"name":"retry","value":-1},{"name":"retry","value":4},{"name":"retry-interval","value":1000},{"value":1000,"unit":"ms","name":"retry-interval"},{"value":1,"unit":"s","name":"retry-interval"},{"name":"skip","value":false},{"name":"unix-socket","value":"build/unix_socket.sock"},{"name":"user","value":"bob:secret"},{"name":"variable","value":"user=null"},{"name":"variable","value":"status=true"},{"name":"variable","value":"count=2"},{"name":"variable","value":"score=7.7"},{"name":"variable","value":"name=Bob"},{"name":"verbose","value":false},{"name":"very-verbose","value":false}]}},{"request":{"method":"GET","url":"http://localhost:8000/hello","options":[{"name":"aws-sigv4","value":"{{aws-sigv4}}"},{"name":"cacert","value":"{{cacert}}"},{"name":"cert","value":"{{cert}}"},{"name":"key","value":"{{key}}"},{"name":"compressed","value":"{{compressed}}"},{"name":"connect-to","value":"{{connect-to}}"},{"name":"delay","value":"{{delay}}"},{"name":"location","value":"{{location}}"},{"name":"location-trusted","value":"{{location-trusted}}"},{"name":"http1.0","value":"{{http10}}"},{"name":"http1.1","value":"{{http11}}"},{"name":"http2","value":"{{http2}}"},{"name":"http3","value":"{{http3}}"},{"name":"insecure","value":"{{insecure}}"},{"name":"ipv4","value":"{{ipv4}}"},{"name":"ipv6","value":"{{ipv6}}"},{"name":"max-redirs","value":"{{max-redirs}}"},{"name":"netrc","value":"{{netrc}}"},{"name":"netrc-file","value":"{{netrc-file}}"},{"name":"netrc-optional","value":"{{netrc-optional}}"},{"name":"output","value":"{{output}}"},{"name":"path-as-is","value":"{{path-as-is}}"},{"name":"proxy","value":"{{proxy}}"},{"name":"repeat","value":"{{repeat}}"},{"name":"resolve","value":"{{resolve}}"},{"name":"retry","value":"{{retry}}"},{"name":"retry-interval","value":"{{retry-interval}}"},{"name":"skip","value":"{{skip}}"},{"name":"unix-socket","value":"{{socket-file}}"},{"name":"user","value":"{{user}}"},{"name":"verbose","value":"{{verbose}}"},{"name":"very-verbose","value":"{{very-verbose}}"}]}}]}

View File

@ -7,7 +7,9 @@ cert: certfile:qU114@q,["NO
key: keyfile
compressed: false
connect-to: example.com:443:example.net:8443
delay: 1000
delay: 1000ms
delay: 1000ms
delay: 1s
location: false
location-trusted: false
http1.0: false
@ -30,7 +32,9 @@ resolve: example.com:443:127.0.0.1
retry: 0
retry: -1
retry: 4
retry-interval: 1000
retry-interval: 1000ms
retry-interval: 1000ms
retry-interval: 1s
skip: false
unix-socket: build/unix_socket.sock
user: bob:secret