111 Commits

Author SHA1 Message Date
Prasanna Santhanam
535903f928 ostypeid references removed
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit 088c1e2a46b2758e2a0cb2ab107a6fa83a3c7c73)
2013-07-11 16:45:53 +05:30
Prasanna Santhanam
6735532765 do not wait for cleanup
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-07-06 20:18:23 +05:30
Prasanna Santhanam
f337fed1ec do not wait for cleanup
simply cleanup and exit and network.gc will happen later

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit 620ed6e0f177bf32aa8d966cade07b93c7045dc9)
2013-07-06 19:19:33 +05:30
Prasanna Santhanam
9ba36fd173 uncomment the cleanup.
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-07-03 20:03:50 +05:30
Prasanna Santhanam
9f0c9ee20c CLOUDSTACK-3184: integration test for the updateVirtualMachine
updateVirutalMachine fails if no args are passed. this test also further
verifies that the displayname is changed when vm is started up
successfully.

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-07-03 19:39:02 +05:30
Prasanna Santhanam
9d07f899c8 separate the shared network test for network offerings
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-07-03 17:10:53 +05:30
Prasanna Santhanam
04d9d209ad Removing the vlan selection in network offering test
Also do not wait for cleanup. Just send cleanup to server and proceed
further.

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-07-03 17:04:20 +05:30
Prasanna Santhanam
34eabd957c Fix attr plugin import and class reference
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-06-30 21:44:16 +05:30
Prasanna Santhanam
c7315975d2 Fix tab/space issues
Several test failures occurred due to tab issues

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-06-30 13:20:27 +05:30
Prasanna Santhanam
2a51c3e2c9 Fix test_assign_vm to be discovered by nose testrunner
the nosetests runner will not discover tests unless the tests start with
the test_ prefix. When wrapping by the log_test_exceptions method the
name of the method changes and is not test_ anymore causing the runner
to skip the test. Included the __doc__ string as well so the runner can
report results correctly.

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-06-30 12:52:17 +05:30
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