Add --fail-at-end integration tests

This commit is contained in:
lepapareil 2023-04-13 18:31:45 +02:00 committed by hurl-bot
parent cc8ed0a9c5
commit 63b219d234
No known key found for this signature in database
GPG Key ID: 1283A2B4A0DCAF8D
6 changed files with 38 additions and 0 deletions

View 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>
|

View File

@ -0,0 +1 @@
4

View 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

View File

@ -0,0 +1,3 @@
Set-StrictMode -Version latest
$ErrorActionPreference = 'Stop'
hurl --fail-at-end tests_failed/fail_at_end.hurl

View 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)

View File

@ -0,0 +1,3 @@
#!/bin/bash
set -Eeuo pipefail
hurl --fail-at-end tests_failed/fail_at_end.hurl