Commit Graph

161 Commits

Author SHA1 Message Date
Prasanna Santhanam 386779ca2e Simplifying the process of running the simulator.
* ant run-simulator - will seed the simulator jar and start CS
    * ant run-marvin -Dmarvin.config="/path/config/file" - will
    * configure a
    cloudstack as per the given configuration. marvin.config - defaults
to a
    two host simulator in an advanced zone

    You can then connect your debugger over localhost:8787 or use the CS
ui
    at localhost:8080/client for testing.

Conflicts:

	build/build-marvin.xml
	build/build-tests.xml
2012-07-31 17:21:57 +05:30
Prasanna Santhanam c15d227244 Enable VpcVirtualRouter when deploying advanced zone 2012-07-25 18:52:30 +05:30
Prasanna Santhanam ef05939910 All responsibilty for running through nose belongs to the marvin-nose plugin 2012-07-23 19:28:00 +05:30
Prasanna Santhanam 18eff63e20 minor changes 2012-07-23 19:28:00 +05:30
Prasanna Santhanam cb12366fc4 Plugin-izing the testcase runner
* setup.py is the installer for marvin-nose plugin
* marvin-nose drive all tests using nose with other plugins like xunit, coverage, multiprocess execution etc
* -n option deprecated. All tests driven by nosetests --with-marvin
2012-07-23 19:27:57 +05:30
Prasanna Santhanam fc580da2e8 Correcting the imports for HTTPException 2012-07-23 10:47:48 +05:30
Prasanna Santhanam 8830bf33ba Support added for attrib, multiprocess and Xunit coverage plugins 2012-07-20 17:28:36 +05:30
Prasanna Santhanam 63cb30e196 Plugin support to pick test cases using marvin.
Using this plugin Nose will drive tests and this also allows using other
nose plugins. Cmd Line plugin support to be added
2012-07-20 17:28:36 +05:30
Prasanna Santhanam c3b324409a injecting the testclient during Test Loader process
Without this the tests do not have access to the client APIs
2012-07-11 17:33:04 +05:30
Talluri 757a087c7f enhancement related to -x to take directory name/path to store xml reports 2012-07-09 12:41:34 +05:30
Prasanna Santhanam 193bbe67cc The NoseTestLoader to pick cloudStackTestCase as tests 2012-07-07 17:59:39 +05:30
Prasanna Santhanam a91b4a4f7a setup.properties for basic zone environments 2012-07-07 10:32:20 +05:30
Prasanna Santhanam 2114b2ee87 networkId is None by default 2012-07-02 09:55:33 +05:30
Prasanna Santhanam afa52cd554 Post configuration tests to check
- if system VMs are up and running
- if built-in template is downloaded and ready to launch
2012-06-29 13:45:07 +05:30
Prasanna Santhanam 4abfc6a280 xml reports for TestCaseEngine 2012-06-28 16:47:47 +05:30
Prasanna Santhanam c3213a4735 guestIpRanges as part of pod creation
These guestIpRanges will represent the range of IPs that carry guest
traffic. They are associated with the pod in case of basic zone
2012-06-27 19:09:38 +05:30
Prasanna Santhanam 72d455c71a basic environment config generration 2012-06-27 18:24:46 +05:30
Prasanna Santhanam 4997b7b433 Add the sandbox scripts for marvin advanced and basic installs 2012-06-27 18:24:19 +05:30
Prasanna Santhanam 4587299d02 testClient is now tracked under tools/marvin 2012-06-27 16:36:56 +05:30
Prasanna Santhanam ec0a6e0420 Config generator script for Advanced Mode CloudStack 2012-06-27 15:49:12 +05:30
Prasanna Santhanam b2492e2782 Merge from ASF master for scp support 2012-06-26 14:58:06 +05:30
Prasanna Santhanam 6fbd7503da adding unittest-xml-reporting as a dependency to marvin 2012-06-21 09:28:24 +05:30
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