mirror of
https://github.com/Orange-OpenSource/hurl.git
synced 2024-11-26 00:22:10 +03:00
daa5e5ebd4
This update solves security issue but bumps HTTP Flask version from HTTP/1.0 to HTTP/1.1.
262 lines
5.4 KiB
Plaintext
262 lines
5.4 KiB
Plaintext
* Options:
|
|
* fail fast: true
|
|
* follow redirect: false
|
|
* insecure: false
|
|
* max redirect: 50
|
|
* retry: true
|
|
* retry max count: 10
|
|
* ------------------------------------------------------------------------------
|
|
* Executing entry 1
|
|
*
|
|
* Cookie store:
|
|
*
|
|
* Request:
|
|
* POST http://localhost:8000/jobs
|
|
*
|
|
* Request can be run with the following curl command:
|
|
* curl --request POST 'http://localhost:8000/jobs'
|
|
*
|
|
> POST /jobs HTTP/1.1
|
|
> Host: localhost:8000
|
|
> Accept: */*
|
|
> User-Agent: hurl/~~~
|
|
>
|
|
* Response: (received 60 bytes in ~~~ ms)
|
|
*
|
|
< HTTP/1.1 201 CREATED
|
|
< Server: Werkzeug/~~~ Python/~~~
|
|
< Date: ~~~
|
|
< Content-Type: application/json
|
|
< Content-Length: 60
|
|
< Server: Flask Server
|
|
< Connection: close
|
|
<
|
|
* Captures:
|
|
* job_id: ~~~
|
|
*
|
|
* ------------------------------------------------------------------------------
|
|
* Executing entry 2
|
|
*
|
|
* Cookie store:
|
|
*
|
|
* Request:
|
|
* GET http://localhost:8000/jobs/~~~
|
|
*
|
|
* Request can be run with the following curl command:
|
|
* curl 'http://localhost:8000/jobs/~~~'
|
|
*
|
|
> GET /jobs/~~~ HTTP/1.1
|
|
> Host: localhost:8000
|
|
> Accept: */*
|
|
> User-Agent: hurl/~~~
|
|
>
|
|
* Response: (received 60 bytes in ~~~ ms)
|
|
*
|
|
< HTTP/1.1 200 OK
|
|
< Server: Werkzeug/~~~ Python/~~~
|
|
< Date: ~~~
|
|
< Content-Type: application/json
|
|
< Content-Length: 60
|
|
< Server: Flask Server
|
|
< Connection: close
|
|
<
|
|
*
|
|
* Assert failure
|
|
* --> tests_ok/retry.hurl:16:0
|
|
* |
|
|
* 16 | jsonpath "$.state" == "COMPLETED"
|
|
* | actual: string <RUNNING>
|
|
* | expected: string <COMPLETED>
|
|
* |
|
|
*
|
|
* Retry entry 2 (x1 pause 100 ms)
|
|
* ------------------------------------------------------------------------------
|
|
* Executing entry 2
|
|
*
|
|
* Cookie store:
|
|
*
|
|
* Request:
|
|
* GET http://localhost:8000/jobs/~~~
|
|
*
|
|
* Request can be run with the following curl command:
|
|
* curl 'http://localhost:8000/jobs/~~~'
|
|
*
|
|
> GET /jobs/~~~ HTTP/1.1
|
|
> Host: localhost:8000
|
|
> Accept: */*
|
|
> User-Agent: hurl/~~~
|
|
>
|
|
* Response: (received 60 bytes in ~~~ ms)
|
|
*
|
|
< HTTP/1.1 200 OK
|
|
< Server: Werkzeug/~~~ Python/~~~
|
|
< Date: ~~~
|
|
< Content-Type: application/json
|
|
< Content-Length: 60
|
|
< Server: Flask Server
|
|
< Connection: close
|
|
<
|
|
*
|
|
* Assert failure
|
|
* --> tests_ok/retry.hurl:16:0
|
|
* |
|
|
* 16 | jsonpath "$.state" == "COMPLETED"
|
|
* | actual: string <RUNNING>
|
|
* | expected: string <COMPLETED>
|
|
* |
|
|
*
|
|
* Retry entry 2 (x2 pause 100 ms)
|
|
* ------------------------------------------------------------------------------
|
|
* Executing entry 2
|
|
*
|
|
* Cookie store:
|
|
*
|
|
* Request:
|
|
* GET http://localhost:8000/jobs/~~~
|
|
*
|
|
* Request can be run with the following curl command:
|
|
* curl 'http://localhost:8000/jobs/~~~'
|
|
*
|
|
> GET /jobs/~~~ HTTP/1.1
|
|
> Host: localhost:8000
|
|
> Accept: */*
|
|
> User-Agent: hurl/~~~
|
|
>
|
|
* Response: (received 60 bytes in ~~~ ms)
|
|
*
|
|
< HTTP/1.1 200 OK
|
|
< Server: Werkzeug/~~~ Python/~~~
|
|
< Date: ~~~
|
|
< Content-Type: application/json
|
|
< Content-Length: 60
|
|
< Server: Flask Server
|
|
< Connection: close
|
|
<
|
|
*
|
|
* Assert failure
|
|
* --> tests_ok/retry.hurl:16:0
|
|
* |
|
|
* 16 | jsonpath "$.state" == "COMPLETED"
|
|
* | actual: string <RUNNING>
|
|
* | expected: string <COMPLETED>
|
|
* |
|
|
*
|
|
* Retry entry 2 (x3 pause 100 ms)
|
|
* ------------------------------------------------------------------------------
|
|
* Executing entry 2
|
|
*
|
|
* Cookie store:
|
|
*
|
|
* Request:
|
|
* GET http://localhost:8000/jobs/~~~
|
|
*
|
|
* Request can be run with the following curl command:
|
|
* curl 'http://localhost:8000/jobs/~~~'
|
|
*
|
|
> GET /jobs/~~~ HTTP/1.1
|
|
> Host: localhost:8000
|
|
> Accept: */*
|
|
> User-Agent: hurl/~~~
|
|
>
|
|
* Response: (received 60 bytes in ~~~ ms)
|
|
*
|
|
< HTTP/1.1 200 OK
|
|
< Server: Werkzeug/~~~ Python/~~~
|
|
< Date: ~~~
|
|
< Content-Type: application/json
|
|
< Content-Length: 60
|
|
< Server: Flask Server
|
|
< Connection: close
|
|
<
|
|
*
|
|
* Assert failure
|
|
* --> tests_ok/retry.hurl:16:0
|
|
* |
|
|
* 16 | jsonpath "$.state" == "COMPLETED"
|
|
* | actual: string <RUNNING>
|
|
* | expected: string <COMPLETED>
|
|
* |
|
|
*
|
|
* Retry entry 2 (x4 pause 100 ms)
|
|
* ------------------------------------------------------------------------------
|
|
* Executing entry 2
|
|
*
|
|
* Cookie store:
|
|
*
|
|
* Request:
|
|
* GET http://localhost:8000/jobs/~~~
|
|
*
|
|
* Request can be run with the following curl command:
|
|
* curl 'http://localhost:8000/jobs/~~~'
|
|
*
|
|
> GET /jobs/~~~ HTTP/1.1
|
|
> Host: localhost:8000
|
|
> Accept: */*
|
|
> User-Agent: hurl/~~~
|
|
>
|
|
* Response: (received 62 bytes in ~~~ ms)
|
|
*
|
|
< HTTP/1.1 200 OK
|
|
< Server: Werkzeug/~~~ Python/~~~
|
|
< Date: ~~~
|
|
< Content-Type: application/json
|
|
< Content-Length: 62
|
|
< Server: Flask Server
|
|
< Connection: close
|
|
<
|
|
*
|
|
* ------------------------------------------------------------------------------
|
|
* Executing entry 3
|
|
*
|
|
* Cookie store:
|
|
*
|
|
* Request:
|
|
* DELETE http://localhost:8000/jobs/~~~
|
|
*
|
|
* Request can be run with the following curl command:
|
|
* curl --request DELETE 'http://localhost:8000/jobs/~~~'
|
|
*
|
|
> DELETE /jobs/~~~ HTTP/1.1
|
|
> Host: localhost:8000
|
|
> Accept: */*
|
|
> User-Agent: hurl/~~~
|
|
>
|
|
* Response: (received 0 bytes in ~~~ ms)
|
|
*
|
|
< HTTP/1.1 200 OK
|
|
< Server: Werkzeug/~~~ Python/~~~
|
|
< Date: ~~~
|
|
< Content-Type: application/json
|
|
< Server: Flask Server
|
|
< Content-Length: 0
|
|
< Connection: close
|
|
<
|
|
*
|
|
* ------------------------------------------------------------------------------
|
|
* Executing entry 4
|
|
*
|
|
* Cookie store:
|
|
*
|
|
* Request:
|
|
* GET http://localhost:8000/jobs/~~~
|
|
*
|
|
* Request can be run with the following curl command:
|
|
* curl 'http://localhost:8000/jobs/~~~'
|
|
*
|
|
> GET /jobs/~~~ HTTP/1.1
|
|
> Host: localhost:8000
|
|
> Accept: */*
|
|
> User-Agent: hurl/~~~
|
|
>
|
|
* Response: (received 42 bytes in ~~~ ms)
|
|
*
|
|
< HTTP/1.1 404 NOT FOUND
|
|
< Server: Werkzeug/~~~ Python/~~~
|
|
< Date: ~~~
|
|
< Content-Type: application/json
|
|
< Content-Length: 42
|
|
< Server: Flask Server
|
|
< Connection: close
|
|
<
|
|
*
|