Commit Graph

311 Commits

Author SHA1 Message Date
Prasanna Santhanam 19bdef027d CLOUDSTACK-3644: Failed to pass apiclient to public ip delete
Test VPC Release IP assigned to LB rule fails because we don't pass in
the apiclient to it.

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-07-19 17:45:38 +05:30
Prasanna Santhanam ea5d487f50 CLOUDSTACK-3655: RvR tests fail when handling switchover
During switchover of master->backup->master, the rvr goes through
UNKNOWN, FAULT, MASTER/BACKUP. In case of improper transition the state
is FAULT. Include additional state check in the tests.
2013-07-19 17:45:38 +05:30
Prasanna Santhanam 62bf8082f4 CLOUDSTACK-3655: RvR fails with unexpected state
The guestcidr is no longer specified directly. Use the netmask and
gateway combination to create custom cidr network

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-07-19 17:45:38 +05:30
Prasanna Santhanam a250fca4be separate the shared network test for network offerings
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit 9d07f899c8)
2013-07-19 13:52:12 +05:30
Prasanna Santhanam 0c625bb3f8 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>
(cherry picked from commit 04d9d209ad)
2013-07-19 13:52:09 +05:30
Sowmya Krishnan c03296808b Fixed ostype CLOUDSTACK-3645
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit 78ac22e157)
2013-07-19 11:17:29 +05:30
Prasanna Santhanam 5d3856911e Fix typo in spelling Afifnity -> Affinity
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-07-18 18:13:58 +05:30
Prasanna Santhanam d6fc6577ef remove tag used while debugging
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-07-18 18:13:58 +05:30
Prasanna Santhanam 06f5f5ba44 remove waits during claenup
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-07-18 18:13:58 +05:30
sailajam 3385b200fa CLOUDSTACK-3596: Domain ID missing to deploy VM request . Included Domain id
(cherry picked from commit f5bd253b2b)
2013-07-18 18:13:57 +05:30
Gaurav Aradhye f2d9a7b659 CLOUDSTACK-3168: Change in try_ssh function
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit e25cbd66d2)
2013-07-18 15:06:33 +05:30
Prasanna Santhanam af9a8de901 tearDownClass and not teardown
Include the affinity group in the deletion/cleanup

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-07-18 15:02:16 +05:30
Prasanna Santhanam 296c2f6a70 Delete the affinity group by id and not name
Adding some docstrings to the tests so the test runner reports them.

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-07-18 15:01:32 +05:30
Prasanna Santhanam 8bc3757e80 CLOUDSTACK-3619: Cleanup of volume is not required as gc takes care.
We don't need to delete the volume resource as part of cleanup as the
storage gc is expected to cleanup orphaned volumes in deleted
accounts/projects.

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-07-18 14:59:35 +05:30
Sanjay Tripathi 52fa8532bb CLOUDSTACK-3618: When project account does not exist, API now throws exception
API call listprojectaccounts failed, and test case
test_projects.py:test_08_cleanup_after_project_delete failed due to
this

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-07-18 14:57:03 +05:30
Prasanna Santhanam 6a185e2939 CLOUDSTACK-3592: Fix project email reference.
Emails belong to user's within accounts. Refer to the first user within
the account and use his email for account invites.

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit 22cb5be8b6)
2013-07-17 19:27:33 +05:30
Girish Shilamkar 8e7c1aa133 CLOUDSTACK-3586: Fixed regression test cases for Affinity Groups
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit 234db0561f)
2013-07-17 19:27:33 +05:30
ashutoshkelkar 79009dbba6 CLOUDSTACK-2273: cleanup using user api client for domain admins
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit 9f9510be91)
2013-07-17 19:27:33 +05:30
Sowmya Krishnan a13b8b4e59 Fixes CLOUDSTACK-3582
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit cfd892fc3b)
2013-07-17 19:27:33 +05:30
SrikanteswaraRao Talluri d3b6902387 Fixed arguments in the format string in the debug message.
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit 2cec9f61fbce596706d46511ccc2ca3edb382321)
2013-07-17 12:35:01 +05:30
SrikanteswaraRao Talluri dd5bac646b change all instances of account.account to acccount.
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit d275beb7c1dab7522ae3cc278f7944afc0ba415d)
2013-07-17 12:34:53 +05:30
Sowmya Krishnan dee2b98338 CLOUDSTACK-3582: Add sleep so Netscaler recognizes the service to be up
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit bd629a5bec3f33dd51d0e445d402ae7ce3ba3484)
2013-07-17 12:34:48 +05:30
Sowmya Krishnan 2a388e64e7 Fix typo netscaler_1 in TestAddMultipleNSDiffZone
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit 51b7f5de91)
2013-07-17 12:34:41 +05:30
Prasanna Santhanam 088c1e2a46 ostypeid references removed
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-07-11 16:43:37 +05:30
Prasanna Santhanam 4d4bd8a263 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>
(cherry picked from commit 3f5c1c6da3)
2013-07-11 09:43:59 +05:30
Prasanna Santhanam bae28c008d do not wait for cleanup
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-07-06 20:18:27 +05:30
Prasanna Santhanam 620ed6e0f1 do not wait for cleanup
simply cleanup and exit and network.gc will happen later

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-07-06 19:19:02 +05:30
Prasanna Santhanam 3c69e3e2f0 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>
(cherry picked from commit 915f7b9c12fb816ff87558e2b95599e74b8e9462)
2013-07-05 18:51:29 +05:30
Prasanna Santhanam 313177a51e print debug message for the waiting time
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-07-05 11:09:19 +05:30
Prasanna Santhanam ca7f0df193 Include definition for vm_3 in assign and load balance test
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit b3aa11ca39)
2013-07-04 21:45:30 +05:30
Prasanna Santhanam a14a9c1926 move isAlmostEqual to utils
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit da9552b7f3)
2013-07-04 20:15:31 +05:30
Gaurav Aradhye ee9e723022 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>
(cherry picked from commit 048cf5aae8)
2013-07-04 20:15:21 +05:30
Prasanna Santhanam 812f9442ff ipaddress is included
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit 248bea8b27)
2013-07-04 14:40:33 +05:30
Prasanna Santhanam c8ad4e5ced 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>
2013-07-04 13:50:54 +05:30
Prasanna Santhanam ed01a02c92 Separate the loadbalancing tests
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit 30039e121b)
2013-07-04 13:40:32 +05:30
Prasanna Santhanam 1a462d2028 uncomment the cleanup.
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit 9ba36fd173)
2013-07-03 21:44:56 +05:30
Prasanna Santhanam 614d42dda2 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>
(cherry picked from commit 9f0c9ee20c)
2013-07-03 21:44:56 +05:30
Prasanna Santhanam e950b3a9fa 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>
(cherry picked from commit 43f31dcc66)
2013-07-02 19:21:15 +05:30
Prasanna Santhanam 6e399cc906 Cleanup list corrected
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit 46bd2f8a28)
2013-07-02 19:21:15 +05:30
Gaurav Aradhye 3b2756974a CLOUDSTACK-3168: Resolved 'Object NoneType' issue.
Replaces ipaddress by ipaddress.ipaddress wherever required

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit b8d876fff8)
2013-07-02 19:21:14 +05:30
sanjeevneelarapu 8a41322454 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>
(cherry picked from commit 479f89ca3c)
2013-07-02 19:21:14 +05:30
Prasanna Santhanam cb1d6eaa0e Fix attr plugin import and class reference
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit e7fe43567bef589a128a03f49db8cf8e7ebd7b3c)
2013-06-30 21:43:39 +05:30
Prasanna Santhanam 154c24e561 Fix tab/space issues
Several test failures occurred due to tab issues

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit c7315975d2)
2013-06-30 13:21:08 +05:30
Prasanna Santhanam 8244ae3ab6 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>
(cherry picked from commit 2a51c3e2c9)
2013-06-30 12:52:38 +05:30
rayeesn 7791454516 Reduced resource usage in vpc test cases
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit e14f355a0b)
2013-06-30 11:17:14 +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