source: software-center/trunk/fuentes/README.debug-server @ 408

Last change on this file since 408 was 401, checked in by mabarracus, 5 years ago

Added 16.01+16.04.20160119 sources

File size: 1.2 KB
Line 
1When debugging server issues or inspecting the expected results
2its often useful to run
3"utils/piston-helpers/piston_generic_helper.py" in debug mode.
4
5Some examples:
6$ PYTHONPATH=. utils/piston-helpers/piston_generic_helper.py \
7   --output=text --debug --needs-auth \
8   SoftwareCenterAgentAPI subscriptions_for_me
9
10$ PYTHONPATH=. utils/piston-helpers/piston_generic_helper.py \
11  --output=text --debug --needs-auth \
12  SoftwareCenterAgentAPI available_apps_qa \
13  '{ "lang" : "en", "series" : "oneiric", "arch" : "i386" }'
14
15$ PYTHONPATH=. utils/piston-helpers/piston_generic_helper.py \
16  --output=text --debug  \
17  SoftwareCenterAgentAPI available_apps \
18  '{ "lang" : "en", "series" : "oneiric", "arch" : "i386" }'
19
20$ PYTHONPATH=. utils/piston-helpers/piston_generic_helper.py \
21   --output=text --debug \
22   SoftwareCenterRecommenderAPI recommend_top
23
24$ PYTHONPATH=. utils/piston-helpers/piston_generic_helper.py \
25  --output=json  --needs-auth \
26  RatingsAndReviewsAPI submit_usefulness \
27  '{ "review_id": 4468, "useful": "True" }'
28
29Any piston-mini-client API should work, first name is the class
30second the method to run, optional is a json encoded kwargs string.
31
32To get http debug output you can use the environment variable
33SOFTWARE_CENTER_DEBUG_HTTP=1.
Note: See TracBrowser for help on using the repository browser.