Commit Graph

483 Commits

Author SHA1 Message Date
animesh 69c459342c Fixing rat issue with a test script 2013-09-20 16:31:19 -07:00
sailajam e546fe0e71 Merge branch '4.2' of https://git-wip-us.apache.org/repos/asf/cloudstack into 4.2 2013-09-12 10:59:47 +05:30
Edison Su a23322bf20 Merge branch '4.2-forward' into 4.2 2013-08-26 16:18:12 -07:00
venkataswamybabu budumuru 1bcd4de4e4 Revert "CLOUDSTACK-4378 : Existing tests were deploying VMs as admin and creating"
Accidentally pushed this change to 4.2 branch hence revertingt this change.

This reverts commit 73099f77c4.
2013-08-26 20:03:15 +05:30
venkataswamybabu budumuru 98dfd65291 CLOUDSTACK-4378 : Existing tests were deploying VMs as admin and creating
affinity groups as admin. There are few reason why this needs to be changed and
the reasons are as mentioned below
1. we usually create an account for each test and we run the test as the newly
created account and not as admin.
2. tests were failing during deployVirtualMachine step when they are run as
admin and if anyone during these tests create an additional isolated networks
as admin account .
(P.S: current deployVirtualMachine in the scripts is not taking the networkId
and hence it fails when there are multiple isolated networks because it doesn't
know which one to pick)
Signed-off-by: venkataswamybabu budumuru <venkataswamybabu.budumuru@citrix.com>
2013-08-26 19:28:06 +05:30
venkataswamybabu budumuru 73099f77c4 CLOUDSTACK-4378 : Existing tests were deploying VMs as admin and creating
affinity groups as admin. There are few reason why this needs to be changed and
the reasons are as mentioned below
1. we usually create an account for each test and we run the test as the newly
created account and not as admin.
2. tests were failing during deployVirtualMachine step when they are run as
admin and if anyone during these tests create an additional isolated networks
as admin account .
(P.S: current deployVirtualMachine in the scripts is not taking the networkId
and hence it fails when there are multiple isolated networks because it doesn't
know which one to pick)
Signed-off-by: venkataswamybabu budumuru <venkataswamybabu.budumuru@citrix.com>
2013-08-26 19:09:24 +05:30
Jayapal dd57226817 Marvin test cases for multiple ip address per nic 2013-08-26 17:11:45 +05:30
Prasanna Santhanam 81d489dc94 CLOUDSTACK-4452: Cleaning up the is_snapshot_on_nfs utility
- Pass in config and determine the mgmtsvr credentials
- remove the dir_paths param which is not reqd.
- pass all entities as uuids and convert to ids within the method

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit 02e7630f1c)
2013-08-26 11:11:30 +05:30
Gaurav Aradhye 35ee38385c CLOUDSTACK-4452 - Fixed method is_snapshot_on_nfs and moved it to utils
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-08-26 10:40:19 +05:30
Sowmya Krishnan bc5b6ae0e4 CLOUDSTACK-4487: No need to delete offerings or wait on offering cleanup
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-08-26 10:35:59 +05:30
Prasanna Santhanam 5f77493a79 local storage is not enabled on the zone
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-08-24 10:05:14 +05:30
Girish Shilamkar 9ff40829a9 CLOUDSTACK-4144: Add free vlan to shared network in TestVMLifeCycleSharedNwVPC
Shared network has to have specifyVlan = True. So changed it to True
and aded a function to get free vlan.

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-08-24 10:05:14 +05:30
Prasanna Santhanam e39156e4d6 CLOUDSTACK-4473: allow_egress referenced before assignment
When deploying with networkids allow_egress gets no default value. This
is a regression caused by fix for CLOUDSTACK-4418

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-08-23 17:03:19 +05:30
SrikanteswaraRao Talluri 4a8119c807 CLOUDSTACK-4448: Fix test_03_RouterStartOnVmDeploy to stop all the pre-existing VMs before starting the test
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-08-23 12:37:03 +05:30
SrikanteswaraRao Talluri db673b2b9b CLOUDSTACK-4447: Fix router tests by listing Routers for that account of type 'Isolated'.
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-08-23 09:42:37 +05:30
SrikanteswaraRao Talluri 8762a0d0c6 CLOUDSTACK-4425:Fix to attach uploaded volume to a stopped VM test
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-08-23 09:41:19 +05:30
Animesh Chaturvedi 06f28722b6 Updating pom.xml version numbers for release 4.2.0
Signed-off-by: Animesh Chaturvedi <animesh@Animesh-LinuxDev.citrite.net>
2013-08-22 17:15:42 -07:00
Prasanna Santhanam 69f6f49ae1 CLOUDSTACK-4453: fetch host credentials from marvin config
Tests would fetch the credentials for the host to hop into router to
check for essential services. Each test would require to put in the host
information into the test data. Instead fetch the credential information
from the marvin configuration file.

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-08-22 20:20:35 +05:30
SrikanteswaraRao Talluri 64460df554 CLOUDSTACK-4437: Fix iso usage event count to match the number of image stores
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-08-22 12:38:59 +05:30
Prasanna Santhanam e2122b7230 CLOUDSTACK-4442: Include a test for creating networks with sourcenat only
The test attempts to create a network with offering serving only
dhcp,dns and sourcenat. However the source NAT functionality itself
isn't tested as reported in the bug. So the test will pass.

