cloudstack/tools/testClient
Prasanna Santhanam af45d8207d bug 13234: run tests as a regular user on testClient
status 13234: resolved fixed
reviewed-by: unittest

When multiple tests in a user-decorator suite are run only the first
test runs successfully since the apiKey has been altered to that of a
regular user. Preventing failure of other tests by detecting user
context - user, admin, domain-admin.

@UserName decorator applies to a testSuite class not a testMethod
2012-03-29 19:19:08 +05:30
..
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 bug 13234: add UserName decorator on testcase, in the form of (username, domainName, accountType). status 13234: resolved fixed. Reviewed-by: prasanna 2012-03-29 19:13:12 +05:30
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 bug 13234: run tests as a regular user on testClient 2012-03-29 19:19:08 +05:30
__init__.py Add missing __init__.py for imports to work 2012-02-21 03:23:04 -08:00
asyncJobMgr.py testClient: add timestamp for sync job 2011-08-25 18:50:28 -07:00
cloudstackConnection.py reduce logging verbosity, set level to info 2012-03-24 09:54:22 +05:30
cloudstackException.py fix typo 2011-08-10 18:36:42 -07:00
cloudstackTestCase.py bug 13234: run tests as a regular user on testClient 2012-03-29 19:19:08 +05:30
cloudstackTestClient.py bug 13234: run tests as a regular user on testClient 2012-03-29 19:19:08 +05:30
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 reduce logging verbosity, set level to info 2012-03-24 09:54:22 +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