101 Commits

Author SHA1 Message Date
rayeesn
e14f355a0b Reduced resource usage in vpc test cases
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-06-30 11:15:32 +05:30
suresh sadhu
56a001d1c4 CLOUDSTACK-3023: added tags for all the test cases
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-06-29 10:03:51 +05:30
Girish Shilamkar
3c0c6cb0b3 CLOUDSTACK-2254: Tests for Affinity and Anti Affinity rules
TestCreateAffinityGroup
TestListAffinityGroups
TestDeleteAffinityGroups
TestUpdateVMAffinityGroups
TestDeployVMAffinityGroups
TestAffinityGroupsAdminUser

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-06-27 09:51:29 +05:30
Sheng Yang
b0a3210695 Baremetal: Test cases 2013-06-21 09:48:40 -07:00
Gaurav Aradhye
4c51c60ef7 CLOUDSTACK-3021: Order removal of resources
Sub domain removed before parent domain. Also fixed indentation issue in
cleanup list of class TestServiceOfferingHierarchy

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-06-21 12:16:30 +05:30
sanjeevneelarapu
64e3074c7e Test Volumes: do not assume max.volumes attachable to guest
1.Current Implementation assumes 6 as the max volumes that can be
attached to disk.  Actually it depends on the hypervisor capabilities.

2.Modified the script to get the max limit from hypervsior capabilities.