TODO: come up with a way to test source nat without enabling additional
services for pf/staticnat

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-08-22 12:38:50 +05:30
Sowmya Krishnan 1c31ee22d4 CLOUDSTACK-3927, CLOUDSTACK-3928: Fix NS scripts to add/remove NS device in setupClass/tearDown
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-08-22 10:06:51 +05:30
Gaurav Aradhye b3921e5248 CLOUDSTACK-4422: Corrected the wrong service paths
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-08-21 15:43:23 +05:30
Prasanna Santhanam f056af8cbd CLOUDSTACK-4225: Remove additional / in the nfs path
nfs://nfs-server://export/share ->
nfs://nfs-server:/export/share

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-08-21 15:19:25 +05:30
Prasanna Santhanam 5b66677d74 CLOUDSTACK-4225: list the snapshot path on secondary store
list the snapshot on secondary store. avoid changing directories and
additional debug commands.

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-08-20 19:38:59 +05:30
Prasanna Santhanam 8b922b850c CLOUDSTACK-4225: new_virtual_machine is not a attr of the test
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-08-20 19:33:42 +05:30
Gaurav Aradhye 836f093610 CLOUDSTACK-4356: Added code for checking empty host, skip the test if no empty host found
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit ac77660864)
2013-08-20 17:31:53 +05:30
Prasanna Santhanam a82f66e0fa CLOUDSTACK-4257: Additional asserts for storage migration test
Test whether valid storage pools are listed and at least one pool is
available for migration.

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-08-20 17:24:56 +05:30
Saksham Srivastava a9e45bf776 CLOUDSTACK-4257: [Automation] test_storage_motion test cases failed during with unexpected result in listStoragePool API call
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-08-20 17:24:56 +05:30
Sheng Yang 690bd57ed0 Automation: Disable TestVMLifeCycleSharedNwVPC test suite
Rather than TestVMLifeCycleVPC.

