Skip to content

Commit

Permalink
fix: tags feature definitions with "@javascript" tag
Browse files Browse the repository at this point in the history
  • Loading branch information
artem-zakharchenko committed Jun 20, 2019
1 parent d21c2c8 commit 839669f
Show file tree
Hide file tree
Showing 4 changed files with 57 additions and 57 deletions.
50 changes: 25 additions & 25 deletions features/expectations/body_text_example.feature
Original file line number Diff line number Diff line change
Expand Up @@ -3,49 +3,49 @@ Feature: Body - text example

Background:
Given you define expected HTTP body using the following "textual example":
"""
One, two, three, four.
Orange, strawberry, banana?
Dog, cat, mouse!
"""
"""
One, two, three, four.
Orange, strawberry, banana?
Dog, cat, mouse!
"""

Scenario: Line is missing in real payload body
When real HTTP body is following:
"""
One, two, three, four.
Orange, strawberry, banana?
"""
"""
One, two, three, four.
Orange, strawberry, banana?
"""
Then field "body" is NOT valid
And Request or Response is NOT valid

Scenario: Extra line in real payload textual body
When real HTTP body is following:
"""
Red, green, blue...
One, two, three, four.
Orange, strawberry, banana?
Dog, cat, mouse!
"""
"""
Red, green, blue...
One, two, three, four.
Orange, strawberry, banana?
Dog, cat, mouse!
"""
Then field "body" is NOT valid
And Request or Response is NOT valid

Scenario: Line is changed in real textual body
When real HTTP body is following:
"""
Red, green, blue...
Orange, strawberry, banana?
Dog, cat, mouse!
"""
"""
Red, green, blue...
Orange, strawberry, banana?
Dog, cat, mouse!
"""
Then field "body" is NOT valid
And Request or Response is NOT valid

Scenario: Text in body equals defined example
When real HTTP body is following:
"""
One, two, three, four.
Orange, strawberry, banana?
Dog, cat, mouse!
"""
"""
One, two, three, four.
Orange, strawberry, banana?
Dog, cat, mouse!
"""
Then field "body" is valid
And Request or Response is valid

58 changes: 29 additions & 29 deletions features/expectations/headers.feature
Original file line number Diff line number Diff line change
@@ -1,59 +1,59 @@
@javascript
@javascript @stable
Feature: Headers
http://www.w3.org/Protocols/rfc2616/rfc2616-sec4.html#sec4.2

Background:
Given you expect the following HTTP headers:
"""
Content-Type: text/plain
Date: Fri, 31 Dec 1999 23:59:59 GMT
Location: /here
ETag: 68b329da9893e34099c7d8ad5cb9c940
"""
"""
Content-Type: text/plain
Date: Fri, 31 Dec 1999 23:59:59 GMT
Location: /here
ETag: 68b329da9893e34099c7d8ad5cb9c940
"""

@stable
Scenario: Header is missing in real payload
When real HTTP headers are following:
"""
Content-Type: text/plain
"""
"""
Content-Type: text/plain
"""
Then field "headers" is NOT valid
And Request or Response is NOT valid

@stable
Scenario: Extra real header in real payload
When real HTTP headers are following:
"""
Content-Type: text/plain
Content-Length: 1354
Date: Fri, 31 Dec 1999 23:59:59 GMT
Location: /here
ETag: 68b329da9893e34099c7d8ad5cb9c940
"""
"""
Content-Type: text/plain
Content-Length: 1354
Date: Fri, 31 Dec 1999 23:59:59 GMT
Location: /here
ETag: 68b329da9893e34099c7d8ad5cb9c940
"""
Then field "headers" is valid
And Request or Response is valid

@stable
Scenario: Content nogotiation significant header value is different in real payload
When real HTTP headers are following:
"""
Content-Type: application/json
Date: Fri, 31 Dec 1999 23:59:59 GMT
Location: /here
ETag: 68b329da9893e34099c7d8ad5cb9c940
"""
"""
Content-Type: application/json
Date: Fri, 31 Dec 1999 23:59:59 GMT
Location: /here
ETag: 68b329da9893e34099c7d8ad5cb9c940
"""
Then field "headers" is NOT valid
And Request or Response is NOT valid

@stable
Scenario: Content negotiation not significant header value is different in real payload
When real HTTP headers are following:
"""
Content-Type: text/plain
Date: Fri, 13 Dec 3000 23:59:59 GMT
Location: /there
ETag: something-completely-different
"""
"""
Content-Type: text/plain
Date: Fri, 13 Dec 3000 23:59:59 GMT
Location: /there
ETag: something-completely-different
"""
Then field "headers" is valid
And Request or Response is valid

Expand Down
4 changes: 2 additions & 2 deletions features/expectations/method.feature
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
@stable
@javascript @stable
Feature: Method

Background:
Given you expect HTTP message method "POST"

Scenario: HTTP message method match
When real method is "POST"
When real HTTP message method is "POST"
Then field "method" is valid
And Request or Response is valid

Expand Down
2 changes: 1 addition & 1 deletion features/expectations/status_code.feature
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@stable
@javascript @stable
Feature: Status code

Background:
Expand Down

0 comments on commit 839669f

Please sign in to comment.