cloudstack/tools/testClient
Chirag Jog b91d919e55 This commit contains the following items:
1. Reduce dependency on settings. (It should be able to run in any environment).
2. Simplify clean up by creating accounts in setup and deleting the account in teardown.
3. Check the list_XXX calls instead of querying the database.

Currently the following tests work per the above logic:
1. test_vm_life_cycle.py
2. test_disk_offerings.py
3. test_service_offerings.py

Rest are work in progress.
2012-01-24 07:49:37 -08:00
..
pymysql fix typo 2011-08-10 18:36:42 -07:00
sandbox no providers in 2.2.y 2011-12-27 09:05:57 +05:30
testcase This commit contains the following items: 2012-01-24 07:49:37 -08:00
unitTest - some quick environment configuration files 2011-12-15 13:53:36 +05:30
.project fix typo 2011-08-10 18:36:42 -07:00
.pydevproject fix typo 2011-08-10 18:36:42 -07:00
README how to generate api spec file 2011-08-15 17:44:56 -07:00
TestCaseExecuteEngine.py a. Test Discovery is only found in python 2.7+. unittest2 makes it backwards compatible for python 2.4-2.6 2011-08-25 19:54:40 +05:30
asyncJobMgr.py testClient: add timestamp for sync job 2011-08-25 18:50:28 -07:00
cloudstackConnection.py * when httplib.Connection fails to get response it prevents further requests on 2012-01-22 22:07:59 +05:30
cloudstackException.py fix typo 2011-08-10 18:36:42 -07:00
cloudstackTestCase.py 1. correcting the global property 2. handling the case if unittest2 is present 2011-08-29 18:42:58 +05:30
cloudstackTestClient.py TestClient: use json instead of painful XML 2011-08-25 17:18:47 -07:00
codegenerator.py TESTClient: more features: all the api will go through 8080 with apikey/securitykey, both keys are generated dynamically when you deploy your setup, add list/map type for api, and bug fix 2011-08-24 18:45:11 -07:00
configGenerator.py reverting changes related to provider. not part of 2.2.y 2011-12-15 13:53:37 +05:30
dbConnection.py a. Test Discovery is only found in python 2.7+. unittest2 makes it backwards compatible for python 2.4-2.6 2011-08-25 19:54:40 +05:30
deployAndRun.py add more test cases 2011-08-18 10:51:38 -07:00
deployDataCenter.py reverting changes related to provider. not part of 2.2.y 2011-12-15 13:53:37 +05:30
jsonHelper.py - some quick environment configuration files 2011-12-15 13:53:36 +05:30
remoteSSHClient.py * when httplib.Connection fails to get response it prevents further requests on 2012-01-22 22:07:59 +05:30

README

CloudStack Test Client
1. generate Cloudstack API python code from an API XML spec file
   python codegenerator.py  -o where-to-put-the-cloudstack-api -s where-the-spec-file
1.5 Spec file is generated by
   ant build-apidocs
   -> generates commands.xml in dist

2. Facility it provides:
  1. very handy cloudstack API python wrapper
  2. support async job executing in parallel
  3. remote ssh login/execute command
  4. mysql query 

3. sample code is under unitTest