Shared network's setup is wrong.
2013-08-19 11:24:11 -07:00
Prasanna Santhanam da0bb63005 CLOUDSTACK-4340: Add more debug logging
VM (id) moves from host (id) to host (id)

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-08-19 15:42:12 +05:30
Prasanna Santhanam 8576b1ddc9 CLOUDSTACK-4396: Invalid case comparison leaves egress rule unprogrammed
Thereby failing the wget for the cloud-setup-guest-password script which
in turn fails the test.
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-08-19 15:17:30 +05:30
Prasanna Santhanam 7768613edc CLOUDSTACK-4225: Fix template references in setUpClass
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-08-19 14:59:34 +05:30
Prasanna Santhanam 52f6317f79 CLOUDSTACK-4394: remove cleanups for offerings
offerings do not need to be cleaned up

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-08-19 14:40:34 +05:30
Ashutosh K 85318977c2 Additional tests for custom_hostname
- vm with existing displayname
- change display name post deploy
- deploy with unsupported chars in display name
- vm.instancename.flag = true and deploy vm
- vm.instancename.flag = false and deploy vm

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit d5203b19e0)
2013-08-15 10:48:50 +05:30
Ashutosh K 84e81df2a3 Removed Invalid test from TestRemoveUserFromAccount see -> http://markmail.org/message/vk7wyl3b57cltj44
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-08-15 10:44:23 +05:30
Ashutosh K 682e995a4a CLOUDSTACK-3594: New affinity group tests
- list all vms in affinity group
- delete an affinity group by id
- admin deletes affinity groups
- list affinity groups as admin
- list affinity groups by accountid/domainid
- list affinity groups by group id
- user deletes his affinity group

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-08-15 10:36:36 +05:30
Sanjay Tripathi c5f1aea39d CLOUDSTACK-3688: Test cases test_accounts.TestDomainForceRemove.test_forceDeleteDomain, not found the domain to delete and failed.
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit 151fc3e837)
2013-08-14 20:05:02 +05:30
Prasanna Santhanam a04599b3ca flaky RvR tests to run sequentially
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-08-14 19:52:46 +05:30
Prasanna Santhanam 3be5605583 CLOUDSTACK-3961: multi network test in VPC
Test delete network rules in a VPC. Multiple Fixes
- correct protocol ICMP->TCP
- Remove LB actions from non-lb network
- correct private gateway CIDRs to not overlap with vpc guest cidrs
- remove unrequired SSH on non-lb network
- typos

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit d28e86ccea5dfebea92eba63d1a15ef90855f62d)
2013-08-14 17:04:07 +05:30
Prasanna Santhanam 9e7983ac18 CLOUDSTACK-4252: Correct the cleanup order of resources
Apply a LIFO cleanup when deleting cloud resources

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-08-14 16:31:55 +05:30
Prasanna Santhanam e3eee3bd43 CLOUDSTACK-4258: Additional debug to the assertion
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-08-14 15:27:30 +05:30
Prasanna Santhanam 547b394363 CLOUDSTACK-4262: Wait twice network.gc for vpcvr shutdown
Wait a little bit longer for the VpcVr to shutdown on network shutdown.

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-08-14 15:27:30 +05:30
Prasanna Santhanam 095ea6d0b8 Additional logging and better error reporting on assert fail
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-08-14 15:27:30 +05:30
Prasanna Santhanam 087a9ea76f CLOUDSTACK-4283: remove hardcoded shared_vlan from test_shared_networks
SharedNetwork creation requires a pre-setup VLAN outside of the guest
VLANs defined during zone creation. Use a VLAN tag outside the guest
range as a shared network vlan to create shared networks.

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-08-13 15:32:31 +05:30
Prasanna Santhanam 6decb9cb4c Fix test naming to reflect the test purpose
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-08-12 14:42:45 +05:30
Prasanna Santhanam 0d10050485 CLOUDSTACK-3017: Add tags to Cisco ASA tests
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-08-12 12:04:04 +05:30
SrikanteswaraRao Talluri 359967d9f0 CLOUDSTACK-4230: Fix the script to not to add egress rule if zone network type is not advanced
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-08-10 19:18:07 +05:30
Prasanna Santhanam 3455a76237 Add more debug logging to download detached volume test
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-08-10 16:18:29 +05:30
Prasanna Santhanam 99329dfa4a CLOUDSTACK-4225: change to directory where snapshots are mounted
return back to HOME_DIR and unmount the secondary storage

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-08-10 15:42:05 +05:30
Rayees Namathponnan 8d1425dd26 TestVMLifeCycleSharedNwVPC need to disable since its failing, netscaler configuration need to change
Signed-off-by: Edison Su <sudison@gmail.com>
2013-08-09 19:43:07 -07:00