Created
December 12, 2020 02:01
-
-
Save jeffgreenca/cce0bbbb3699b93707815a1126d56eae to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Feature: demonstrate request overwrites temporary headers but not configure headers | |
Background: | |
* url "https://httpbin.org" | |
Scenario: reflect header | |
* configure headers = {Foo: "bar"} | |
Given path "/headers" | |
When method get | |
Then status 200 | |
And match response.headers contains {Foo: bar} | |
Given path "/headers" | |
And request {} | |
When method get | |
Then status 200 | |
And match response.headers contains {Foo: bar} | |
Scenario: reflect header v2 | |
# overwritten by request | |
* header Foo = bar | |
Given path "/headers" | |
When method get | |
Then status 200 | |
And match response.headers contains {Foo: bar} | |
Given path "/headers" | |
And request {} | |
When method get | |
Then status 200 | |
And match response.headers contains {Foo: bar} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment