Commit Graph

277 Commits

Author SHA1 Message Date
Alena Prokharchyk 675c85e349 CLOUDSTACK-4166: temporarily disabling invalid test case that fails BVT 2013-08-07 16:44:29 -07:00
Sheng Yang fae824a95b Automation: Fix test_redundant_router_network_rules.py
Stop VR after VM booted up.
2013-08-07 16:08:30 -07:00
Sheng Yang 9f25b77bd6 Automation: Fix test_vpc.py 2013-08-07 15:51:38 -07:00
Prasanna Santhanam a9d8333c55 Fix missing key
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit d1c01a79a5)
2013-08-07 22:52:55 +05:30
Girish Shilamkar 45fca6a833 Test assumes storagetype to be local therefore test_egress_fw_rules fail.
Removed storagetype definition.

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit 5826fde22e0aab8183c3f840e3e8613dd8612608)
2013-08-07 20:30:25 +05:30
Gaurav Aradhye ae378940c3 Automation: Affinity Groups- Removing invalid test case
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-08-07 19:43:58 +05:30
Prasanna Santhanam baf0400124 fix snapshots tests
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-08-07 19:37:37 +05:30
Prasanna Santhanam a6065ff378 Fix invalid references
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit 8ac1796226)
2013-08-07 16:11:05 +05:30
Prasanna Santhanam 79cd3df6fb Fix snapshot limit tests
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-08-07 15:09:31 +05:30
Prasanna Santhanam 2d4e17e8d4 remove local path in cloud-set-guest-password script
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-08-07 14:47:50 +05:30
Prasanna Santhanam b0ffc88baa Fix snapshot GC test
Changes to object store removes SecondaryStorage host from the host
table. This affects the test where we identify the secondary storage nfs
host to login to where we verify if the snapshot is present on the
physical resource.

* added base classes for imagestore/stagingstore operations
* fixed the test to check only if NFS is used as backing store

TODO: Fix for s3 based storage layer

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-08-07 14:34:51 +05:30
Alena Prokharchyk ef839427c7 CLOUDSTACK-4120: fixed automation script for resource tags 2013-08-06 12:54:27 -07:00
rayeesn 6ea000d4d9 updated interface in netscaler config test script
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-08-06 22:02:55 +05:30
Prasanna Santhanam 12be2221ed Add missing sleep
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-08-06 19:55:41 +05:30
SrikanteswaraRao Talluri 64591e65be CLOUDSTACK-4098: Fix the test which deploys a VM from password enabled template.
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-08-06 18:46:29 +05:30
Prasanna Santhanam fab45b5180 add cleanup list
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-08-06 16:57:54 +05:30
Prasanna Santhanam 2f34fef7b9 Fix egress rules offering - rvr not required
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-08-06 15:56:12 +05:30
Prasanna Santhanam cc107377a2 Egress Rules: Corrections to few areas
1. correcting the log_test_exceptions decorator so nose testrunner can
detect and document the running test
2. correct the wait for network cleanup -> network.gc
3. Remove commented skips
4. Sanitize host passwords

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit 04df5d289ca9394c7f647fb94e5289160a2d3467)
2013-08-06 13:23:36 +05:30
ashutoshkelkar b70c35a01e Adding Tests for Egress Firewall rules advance zone. Code review changes and added tests for RVR and DB table value checks
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit 13869f1a9b3c404184aaa58a378fb87bfce2fa44)
2013-08-06 13:23:36 +05:30
Prasanna Santhanam 04ba3d1354 remove hardcoded vlan for shared network test
use a vlan outside of the vlans managed by cloudstack.

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit 7eefeab957e7b2a904a2f5ec1ce2a2624587eb9e)
2013-08-05 22:05:09 +05:30
Prasanna Santhanam 5eb6842149 Log the API exception for debugging
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit f17e046319)
2013-08-05 20:16:35 +05:30
Prasanna Santhanam f71eff7bfe No need to cleanup lightweight entities like offerings
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-08-05 20:14:26 +05:30
Sheng Yang c3317ca5cf Automation: Fix test_vpc_network_staticnatrule.py 2013-08-02 14:04:07 -07:00
Prasanna Santhanam b4b280f9cf moving rvr deployment planning to maint suites
this suite performs enable/disable of pods/clusters in the zone causing
other tests to fail deploying VMs. Move it to sequential execution suite
in the maintenance tests

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-08-02 22:24:18 +05:30
Prasanna Santhanam 6f63817d07 vpn tags are not supported resource types
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-08-02 22:10:35 +05:30
Prasanna Santhanam 33f5bc4bb3 make name=value when calling publicipaddress
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit 04cc1be58a)
2013-08-02 22:05:36 +05:30
Gaurav Aradhye cb1a5a49f4 CLOUDSTACK:3798: Removed wrong assert. Login was getting successful, assert was failing. Anyway it is being checked in the assert below for sesionKey
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-08-02 16:44:42 +05:30
Gaurav Aradhye fd9cf9743b CLOUDSTACK:3594: Fixes related to affinity groups tests. Included two test suites those were missed because there was no decorator for test cases
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-08-02 16:00:15 +05:30
Prasanna Santhanam de96512877 Remove duplicate tests for stopped_vm
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-08-02 12:51:45 +05:30
Sheng Yang 2cbf97a6f1 Automation: More fix fox test_vpc_vm_life_cycle.py
You cannot reach VPC router IP because you're in one of it's networks.

