Skip to content

Commit

Permalink
Added test for multiple query/path params with extra parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
tompahoward committed Jan 10, 2021
1 parent 56c1096 commit 3aad7ce
Showing 1 changed file with 38 additions and 5 deletions.
43 changes: 38 additions & 5 deletions src/test/invoke-operation.feature
Original file line number Diff line number Diff line change
Expand Up @@ -225,13 +225,15 @@ Feature: Invoke Operation

Scenario Outline: Invoke operation - multiple parameters of same type
Given a resource with a "https://waychaser.io/rel/pong" operation with the "<METHOD>" method that returns the following provided parameters
| NAME | TYPE |
| alpha | <TYPE> |
| bravo | <TYPE> |
| NAME | TYPE |
| alpha | <TYPE> |
| bravo | <TYPE> |
| charlie | <TYPE> |
When waychaser successfully loads that resource
And we invoke the "https://waychaser.io/rel/pong" operation with the input
| alpha | one |
| bravo | two |
| alpha | one |
| bravo | two |
| charlie | three |
Then resource returned will contain those values

Examples:
Expand All @@ -246,3 +248,34 @@ Feature: Invoke Operation
| POST | path |
| PUT | path |
| PATCH | path |

@wip
Scenario Outline: Invoke operation - multiple parameters of same type with extra params
Given a resource with a "https://waychaser.io/rel/pong" operation with the "<METHOD>" method that returns the following provided parameters
| NAME | TYPE |
| alpha | <TYPE> |
| bravo | <TYPE> |
| charlie | <TYPE> |
When waychaser successfully loads that resource
And we invoke the "https://waychaser.io/rel/pong" operation with the input
| bravo | two |
| other | notUsed |
| charlie | three |
| alpha | one |
Then resource returned will contain only
| alpha | one |
| bravo | two |
| charlie | three |

Examples:
| METHOD | TYPE |
| GET | query |
| DELETE | query |
| POST | query |
| PUT | query |
| PATCH | query |
| GET | path |
| DELETE | path |
| POST | path |
| PUT | path |
| PATCH | path |

0 comments on commit 3aad7ce

Please sign in to comment.