8 Commits

Author SHA1 Message Date
frank
2f634c0913 Switch to Apache license 2012-04-03 04:50:05 -07:00
Prasanna Santhanam
47213463ea 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:18:55 +05:30
Edison Su
5a06ddb36a bug 13234: add UserName decorator on testcase, in the form of (username, domainName, accountType). status 13234: resolved fixed. Reviewed-by: prasanna 2012-03-29 01:07:01 -07:00
Prasanna Santhanam
52202839fb 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 08:46:50 +05:30
Prasanna Santhanam
3a6edb7643 adding logging with level and timestamp 2012-02-29 11:58:25 +05:30
Prasanna Santhanam
81366d35c1 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
(cherry picked from commit 81218d718af0ec101f7ba424c62bb6e0b5642744)
2011-08-25 19:52:30 +05:30
Edison Su
449a12870b finally, test framework works now 2011-08-16 10:30:52 -07:00
Edison Su
f4a6c314c5 generate json configuration file for any kind of data center setup, and deploy it 2011-08-16 10:30:52 -07:00