As well as adding missing import for test_vpc_network_pfrules.py
2013-08-01 18:47:40 -07:00
Rayees Namathponnan 83692df9b2 Automation: fixed cleanup issue with test_vpn_user.
Reviewed-by: Sheng Yang <sheng.yang@citrix.com>
Signed-off-by: Sheng Yang <sheng.yang@citrix.com>
2013-08-01 18:08:57 -07:00
Sheng Yang a3292231dd Automation: Reconnect the ssh for test_vpc_vm_life_cycle.py
Since VM are reused for test cases, we need to reconnect the SSH client to avoid
error like:

Failed to SSH into VM, SSH session not active
2013-08-01 18:00:00 -07:00
Prasanna Santhanam ba059dd0ae CLOUDSTACK-2921: Added more logging to attach failure
Also reduced size of attached disk to 1GB

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-08-01 22:23:04 +05:30
Prasanna Santhanam 35492a3668 CLOUDSTACK-2921: Fix the change service offering test on stoppedvm
There is no need to attach a volume to the VM when doing the
changeserviceOffering test. Condensed the test to verify that the VM's
offering is changed successfully when stopped and reflects when VM is
started.

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-08-01 21:49:39 +05:30
Prasanna Santhanam 27082fa516 CLOUDSTACK-3865: Additional debug logging for size mismatch
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-08-01 21:18:56 +05:30
Prasanna Santhanam f064ad22dc CLOUDSTACK-3989: We don't hold the vm object
VirtualMachine.list( only gives the list of vms but not the vm object as
returned by VirtualMachine.create( any operations on the listed VMs then
fails. Explicit call to startVirtualMachine as in setUpClass fixes this.

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-08-01 16:42:28 +05:30
Prasanna Santhanam 582e3a37a4 Include the exception from urllib in wget test
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit eb5099a2a2)
2013-08-01 16:23:33 +05:30
Prasanna Santhanam 01449d48f9 CLOUDSTACK-3999: Fix the skipTest typo
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit cf6ce42b536a287d36a09b776ae1b756cb1c14ee)
2013-08-01 16:10:30 +05:30
Sheng Yang 5e3b751633 Automation: More fix for test_vpc_network_lbrules.py 2013-07-31 23:13:40 -07:00
Sheng Yang 22b0375df2 Automation: Removing the template's UUID
My bad...
2013-07-31 22:41:02 -07:00
Sheng Yang 4271e60b70 Automation: Fix test_vpc_network_lbrules.py 2013-07-31 22:32:40 -07:00
Sheng Yang af3704cd32 Automation: Fix test_vpc_network_pfrules.py
Need to wait VM to boot up before stop the VR.

