181 Commits

Author SHA1 Message Date
Prasanna Santhanam
e78f93224f Fix url for upload volume test
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit d0a851ec5de261c83babd94a07dd1091f804110d)
2013-07-30 15:49:35 +05:30
Prasanna Santhanam
8ca5097752 CLOUDSTACK-3930 : Add cleanup
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit 308fa41416dc37b4651087c8e30da31a0e9a63d3)
2013-07-30 13:51:54 +05:30
Prasanna Santhanam
1efa542433 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>
(cherry picked from commit 797450a5ba085f36bfd0bee620e6a64c6d589fd1)
2013-07-30 12:41:18 +05:30
Sheng Yang
16c3d21eec 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:34 -07:00
Gaurav Aradhye
3a3145507d 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>
(cherry picked from commit 67c96d419d08f5a2702eee0aa64958e486f74703)
2013-07-29 19:57:33 +05:30
Prasanna Santhanam
dd1717883e remove vpc offering from cleanup.
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit 83f4c3289aa380e792353c87128f07ae1463e7db)
2013-07-29 16:38:15 +05:30
Prasanna Santhanam
e4de46e4b1 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>
2013-07-29 16:21:07 +05:30
Prasanna Santhanam
098c2db4b7 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>
(cherry picked from commit d66edb5e2bc7d0396709ffcc35dfc61d563f307a)
2013-07-29 15:56:26 +05:30
Sowmya Krishnan
eae874918d CLOUDSTACK-3744 Fixed order of cleanup objects, removed offerings cleanup
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit 08c82883f6bcc18804c88633c9c85764c5d22417)
2013-07-29 15:35:29 +05:30
Prasanna Santhanam
ade13bb773 Remove duplicate while-loop retries during ssh
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit 53feae08de5f4d8072538e9060e5a6e074ebcdde)
2013-07-29 14:52:07 +05:30
Prasanna Santhanam
9c36ad722b 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>
(cherry picked from commit b88fe8233af699786de6d08a6bc981546538898d)
2013-07-29 14:38:37 +05:30
Prasanna Santhanam
76c90efa40 Removing invalid test for accounts
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit f83187585e48b530ef7247dfd836c866cb3e1c32)
2013-07-28 17:00:48 +05:30
Prasanna Santhanam
3fec71e748 Fix domain deletion in test_project_resources.py
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit a019f34572ef591b238adb256a0036565bb21579)
2013-07-28 11:56:50 +05:30
Sheng Yang
c576917107 Automation: Fix endless silly test cases 2013-07-26 00:20:01 -07:00
Sheng Yang
5077ed7e8b 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:47:16 -07:00
Prasanna Santhanam
23e7753741 Fix bunch of affinity group tests
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit 2b0a97267617608e6695973bc768eec499b69eca)
2013-07-25 22:51:35 +05:30
Prasanna Santhanam
1d5feb158b CLOUDSTACK-3796: Fix the missing attribute for zoneid
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-07-25 15:54:26 +05:30
Prasanna Santhanam
9e8663c7ca 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>
(cherry picked from commit 8b8cee52f09f9f2c1b612ece16fc7ffc4b2c9176)
2013-07-25 15:34:04 +05:30
Prasanna Santhanam
e432ce6f77 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>
(cherry picked from commit a3c21b3682db51986e7cc54d8f25b1dbf4ae9eaa)
2013-07-25 14:14:49 +05:30
Sheng Yang
29ee68821e 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:50:20 -07:00
Sheng Yang
2b1266e276 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:55:03 -07:00
Sheng Yang
7150afab20 Automation: Redundant routers don't have the same link local IP
It's invalid test case.
2013-07-24 16:09:34 -07:00
Sanjay Tripathi
cd51303f20 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>
(cherry picked from commit 5009d3b82af4fa385490517185d071e1326cffaa)
2013-07-24 23:05:17 +05:30
Sowmya Krishnan
d0971ce806 Add wait while Netscaler recognizes service to be up
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit a7df12edbf83106d26198db20e96ee991912c097)
2013-07-24 22:43:13 +05:30
Prasanna Santhanam
64c120c0db Fixing minor typos
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-07-24 18:04:29 +05:30
Prasanna Santhanam
368f32fa25 CLOUDSTACK-3698: Ensure VM is accessible before stopping VR
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-07-24 18:04:29 +05:30
Prasanna Santhanam
2b8f1bde8f CLOUDSTACK-3724: optimizing cleanup
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit 8b7d00ee4de53d15a1d495c3c1fdd166b1651460)
2013-07-24 16:53:32 +05:30
Likitha Shetty
2424dcf62e CLOUDSTACK-3743. test_tags.py:TestResourceTags not tearing down the account. 2013-07-24 11:18:43 +05:30
Sheng Yang
35f4aa30c8 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:45:58 -07:00
Sheng Yang
f3cf319c37 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:20:02 -07:00
Sowmya Krishnan
1898fa5046 CLOUDSTACK-3693 Fix more account objects 2013-07-23 13:59:20 -07:00
Sowmya Krishnan
c6ea21866e CLOUDSTACK-3697 LB rule clean up already done in cleanup project 2013-07-23 13:59:15 -07:00
Sheng Yang
7faa71dc68 Automation: Fix different names for cleanup 2013-07-23 13:15:07 -07:00
Sheng Yang
c1e6968464 Automation: Fix typo in test_redundant_network_rules
It result in failed to setUp and clean up.
2013-07-23 12:22:14 -07:00
Sheng Yang
5b238fa4af 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:37 -07:00
Sanjay Tripathi
5c45645932 CLOUDSTACK-3724: Test case "test_vpc_vms_deployment.py" failed to find network offering.
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit a06b3f40eba6ebc3af5d7c366ec757703a085f67)
2013-07-23 21:40:52 +05:30
Sowmya Krishnan
d2ce17ea73 Fixed account objects CLOUDSTACK-3726
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit 1cd435e25a36e8737d37edce1bb5da70d9b670c9)
2013-07-23 20:51:16 +05:30
Sanjay Tripathi
3e6e66fee1 CLOUDSTACK-3689: Test case test_accounts.TesttemplateHierarchy.test_01_template_hierarchy failed during ListTemplate call.
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit 6b2c9bf3ae1653693381431ed2554e7b7e4dfae4)
2013-07-23 18:02:29 +05:30
Prasanna Santhanam
63cf7aa8ce 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>
(cherry picked from commit c44fa2cc20ca137dd5524c619c32fd49d3382c86)
2013-07-23 18:02:29 +05:30
Prasanna Santhanam
821bbe0610 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>
(cherry picked from commit 874d59847aa6bfd12e6967891a21f1746987b566)
2013-07-23 18:02:29 +05:30
Sheng Yang
9f15779f10 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:39 -07:00
Girish Shilamkar
18fbbcfc5a 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>
(cherry picked from commit dba09791fc99c342974d8ca1c69609c04f1a5512)
2013-07-22 19:36:28 +05:30
Sanjay Tripathi
95e1f6324f CLOUDSTACK-3695: test_add_user_to_project failed with missing attribute "email".
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-07-22 19:36:27 +05:30
Prasanna Santhanam
323db5c517 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>
(cherry picked from commit ce4dd723ab486894523f08f48b6054f614be4d85)
2013-07-22 19:36:27 +05:30
Prasanna Santhanam
5fa77f3099 Minor fixes to the test_accounts
when an account is deleted listAccounts raises an exception.

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit aa9bc4413efad4eccdf8e336f66ea8c8168fbbda)
2013-07-22 19:36:27 +05:30
Sheng Yang
a102853fb9 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:24:10 -07:00
Sheng Yang
982c0b5dfb CLOUDSTACK-3643: Automation: Fix wrong network acl rule for ping 2013-07-21 22:24:03 -07:00
Sanjay Tripathi
ecfeaa1037 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>
2013-07-20 12:20:15 +05:30
Sheng Yang
88c84d9109 CLOUDSTACK-3643: Fix wrong protocol type and test case sequence 2013-07-19 19:27:14 -07:00
Prasanna Santhanam
2d9566eb8a 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>
(cherry picked from commit 2f0a0a61363074ffa959d7ff9596a1b07b2de40a)
2013-07-19 17:44:53 +05:30