Signed-off-by: sanjeevneelarapu <sanjeev.neelarapu@citrix.com>
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-06-21 11:48:26 +05:30
Prasanna Santhanam
82c75c7fae Split out snapshot tests for speedup
Breaking down snapshot tests
- recurring snapshots
- limits
- garbage collection
- smoke/basic scenario: take snapshot of root disk

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-06-20 19:42:01 +05:30
Prasanna Santhanam
c8f744dbc3 Prevent waits at cleanup
Do not wait until gc finishes cleanup of resources. This delays tests
and is dependant on the deployment. Some have large cleanup.intervals.
Assume cleanup succeeds and proceed

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-06-19 17:06:11 +05:30
Prasanna Santhanam
7d6b4a4a97 Fix vpc network tests and reduce delay by removing wait for cleanup
CIDR dictionary changes in the test causing the subsequent test to fail.
Reinitialize the dictionary at the beginning of the test

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-06-19 16:55:22 +05:30
Prasanna Santhanam
b91978545a Don't wait for account gc
Account GC is automatic, it's not required to wait for cleanup in the
tearDown method

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-06-19 15:16:45 +05:30
Prasanna Santhanam
13e1f4fc1e Split Redundant Router tests
Each module of redundant router contains related tests for
services, network rules, upgrades, redundancy etc.

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-06-19 14:32:25 +05:30
Prasanna Santhanam
b0d186ce5b Remove wait during cleanup
Cleanups need not wait at teardown for accounts to be removed. This
slows down the test case. Send the cleanup request and forget instead

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-06-19 12:48:41 +05:30
Prasanna Santhanam
24258648bf serviceCapabilityList is case sensitive
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-06-19 12:48:37 +05:30
Rayees Namathponnan
b6850c28dc CLOUDSTACK-3021: Correct the order of resources
Resources are ordered so that the cleanup succeeds.
domains are deleted after accounts under the domain are removed.

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-06-19 09:28:16 +05:30
Prasanna Santhanam
9e2eeb21ab Remove invalid references to diskdevice from tests
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-06-18 12:47:50 +05:30
Prasanna Santhanam
8801205fcf CLOUDSTACK-2882: Correct the secondary disk device on KVM
On kvm the disk device serial order is /dev/vda|vdb|vdc and so on.
This also fixes CLOUDSTACK-3018 and removes the redundant test in
blocker bugs. The snapshot related tests are now include in snapshots
suite.

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-06-18 12:45:39 +05:30
rayeesn
76520e807f import tag missing from test_shared_networks.py
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-06-18 11:43:39 +05:30
rayeesn
85ed216087 Removed junk characters from test_netscaler_lb.py
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-06-18 11:02:08 +05:30
Prasanna Santhanam
363a7b933c list the VPCs with vpc id not network id
test failed because of incorrectly listing the VPC using the networkid.

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-06-17 22:25:01 +05:30
Gaurav Aradhye
6a5c9d777f CLOUDSTACK-2935: Corrected VPC code related to cleanup
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-06-17 19:40:03 +05:30
Prasanna Santhanam
28b598b4ac Fix VPC tests related to user roles
Many vpc tests fail because of incorrect apiClient passed in to create
the VPC, network etc. The exact method used is getUserApiClient to fetch
the apiclient for a specific user.

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-06-17 17:32:05 +05:30
Prasanna Santhanam
a5189b1550 Fix the listVPC based on user roles
listVPC based on user roles uses the old account.account reference
causing the test to fail.

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-06-17 17:32:05 +05:30
Wei Zhou
f4dcca6e47 CLOUDSTACK-3019: add missing tags for test integration.component.test_advancedsg_networks.py 2013-06-17 10:40:40 +02:00
Prasanna Santhanam
0587d3a496 Moving maintenance mode into component/maint
All tests that could possible disrupt the runs of other tests because of
putting resources into maintenace will be put under maint/. This should
allow us to run the tests sequentially when other tests are not running
on a deployment.

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-06-17 12:33:57 +05:30
Prasanna Santhanam
e405703d5c CLOUDSTACK-3024: Invalid reference to testclient close
Testclient does not expose a close() method anymore for closing the
connection to cloudstack

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-06-17 10:05:02 +05:30
rayeesn
bf0265d21d CLOUDSTACK-3020: Fix assert error
If you do not give a name during vm creation,  UUID will be set for Name
and Display name will be blank.

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-06-17 10:05:02 +05:30
rayeesn
2f345c5b4d test_accounts.TesttemplateHierarchy;ostype added
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-06-16 11:10:37 +05:30
SrikanteswaraRao Talluri
862b955059 CLOUDSTACK-2363: Fix to conform to library changes
Several fixes for account.account references are fixed to the correct
account. reference

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-06-12 21:31:40 +05:30
Wei Zhou
c2b20a455c Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/cloudstack 2013-06-10 14:15:52 +02:00
Wei Zhou
8220b9867c destroy vm after test in test_advancedsg_networks.py 2013-06-10 14:00:05 +02:00
Prasanna Santhanam
63494f8dfd rename the test methods to be more pythonic :)
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-06-10 16:37:41 +05:30
Prasanna Santhanam
03e283c4b3 Unskip skipped tests
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-06-10 15:50:50 +05:30
Prasanna Santhanam
4a99f47581 Fixes to test_vpc_lifecycle
- Removing redundant creation of VPC offerings
- Removing cleanup based on configurations.GC should happen by default
- Speed up the run by not waiting for complete gc.

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-06-10 15:41:56 +05:30
Prasanna Santhanam
6607b1e5f1 Adding serviceCapability LB:Public for VPC
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-06-10 14:52:47 +05:30
Prasanna Santhanam
20c1f2c346 CLOUDSTACK-2914: lbScheme Public should be specified in NetworkOffering
NetworkOfferings now require a mandatory scheme in the
serviceCapabilityList to create a VPC loadbalancer on the public side.
This commit fixes the test for VPC networks. Additionally there needs to
be a fix for making this the default behaviour so as not to hurt the
backwards compatibility.

test still fails because of CLOUDSTACK-2915 however which is a related
network ACL backwards compat issue. See bug for more details.

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-06-10 13:38:33 +05:30
Prasanna Santhanam
8bc72ad55c Unskip all skipped tests
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-06-10 10:04:52 +05:30
Saksham Srivastava
17267794ad CLOUDSTACK-681: Dedicated Resources - Explicit Dedication, Private zone, pod, cluster or host. <Patch1>
This feature allows a user to deploy VMs only in the resources dedicated to his account or domain.

1. Resources(Zones, Pods, Clusters or hosts) can be dedicated to an account or domain.
   Implemented 12 new APIs to dedicate/list/release resources:
   - dedicateZone, listDedicatedZones, releaseDedicatedZone for a Zone.
   - dedicatePod, listDedicatedPods, releaseDedicatedPod for a Pod.
   - dedicateCluster, listDedicatedClusters, releaseDedicatedCluster for a Cluster
   - dedicateHost, listDedicatedHosts, releaseDedicatedHost for a Host.