Also test 4 is identical to test 3, fix it.
2013-07-31 19:08:17 -07:00
Sheng Yang 024dea93ae Automation: Fix test_vpc_routers.py
Account cannot be cleaned per test case since it's setup in setUpClass()
2013-07-31 15:03:37 -07:00
Sheng Yang fae57e5843 CLOUDSTACK-3864: Fix test_blocker_bugs.py for firewall
Currently we're using enable/disable static nat rather than create IP forwarding
command. The list of StaticNAT won't work.

Also change to use API to verify the rules rather than look into db directly.
2013-07-30 19:04:05 -07:00
Sheng Yang 32d076ebcc CLOUDSTACK-3826: Automation: Fix test_vpc_routers
1. You cannot check routers after your destroy them
2. You cannot use the old value in checking migration status.
3. You cannot upgrade VR to a non-system offering.
2013-07-30 16:52:29 -07:00
Prasanna Santhanam baa6d0badb Fix url for upload volume test
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-07-30 15:50:02 +05:30
Prasanna Santhanam 42dd515622 CLOUDSTACK-3930 : Add cleanup
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-07-30 13:51:22 +05:30
Prasanna Santhanam 797450a5ba CLOUDSTACK-3929: Remove references to unittest.
Skip is done using cloudstackTestCase inheriting from unittest as
self.SKipTest

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-07-30 12:40:45 +05:30
Sheng Yang 6275d697e3 Automation: add object to cleanup set immediately after creation
Otherwise it's possible that the later failure would prevent the object from
been clean up.
2013-07-29 17:15:15 -07:00
Gaurav Aradhye 67c96d419d CLOUDSTACK-3841: Fixed test case issue. The exception raised earlier was valid behaviour, added missing assertRaiss statement
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-07-29 19:57:10 +05:30
Prasanna Santhanam 83f4c3289a remove vpc offering from cleanup.
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-07-29 16:37:54 +05:30
Prasanna Santhanam 4a6fcd253c CLOUDSTACK-3901: Test for vpc offerings
- Fix the test that ensures vpc offerings cannot be created with
  firewall service
- CLOUDSTACK-3902 blocks the fix for vpc offerings created without
  source nat service. Without source NAT VPC creation should fail.

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit e4de46e4b1)
2013-07-29 16:22:03 +05:30
Prasanna Santhanam d66edb5e2b CLOUDSTACK-3900: Remove the offering that is deleted before cleanup
One of the VPC offerings (4) is deleted in the test before moving into
teardown. This offering should be removed from cleanup.

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-07-29 15:55:39 +05:30
Sowmya Krishnan 08c82883f6 CLOUDSTACK-3744 Fixed order of cleanup objects, removed offerings cleanup
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-07-29 15:35:13 +05:30
Prasanna Santhanam 53feae08de Remove duplicate while-loop retries during ssh
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-07-29 14:51:37 +05:30
Prasanna Santhanam bb971a208c CLOUDSTACK-3795: When listing the publicipaddress provide assocNtwkId
PublicIpAddresses.list takes an associatednetworkid which lists all the
public ip addresses in the deployment's physical network associated with
the vnet.

Various tests failed because of `networkid` used in place of
`associatednetworkid`

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-07-29 14:39:06 +05:30
Prasanna Santhanam f83187585e Removing invalid test for accounts
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-07-28 17:00:30 +05:30
Prasanna Santhanam a019f34572 Fix domain deletion in test_project_resources.py
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-07-28 11:24:25 +05:30
Sheng Yang 4a7b503746 Automation: Fix endless silly test cases 2013-07-26 00:19:35 -07:00
Sheng Yang b539366229 Automation: Fix test_redundant_router.py
1. Many state check need to wait for while for status to update
2. BACKUP router would still have eth2 and IP, but it's not enabled. Fix the
case.
2013-07-25 20:46:26 -07:00
Prasanna Santhanam 2b0a972676 Fix bunch of affinity group tests
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-07-25 22:51:03 +05:30
Prasanna Santhanam 1012d87860 CLOUDSTACK-3796: Fix the missing attribute for zoneid
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit 3277ceaf0b619171a19893f525aec2685ae6367c)
2013-07-25 15:51:45 +05:30
Prasanna Santhanam 1067888f6d CLOUDSTACK-3617: Skip the test if config is not suitable
Provided a utility method to ensure the config is suitable for running
the test. If vm.instancename.flag is unset then skip the tests.

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-07-25 15:34:15 +05:30
Prasanna Santhanam c6d9919c88 CLOUDSTACK-3021: Do not delete the domain
We delete the accounts within the domain thereby cleaning up resources.
Also corrected the typo in the test description. ForceDelete test was
called without force option and vice versa

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-07-25 14:15:03 +05:30
Sheng Yang 4759492979 Automation: Fix test_vpc_network_staticnatrule.py
And remove NAT rule part from static nat test case. Remove static nat part from
port forwarding test case.
2013-07-24 18:49:46 -07:00
Sheng Yang 60bc2cc28a Automation: Fix test_vpc_vms_deployment resource release
The account may be failed to be deleted in the test case, so we still need to
clean it up after.
2013-07-24 16:53:55 -07:00
Sheng Yang 1fc6335401 Automation: Redundant routers don't have the same link local IP
It's invalid test case.
2013-07-24 16:09:10 -07:00
Sanjay Tripathi 5009d3b82a CLOUDSTACK-3696: Test case test_project_limits.TestResourceLimitsProject.test_06_volumes_per_project failed due to volume usage exceeded for project.
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-07-24 22:45:57 +05:30
Sowmya Krishnan a7df12edbf Add wait while Netscaler recognizes service to be up
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-07-24 22:40:44 +05:30
Prasanna Santhanam 1e64df854c Fixing minor typos
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit 64c120c0db)
2013-07-24 18:04:56 +05:30
Prasanna Santhanam 26044101b6 CLOUDSTACK-3698: Ensure VM is accessible before stopping VR
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit 368f32fa25)
2013-07-24 18:04:49 +05:30
Prasanna Santhanam 8e30ee3f1a Revert "CLOUDSTACK-3696: Test case test_project_limits.TestResourceLimitsProject.test_06_volumes_per_project failed due to volume usage exceeded for project."
Despite the patch the test fails. Removing the patch applied for testing
locally.

This reverts commit 605a31eb70.
2013-07-24 16:52:59 +05:30
Prasanna Santhanam 74ac8575b0 CLOUDSTACK-3724: optimizing cleanup
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-07-24 16:52:45 +05:30
Sanjay Tripathi 605a31eb70 CLOUDSTACK-3696: Test case test_project_limits.TestResourceLimitsProject.test_06_volumes_per_project failed due to volume usage exceeded for project.
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-07-24 16:52:45 +05:30
Likitha Shetty 127b0d7cd9 CLOUDSTACK-3743. test_tags.py:TestResourceTags not tearing down the account. 2013-07-24 11:16:00 +05:30
Sheng Yang 839ccf389f Automation: Add sleep for RvR state checking
Because the mgmt server would update RvR state only every 30 seconds by default.
2013-07-23 22:35:10 -07:00
Sheng Yang e473e9aa66 Automation: Fix clean up in tearDown
We shouldn't clean up class-scope resources(_cleanup). We should create local
ones(cleanup) then clean it.

