Something went wrong on our end
-
Mariusz Trela authoredMariusz Trela authored
test-log.txt 4.60 KiB
<?xml version="1.0" encoding="utf-8"?><testsuites><testsuite errors="0" failures="1" hostname="dev7" name="pytest" skipped="0" tests="1" time="0.620" timestamp="2020-11-02T14:41:30.207316"><testcase classname="condenser_api_patterns.get_state.gtg_permlink.tavern.yaml" name="Hivemind condenser_api.get_state patterns test" time="0.524"><failure message="Format variables: service.proto:s = 'http' service.server:s = '127.0.0.1' service.port = '6666' Source test stage (line 10): - name: get_state request: url: "{service.proto:s}://{service.server:s}:{service.port}/" method: POST headers: content-type: application/json json: jsonrpc: "2.0" id: 1 method: "condenser_api.get_state" params: ["/category/@gtg/witness-gtg"] response: status_code: 200 verify_response_with: function: validate_response:compare_response_with_pattern extra_kwargs: method: "gtg_permlink" Formatted stage: name: get_state request: headers: content-type: application/json json: id: 1 jsonrpc: '2.0' method: condenser_api.get_state params: - /category/@gtg/witness-gtg method: POST url: 'http://127.0.0.1:6666/' response: status_code: 200 verify_response_with: extra_kwargs: directory: condenser_api_patterns/get_state method: gtg_permlink function: validate_response:compare_response_with_pattern Errors: E tavern.util.exceptions.TestFailError: Test 'get_state' failed: - Error calling validate function '<function compare_response_with_pattern at 0x7fb40ec70598>': Traceback (most recent call last): File "/home/dev/.local/lib/python3.6/site-packages/tavern/response/base.py", line 141, in _maybe_run_validate_functions vf(response) File "/home/dev/.local/lib/python3.6/site-packages/tavern/schemas/extensions.py", line 123, in inner return func(response, *args, **kwargs) File "/home/dev/src/09.HIVE-HIVEMIND/hivemind/tests/tests_api/hivemind/tavern/validate_response.py", line 74, in compare_response_with_pattern raise PatternDiffException(msg) validate_response.PatternDiffException: Differences detected between response and pattern.">Format variables:
service.proto:s = 'http'
service.server:s = '127.0.0.1'
service.port = '6666'
Source test stage (line 10):
- name: get_state
request:
url: "{service.proto:s}://{service.server:s}:{service.port}/"
method: POST
headers:
content-type: application/json
json:
jsonrpc: "2.0"
id: 1
method: "condenser_api.get_state"
params: ["/category/@gtg/witness-gtg"]
response:
status_code: 200
verify_response_with:
function: validate_response:compare_response_with_pattern
extra_kwargs:
method: "gtg_permlink"
Formatted stage:
name: get_state
request:
headers:
content-type: application/json
json:
id: 1
jsonrpc: '2.0'
method: condenser_api.get_state
params:
- /category/@gtg/witness-gtg
method: POST
url: 'http://127.0.0.1:6666/'
response:
status_code: 200
verify_response_with:
extra_kwargs:
directory: condenser_api_patterns/get_state
method: gtg_permlink
function: validate_response:compare_response_with_pattern
Errors:
E tavern.util.exceptions.TestFailError: Test 'get_state' failed:
- Error calling validate function '<function compare_response_with_pattern at 0x7fb40ec70598>':
Traceback (most recent call last):
File "/home/dev/.local/lib/python3.6/site-packages/tavern/response/base.py", line 141, in _maybe_run_validate_functions
vf(response)
File "/home/dev/.local/lib/python3.6/site-packages/tavern/schemas/extensions.py", line 123, in inner
return func(response, *args, **kwargs)
File "/home/dev/src/09.HIVE-HIVEMIND/hivemind/tests/tests_api/hivemind/tavern/validate_response.py", line 74, in compare_response_with_pattern
raise PatternDiffException(msg)
validate_response.PatternDiffException: Differences detected between response and pattern.</failure></testcase></testsuite></testsuites>