Add empty sections integration test.

This commit is contained in:
jcamiel 2023-07-17 11:31:29 +02:00 committed by hurl-bot
parent e5167f30df
commit 4ac825809c
No known key found for this signature in database
GPG Key ID: 1283A2B4A0DCAF8D
6 changed files with 29 additions and 0 deletions

View File

@ -0,0 +1,11 @@
<pre><code class="language-hurl"><span class="hurl-entry"><span class="request"><span class="line"><span class="method">GET</span> <span class="url">http://localhost:8000/hello</span></span>
<span class="line"><span class="section-header">[QueryStringParams]</span></span>
<span class="line"></span><span class="comment"># FIXME: [BasicAuth] section can't be empty</span>
<span class="line"></span><span class="comment">#[BasicAuth]</span>
<span class="line"><span class="section-header">[FormParams]</span></span>
<span class="line"><span class="section-header">[MultipartFormData]</span></span>
<span class="line"><span class="section-header">[Cookies]</span></span>
<span class="line"><span class="section-header">[Options]</span></span>
</span><span class="response"><span class="line"><span class="version">HTTP</span> <span class="number">200</span></span>
<span class="line"><span class="string">`Hello World!`</span></span>
</span></span></code></pre>

View File

@ -0,0 +1,10 @@
GET http://localhost:8000/hello
[QueryStringParams]
# FIXME: [BasicAuth] section can't be empty
#[BasicAuth]
[FormParams]
[MultipartFormData]
[Cookies]
[Options]
HTTP 200
`Hello World!`

View File

@ -0,0 +1 @@
{"entries":[{"request":{"method":"GET","url":"http://localhost:8000/hello"},"response":{"status":200,"body":{"type":"text","value":"Hello World!"}}}]}

View File

@ -0,0 +1 @@
Hello World!

View File

@ -0,0 +1,3 @@
Set-StrictMode -Version latest
$ErrorActionPreference = 'Stop'
hurl tests_ok/empty_sections.hurl

View File

@ -0,0 +1,3 @@
#!/bin/bash
set -Eeuo pipefail
hurl tests_ok/empty_sections.hurl