mirror of
https://github.com/Orange-OpenSource/hurl.git
synced 2024-11-27 16:26:40 +03:00
Add empty sections integration test.
This commit is contained in:
parent
e5167f30df
commit
4ac825809c
11
integration/tests_ok/empty_sections.html
Normal file
11
integration/tests_ok/empty_sections.html
Normal 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>
|
10
integration/tests_ok/empty_sections.hurl
Normal file
10
integration/tests_ok/empty_sections.hurl
Normal 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!`
|
1
integration/tests_ok/empty_sections.json
Normal file
1
integration/tests_ok/empty_sections.json
Normal file
@ -0,0 +1 @@
|
||||
{"entries":[{"request":{"method":"GET","url":"http://localhost:8000/hello"},"response":{"status":200,"body":{"type":"text","value":"Hello World!"}}}]}
|
1
integration/tests_ok/empty_sections.out
Normal file
1
integration/tests_ok/empty_sections.out
Normal file
@ -0,0 +1 @@
|
||||
Hello World!
|
3
integration/tests_ok/empty_sections.ps1
Normal file
3
integration/tests_ok/empty_sections.ps1
Normal file
@ -0,0 +1,3 @@
|
||||
Set-StrictMode -Version latest
|
||||
$ErrorActionPreference = 'Stop'
|
||||
hurl tests_ok/empty_sections.hurl
|
3
integration/tests_ok/empty_sections.sh
Executable file
3
integration/tests_ok/empty_sections.sh
Executable file
@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
set -Eeuo pipefail
|
||||
hurl tests_ok/empty_sections.hurl
|
Loading…
Reference in New Issue
Block a user