Commit Graph

41 Commits

Author SHA1 Message Date
John Bampton 7d23a0a759
Fix spelling (#6272) 2022-07-05 09:08:53 +02:00
dahn 571a361926
tests: component test ports/fixes in python3 (#5082)
* cleanup plan

* more robust cleanup within member method

* ss_domain_limits fixed

* egress 'icmp' instead of 'all' and cleanup

* configdrive syntax, fixed to be up to par with py2

* cleanup fixed the lb secondary ip tests?

* deal with different base64 encoding in py3 for userdata

* cleanup of multiple_ips_per_nic

* cleanup and reformat of test_volumes

* cleanup and fixes for test_ps_domain_limits.py

* cleanup and fix of test_ps_limits.py

* fix occasional match of float against int

* cleanup and fix test_ps_resize_volume.py

* cleanup and fix test_snapshots

* cleanup ss_max_limits and fix for float vs int problem in API

* mere cleanup of test_volume_destroy_recover

* add missing command creation

* cleanup of test_vpc_on_host_maintenance

* cleanup test_vpc_network

* cleanup, comments and logging in test_vpc_network_lbrules

* cleanup of test_vpc_network_pfrules

* cleanup and format code for test_vpc_network_staticnatrule

* f string instead of conversion specifiers

* check http and ssh fix and cleanup (for vpc pfrules tests)

* generalise create network method

* make ip optional in creating webserver

* remove unused code and add rules to enable ssh

* more cleanup

* remove unused code and cleanup

* small cleanup, mostly precarous run environment required

* cleanup and removed unused code

* advancedsg only, cleanup, pulled in services

* reformat/cleanup

* log result of error after verify rule

* add nw_off_no_services

* tags=["TODO"] for escalations_networks

* tags=["TODO"] for organization_states

* tags=["TODO"] for browse_templates

* tags=["TODO"] for configdrive

* tags=["TODO"] for vpc_vms_deployment

* add remove network cleanup and fixes

* move tests that fail on all platforms out of the way

Co-authored-by: Daan Hoogland <dahn@onecht.net>
2021-09-02 16:03:49 +05:30
Suresh Kumar Anaparti 958182481e cloudstack: make code more inclusive
Inclusivity changes for CloudStack

- Change default git branch name from 'master' to 'main' (post renaming/changing default git branch to 'main' in git repo)
- Rename some offensive words/terms as appropriate for inclusiveness.

This PR updates the default git branch to 'main', as part of #4887.

Signed-off-by: Suresh Kumar Anaparti <suresh.anaparti@shapeblue.com>
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2021-06-08 15:47:20 +05:30
dahn a1f825e7c7
python3: Migrate Marvin and smoketests to python3 (#4727)
This PR prepares marvin and tests for python3. it was part of #4479, until nose2 was decided to be abandoned from that PR.

Re-PR of #4543 and #3730 to enable cooperation

Co-authored-by: Daan Hoogland <dahn@onecht.net>
Co-authored-by: Gabriel Beims Bräscher <gabriel@apache.org>
Co-authored-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2021-05-04 23:19:37 +05:30
Rohit Yadav 97df52956c
master: travis and trillian smoketests fixes and stabilisation (#3476)
Fix failing test, add more component tests, optimise and refactor test jobs.

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2019-07-12 17:27:49 +05:30
Boris Stoyanov - a.k.a Bobby 67f509dc57 CLOUDSTACK-10163: Component tests sanity (#2344)
Fixing some component tests and adding them in travis.

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2018-01-01 16:44:18 +05:30
Murali Reddy a43abbe47b fix egress rule incorrect behavior
CLOUDSTACK-9480: Egress Firewall: Incorrect use of Allow/Deny for ICMP

     fix ensures, ICMP, TCP, UDP are handled similalry w.r.t egress rule action

CLOUDSTACK-9495: Egress rules functionalty broken when protocol=all specified

     when protocol=all specified, CIDR was ignored. Fix ensures if CIDR is specified
     its always used in configuring iptable rules

 2 new test cased to test /32 CIDR
2016-09-20 16:56:06 +05:30
Gaurav Aradhye 8bf59b5393 CLOUDSTACK-8521: Improving logging in test case - test_egress_fw_rules.py
Signed-off-by: Gaurav Aradhye <gaurav.aradhye@clogeny.com>
This closes #345
2015-06-02 13:31:29 +05:30
sanjeev 67ad418299 CLOUDSTACK-8504: Remove creating network with RVR by default
This closes #283
2015-05-22 12:30:16 +05:30
Gaurav Aradhye dc4578dd44 CLOUDSTACK-8254: Choosing high end service offering for HyperV in case it tries to SSH to VM because Hyperv needs more resources because it is GUI based VM
Signed-off-by: SrikanteswaraRao Talluri <talluri@apache.org>
2015-02-13 12:30:47 +05:30
Gaurav Aradhye fe0a55fb57 CLOUDSTACK-8003: test_egress_fw_rules.py - Remove test case dependency on each other and improve cleanup code
Signed-off-by: SrikanteswaraRao Talluri <talluri@apache.org>
2014-12-05 11:18:19 +05:30
Gaurav Aradhye 6a2c18a989 CLOUDSTACK-7993: Code enhancement - test_egress_fw_rules.py - Removing unncessary waits
Signed-off-by: SrikanteswaraRao Talluri <talluri@apache.org>
2014-12-02 15:36:13 +05:30
Gaurav Aradhye b277b1abd8 CLOUDSTACK-7728: Test script to identify product issue
Signed-off-by: SrikanteswaraRao Talluri <talluri@apache.org>
2014-11-04 11:22:07 +05:30
Girish Shilamkar 598e9b1cbc CLOUDSTACK-7413: Adding required_hardware tag to regression test cases so that the test cases are picked up by simulator accordingly 2014-08-25 09:14:22 +05:30
Chandan Purushothama e8486dfcaa 18 Test cases in the test_egress_fw_rules.py script fails if the guest network is any network other than 10.1.1.0/24 network. The script assumes the guest network to be 10.1.1.0/24 network. Added code to the test suite so that the test cases will work for isolated guest network with any network cidr.
Signed-off-by: Nitin Mehta <nitin.mehta@citrix.com>
2014-07-29 10:50:32 -07:00
Gaurav Aradhye b105a33e0c CLOUDSTACK-6782: Egress FW rules test cases - Format unicode to string before string matching 2014-05-29 11:10:20 +05:30
SrikanteswaraRao Talluri 0e223d6787 Merge branch 'master' into marvin
Conflicts:
	test/integration/component/test_base_image_updation.py
	test/integration/component/test_cpu_domain_limits.py
	test/integration/component/test_cpu_limits.py
	test/integration/component/test_cpu_project_limits.py
	test/integration/component/test_ip_reservation.py
	test/integration/component/test_memory_limits.py
	test/integration/component/test_mm_domain_limits.py
	test/integration/component/test_mm_project_limits.py
	test/integration/component/test_persistent_networks.py
	test/integration/component/test_portable_ip.py
	test/integration/component/test_routers.py
	test/integration/smoke/test_deploy_vm.py
	test/integration/smoke/test_deploy_vm_with_userdata.py
	test/integration/smoke/test_internal_lb.py
	test/integration/smoke/test_vm_life_cycle.py
	test/integration/smoke/test_volumes.py
	tools/marvin/marvin/codes.py
	tools/marvin/marvin/configGenerator.py
	tools/marvin/marvin/lib/base.py
	tools/marvin/marvin/lib/common.py
	tools/marvin/marvin/lib/utils.py
2014-04-08 17:53:37 +05:30
SrikanteswaraRao Talluri 91a5e3bb66 CLOUDSTACK-6125: adding 'selfservice','provisioning' tags to segregate the tests
that can be run on simulator only and that needs hardware.
2014-03-28 15:34:57 +05:30
Girish Shilamkar c1b4ac5004 Fix problem string comparison with unicode 2014-03-27 19:00:27 -04:00
Girish Shilamkar 1f2d86c9ba CLOUDSTACK-6279: Fix egress rules tests failed due to comparison between string and unicode 2014-03-24 20:02:23 -07:00
Girish Shilamkar d70ef2a279 CLOUDSTACK-5925: Changes to regression tests as per new get_zone, get_pod etc definitions 2014-02-26 17:13:21 +05:30
Santhosh Edukulla bf72441d13 CLOUDSTACK-6006: Remove integration folder and lib 2014-02-04 12:01:58 +05:30
Gaurav Aradhye 1760de47e5 CLOUDSTACK-5748: Refactored code related to executing script 2014-01-13 13:00:50 +05:30
Ashutosh K e58c3c809d CLOUDSTACK-5619: Egress Firewall rules - Increased timeout for router to come up 2014-01-08 19:22:07 +05:30
Gaurav Aradhye 17b696e053 CLOUDSTACK-5185: Fixed test script related to cleanup in test_egress_fw_rules.py 2014-01-03 11:17:50 +05:30
Gaurav Aradhye 6ad27d903b CLOUDSTACK-5640: Correcting imports in test cases 2013-12-29 19:38:57 +05:30
Gaurav Aradhye a160b46cd4 CLOUDSTACK-4780: Changes related to checking snapshot path
on NFS server, also made marvin import paths specific
2013-12-23 17:58:51 +05:30
Girish Shilamkar 75f4f55c35 CLOUDSTACK-5506: Fixed egress_fw_rules.py, one of hunks was missing. 2013-12-16 14:00:38 +05:30
Girish Shilamkar 71aa2c0881 CLOUDSTACK-5364: Fail the test incase cleanup is not successful 2013-12-09 19:16:30 +05:30
Ashutosh K b2c8955222 CLOUDSTACK-5364: Resolving network cleanup issue in egress fw rules test cases 2013-12-04 18:41:10 +05:30
Gaurav Aradhye 438cf4ea63 CLOUDSTACK-5186: Increasing the waiting time for router to
come up
2013-11-16 17:15:14 +05:30
Ashutosh K 02c15528c8 CLOUDSTACK-5185: test_egress_fw_rules - failed the test case
if vm deployment failed instead of going on executing rest
2013-11-16 14:57:59 +05:30
Santhosh Edukulla c7fe212c3b CLOUDSTACK-5099: Utils.py-has-wrong-reference, cleaned it. As well added Uniform naming convention
Signed-off-by: SrikanteswaraRao Talluri <talluri@apache.org>
2013-11-08 16:34:46 +05:30
SrikanteswaraRao Talluri 65b12f45b9 Revert "CLOUSTACK-5099: Utils.py-has-wrong-reference, cleaned it. As well added Uniform naming convention"
This reverts commit ec00a6fb74.
2013-11-08 16:05:30 +05:30
Santhosh Edukulla ec00a6fb74 CLOUSTACK-5099: Utils.py-has-wrong-reference, cleaned it. As well added Uniform naming convention
Signed-off-by: SrikanteswaraRao Talluri <talluri@apache.org>
2013-11-08 16:02:10 +05:30
Gaurav Aradhye a65f1ebefc CLOUDSTACK-4637: Fix failures in test_egress_fw_rules.py
Removed log_test_exceptions which did not add any value.
Skipped few tests which are incomplete. Added timeout logic
and to wait for router to boot.
2013-10-17 19:20:30 -07:00
Girish Shilamkar d4dc4f7e70 CLOUDSTACK-4637: Add 30sec sleep before router is ssh'd
Egress rules testcases access vm via router. Sleep before
accessing router else the expect fails since router is not
accessible. Also use router.hostid instead of vm.hostid
to identify the host.

Signed-off-by: venkataswamybabu budumuru <venkataswamybabu.budumuru@citrix.com>
(cherry picked from commit 7d06e77ed9)
2013-09-18 21:41:46 +05:30
Girish Shilamkar 1a46bbd893 Test assumes storagetype to be local therefore test_egress_fw_rules fail.
Removed storagetype definition.

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-08-07 20:30:52 +05:30
Prasanna Santhanam c5054d8957 Fix egress rules offering - rvr not required
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit b1e6188308d43183219e9844fa7465a66064c586)
2013-08-06 15:55:46 +05:30
Prasanna Santhanam 8d0f08a4b8 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>
2013-08-06 13:22:59 +05:30
ashutoshkelkar c1f8dc982d 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>
2013-08-06 13:22:59 +05:30