2. Once a resource(eg. pod) is dedicated to an account, other resources(eg. clusters/hosts) inside that cannot be further dedicated.
3. Once a resource is dedicated to a domain, other resources inside that can be further dedicated to its sub-domain or account.
4. If any resource (eg.cluster) is dedicated to a account/domain, then resources(eg. Pod) above that cannot be dedicated to different accounts/domain (not belonging to the same domain)
5. To use Explicit dedication, user needs to create an Affinity Group of type 'ExplicitDedication'
6. A VM can be deployed with the above affinity group parameter as an input.
7. A new ExplicitDedicationProcessor has been added which will process the affinity group of type 'Explicit Dedication' for a deployment of a VM that demands dedicated resources.
   This processor implements the AffinityGroupProcessor adapter. This processor will update the avoid list.
8. A VM requesting dedication will be deployed on dedicatd resources if available with the user account.
9. A VM requesting dedication can also be deployed on the dedicated resources available with the parent domains iff no dedicated resources are available with the current user's account or
   domain.
10. A VM (without dedication) can be deployed on shared host but not on dedicated hosts.
11. To modify the dedication, the resource has to be released first.
12. Existing Private zone functionality has been redirected to Explicit dedication of zones.
13. Updated the db upgrade schema script. A new table "dedicated_resources" has been added.
14. Added the right permissions in commands.properties
15. Unit tests:  For the new APIs and Service, added unit tests under : plugins/dedicated-resources/test/org/apache/cloudstack/dedicated/DedicatedApiUnitTest.java
16. Marvin Test: To dedicate host, create affinity group, deploy-vm, check if vm is deployed on the dedicated host.
2013-05-30 01:07:01 -07:00
Ashutosh
85062a75ae Test cases for assignVirtualMachne feature.
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-05-30 11:03:25 +05:30
Anthony Xu
19a1116df2 Merge branch '4-2-advanced-zone-security-group' 2013-05-28 11:03:56 -07:00
Prasanna Santhanam
16e9eaca80 unskipping skipped tests
and indentation fixes

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-05-27 10:10:01 +05:30
Prasanna Santhanam
61e150fd58 More non-ascii encoded characters in commented text
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-05-26 20:10:46 +05:30
Prasanna Santhanam
f13a3c5d32 More tests using the dsl iso
Replace dsl iso with dummy iso to speed up test

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-05-26 15:29:45 +05:30
Prasanna Santhanam
1df3aad9ab Use a dummy ISO and skip SSH check
- Using the dummy.iso to speed up the test
- Removing ssh that is not required.

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-05-26 15:26:33 +05:30
Prasanna Santhanam
a4356b559c More fixes to regression tests:
- Remove extraneous non-ascii chars
- cloudconnection is auto GCed. No explicit cleanup required.
- Add environment tags for shared network tests
- Invalid account.account references
- Indentation errors
- Skip the storage motion test on unsuitable host environment
- remove copy template test. covered in the smoke tests
- invalid keys in service dictionary
- Unskipping tests skipped tests
-
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-05-25 15:40:42 +05:30
Wei Zhou
e6863c612b Integration test for advanced zone with security groups
Description:
This patch includes three parts for advancedsg:
(1) Marvin support.
(2) devcloud support.
(3) integration test scripts

Testing Done:
devcloud testing ok.

Signed-off-by: Anthony Xu <anthony.xu@citrix.com>
2013-05-22 15:39:22 -07:00
Girish Shilamkar
2bc88ea277 CLOUDSTACK-778: Add tests for user provided hostname for vms
Automation tests to qualify User provides hostname feature.
1. Defines services class
2. Test to verify custom hostname for the instance with internal name
3. Test to verify custom hostname for the instance without internal name

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-05-21 20:27:26 +05:30
Girish Shilamkar
b74d13f9b1 CLOUDSTACK-2472: Fix unresolved reference to max_value
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-05-21 19:31:52 +05:30
Girish Shilamkar
1736031fcb CLOUDSTACK-2473: Fix a typo in test_vpc_network.py
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-05-21 19:28:22 +05:30
Girish Shilamkar
a8975f9522 CLOUDSTACK-2474: Remove garbage code which was added while resolving merge conflicts.
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-05-21 19:25:58 +05:30
Prasanna Santhanam
54ac779b8f Fix all occurrences of account.account
Fixes the dereference of account objects with account.account. This is
to conform to recent library changes in Marvin

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-05-20 22:59:52 +05:30