Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion features/eps_fhir/ping.feature
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ Feature: I can ping the API

Scenario: I can ping the API
When I make a request to the "eps_fhir" ping endpoint
Then the response indicates a success
Then the response indicates a server error
And I can see the ping information in the response
7 changes: 7 additions & 0 deletions features/steps/common_steps.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,13 @@ def i_make_a_request_to_the_ping_endpoint(context, product):
raise ValueError(f"unable to find base url for '{product}'")


@then("the response indicates a server error")
def indicate_successful_response(context):
if "sandbox" in context.config.userdata["env"].lower():
return
common.the_expected_response_code_is_returned(context, 500)


@then("the response indicates a success")
def indicate_successful_response(context):
if "sandbox" in context.config.userdata["env"].lower():
Expand Down
Loading