-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Support repeated requests * Update README.md
- Loading branch information
Showing
8 changed files
with
539 additions
and
46 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
16 changes: 16 additions & 0 deletions
16
features/server/ErrorExpectSeveralRequestsButNoReceive.feature
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
Feature: Expect several requests but receive nothing | ||
|
||
Scenario: expect several requests | ||
Given "item-service" receives several grpc requests "/grpctest.ItemService/GetItem" with payload: | ||
""" | ||
{ | ||
"id": 42 | ||
} | ||
""" | ||
And the grpc service responds with payload: | ||
""" | ||
{ | ||
"id": 42, | ||
"name": "Item #42" | ||
} | ||
""" |
31 changes: 31 additions & 0 deletions
31
features/server/ErrorExpectTwoRequestsButReceiveOne.feature
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
Feature: Expect 2 requests but receive only 1 | ||
|
||
Scenario: receive only 1 request | ||
Given "item-service" receives 2 grpc requests "/grpctest.ItemService/GetItem" with payload: | ||
""" | ||
{ | ||
"id": 42 | ||
} | ||
""" | ||
And the grpc service responds with payload: | ||
""" | ||
{ | ||
"id": 42, | ||
"name": "Item #42" | ||
} | ||
""" | ||
|
||
When I request a grpc method "/grpctest.ItemService/GetItem" with payload: | ||
""" | ||
{ | ||
"id": 42 | ||
} | ||
""" | ||
|
||
Then I should have a grpc response with payload: | ||
""" | ||
{ | ||
"id": 42, | ||
"name": "Item #42" | ||
} | ||
""" |
This file contains 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
Oops, something went wrong.