Commit 4e5ce4cd authored by Jonathan Levi (HACERA)'s avatar Jonathan Levi (HACERA) Committed by Gerrit Code Review
Browse files

Merge "[FAB-4969] Allow for failure response from a peer"

parents f9318cdf c1d7f9e1
......@@ -152,6 +152,11 @@ def expected_impl(context, response, peer):
assert peer in context.result, "There is no response from {0}".format(peer)
assert context.result[peer] == "Query Result: {0}\n".format(response), "Expected response was {0}; received {1}".format(response, context.result[peer])
@then(u'a user receives an error response of {response} from "{peer}"')
def step_impl(context, response, peer):
assert peer in context.result, "There is no response from {0}".format(peer)
assert context.result[peer] == "Error: {0}\n".format(response), "Expected response was {0}; received {1}".format(response, context.result[peer])
@then(u'a user receives expected response of {response}')
def step_impl(context, response):
expected_impl(context, response, "peer0.org1.example.com")
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment