609 Commits

Author SHA1 Message Date
Sowmya Krishnan
2910f9058d CLOUDSTACK-3582: Add sleep so Netscaler recognizes the service to be up
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-07-17 12:36:27 +05:30
Sowmya Krishnan
51b7f5de91 Fix typo netscaler_1 in TestAddMultipleNSDiffZone
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-07-17 12:14:11 +05:30
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
3f5c1c6da3 CLOUDSTACK-3384: Fix the vlan range < 4096
VLAN ranges beyond 4095 are properly handled. Fix the test to accomdate
this change

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-07-11 09:41:17 +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
d11681fb05 Network GC test moved to regression suite
The network GC test is a long running test as it waits for
network.gc.wait + network.gc.interval * 2 to verify that the network
cleanups happen corectly. This test is also part of the regression suite
and is redundant in the smoke. The test run takes 30m longer because of
this test included in smoke.

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-07-05 18:52:47 +05:30
Prasanna Santhanam
9e2224dd49 print debug message for the waiting time
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit 313177a51e70024f70d02b251afc3d5038a7e488)
2013-07-05 11:09:56 +05:30
Prasanna Santhanam
b3aa11ca39 Include definition for vm_3 in assign and load balance test
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-07-04 21:45:00 +05:30
Prasanna Santhanam
da9552b7f3 move isAlmostEqual to utils
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-07-04 20:14:54 +05:30
Gaurav Aradhye
048cf5aae8 CLOUDSTACK-2884: Fixed test_04_change_offering_small
Added method to compare if two digits are almost equal within given range

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-07-04 20:14:54 +05:30
Prasanna Santhanam
248bea8b27 ipaddress is included
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-07-04 14:39:54 +05:30
Prasanna Santhanam
1e646629fe CLOUDSTACK-3354: Fix scalevm test
After you scale the vm, user is expected (oddly) to update the virtual
machine to signal that the PV tools are installed. This tells cloudstack
that the VM has been successfully scaled up/down.

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit c8ad4e5ced323d27862b7197a05f022f1a6efd4f)
2013-07-04 13:52:36 +05:30
Prasanna Santhanam
30039e121b Separate the loadbalancing tests
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-07-04 13:37:27 +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
43f31dcc66 Only print debug message when the planner fails to disperse
User Dispersion is a best effort of deployment planning and cannot
always guarantee the dispersion logic will work. However this does not
fail the deployment. Adjust the test so as to print a debug and exit
instead of fail.

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-07-02 19:13:48 +05:30
Prasanna Santhanam
46bd2f8a28 Cleanup list corrected
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-07-02 17:00:55 +05:30
Gaurav Aradhye
b8d876fff8 CLOUDSTACK-3168: Resolved 'Object NoneType' issue.
Replaces ipaddress by ipaddress.ipaddress wherever required

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-07-02 15:33:20 +05:30
sanjeevneelarapu
479f89ca3c assertion fails because cluster could be None
Object is being used in one of the Assert statements however it is not
callable. Fixed it.

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-07-02 15:22:05 +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
Prasanna Santhanam
8dc99d92b6 Fix reviewboard messup of python indentation
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-06-27 20:30:36 +05:30
Prasanna Santhanam
2af6db24ed cmds is not a list. just regular string to ssh
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-06-27 20:30:36 +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
Gaurav Aradhye
1fc7aeaaea CLOUDSTACK-3060: condition for vmware while getting process status.
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-06-25 12:30:18 +05:30
Harikrishna Patnala
f7b1d3d8d5 CLOUDSTACK-2916: admin is not able to login through UI after setting GP "cluster.cpu.allocated.capacity.notificationthreshold" to some string
CLOUDSTACK-2457:  No check for input values,special character,-ive values can be assigne to GLobal parameter "cluster.cpu.allocated.capacity.disablethreshold"

Added validation for float values and checking limit for weight based parameters by creating a set of parameters.
Signed off by : nitin mehta<nitin.mehta@citrix.com>
2013-06-24 20:00:09 +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
c1e37f60ac Cycle all possible device combinations for ISO attach/detach
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-06-20 16:47:05 +05:30
Edison Su
9aec9c605c merge to master 2013-06-19 18:16:47 -07:00
Girish Shilamkar
5140473f2b CLOUDSTACK-1758: Fix ssvm test failures, where ssh to ssvm failed.
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-06-19 20:33:45 +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
97eb35c82b NAT rule creation gives ipaddress as nat_rule.ipaddress
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-06-18 15:08:11 +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