Commit Graph

7 Commits

Author SHA1 Message Date
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
Edison Su 0268665670 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
Prasanna Santhanam f91c681545 testCase level logger and testClient class attr
reviewed-by: Chirag Jog

Each testCase class will use its own logger to distinguish log
messages when multiple suites are run. This will aid debugging

Every cloudstackTestCase will also contiain a class level attr of the
testClient which was previously available only to setUp/tearDown. Now
even setUpClass/tearDownClass can use this attribute.
2012-03-24 09:54:22 +05:30
Prasanna Santhanam 929dd643ca adding logging with level and timestamp 2012-02-29 12:05:06 +05:30
Prasanna Santhanam 345f28f9e4 a. Test Discovery is only found in python 2.7+. unittest2 makes it backwards compatible for python 2.4-2.6
b. Adding traceback from pymysql to debug problems in connecting with database
2011-08-25 19:54:40 +05:30
Edison Su 1bc7631bf2 finally, test framework works now 2011-08-18 10:51:31 -07:00
Edison Su 48494c5f20 generate json configuration file for any kind of data center setup, and deploy it 2011-08-18 10:49:18 -07:00