-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
162 additions
and
111 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
Feature: Test different embed | ||
|
||
Scenario: XML | ||
When I receive the following feed from the bank: | ||
"""xml | ||
<feed> | ||
<account number="123456789"> | ||
<entry> | ||
<type>credit</type> | ||
<amount>1000</amount> | ||
<label>My company salary</label> | ||
</entry> | ||
</account> | ||
</feed> | ||
""" | ||
|
||
Scenario: JSON | ||
When I receive the following feed from the bank: | ||
"""json | ||
{ "account": | ||
"1234", | ||
"amount": 1000} | ||
""" | ||
|
||
Scenario: GraphQL | ||
When I make the following query to the API: | ||
"""graphql | ||
union Transaction = CreditTransaction|DebitTransaction | ||
query AccountBalance($accountNumber:String!) { | ||
account(accountNumber:$accountNumber) { | ||
balance | ||
transactions { amount | ||
} | ||
} | ||
} | ||
""" |
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