Commit Graph

139 Commits

Author SHA1 Message Date
Prasanna Santhanam 23c2579640 Adding support with xmlrunner for generating XML reports 2012-05-18 12:04:11 +05:30
Prasanna Santhanam 051ba3cd70 Files from the demo are now available in the sandbox 2012-05-17 18:12:00 +05:30
Prasanna Santhanam 08d7158041 Add additional retries to the SSH client by default 2012-05-15 18:21:19 +05:30
Prasanna Santhanam b366866441 MD5 Auth for accounts created on the API 2012-05-14 19:42:35 +05:30
Prasanna Santhanam 28f279df04 Build if you have python 2.7 installed 2012-05-14 19:42:35 +05:30
Prasanna Santhanam c856fdace3 Install paramiko as a dependency, don't complain about the requirement 2012-05-14 14:43:47 +05:30
Prasanna Santhanam 02d82a792f support for running tests in a given script 2012-05-11 18:49:36 +05:30
Prasanna Santhanam 973ef71ab3 rename the nose test executor 2012-05-11 18:49:36 +05:30
Prasanna Santhanam 10f0e15052 rename the nose test executor 2012-05-11 18:49:36 +05:30
Prasanna Santhanam d392541db3 The setup_requires must not co-exists with install_requires 2012-05-11 18:49:36 +05:30
Chirag Jog 78616f5695 1. Support for egress rules, Network offerings and High Availability tests
2. Remove uneccesary code in project file.
2012-05-02 03:57:48 -07:00
Prasanna Santhanam 03396a2cfd CS-14596: check existence of config file before loading
Check whether the config file to load cloudstack config is avvailable
in the specified path.
2012-04-23 18:50:38 +05:30
Prasanna Santhanam 5c508946e1 CS-14025: provide python eggs to easily install the python test framework
CS-14025: Status - Resolved Fixed

1. Packaging the marvin test client into an installable egg
2. There is a hudson job (marvin) that creates eggs for a specified
branch
3. Alternatively you can use the package-marvin ant target to get a
source tarball.
2012-04-23 17:56:45 +05:30
Prasanna Santhanam a0a77920e1 Merge latest testClient fixes to marvin
reviewed-by: unittest
2012-04-12 18:08:24 +05:30
Prasanna Santhanam 848230175b missing tests directory causes warnings in distutils
reviewed-by: ant run
2012-04-11 18:26:38 +05:30
Prasanna Santhanam e3f847cd49 Package management for the python testclient christened Marvin
$ant package-marvin
will create a packaged source tarball of the testclient that is
redistributable and decoupled from the rest of the cloudstack build
reviewed-by: unittest
2012-04-11 18:26:38 +05:30
Chirag Jog 9c8da90c5d 1. Fix account, domain, limits and router tests.
2. Extra whitespace between generated Header and code.
2012-04-09 01:31:54 -07:00
Chirag Jog 30f7d7ac69 Bug 14612: Database client returns empty list after one successful query
Status 14612: resolved fixed
reviewed-by: Prasanna Santhanam <Prasanna.Santhanam@citrix.com>

Commit to refresh the transaction state
2012-04-06 05:34:49 -07:00
Prasanna Santhanam 55784875c9 reveal the complete exception from the dbClient
reviewed-by: Edison Su
2012-04-04 16:43:05 +05:30
Prasanna Santhanam b013fb3107 bug 14608: Async timeout counter does not get reset across tests
status 14608: resolved fixed
reviewed-by: Chirag Jog (chirag@clogeny.com)

Set the timeout countdown to start from beginning of each pollAsync instead
of setting it once for the entire run.
2012-04-04 16:43:02 +05:30
Chirag Jog bc3311546b Merge branch '3.0.x' of ssh://git.cloud.com/var/lib/git/cloudstack-oss into 3.0.x 2012-04-03 22:55:02 -07:00
Chirag Jog e486f7f0af Minor fix - Ensure we "sync" to changes to disk 2012-04-03 22:52:09 -07:00
frank 72d284de7d Switch to Apache license 2012-04-03 04:54:14 -07:00
Chirag Jog 6cfa562965 1. Add support for project related tests.
2. Fix the classes to fetch HTTP COnnection from the Parent class
3. Minor fixes
2012-04-02 10:08:59 -07:00
Prasanna Santhanam 7dfe2ae9c7 Correcting the reported failure message
reviewed-by: Edison Su
2012-04-02 18:03:09 +05:30
Prasanna Santhanam f320290112 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:15:16 +05:30
Prasanna Santhanam 1bc0834c9c bug 13234: unit test to test the user decorator
status 13234: resolved fixed

