Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
zistvan-public
StreamChain Prototype
Commits
4e5ce4cd
Commit
4e5ce4cd
authored
Jul 05, 2017
by
Jonathan Levi (HACERA)
Committed by
Gerrit Code Review
Jul 05, 2017
Browse files
Merge "[FAB-4969] Allow for failure response from a peer"
parents
f9318cdf
c1d7f9e1
Changes
1
Hide whitespace changes
Inline
Side-by-side
test/feature/steps/endorser_impl.py
View file @
4e5ce4cd
...
...
@@ -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"
)
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment