Commit Graph

2420 Commits

Author SHA1 Message Date
Prasanna Santhanam 3ba8dc455f Smoke Tests: incorrect self reference in setUpClass
should be cls.apiClient and not self.apiClient
2012-12-09 22:15:37 -08:00
Prasanna Santhanam 21819dafb5 Summary: Devcloud tests for vm life cycle
Detail: VM Life cycle tests needed minor changes to run them against a
devcloud - basic zone, local storage envrioment.

Signed-off-by: Prasanna Santhanam <tsp@apache.org> 1354760111 -0800
2012-12-05 18:15:11 -08:00
Talluri 4b539ddcb3 Summary: Fixes marvin integration test for copy template/iso between zones
Detail:
This is a fix
1. to populate 'destzoneid' as part of the test data by issuing
listZones API. Earlier, this is provided manually in the test data.
2. to  wait till the ISO/template is downloaded & installed successfully
before being deleted as part of the cleanup.

BUG-ID: CLOUDSTACK-567
Reviewed-by: Prasanna Santhanam
Reported-by: Prasanna Santhanam
Signed-off-by: Prasanna Santhanam <tsp@apache.org> 1354234426 -0800
2012-11-29 16:13:46 -08:00
Prasanna Santhanam 2c561dd3a8 Summary: Removing ostypeid dependencies from tests
Detail: The listOsTypes API will filter when given the ostype name as
centOS 5.3. There is now no need to hardcode the uuids into the test

Signed-off-by: Prasanna Santhanam <tsp@apache.org> 1354228309 -0800
2012-11-29 15:41:56 -08:00
Prasanna Santhanam 145ba437cb fixing sed replace typo 2012-11-09 18:56:23 +05:30
Prasanna Santhanam d251bafbd4 Summary: tests can be driven parallely per module
Detail:  multiprocess plugin will drive each module in a seperate
process. the test runs will now be speeded up.

Signed-off-by: Prasanna Santhanam <tsp@apache.org> 1352465966 +0530
2012-11-09 18:29:25 +05:30
Prasanna Santhanam 07d555db37 Summary: secondary storage tests refactored
Detail: The secondary storage tests are now simplified. Since before
running tests we already ensure the health checks - template, builtin,
system vms are ready. there is no need to add additonal wait/sleep here.

Signed-off-by: Prasanna Santhanam <tsp@apache.org> 1351595163 +0530
2012-10-30 16:37:28 +05:30
Prasanna Santhanam c916d6a1f1 Bash is not python!
Signed-off-by: Prasanna Santhanam <tsp@apache.org> 1351573594 +0530
2012-10-30 10:37:16 +05:30
Prasanna Santhanam 802ddd43ca Summary: Moving the test integration libraries into marvin for CLI work
Detail: Integration tests use these libraries (base,utils,common) for
simplifying the usage of the API. These define the verbs of each
entity's usage (create, delete, add etc). For the CLI to present the
simplified API we'll leverage the integration libraries.

+ Fixes to setup-test-data.sh - kvm and xen each use a different version
of the built-in Cent OS template, 5.5 and 5.3 namely.

At a later point the setup-test-data script needs to be obsoleted.
ostypeids in tests should directly be determined from listOsTypes API
calls

Signed-off-by: Prasanna Santhanam <tsp@apache.org> 1351520707 +0530
2012-10-29 20:23:02 +05:30
Prasanna Santhanam 591cc5971f Summary: Do not filter by podid as systemvms span the zone
Detail: test_secondary_storage.py.test_systemvm_start() would try to
verify system VMs running under the zone but would filter by podid which
is not reqd. As systemVMs space a zone, filtering them zone-by-zone is
sufficient.

Signed-off-by: Prasanna Santhanam <tsp@apache.org> 1351506366 +0530
2012-10-29 15:57:35 +05:30
Prasanna Santhanam 8d7ad6020d Built-In is of type CentOS 5.5 (64-bit)
Signed-off-by: Prasanna Santhanam <tsp@apache.org> 1351434029 +0530
2012-10-28 19:51:32 +05:30
Prasanna Santhanam 5e451f899c Summary: Removing dbclient.close calls from integration tests
Detail:  Marvin auto-manages its connections now and there is no need to
call dbclient.close on tearDown of the test setup.

Signed-off-by: Prasanna Santhanam <tsp@apache.org> 1351152797 +0530
2012-10-25 13:44:45 +05:30
Prasanna Santhanam 0984f4319a Snapshot related tests moved for speedup
Snapshots take many hours to run because the lowest snapshot period for
testing is an HOURLY snapshot. The component tests are the right place
to run any long running tests. This will also speed up the smoke tests
to under an hour.
2012-10-18 09:42:00 +05:30
Prasanna Santhanam c86c5d2cc0 Uniting all the READMEs from tools and test
There are various READMEs under Cloudstack. This makes it confusing for
finding the purpose of each directory and tool within the project. All
the necessary information can now be found in the top-level README.tools
that is markdown editable. For the most updated information however it
is best to provide a wiki link to the tool you have added. Each tool
lies in a seperate section, please keep formatting unchanged.
2012-10-12 17:01:20 +05:30
Prasanna Santhanam 780468659f uniting the READMEs
Many READMEs spread over the integration and marvin test related
information can now be found in the single top-level directory
2012-10-12 16:07:03 +05:30
Prasanna Santhanam d1e260032f Python style error because of extraneous characters
Presence of Non-ASCII characters caused compilation errors.
2012-10-12 15:27:13 +05:30
David Nalley eac941d590 fixing license header for test_allocation_states.py CLOUDSTACK-314 2012-10-11 08:05:41 -04:00
Prasanna Santhanam 187d4f7ec9 hyphenate the option for mysql passwd. typo blunder 2012-10-09 19:45:19 +05:30
Prasanna Santhanam 71437addf5 Work with cloud user to find CentOS 5.3 passwd 2012-10-09 19:41:51 +05:30
Hugo Trippaers aa6355ffe6 Updated master to 4.1.0
mvn release:update-versions -DautoVersionSubmodules=true -Dnonoss -P
client,deps,developer  -DdevelopmentVersion=4.1.0-SNAPSHOT
2012-10-01 11:00:55 -07:00
Prasanna Santhanam 0cb54e2486 Exit code needs to be captured post nc output. Don't exec as cmd 2012-09-26 20:20:47 +05:30
Pradeep Soundararajan d94873ab4b CLOUDSTACK-28 wget.exe (GPLed) is present in the tools directory as a binary
Signed-off-by: Chip Childers <chip.childers@gmail.com>
2012-09-24 10:31:47 -04:00
Manikanta Kattamuri cfc2b85651 Removing eclipse .classpath and .project files as they are configured to ant build and adding the entries into .gitignore to stop further comitting of the files
Signed-off-by: Chip Childers <chip.childers@gmail.com>
2012-09-13 14:18:14 -04:00
Sebastien Goasguen 2329ee146a Correcting two instances of wiki.c.o to point to cwiki.a.o
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2012-09-13 19:35:53 +05:30
Prasanna Santhanam 41f6127fe1 Add license header the setup-test-data file 2012-09-12 18:48:34 +05:30
Prasanna Santhanam ce59b31c8d Additional tests in various areas 2012-09-12 18:48:33 +05:30
Prasanna Santhanam 9bba325915 renaming appropriately the setup data file
./setup-test-data.sh -t "path_to_tests" -d "db_svr" -m "mgt_svr" -p "hypervisor root password"
2012-09-12 18:48:33 +05:30
Prasanna Santhanam cef2ad170f Adding more classifications
- maintenance (host goes to maitnenance)
- multihost, multizone, multistorage
2012-09-12 18:48:33 +05:30
Prasanna Santhanam 97b7873590 Splitting resource_limit tests to allocation_states tests 2012-09-12 18:48:32 +05:30
Prasanna Santhanam 149bcb390b adding attributes to the smoke tests 2012-09-12 18:48:32 +05:30
Prasanna Santhanam 9043e49522 migrating tags to attr decorators for nose attrib classification 2012-09-12 18:48:32 +05:30
Prasanna Santhanam bb8016e08b Applying tags as attribute decorators for nose 2012-09-12 18:48:32 +05:30
Prasanna Santhanam a021c24c85 eip elb related fixes : corrected regex 2012-09-12 18:48:32 +05:30
Prasanna Santhanam b5bf6df75f elb test related fixes 2012-09-12 18:48:32 +05:30
Prasanna Santhanam cdbffdb334 Fixed mount command and logging in snapshot tests 2012-09-12 18:48:32 +05:30
Prasanna Santhanam 6e7b513810 Rearranging the project test suite according to global configs required
* Skipping if the global config required is not set
    * Cleanup the email tests from project suite
2012-09-12 18:48:32 +05:30
Prasanna Santhanam 0119e6d04e Fixing the vm_life_cycle expunge test
* expunge.interval determines the ExpungeTask interval to cleanup the
VM and post expunge.delay seconds we delete the VM entry. So let's just
wait long enough
2012-09-12 18:48:31 +05:30
Prasanna Santhanam ecfdb3af5c SecondaryStorage is always in Alert state. We need to check for SSVM. 2012-09-12 18:48:31 +05:30
Prasanna Santhanam e7e7085b86 Fixing imports to remoteSSHClient for EIP/ELB 2012-09-12 18:48:31 +05:30
Prasanna Santhanam bd6d354975 Fixes to scripts
* remoteSSHClient import is fixed
* mount now explicitly specifies filesystem
2012-09-12 18:48:31 +05:30
Prasanna Santhanam dfede8cdeb SecondaryStorageVM state should be checked for it Up status 2012-09-12 18:48:31 +05:30
Prasanna Santhanam a887f8d6ce Fixing the syntax errors while fixing whitespaces 2012-09-12 18:48:31 +05:30
Prasanna Santhanam b433b1afa6 Various fixes to tests
- Configuration fixes in Security groups and Egress rules
- Fixing white spaces in component test suite
2012-09-12 18:48:31 +05:30
Prasanna Santhanam a725fdc3ab Adding the tags for different configurations in to testcase 2012-09-12 18:48:30 +05:30
Prasanna Santhanam 8d74305707 Adding tags that identify deployment configurations against test cases
* advanced - Advanced Zone only
* basic  - basic zone without SecurityGroups
* sg - basic zone with security groups
* eip - basic zone with EIP/ELB
* advancedns - Advanced Zone with NetScalers
2012-09-12 18:48:30 +05:30
Prasanna Santhanam cddcc097b9 Fixing the remoteSSHClient imports, migrate VM, SSVM and router tests 2012-09-12 18:48:30 +05:30
Prasanna Santhanam ecfa3e7cf8 Revert "Marked copy to another zone tests as expectedFailure". This reverts commit 18a3e3cf2b. 2012-09-12 18:48:30 +05:30
Prasanna Santhanam dfb368d0fa Marked copy to another zone tests as expectedFailure 2012-09-12 18:48:30 +05:30
Rohit Yadav d917120845 Maven: Fix POM in test
Fixes and adds dependencies for building submodule test

Signed-off-by: Rohit Yadav <rohit.yadav@citrix.com>
2012-09-10 18:18:28 +05:30
Prasanna Santhanam 42cc2eb474 Poms for the test directory.
- test depends on selenium-java
- added artifact as dependency in test/pom.xml
2012-09-10 16:51:32 +05:30
Gavin Lee d3921139ed Patch from Gavin Lee: Change license to ASL2.0 in server and tools
Signed-off-by: Chip Childers <chip.childers@gmail.com>
2012-08-30 10:36:29 -04:00
Mice Xia 00b2a8040b Remove @author tag from non third-party source files in agent-simulator, cloud-cli, test, ui and utils folder 2012-08-13 15:30:42 +08:00
Alex Huang 14a60c7666 Removed Base64 from test 2012-08-10 06:10:24 -07:00
Alex Huang c1c952b42b should have used non url safe 2012-08-07 16:58:16 -07:00
Alex Huang a6a864a1a8 Removed Base64 file and use the apache version 2012-08-07 15:41:54 -07:00
Chip Childers ad79ee9f26 License header updates for the test folder. 2012-08-03 10:39:05 -04:00
David Nalley 7b7d51cecd apply chip childers licensing patches for the test directory
https://reviews.apache.org/r/5444/
2012-06-26 11:19:58 -04:00
David Nalley dcceb9d59b fixing a bunch of line endings in the test directory 2012-06-26 11:19:19 -04:00
frank 2fe8ee4d5e fix build after awsapi merge 2012-05-25 16:43:58 -07:00
Prasanna Santhanam 4fbf6bb95a Package imports for remoteSSHClient were not correct 2012-05-23 12:24:38 +05:30
Chirag Jog cbbed24ef4 Adding ELP/EIP tests & firewall rule changes for SSH 2012-05-22 19:17:26 +05:30
Prasanna Santhanam 54c62c8eb1 Basic readme to get started on running the tests 2012-05-17 17:11:41 +05:30
Prasanna Santhanam e29b0dafb6 Moving smoke tests and component tests into the test folder
Reviewed-by: pychecker
2012-05-17 17:01:49 +05:30
frank 2f634c0913 Switch to Apache license 2012-04-03 04:50:05 -07:00
Alena Prokharchyk 294d3a2fda Code format fixes 2012-02-10 15:10:21 -08:00
frank 52610ffcb3 add copyright header to shell scripts 2012-01-11 18:41:53 -08:00
Sheng Yang c44db2557d bug 11772: Add improved version of locking for the scripts in the systemvm
Because currently the lock in the script is retried every 1 second, and it's a
quite a long time that it's possible for some other active script can be
executed and retain the lock again. So it's possible that the first one request
the lock is always being preemptted by others, then finally got timeout.

To fix this issue, the retry interval is reduced to 0.1 seconds, which would
provide more retry times. And each process want to get the lock would create a
file named lockname-PID.lock, and only the first one(judged by timestamp) would
get the lock. The remaining ones would retry every 0.1 seconds to see if it can
get the lock.

Also timeout time is extended to 30 seconds.

And add testcase for it.

status 11772: resolved fixed
2011-11-01 19:06:14 -07:00
anthony e231ea1ab2 eclipse classpath fix 2011-08-31 15:51:19 -07:00
anthony f47bf2e4cf fixed eclipse classpath 2011-08-31 13:35:37 -07:00
frank d36a988d84 move simulator/test to opensource 2011-08-24 10:37:30 -07:00