Uncomment each decorator to test
- tests run as existing admin
- tests run as new user in new domain
- tests run as new user in existing domain
- tests run as old user in existing domain
- tests run as new domain admin in new domain
2012-03-29 18:54:18 +05:30
Edison Su 1b2353d081 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:06:44 -07:00
frank 9fa4546d1e make addcopyright.py able to handle java, js file 2012-03-28 16:16:51 -07:00
Prasanna Santhanam 2cfcee47d0 reduce logging verbosity, set level to info
reviewed-by: Kishan
2012-03-24 09:50:44 +05:30
Prasanna Santhanam a6a159f6a1 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:50:44 +05:30
Prasanna Santhanam 30f7ca28bd can't append str to logger message 2012-03-21 11:09:46 +05:30
Chirag Jog 99af149db7 Refactored the code to fetch domainid from API calls.
Changed env. setup code in test accounts.
2012-03-18 23:08:58 -07:00
Chirag Jog 5f2e35fa70 Port the BVT tests from 2.2.y to Acton 3.0.x 2012-03-06 09:18:13 -08:00
Prasanna Santhanam 061ee4977a adding logging with level and timestamp 2012-02-29 12:04:17 +05:30
Prasanna Santhanam 348cb1c6dc adding retry logic, error handling, and urllib2 used for managing connections 2012-02-29 12:04:17 +05:30
Prasanna Santhanam 8f222c175e Wrong place to put a return
reviewed-by: kishan
2012-02-29 12:04:17 +05:30
Prasanna Santhanam 492423e047 The HTTPConnection object times out too soon when status is being polled. This
depends on python's internal socket implementation. Added an explicit 3m
timeout. Test code MUST NOT induce sleeps longer than 3m, instead check status
periodically to keep the HTTPConnection alive.
reviewed-by: Chirag Jog <chirag@clogeny.com>
2012-02-23 18:33:52 +05:30
Prasanna Santhanam 91e56d763f Multiple fixes to the testClient to accomodate further changes to 3.0 APIs
reviewed-by: Kishan
* Revert back to old guestCidrAddress
* Add default traffic types
* fixed typo when creating physical network, specifid wrong zone
* correctly specifying the guest VLAN as part of updating physical network
2012-02-20 18:12:04 +05:30
Prasanna Santhanam 6796e099c8 Enable security groups in basic zones only
reviewed-by: Kishan
2012-02-20 18:11:58 +05:30
Prasanna Santhanam 7480d73785 Enable the zone after successful add
Reviewed-By: Kishan
2012-02-20 18:11:50 +05:30
Prasanna Santhanam 6b2a92ca66 fixing the case when multiple zones are added. enable the right VR element
Reviewed-By: Kishan
2012-02-20 18:11:43 +05:30
Sam Robertson 0411aad813 use temp tomcat directory for automated testing 2012-02-08 16:35:01 -08:00
Sam Robertson 5ce1a0cba3 Updating CATALINA_HOME used for automated testing environment 2012-02-08 15:06:02 -08:00
Sam Robertson dadf25cca4 use /usr/share/tomcat, not /usr/share/cloud 2012-02-07 09:30:03 -08:00
Sam Robertson 113a2f2fe8 Adding automated.sh, removed failed attempt at setting CATALINA_HOME in ant build configuration 2012-02-07 08:52:01 -08:00
Sam Robertson 4acfc2eb1d automated testing changes, in addition to an automated.xml 2012-02-03 16:59:20 -08:00
Alex Huang c42f50c4b0 Used a different way to allocate guest ip address. not in used yet. 2012-01-30 16:10:10 -08:00
Prasanna Santhanam d99e71bad4 update a Disabled Physical network 2012-01-20 18:33:49 +05:30
Murali reddy d92c361efd bug 12826:enable NetScaler in basic zone for load balancing and static NAT
NetScaler element should not firewall service provider in basic zone
2012-01-19 14:05:12 -08:00