So:
cls._cleanup would be used for class-scope resources.
self.cleanup would be used for each unit.
2013-07-23 21:19:32 -07:00
Sowmya Krishnan 7551d8b1a9 CLOUDSTACK-3693 Fix more account objects 2013-07-23 13:58:02 -07:00
Sowmya Krishnan cfffe63afb CLOUDSTACK-3697 LB rule clean up already done in cleanup project 2013-07-23 13:56:39 -07:00
Sheng Yang 9c0620f71e Automation: Fix different names for cleanup 2013-07-23 13:14:34 -07:00
Sheng Yang a7359708a3 Automation: Fix typo in test_redundant_network_rules
It result in failed to setUp and clean up.
2013-07-23 12:23:24 -07:00
Sheng Yang 49b44e4cd7 Automation: Fix enormous missing tearDown() for test cases
This result in countless test case failure because many test case units didn't
clean up after it.

The regression test result should be improved quite a bit after this change.
2013-07-23 12:10:48 -07:00
Sowmya Krishnan 1cd435e25a Fixed account objects CLOUDSTACK-3726
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-07-23 20:51:03 +05:30
Sanjay Tripathi a06b3f40eb CLOUDSTACK-3724: Test case "test_vpc_vms_deployment.py" failed to find network offering.
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-07-23 20:32:48 +05:30
Sanjay Tripathi 6b2c9bf3ae CLOUDSTACK-3689: Test case test_accounts.TesttemplateHierarchy.test_01_template_hierarchy failed during ListTemplate call.
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-07-23 18:01:42 +05:30
Prasanna Santhanam c44fa2cc20 CLOUDSTACK-3678: Multiple fixes to shared network tests
- No need to cleanup offerings as they are lightweight entities
- Cleanup order changed to clean accounts, networks and then the domains

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-07-23 18:00:23 +05:30
Prasanna Santhanam f05118b5b0 CLOUDSTACK-3728: same issue as CLOUDSTACK-3719
Make the size explicit parameter to random_gen() for snapshot data

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-07-23 18:00:23 +05:30
Sheng Yang ec3466b276 CLOUDSTACK-3643: Automation: Fix VPC test cases
Also add a timeout for network connection testings.

Ideally this timeout should be around 30s or even less, but keep it at 60s for
now for safe.
2013-07-22 18:45:09 -07:00
Girish Shilamkar b44c620850 CLOUDSTACK-3610: Fix regression test "test_accounts.TestUserLogin"
Now password is sent as clear text as per CLOUDSTACK-1734
So changed marvin to handle this. Plus domainid was not
passed in the testcase and marvin used "domainid" instead of
"domainId" as a parameter. Fixed these two errors.

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-07-22 22:53:09 +05:30
Sanjay Tripathi 7d6c091c05 CLOUDSTACK-3695: test_add_user_to_project failed with missing attribute "email".
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit 983b7c62a464af94aabf0686671c986025a19788)
2013-07-22 22:53:09 +05:30
Prasanna Santhanam d0695c1ffc CLOUDSTACK-3672: Multiple minor fixes to tags tests
- SourceHost is an id
- Invalid format in debug() message corrected

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-07-22 22:53:09 +05:30
Prasanna Santhanam 3ac0e95ffb Minor fixes to the test_accounts
when an account is deleted listAccounts raises an exception.

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-07-22 22:53:08 +05:30
Sheng Yang d672272a77 CLOUDSTACK-3643: Automation: Fix test_vpc_network.py
1. Port 80 won't help on ICMP
2. RvR doesn't support VPC now.
2013-07-21 22:21:17 -07:00
Sheng Yang 6140be1988 CLOUDSTACK-3643: Automation: Fix wrong network acl rule for ping 2013-07-21 22:21:17 -07:00
sailajam d79066dfb1 CLOUDSTACK-3636: Fix invalid condition to check for empty response for private service offerings 2013-07-22 10:38:14 +05:30
Sanjay Tripathi 5eaec0a5e0 CLOUDSTACK-3620: [Automation] API removevpnuser failed, in test case test_project_usage.TestVpnUsage.test_01_vpn_usage.
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit ecfeaa1037)
2013-07-20 12:21:07 +05:30
Sheng Yang 182de56743 CLOUDSTACK-3643: Fix wrong protocol type and test case sequence 2013-07-19 19:26:38 -07:00
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