Commit Graph

6 Commits

Author SHA1 Message Date
Prasanna Santhanam 80da3d5289 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:35:23 +05:30
Edison Su c888e8b77d 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:35:15 +05:30
Prasanna Santhanam 0df4f9be1f 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-22 23:00:44 +05:30
Prasanna Santhanam 43a676c346 adding logging with level and timestamp
reviewed-by: edison
2012-02-29 12:11:14 +05:30
Prasanna Santhanam c140dfa936 1. correcting the global property 2. handling the case if unittest2 is present 2011-08-29 18:42:58 +05:30
Edison Su 3466d3f637 add new testcase class, make testcase pydev friendly 2011-08-19 16:21:16 -07:00