Skip to content

Instantly share code, notes, and snippets.

@ninowalker
Created November 27, 2014 23:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save ninowalker/1fe8aad019feab3fe265 to your computer and use it in GitHub Desktop.
Save ninowalker/1fe8aad019feab3fe265 to your computer and use it in GitHub Desktop.
Rester Output
(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
0.
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
0.
Assert Statement : "text/plain; charset=UTF-8 == text/plain; charset=utf-8" ---> Fail!
1.
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment