mirror of
https://github.com/Orange-OpenSource/hurl.git
synced 2024-12-24 03:21:40 +03:00
Add --fail-at-end integration tests
This commit is contained in:
parent
cc8ed0a9c5
commit
63b219d234
14
integration/tests_failed/fail_at_end.err
Normal file
14
integration/tests_failed/fail_at_end.err
Normal file
@ -0,0 +1,14 @@
|
||||
error: Assert status code
|
||||
--> tests_failed/fail_at_end.hurl:2:6
|
||||
|
|
||||
2 | HTTP 400
|
||||
| ^^^ actual value is <200>
|
||||
|
|
||||
|
||||
error: Assert status code
|
||||
--> tests_failed/fail_at_end.hurl:8:6
|
||||
|
|
||||
8 | HTTP 400
|
||||
| ^^^ actual value is <200>
|
||||
|
|
||||
|
1
integration/tests_failed/fail_at_end.exit
Normal file
1
integration/tests_failed/fail_at_end.exit
Normal file
@ -0,0 +1 @@
|
||||
4
|
9
integration/tests_failed/fail_at_end.hurl
Normal file
9
integration/tests_failed/fail_at_end.hurl
Normal file
@ -0,0 +1,9 @@
|
||||
GET http://localhost:8000/fail-at-end
|
||||
HTTP 400
|
||||
|
||||
GET http://localhost:8000/fail-at-end
|
||||
HTTP 200
|
||||
|
||||
GET http://localhost:8000/fail-at-end
|
||||
HTTP 400
|
||||
|
3
integration/tests_failed/fail_at_end.ps1
Executable file
3
integration/tests_failed/fail_at_end.ps1
Executable file
@ -0,0 +1,3 @@
|
||||
Set-StrictMode -Version latest
|
||||
$ErrorActionPreference = 'Stop'
|
||||
hurl --fail-at-end tests_failed/fail_at_end.hurl
|
8
integration/tests_failed/fail_at_end.py
Normal file
8
integration/tests_failed/fail_at_end.py
Normal file
@ -0,0 +1,8 @@
|
||||
# coding=utf-8
|
||||
from app import app
|
||||
from flask import Response
|
||||
|
||||
|
||||
@app.route("/fail-at-end")
|
||||
def fail_at_end():
|
||||
return Response("", status=200)
|
3
integration/tests_failed/fail_at_end.sh
Executable file
3
integration/tests_failed/fail_at_end.sh
Executable file
@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
set -Eeuo pipefail
|
||||
hurl --fail-at-end tests_failed/fail_at_end.hurl
|
Loading…
Reference in New Issue
Block a user