MCPcopy Create free account
hub / github.com/apache/trafficserver / verify_response

Function verify_response

plugins/traffic_dump/post_process.py:98–109  ·  view source on GitHub ↗

Function to verify response with status Args: response (json object) Raises: VerifyResponseError if there is a problem with the response.

(response)

Source from the content-addressed store, hash-verified

96
97
98def verify_response(response):
99 """ Function to verify response with status
100 Args:
101 response (json object)
102
103 Raises:
104 VerifyResponseError if there is a problem with the response.
105 """
106 if not response:
107 raise VerifyResponseError("No response found.")
108 if "status" not in response or not response["status"]:
109 raise VerifyResponseError("Response did not have a status.")
110
111
112def verify_transaction(transaction, fabricate_proxy_requests=False):

Callers 1

verify_transactionFunction · 0.85

Calls 1

VerifyResponseErrorClass · 0.85

Tested by

no test coverage detected