Rester Output

November 27, 2014 ยท View on GitHub

(env)kevlar-1785 ~/dev/perseids $ make test_api source env/bin/activate; /Users/nino/dev/perseids/env/bin/apirunner --log=INFO --ts=src/test/rester/suite.yaml

############################ FAILED ############################ src/test/rester/ping.yaml : ping http

Assert Statement : "text/plain; charset=UTF-8 == text/plain; charset=utf-8" ---> Fail!

-------- LOG OUTPUT -------- INFO: rester.exc - =======> Executing TestStep : ping http, method : get INFO: requests.packages.urllib3.connectionpool - Starting new HTTP connection (1): localhost DEBUG: requests.packages.urllib3.connectionpool - "GET /ping HTTP/1.1" 200 4 INFO: rester.http - JSON response Headers - %s{'content-type': 'text/plain; charset=UTF-8', 'content-length': '4', 'x-requestid': '538107870333840160', 'server': 'Perseids 2.0/stream1.fy.re'} INFO: rester.http - JSON response - %s{ "raw": "pong" } INFO: rester.exc - Inside assert_element_list INFO: rester.exc - ---> json_eval_expr : text/plain; charset=UTF-8 and type : <type 'str'> ERROR: rester.exc - Assert Statement : "text/plain; charset=UTF-8 == text/plain; charset=utf-8" ---> Fail! INFO: rester.exc - Inside assert_element_list INFO: rester.exc - ---> json_eval_expr : pong and type : <type 'unicode'> INFO: rester.exc - Assert Statement : "pong == pong" ----> Pass!


src/test/rester/ping.yaml : ping https

Assert Statement : "text/plain; charset=UTF-8 == text/plain; charset=utf-8" ---> Fail!

Assert Statement : "404 - /png/fail == pong" ---> Fail!

-------- LOG OUTPUT -------- INFO: rester.exc - =======> Executing TestStep : ping https, method : get INFO: requests.packages.urllib3.connectionpool - Starting new HTTPS connection (1): localhost DEBUG: requests.packages.urllib3.connectionpool - "GET /png/fail HTTP/1.1" 404 15 INFO: rester.http - JSON response Headers - %s{'content-type': 'text/plain; charset=UTF-8', 'content-length': '15', 'x-requestid': '538107870352288366', 'server': 'Perseids 2.0/stream1.fy.re'} INFO: rester.http - JSON response - %s{ "raw": "404 - /png/fail" } INFO: rester.exc - Inside assert_element_list INFO: rester.exc - ---> json_eval_expr : text/plain; charset=UTF-8 and type : <type 'str'> ERROR: rester.exc - Assert Statement : "text/plain; charset=UTF-8 == text/plain; charset=utf-8" ---> Fail! INFO: rester.exc - Inside assert_element_list INFO: rester.exc - ---> json_eval_expr : 404 - /png/fail and type : <type 'unicode'> ERROR: rester.exc - Assert Statement : "404 - /png/fail == pong" ---> Fail!


############################ RESULTS ############################ src/test/rester/servers.yaml passed: 2 failed: 0 skipped: 0 src/test/rester/cors.yaml passed: 1 failed: 0 skipped: 0 src/test/rester/xdomain.yaml passed: 1 failed: 0 skipped: 0 src/test/rester/notfound.yaml passed: 1 failed: 0 skipped: 0 src/test/rester/deep_ping.yaml passed: 1 failed: 0 skipped: 0 src/test/rester/jsonp.yaml passed: 2 failed: 0 skipped: 0 src/test/rester/test_page.yaml passed: 2 failed: 0 skipped: 0 src/test/rester/stats.yaml passed: 1 failed: 0 skipped: 0 src/test/rester/ping.yaml passed: 0 failed: 2 skipped: 0