migrating tags to attr decorators for nose attrib classification

This commit is contained in:
Prasanna Santhanam 2012-08-18 13:37:12 +05:30
parent bce2657c06
commit c14928757a
23 changed files with 204 additions and 197 deletions

View File

@ -146,6 +146,8 @@ class TestHostHighAvailability(cloudstackTestCase):
raise Exception("Warning: Exception during cleanup : %s" % e)
return
@attr(tags = ["advanced", "advancedns", "sg", "basic", "eip", "simulator"])
def test_01_vm_deployment_with_compute_offering_with_ha_enabled(self):
""" Test VM deployments (Create HA enabled Compute Service Offering and VM) """
@ -209,6 +211,7 @@ class TestHostHighAvailability(cloudstackTestCase):
"VM not created with HA enable tag"
)
@attr(tags = ["advanced", "advancedns", "sg", "basic", "eip", "simulator"])
def test_02_no_vm_creation_on_host_with_haenabled(self):
""" Verify you can not create new VMs on hosts with an ha.tag """
@ -332,6 +335,7 @@ class TestHostHighAvailability(cloudstackTestCase):
"VM migrated to HA enabled host."
)
@attr(tags = ["advanced", "advancedns", "sg", "basic", "eip", "simulator"])
def test_03_cant_migrate_vm_to_host_with_ha_positive(self):
""" Verify you can not migrate VMs to hosts with an ha.tag (positive) """
@ -436,6 +440,7 @@ class TestHostHighAvailability(cloudstackTestCase):
"The VM is not migrated to targeted suitable host."
)
@attr(tags = ["advanced", "advancedns", "sg", "basic", "eip", "simulator"])
def test_04_cant_migrate_vm_to_host_with_ha_negative(self):
""" Verify you can not migrate VMs to hosts with an ha.tag (negative) """
@ -539,6 +544,7 @@ class TestHostHighAvailability(cloudstackTestCase):
"The detination host id of migrated VM is not matching."
)
@attr(tags = ["advanced", "advancedns", "sg", "basic", "eip", "simulator"])
def test_05_no_vm_with_ha_gets_migrated_to_ha_host_in_live_migration(self):
""" Verify that none of the VMs with HA enabled migrate to an ha tagged host during live migration """
@ -668,6 +674,7 @@ class TestHostHighAvailability(cloudstackTestCase):
cmd.id = vm_with_ha_enabled.hostid
self.apiclient.cancelHostMaintenance(cmd)
@attr(tags = ["advanced", "advancedns", "sg", "basic", "eip", "simulator"])
def test_06_no_vm_without_ha_gets_migrated_to_ha_host_in_live_migration(self):
""" Verify that none of the VMs without HA enabled migrate to an ha tagged host during live migration """

View File

@ -188,10 +188,10 @@ class TestAddNetScaler(cloudstackTestCase):
raise Exception("Warning: Exception during cleanup : %s" % e)
return
@attr(tags = ["advancedns"])
def test_add_netscaler_device(self):
"""Test add netscaler device
"""
tags = ["advancedns"]
# Validate the following
# 1. Add Netscaler device into a Zone by providing valid log in
# credentials , public , private interface and enabling Load
@ -314,10 +314,10 @@ class TestInvalidParametersNetscaler(cloudstackTestCase):
raise Exception("Warning: Exception during cleanup : %s" % e)
return
@attr(tags = ["advancedns"])
def test_invalid_cred(self):
"""Test add netscaler device with invalid credential
"""
tags = ["advancedns"]
# Validate the following
# 1. Add Netscaler device into a Zone by providing invalid log in
@ -383,10 +383,10 @@ class TestInvalidParametersNetscaler(cloudstackTestCase):
)
return
@attr(tags = ["advancedns"])
def test_invalid_public_interface(self):
"""Test add netscaler device with invalid public interface
"""
tags = ["advancedns"]
# Validate the following
# 1. Add Netscaler device into a Zone by providing valid log in
@ -450,10 +450,10 @@ class TestInvalidParametersNetscaler(cloudstackTestCase):
)
return
@attr(tags = ["advancedns"])
def test_invalid_private_interface(self):
"""Test add netscaler device with invalid private interface
"""
tags = ["advancedns"]
# Validate the following
# 1. Add Netscaler device into a Zone by providing valid log in
@ -635,10 +635,10 @@ class TestNetScalerDedicated(cloudstackTestCase):
raise Exception("Warning: Exception during cleanup : %s" % e)
return
@attr(tags = ["advancedns"])
def test_netscaler_dedicated_mode(self):
"""Test netscaler device in dedicated mode
"""
tags = ["advancedns"]
# Validate the following
# 1. Add Netscaler device in dedicated mode.
@ -854,10 +854,10 @@ class TestNetScalerShared(cloudstackTestCase):
raise Exception("Warning: Exception during cleanup : %s" % e)
return
@attr(tags = ["advancedns"])
def test_netscaler_shared_mode(self):
"""Test netscaler device in shared mode
"""
tags = ["advancedns"]
# Validate the following
# 1. Add Netscaler device in shared mode.
@ -1103,10 +1103,10 @@ class TestNetScalerCustomCapacity(cloudstackTestCase):
raise Exception("Warning: Exception during cleanup : %s" % e)
return
@attr(tags = ["advancedns"])
def test_netscaler_custom_capacity(self):
"""Test netscaler device with custom capacity
"""
tags = ["advancedns"]
# Validate the following
# 1. Add Netscaler device in shared mode with capacity 3
@ -1376,10 +1376,10 @@ class TestNetScalerNoCapacity(cloudstackTestCase):
raise Exception("Warning: Exception during cleanup : %s" % e)
return
@attr(tags = ["advancedns"])
def test_netscaler_no_capacity(self):
"""Test netscaler device with no capacity remaining
"""
tags = ["advancedns"]
# Validate the following
# 1. Add Netscaler device in shared mode with capacity 2
@ -1644,10 +1644,10 @@ class TestGuestNetworkWithNetScaler(cloudstackTestCase):
raise Exception("Warning: Exception during cleanup : %s" % e)
return
@attr(tags = ["advancedns"])
def test_01_guest_network(self):
"""Implementing Guest Network when first VM gets deployed using the network having Netscaler as LB
"""
tags = ["advancedns"]
# Validate the following
# 1. Configure Netscaler for load balancing.
@ -1764,10 +1764,10 @@ class TestGuestNetworkWithNetScaler(cloudstackTestCase):
(self.services["netscaler"]["ipaddress"], e))
return
@attr(tags = ["advancedns"])
def test_02_guest_network_multiple(self):
"""Implementing Guest Network when multiple VMs gets deployed using the network having Netscaler as LB
"""
tags = ["advancedns"]
# Validate the following
# 1. Configure Netscaler for load balancing.
@ -1930,10 +1930,10 @@ class TestGuestNetworkWithNetScaler(cloudstackTestCase):
(self.services["netscaler"]["ipaddress"], e))
return
@attr(tags = ["advancedns"])
def test_03_delete_account(self):
"""Delete an account that has LB rules
"""
tags = ["advancedns"]
# Validate the following
# 1. Acquire an ipaddress. Create multiple Lb rules on this ip address
@ -2210,10 +2210,10 @@ class TestGuestNetworkShutDown(cloudstackTestCase):
raise Exception("Warning: Exception during cleanup : %s" % e)
return
@attr(tags = ["advancedns"])
def test_01_stop_all_vms(self):
"""Test Stopping all the Vms for any account that has LB rules.
"""
tags = ["advancedns"]
# Validate the following
# 1. Acquire IP address and create a load balancer rule
@ -2291,10 +2291,10 @@ class TestGuestNetworkShutDown(cloudstackTestCase):
(self.services["netscaler"]["ipaddress"], e))
return
@attr(tags = ["advancedns"])
def test_02_start_one_vm(self):
"""Test LB rules on Netscaler after starting one Vm in account
"""
tags = ["advancedns"]
# Validate the following
# 1. Acquire IP address and create a load balancer rule
@ -2376,10 +2376,10 @@ class TestGuestNetworkShutDown(cloudstackTestCase):
(self.services["netscaler"]["ipaddress"], e))
return
@attr(tags = ["advancedns"])
def test_03_network_restart_without_cleanup(self):
"""Test LB rules on Netscaler after network restart without cleanup
"""
tags = ["advancedns"]
# Validate the following
# 1. Acquire IP address and create a load balancer rule
@ -2438,10 +2438,10 @@ class TestGuestNetworkShutDown(cloudstackTestCase):
(self.services["netscaler"]["ipaddress"], e))
return
@attr(tags = ["advancedns"])
def test_04_network_restart_with_cleanup(self):
"""Test LB rules on Netscaler after network restart with cleanup
"""
tags = ["advancedns"]
# Validate the following
# 1. Acquire IP address and create a load balancer rule
@ -2614,10 +2614,10 @@ class TestServiceProvider(cloudstackTestCase):
raise Exception("Warning: Exception during cleanup : %s" % e)
return
@attr(tags = ["advancedns"])
def test_01_create_nw_off_disabled(self):
"""Test create network with network offering disabled
"""
tags = ["advancedns"]
# Validate the following
# 1. Configure Netscaler for load balancing.
@ -2660,10 +2660,10 @@ class TestServiceProvider(cloudstackTestCase):
)
return
@attr(tags = ["advancedns"])
def test_02_create_nw_sp_disabled(self):
"""Test create network when service provider is disabled
"""
tags = ["advancedns"]
# Validate the following
# 1. Configure Netscaler for load balancing.
@ -2693,10 +2693,10 @@ class TestServiceProvider(cloudstackTestCase):
)
return
@attr(tags = ["advancedns"])
def test_03_create_lb_sp_disabled(self):
"""Test create LB rules when service provider is disabled
"""
tags = ["advancedns"]
# Validate the following
# 1. Configure Netscaler for load balancing.
@ -2930,10 +2930,10 @@ class TestDeleteNetscaler(cloudstackTestCase):
raise Exception("Warning: Exception during cleanup : %s" % e)
return
@attr(tags = ["advancedns"])
def test_delete_netscaler_with_lb(self):
"""Test delete Netscaler when active LB rules are present
"""
tags = ["advancedns"]
# Validate the following
# 1. Configure Netscaler for load balancing.

View File

@ -221,11 +221,11 @@ class TestLbSourceNat(cloudstackTestCase):
raise Exception("Warning: Exception during cleanup : %s" % e)
return
@attr(tags = ["advancedns"])
def test_add_lb_on_source_nat(self):
"""Test Create LB rule for sourceNat IP address
"""
tags = ["advancedns"]
# Validate the following
# 1. Deploy the first VM using a network from the above created
@ -430,11 +430,11 @@ class TestLbOnIpWithPf(cloudstackTestCase):
raise Exception("Warning: Exception during cleanup : %s" % e)
return
@attr(tags = ["advancedns"])
def test_lb_on_ip_with_pf(self):
"""Test Create LB rule for sourceNat IP address
"""
tags = ["advancedns"]
# Validate the following
# 1. Deploy the first VM using a network from the above created
@ -641,11 +641,11 @@ class TestPfOnIpWithLb(cloudstackTestCase):
raise Exception("Warning: Exception during cleanup : %s" % e)
return
@attr(tags = ["advancedns"])
def test_pf_on_ip_with_lb(self):
"""Test Create a port forwarding rule on an Ip address that already has a LB rule.
"""
tags = ["advancedns"]
# Validate the following
# 1. Deploy the first VM using a network from the above created
@ -853,11 +853,11 @@ class TestLbOnNonSourceNat(cloudstackTestCase):
raise Exception("Warning: Exception during cleanup : %s" % e)
return
@attr(tags = ["advancedns"])
def test_lb_on_non_source_nat(self):
"""Test Create LB rule for non-sourceNat IP address
"""
tags = ["advancedns"]
# Validate the following
# 1. Deploy the first VM using a network from the above created
@ -1068,11 +1068,11 @@ class TestAddMultipleVmsLb(cloudstackTestCase):
raise Exception("Warning: Exception during cleanup : %s" % e)
return
@attr(tags = ["advancedns"])
def test_add_multiple_vms_lb(self):
"""Test Add multiple Vms to an existing LB rule.
"""
tags = ["advancedns"]
# Validate the following
# 1. Deploy the first VM using a network from the above created
@ -1346,11 +1346,11 @@ class TestMultipleLbRules(cloudstackTestCase):
raise Exception("Warning: Exception during cleanup : %s" % e)
return
@attr(tags = ["advancedns"])
def test_multiple_lb_publicip(self):
"""Test Create multiple LB rules using different public Ips acquired
"""
tags = ["advancedns"]
# Validate the following
# 1. Deploy the first VM using a network from the above created
@ -1662,11 +1662,11 @@ class TestMultipleLbRulesSameIp(cloudstackTestCase):
raise Exception("Warning: Exception during cleanup : %s" % e)
return
@attr(tags = ["advancedns"])
def test_multiple_lb_same_publicip(self):
"""Test Create multiple LB rules using same public Ips on diff ports
"""
tags = ["advancedns"]
# Validate the following
# 1. Deploy the first VM using a network from the above created
@ -2019,11 +2019,11 @@ class TestLoadBalancingRule(cloudstackTestCase):
raise Exception("Warning: Exception during cleanup : %s" % e)
return
@attr(tags = ["advancedns"])
def test_01_edit_name_lb_rule(self):
"""Test edit name of LB rule
"""
tags = ["advancedns"]
# Validate the following
# 1. Create an Lb rule for couple of Vms .
@ -2053,11 +2053,11 @@ class TestLoadBalancingRule(cloudstackTestCase):
)
return
@attr(tags = ["advancedns"])
def test_02_edit_lb_ports(self):
"""Test edit public port of LB rule
"""
tags = ["advancedns"]
# Validate the following
# 1. Create an Lb rule for couple of Vms .
@ -2075,11 +2075,11 @@ class TestLoadBalancingRule(cloudstackTestCase):
return
@attr(tags = ["advancedns"])
def test_03_delete_lb_rule(self):
"""Test delete LB rule
"""
tags = ["advancedns"]
# Validate the following
# 1. Delete existing load balancing rule
@ -2243,10 +2243,10 @@ class TestDeleteCreateLBRule(cloudstackTestCase):
raise Exception("Warning: Exception during cleanup : %s" % e)
return
@attr(tags = ["advancedns"])
def test_01_create_with_same_public_port(self):
"""Test create LB rule with same public port after deleting rule"""
tags = ["advancedns"]
# Validate the following
# 1. Delete existing rule and create exactly same rule with different
@ -2404,10 +2404,10 @@ class TestVmWithLb(cloudstackTestCase):
raise Exception("Warning: Exception during cleanup : %s" % e)
return
@attr(tags = ["advancedns"])
def test_01_delete_public_ip(self):
"""Test delete one public Ip with LB rules"""
tags = ["advancedns"]
# Validate the following
# 1. Associate 2 public Ips and create load balancing rules in it
@ -2473,10 +2473,10 @@ class TestVmWithLb(cloudstackTestCase):
(self.services["netscaler"]["ipaddress"], e))
return
@attr(tags = ["advancedns"])
def test_02_stop_user_vm(self):
"""Test stop user VM with LB"""
tags = ["advancedns"]
# Validate the following
# 1. Create 2 instances and add these two for load balancing
@ -2553,10 +2553,10 @@ class TestVmWithLb(cloudstackTestCase):
(self.services["netscaler"]["ipaddress"], e))
return
@attr(tags = ["advancedns"])
def test_03_start_user_vm(self):
"""Test start user VM with LB"""
tags = ["advancedns"]
# Validate the following
# 1. Create 2 instances and add these two for load balancing
@ -2624,10 +2624,10 @@ class TestVmWithLb(cloudstackTestCase):
(self.services["netscaler"]["ipaddress"], e))
return
@attr(tags = ["advancedns"])
def test_04_migrate_user_vm(self):
"""Test migrate user VM with LB"""
tags = ["advancedns"]
# Validate the following
# 1. Create 2 instances and add these two for load balancing
@ -2737,10 +2737,10 @@ class TestVmWithLb(cloudstackTestCase):
(self.services["netscaler"]["ipaddress"], e))
return
@attr(tags = ["advancedns"])
def test_05_reboot_user_vm(self):
"""Test reboot user VM with LB"""
tags = ["advancedns"]
# Validate the following
# 1. Create 2 instances and add these two for load balancing
@ -2807,10 +2807,10 @@ class TestVmWithLb(cloudstackTestCase):
(self.services["netscaler"]["ipaddress"], e))
return
@attr(tags = ["advancedns"])
def test_06_destroy_user_vm(self):
"""Test destroy user VM with LB"""
tags = ["advancedns"]
# Validate the following
# 1. Create 2 instances and add these two for load balancing
@ -2890,10 +2890,10 @@ class TestVmWithLb(cloudstackTestCase):
(self.services["netscaler"]["ipaddress"], e))
return
@attr(tags = ["advancedns"])
def test_07_delete_all_public_ip(self):
"""Test delete all public Ip with LB rules"""
tags = ["advancedns"]
# Validate the following
# 1. Associate 2 public Ips and create load balancing rules in it

View File

@ -188,10 +188,10 @@ class TestLbWithRoundRobin(cloudstackTestCase):
raise Exception("Warning: Exception during cleanup : %s" % e)
return
@attr(tags = ["advancedns"])
def test_lb_with_round_robin(self):
"""Test Create LB rule with round robin algorithm
"""
tags = ["advancedns"]
# Validate the following
# 1. Deploy the first VM using a network from the above created
@ -401,10 +401,10 @@ class TestLbWithLeastConn(cloudstackTestCase):
raise Exception("Warning: Exception during cleanup : %s" % e)
return
@attr(tags = ["advancedns"])
def test_lb_with_least_conn(self):
"""Test Create LB rule with least connection algorithm
"""
tags = ["advancedns"]
# Validate the following
# 1. Deploy the first VM using a network from the above created
@ -620,10 +620,10 @@ class TestLbWithSourceIp(cloudstackTestCase):
raise Exception("Warning: Exception during cleanup : %s" % e)
return
@attr(tags = ["advancedns"])
def test_lb_with_source_ip(self):
"""Test Create LB rule with source Ip algorithm
"""
tags = ["advancedns"]
# Validate the following
# 1. Deploy the first VM using a network from the above created
@ -857,10 +857,10 @@ class TestLbAlgoRrLc(cloudstackTestCase):
raise Exception("Warning: Exception during cleanup : %s" % e)
return
@attr(tags = ["advancedns"])
def test_lb_round_robin_to_least_conn(self):
"""Test edit LB rule from round robin to least connection algo
"""
tags = ["advancedns"]
# Validate the following
# 1. Deploy the first VM using a network from the above created
@ -1069,10 +1069,10 @@ class TestLbAlgoLcRr(cloudstackTestCase):
raise Exception("Warning: Exception during cleanup : %s" % e)
return
@attr(tags = ["advancedns"])
def test_lb_least_conn_to_round_robin(self):
"""Test edit LB rule from least conn to round robin algo
"""
tags = ["advancedns"]
# Validate the following
# 1. Deploy the first VM using a network from the above created
@ -1279,10 +1279,10 @@ class TestLbAlgoRrSb(cloudstackTestCase):
raise Exception("Warning: Exception during cleanup : %s" % e)
return
@attr(tags = ["advancedns"])
def test_lb_round_robin_to_source(self):
"""Test edit LB rule from round robin to source algo
"""
tags = ["advancedns"]
# Validate the following
# 1. Deploy the first VM using a network from the above created
@ -1491,10 +1491,10 @@ class TestLbAlgoSbRr(cloudstackTestCase):
raise Exception("Warning: Exception during cleanup : %s" % e)
return
@attr(tags = ["advancedns"])
def test_lb_source_to_round_robin(self):
"""Test edit LB rule from source to round robin algo
"""
tags = ["advancedns"]
# Validate the following
# 1. Deploy the first VM using a network from the above created
@ -1706,10 +1706,10 @@ class TestLbAlgoSbLc(cloudstackTestCase):
raise Exception("Warning: Exception during cleanup : %s" % e)
return
@attr(tags = ["advancedns"])
def test_lb_source_to_least_conn(self):
"""Test edit LB rule from source to least conn algo
"""
tags = ["advancedns"]
# Validate the following
# 1. Deploy the first VM using a network from the above created
@ -1919,10 +1919,10 @@ class TestLbAlgoLcSb(cloudstackTestCase):
raise Exception("Warning: Exception during cleanup : %s" % e)
return
@attr(tags = ["advancedns"])
def test_lb_leastconn_to_source(self):
"""Test edit LB rule from round robin to source algo
"""
tags = ["advancedns"]
# Validate the following
# 1. Deploy the first VM using a network from the above created

View File

@ -215,10 +215,10 @@ class TestLbStickyPolicy(cloudstackTestCase):
raise Exception("Warning: Exception during cleanup : %s" % e)
return
@attr(tags = ["advancedns"])
def test_01_source_based_roundrobin(self):
"""Test Create a "SourceBased" stick policy for a Lb rule with "RoundRobin" algorithm
"""
tags = ["advancedns"]
# Validate the following
# 1. Configure Netscaler for load balancing.
@ -303,10 +303,10 @@ class TestLbStickyPolicy(cloudstackTestCase):
(self.services["netscaler"]["ipaddress"], e))
return
@attr(tags = ["advancedns"])
def test_02_source_based_source_algo(self):
"""Test Create a "SourceBased" stick policy for a Lb rule with "Source" algorithm
"""
tags = ["advancedns"]
# Validate the following
# 1. Configure Netscaler for load balancing.
@ -392,10 +392,10 @@ class TestLbStickyPolicy(cloudstackTestCase):
(self.services["netscaler"]["ipaddress"], e))
return
@attr(tags = ["advancedns"])
def test_03_source_based_leastconn(self):
"""Test Create a "SourceBased" stick policy for a Lb rule with leastconn algo
"""
tags = ["advancedns"]
# Validate the following
# 1. Configure Netscaler for load balancing.
@ -481,10 +481,10 @@ class TestLbStickyPolicy(cloudstackTestCase):
(self.services["netscaler"]["ipaddress"], e))
return
@attr(tags = ["advancedns"])
def test_04_lbcookie_based_roundrobin(self):
"""Test Create a "LBCookie" stick policy for a Lb rule with roundrobin algo
"""
tags = ["advancedns"]
# Validate the following
# 1. Configure Netscaler for load balancing.
@ -572,10 +572,10 @@ class TestLbStickyPolicy(cloudstackTestCase):
(self.services["netscaler"]["ipaddress"], e))
return
@attr(tags = ["advancedns"])
def test_05_lbcookie_source_algo(self):
"""Test Create a "LBCookie" stick policy for a Lb rule with "Source" algorithm
"""
tags = ["advancedns"]
# Validate the following
# 1. Configure Netscaler for load balancing.
@ -663,10 +663,10 @@ class TestLbStickyPolicy(cloudstackTestCase):
(self.services["netscaler"]["ipaddress"], e))
return
@attr(tags = ["advancedns"])
def test_06_lbcookie_leastconn(self):
"""Test Create a "LBCookie" stick policy for a Lb rule with leastconn algo
"""
tags = ["advancedns"]
# Validate the following
# 1. Configure Netscaler for load balancing.
@ -754,10 +754,10 @@ class TestLbStickyPolicy(cloudstackTestCase):
(self.services["netscaler"]["ipaddress"], e))
return
@attr(tags = ["advancedns"])
def test_07_appcookie_based_roundrobin(self):
"""Test Create a "AppCookie" stick policy for a Lb rule with roundrobin algo
"""
tags = ["advancedns"]
# Validate the following
# 1. Configure Netscaler for load balancing.
@ -845,10 +845,10 @@ class TestLbStickyPolicy(cloudstackTestCase):
(self.services["netscaler"]["ipaddress"], e))
return
@attr(tags = ["advancedns"])
def test_08_appcookie_source_algo(self):
"""Test Create a "AppCookie" stick policy for a Lb rule with "Source"
"""
tags = ["advancedns"]
# Validate the following
# 1. Configure Netscaler for load balancing.
@ -936,10 +936,10 @@ class TestLbStickyPolicy(cloudstackTestCase):
(self.services["netscaler"]["ipaddress"], e))
return
@attr(tags = ["advancedns"])
def test_09_appcookie_leastconn(self):
"""Test Create a "AppCookie" stick policy for a Lb rule with leastconn
"""
tags = ["advancedns"]
# Validate the following
# 1. Configure Netscaler for load balancing.

View File

@ -201,11 +201,11 @@ class TestAddMultipleNetScaler(cloudstackTestCase):
raise Exception("Warning: Exception during cleanup : %s" % e)
return
@attr(tags = ["advancedns"])
def test_add_netscaler_device(self):
"""Test add netscaler device
"""
tags = ["advancedns"]
# Validate the following
# 1. Add multiple instances of netscaler
@ -359,11 +359,11 @@ class TestAddMultipleNSDiffZone(cloudstackTestCase):
raise Exception("Warning: Exception during cleanup : %s" % e)
return
@attr(tags = ["advancedns"])
def test_add_mul_netscaler_diff_zone(self):
"""Test add netscaler devices in different zones
"""
tags = ["advancedns"]
# Validate the following
# 1. Add multiple instances of Netscaler in different zones
@ -647,11 +647,11 @@ class TestNetScalerSharedMode(cloudstackTestCase):
raise Exception("Warning: Exception during cleanup : %s" % e)
return
@attr(tags = ["advancedns"])
def test_01_netscaler_shared_mode(self):
"""Test netscaler device in shared mode
"""
tags = ["advancedns"]
# Validate the following
# 1. Add Netscaler device in shared mode with capacity 3
@ -802,11 +802,11 @@ class TestNetScalerSharedMode(cloudstackTestCase):
self.debug("Deploy VM failed as Netscaler device capacity is full!")
return
@attr(tags = ["advancedns"])
def test_02_multiple_netscaler_capacilty(self):
"""Test multiple netscaler devices with limited capacity
"""
tags = ["advancedns"]
# Validate the following
# 1. Add another netscaler device and spawn a new VM again
@ -904,11 +904,11 @@ class TestNetScalerSharedMode(cloudstackTestCase):
)
return
@attr(tags = ["advancedns"])
def test_03_multiple_netscaler_full_capacilty(self):
"""Test netscaler device with full capacity
"""
tags = ["advancedns"]
# Validate the following
# 1. Spawn multiple instances for utilizing full capacity of Netscaler
@ -989,11 +989,11 @@ class TestNetScalerSharedMode(cloudstackTestCase):
self.debug("Deploy VM failed as Netscaler device capacity is full!")
return
@attr(tags = ["advancedns"])
def test_04_delete_account_after_capacity_full(self):
"""Test delete and add resouces after netscaler device capacity is full
"""
tags = ["advancedns"]
# Validate the following
# 1. Delete one of the account. Wait till Network.gc.wait &
@ -1174,11 +1174,11 @@ class TestNwOffDedicatedNetscaler(cloudstackTestCase):
raise Exception("Warning: Exception during cleanup : %s" % e)
return
@attr(tags = ["advancedns"])
def test_nw_off_dedicated_mode(self):
"""Test network offering in dedicated mode device
"""
tags = ["advancedns"]
# Validate the following
# 1. Add Netscaler device in shared mode
@ -1368,11 +1368,11 @@ class TestNwOffNetscaler(cloudstackTestCase):
raise Exception("Warning: Exception during cleanup : %s" % e)
return
@attr(tags = ["advancedns"])
def test_ns_shared_nw_dedicated(self):
"""Test netscaler device in shared mode with network offering in dedicated mode
"""
tags = ["advancedns"]
# Validate the following
# 1. Add Netscaler device in shared mode
@ -1679,10 +1679,10 @@ class TestNwOffSToDUpgrade(cloudstackTestCase):
raise Exception("Warning: Exception during cleanup : %s" % e)
return
@attr(tags = ["advancedns"])
def test_shared_to_dedicated_upgrade(self):
"""Test upgrade from shared LB isolation to dedicated LB isolation"""
tags = ["advancedns"]
# Validate the following
# 1. Create a dedicated and shared network offering
@ -2096,10 +2096,10 @@ class TestNwOffDToSUpgrade(cloudstackTestCase):
raise Exception("Warning: Exception during cleanup : %s" % e)
return
@attr(tags = ["advancedns"])
def test_shared_to_dedicated_upgrade(self):
"""Test upgrade from shared LB isolation to dedicated LB isolation"""
tags = ["advancedns"]
# Validate the following
# 1. Create a dedicated and shared network offering

View File

@ -206,11 +206,11 @@ class TestNOVirtualRouter(cloudstackTestCase):
raise Exception("Warning: Exception during cleanup : %s" % e)
return
@attr(tags = ["advanced"])
def test_01_network_off_without_conserve_mode(self):
"""Test Network offering with Conserve mode off and VR - All services
"""
tags = ["advanced"]
# Validate the following
# 1. Create a Network from the above network offering and deploy a VM.
@ -451,11 +451,11 @@ class TestNOVirtualRouter(cloudstackTestCase):
)
return
@attr(tags = ["advanced"])
def test_02_network_off_with_conserve_mode(self):
"""Test Network offering with Conserve mode ON and VR - All services
"""
tags = ["advanced"]
# Validate the following
# 1. Create a Network from the above network offering and deploy a VM.
@ -784,11 +784,11 @@ class TestNOWithNetscaler(cloudstackTestCase):
raise Exception("Warning: Exception during cleanup : %s" % e)
return
@attr(tags = ["advancedns"])
def test_01_network_off_without_conserve_mode(self):
"""Test Nw off with Conserve mode off, VR-All services, LB-netscaler
"""
tags = ["advancedns"]
# Validate the following
# 1. Create a Network from the above network offering and deploy a VM.
@ -1053,11 +1053,11 @@ class TestNOWithNetscaler(cloudstackTestCase):
)
return
@attr(tags = ["advancedns"])
def test_02_network_off_with_conserve_mode_netscaler(self):
"""Test NW off with Conserve mode ON, LB-Netscaler and VR-All services
"""
tags = ["advancedns"]
# Validate the following
# 1. Create a Network from the above network offering and deploy a VM.
@ -1428,11 +1428,11 @@ class TestNetworkUpgrade(cloudstackTestCase):
raise Exception("Warning: Exception during cleanup : %s" % e)
return
@attr(tags = ["advancedns"])
def test_01_nwupgrade_netscaler_conserve_on(self):
"""Test Nw upgrade to netscaler lb service and conserve mode ON
"""
tags = ["advancedns"]
# Validate the following
# 1. Upgrade a network with VR and conserve mode ON TO
@ -1627,11 +1627,11 @@ class TestNetworkUpgrade(cloudstackTestCase):
)
return
@attr(tags = ["advancedns"])
def test_02_nwupgrade_netscaler_conserve_off(self):
"""Test Nw upgrade to netscaler lb service and conserve mode OFF
"""
tags = ["advancedns"]
# Validate the following
# 1. Upgrade a network with VR and conserve mode ON TO

View File

@ -170,10 +170,10 @@ class TestUserProjectCreation(cloudstackTestCase):
raise Exception("Warning: Exception during cleanup : %s" % e)
return
@attr(tags = ["advanced", "basic", "sg", "eip", "advancedns"])
def test_admin_project_creation(self):
"""Test create project as a domain admin and domain user
"""
tags = ["advanced", "basic", "sg", "eip", "advancedns"]
# Validate the following
# 1. Check if 'allow.user.create.projects' configuration is true
# 2. Create a Project as domain admin
@ -318,11 +318,11 @@ class TestProjectCreationNegative(cloudstackTestCase):
raise Exception("Warning: Exception during cleanup : %s" % e)
return
@attr(tags = ["advanced", "basic", "sg", "eip", "advancedns"])
@unittest.skip("Known bug-able to create project as a domain user")
def test_user_project_creation(self):
"""Test create project as a domain admin and domain user
"""
tags = ["advanced", "basic", "sg", "eip", "advancedns"]
# Validate the following
# 1. Check if 'allow.user.create.projects' configuration is false
# 2. Create a Project as domain admin. Project creation should be
@ -443,10 +443,10 @@ class TestProjectInviteRequired(cloudstackTestCase):
raise Exception("Warning: Exception during cleanup : %s" % e)
return
@attr(tags = ["advanced", "basic", "sg", "eip", "advancedns"])
def test_add_user_to_project(self):
"""Add user to project when 'project.invite.required' is false"""
tags = ["advanced", "basic", "sg", "eip", "advancedns"]
# Validate the following:
# 1. Create a Project

View File

@ -152,10 +152,10 @@ class TestProjectLimits(cloudstackTestCase):
raise Exception("Warning: Exception during cleanup : %s" % e)
return
@attr(tags = ["advanced", "basic", "sg", "eip", "advancedns"])
def test_01_project_limits(self):
""" Test project limits
"""
tags = ["advanced", "basic", "sg", "eip", "advancedns"]
# Validate the following
# 1. Create a Project. Verify once projects are created, they inherit
# a default set of resource limits as configured by the Cloud Stack
@ -299,11 +299,11 @@ class TestProjectLimits(cloudstackTestCase):
)
return
@attr(tags = ["advanced", "basic", "sg", "eip", "advancedns"])
@unittest.skip("No provision for updating resource limits from account through API")
def test_02_project_limits_normal_user(self):
""" Test project limits
"""
tags = ["advanced", "basic", "sg", "eip", "advancedns"]
# Validate the following
# 1. Create a Project
# 2. Reduce the projects limits as a domain admin. Verify resource
@ -523,10 +523,10 @@ class TestResourceLimitsProject(cloudstackTestCase):
raise Exception("Warning: Exception during cleanup : %s" % e)
return
@attr(tags = ["advanced", "basic", "sg", "eip", "advancedns"])
def test_03_vm_per_project(self):
"""Test VM limit per project
"""
tags = ["advanced", "basic", "sg", "eip", "advancedns"]
# Validate the following
# 1. Set max VM per project to 2
# 2. Create account and start 2 VMs. Verify VM state is Up and Running

View File

@ -203,10 +203,10 @@ class TestOfferings(cloudstackTestCase):
raise Exception("Warning: Exception during cleanup : %s" % e)
return
@attr(tags = ["advanced", "basic", "sg", "eip", "advancedns"])
def test_01_service_offerings(self):
""" Test service offerings in a project
"""
tags = ["advanced", "basic", "sg", "eip", "advancedns"]
# Validate the following
# 1. Create a project.
# 2. List service offerings for the project. All SO available in the
@ -245,10 +245,10 @@ class TestOfferings(cloudstackTestCase):
return
@attr(tags = ["advanced", "basic", "sg", "eip", "advancedns"])
def test_02_project_disk_offerings(self):
""" Test project disk offerings
"""
tags = ["advanced", "basic", "sg", "eip", "advancedns"]
# Validate the following
# 1. Create a project.
# 2. List service offerings for the project. All disk offerings
@ -377,10 +377,10 @@ class TestNetwork(cloudstackTestCase):
raise Exception("Warning: Exception during cleanup : %s" % e)
return
@attr(tags = ["advanced", "advancedns"])
def test_03_network_create(self):
""" Test create network in project
"""
tags = ["advanced", "advancedns"]
# Validate the following
# 1. Create a project.
# 2. Add virtual/direct network resource to the project. User shared
@ -581,10 +581,10 @@ class TestTemplates(cloudstackTestCase):
raise Exception("Warning: Exception during cleanup : %s" % e)
return
@attr(tags = ["advanced", "basic", "sg", "eip", "advancedns"])
def test_04_public_template_use_in_project(self):
"""Test Templates creation in projects
"""
tags = ["advanced", "basic", "sg", "eip", "advancedns"]
# Validate the following
# 1. Create a project
# 2. Verify Public templates can be used without any restriction
@ -640,10 +640,10 @@ class TestTemplates(cloudstackTestCase):
)
return
@attr(tags = ["advanced", "basic", "sg", "eip", "advancedns"])
def test_05_use_private_template_in_project(self):
"""Test use of private template in a project
"""
tags = ["advanced", "basic", "sg", "eip", "advancedns"]
# Validate the following
# 1. Create a project
# 2. Verify that in order to use somebodys Private template for vm
@ -806,10 +806,10 @@ class TestSnapshots(cloudstackTestCase):
raise Exception("Warning: Exception during cleanup : %s" % e)
return
@attr(tags = ["advanced", "basic", "sg", "eip", "advancedns"])
def test_06_create_snapshots_in_project(self):
"""Test create snapshots in project
"""
tags = ["advanced", "basic", "sg", "eip", "advancedns"]
# Validate the following
# 1. Create a project
# 2. Add some snapshots to the project
@ -959,10 +959,10 @@ class TestPublicIpAddress(cloudstackTestCase):
raise Exception("Warning: Exception during cleanup : %s" % e)
return
@attr(tags = ["advanced", "advancedns"])
def test_07_associate_public_ip(self):
"""Test associate public IP within the project
"""
tags = ["advanced", "eip", "advancedns"]
# Validate the following
# 1. Create a project
# 2. Add some public Ips to the project
@ -1235,10 +1235,10 @@ class TestSecurityGroup(cloudstackTestCase):
return
@attr(tags = ["sg", "eip"])
def test_08_security_group(self):
"""Test security groups in project
"""
tags = ["sg", "eip"]
# Validate the following:
# 1. Create a project
# 2. Assign some security groups to that project

View File

@ -188,10 +188,10 @@ class TestVmUsage(cloudstackTestCase):
raise Exception("Warning: Exception during cleanup : %s" % e)
return
@attr(tags = ["advanced", "basic", "sg", "eip", "advancedns"])
def test_01_vm_usage(self):
"""Test Create/Destroy VM and verify usage calculation
"""
tags = ["advanced", "basic", "sg", "eip", "advancedns"]
# Validate the following
# 1. Create a VM. Verify usage_events table contains VM .create,
# VM.start , Network.offering.assign , Volume.create events
@ -399,10 +399,10 @@ class TestPublicIPUsage(cloudstackTestCase):
raise Exception("Warning: Exception during cleanup : %s" % e)
return
@attr(tags = ["advanced", "eip", "advancedns"])
def test_01_public_ip_usage(self):
"""Test Assign new IP and verify usage calculation
"""
tags = ["advanced", "eip", "advancedns"]
# Validate the following
# 1. Acquire a IP for the network of this account. Verify usage_event
# table has Acquire IP event for the IP for this account
@ -557,10 +557,10 @@ class TestVolumeUsage(cloudstackTestCase):
raise Exception("Warning: Exception during cleanup : %s" % e)
return
@attr(tags = ["advanced", "basic", "sg", "eip", "advancedns"])
def test_01_volume_usage(self):
"""Test Create/delete a volume and verify correct usage is recorded
"""
tags = ["advanced", "basic", "sg", "eip", "advancedns"]
# Validate the following
# 1. Volume.create event for both root and data disk is there for the
# created account in cloud.usage_event table
@ -748,11 +748,11 @@ class TestTemplateUsage(cloudstackTestCase):
raise Exception("Warning: Exception during cleanup : %s" % e)
return
@attr(tags = ["advanced", "basic", "sg", "eip", "advancedns"])
def test_01_template_usage(self):
"""Test Upload/ delete a template and verify correct usage is generated
for the template uploaded
"""
tags = ["advanced", "basic", "sg", "eip", "advancedns"]
# Validate the following
# 1. Create a account
# 2. Upload a template from this account. template.create event is
@ -900,10 +900,10 @@ class TestISOUsage(cloudstackTestCase):
raise Exception("Warning: Exception during cleanup : %s" % e)
return
@attr(tags = ["advanced", "basic", "sg", "eip", "advancedns"])
def test_01_ISO_usage(self):
"""Test Create/Delete a ISO and verify its usage is generated correctly
"""
tags = ["advanced", "basic", "sg", "eip", "advancedns"]
# Validate the following
# 1. Create a account
# 2. Upload a ISO from this account. ISO.create event is recorded in
@ -1072,10 +1072,10 @@ class TestLBRuleUsage(cloudstackTestCase):
raise Exception("Warning: Exception during cleanup : %s" % e)
return
@attr(tags = ["advanced", "eip", "advancedns"])
def test_01_lb_usage(self):
"""Test Create/Delete a LB rule and verify correct usage is recorded
"""
tags = ["advanced", "eip", "advancedns"]
# Validate the following
# 1. Acquire a IP for this account. lb.rule.create event is registered
# for this account in cloud.usage_event table
@ -1238,11 +1238,11 @@ class TestSnapshotUsage(cloudstackTestCase):
raise Exception("Warning: Exception during cleanup : %s" % e)
return
@attr(tags = ["advanced", "basic", "sg", "eip", "advancedns"])
def test_01_snapshot_usage(self):
"""Test Create/Delete a manual snap shot and verify
correct usage is recorded
"""
tags = ["advanced", "basic", "sg", "eip", "advancedns"]
# Validate the following
# 1. Create snapshot of the root disk for this account.Snapshot.create
# event is there for the created account in cloud.usage_event table
@ -1430,10 +1430,10 @@ class TestNatRuleUsage(cloudstackTestCase):
raise Exception("Warning: Exception during cleanup : %s" % e)
return
@attr(tags = ["advanced", "advancedns"])
def test_01_nat_usage(self):
"""Test Create/Delete a PF rule and verify correct usage is recorded
"""
tags = ["advanced", "advancedns"]
# Validate the following
# 1. Acquire a IP for this account
# 2. Create a PF rule on the IP associated with this account.
@ -1613,10 +1613,10 @@ class TestVpnUsage(cloudstackTestCase):
raise Exception("Warning: Exception during cleanup : %s" % e)
return
@attr(tags = ["advanced", "advancedns"])
def test_01_vpn_usage(self):
"""Test Create/Delete a VPN and verify correct usage is recorded
"""
tags = ["advanced", "advancedns"]
# Validate the following
# 1. Enable VPN for this IP. vpn.add.user event is registered for this
# account in cloud.usage_event table

View File

@ -164,11 +164,11 @@ class TestMultipleProjectCreation(cloudstackTestCase):
raise Exception("Warning: Exception during cleanup : %s" % e)
return
@attr(tags = ["advanced", "basic", "sg", "eip", "advancedns"])
def test_01_create_multiple_projects_by_account(self):
""" Verify an account can own multiple projects and can belong to
multiple projects
"""
tags = ["advanced", "basic", "sg", "eip", "advancedns"]
# Validate the following
# 1. Create multiple project. Verify at step 1 An account is allowed
# to create multiple projects
@ -380,10 +380,10 @@ class TestCrossDomainAccountAdd(cloudstackTestCase):
raise Exception("Warning: Exception during cleanup : %s" % e)
return
@attr(tags = ["advanced", "basic", "sg", "eip", "advancedns"])
def test_02_cross_domain_account_add(self):
""" Verify No cross domain projects
"""
tags = ["advanced", "basic", "sg", "eip", "advancedns"]
# Validate the following
# 1. Create a project in a domain.
# 2. Add different domain account to the project. Add account should
@ -500,10 +500,10 @@ class TestDeleteAccountWithProject(cloudstackTestCase):
raise Exception("Warning: Exception during cleanup : %s" % e)
return
@attr(tags = ["advanced", "basic", "sg", "eip", "advancedns"])
def test_03_delete_account_with_project(self):
""" Test As long as the project exists, its owner can't be removed
"""
tags = ["advanced", "basic", "sg", "eip", "advancedns"]
# Validate the following
# 1. Create a project.
# 2. Delete account who is owner of the project. Delete account should
@ -614,11 +614,11 @@ class TestDeleteDomainWithProject(cloudstackTestCase):
raise Exception("Warning: Exception during cleanup : %s" % e)
return
@attr(tags = ["advanced", "basic", "sg", "eip", "advancedns"])
def test_04_delete_domain_with_project(self):
""" Test Verify delete domain with cleanup=true should delete projects
belonging to the domain
"""
tags = ["advanced", "basic", "sg", "eip", "advancedns"]
# Validate the following
# 1. Create a project in a domain
# 2. Delete domain forcefully. Verify that project is also deleted as
@ -759,11 +759,11 @@ class TestProjectOwners(cloudstackTestCase):
raise Exception("Warning: Exception during cleanup : %s" % e)
return
@attr(tags = ["advanced", "basic", "sg", "eip", "advancedns"])
def test_05_user_project_owner_promotion(self):
""" Test Verify a project user can be later promoted to become a
owner
"""
tags = ["advanced", "basic", "sg", "eip", "advancedns"]
# Validate the following
# 1. Create a project.
# 2. Add account to the project. Edit account to make it a project
@ -901,10 +901,10 @@ class TestProjectOwners(cloudstackTestCase):
)
return
@attr(tags = ["advanced", "basic", "sg", "eip", "advancedns"])
def test_06_max_one_project_owner(self):
""" Test Verify there can only be one owner of a project at a time
"""
tags = ["advanced", "basic", "sg", "eip", "advancedns"]
# Validate the following
# 1. Create a project.
# 2. Add account to the project. Edit account to make it a project
@ -1191,11 +1191,11 @@ class TestProjectResources(cloudstackTestCase):
raise Exception("Warning: Exception during cleanup : %s" % e)
return
@attr(tags = ["advanced", "basic", "sg", "eip", "advancedns"])
def test_07_project_resources_account_delete(self):
""" Test Verify after an account is removed from the project, all his
resources stay with the project.
"""
tags = ["advanced", "basic", "sg", "eip", "advancedns"]
# Validate the following
# 1. Create a project.
# 2. Add some accounts to project. Add resources to the project
@ -1307,10 +1307,10 @@ class TestProjectResources(cloudstackTestCase):
)
return
@attr(tags = ["advanced", "basic", "sg", "eip", "advancedns"])
def test_08_cleanup_after_project_delete(self):
""" Test accounts are unassigned from project after project deletion
"""
tags = ["advanced", "basic", "sg", "eip", "advancedns"]
# Validate the following
# 1. Create a project.
# 2. Add some accounts to project. Add resources to the project
@ -1521,11 +1521,11 @@ class TestProjectSuspendActivate(cloudstackTestCase):
raise Exception("Warning: Exception during cleanup : %s" % e)
return
@attr(tags = ["advanced", "basic", "sg", "eip", "advancedns"])
def test_09_project_suspend(self):
""" Test Verify after an account is removed from the project, all his
resources stay with the project.
"""
tags = ["advanced", "basic", "sg", "eip", "advancedns"]
# Validate the following
# 1. Create a project.
# 2. Add some accounts to project. Add resources to the project
@ -1658,10 +1658,10 @@ class TestProjectSuspendActivate(cloudstackTestCase):
)
return
@attr(tags = ["advanced", "basic", "sg", "eip", "advancedns"])
def test_10_project_activation(self):
""" Test project activation after suspension
"""
tags = ["advanced", "basic", "sg", "eip", "advancedns"]
# Validate the following
# 1. Activate the project
# 2. Verify project is activated and we are able to add resources

View File

@ -149,10 +149,10 @@ class TestResourceLimitsAccount(cloudstackTestCase):
raise Exception("Warning: Exception during cleanup : %s" % e)
return
@attr(tags = ["advanced", "advancedns"])
def test_01_vm_per_account(self):
"""Test VM limit per account
"""
tags = ["advanced", "advancedns"]
# Validate the following
# 1. Set user_vm=1 limit for account 1.
@ -242,10 +242,10 @@ class TestResourceLimitsAccount(cloudstackTestCase):
)
return
@attr(tags = ["advanced", "advancedns"])
def test_02_publicip_per_account(self):
"""Test Public IP limit per account
"""
tags = ["advanced", "advancedns"]
# Validate the following
# 1. Set Public_IP= 2 limit for account 1.
@ -385,10 +385,10 @@ class TestResourceLimitsAccount(cloudstackTestCase):
)
return
@attr(tags = ["advanced", "advancedns"])
def test_03_snapshots_per_account(self):
"""Test Snapshot limit per account
"""
tags = ["advanced", "advancedns"]
# Validate the following
# 1. Set snapshot= 2 limit for account 1.
@ -541,10 +541,10 @@ class TestResourceLimitsAccount(cloudstackTestCase):
)
return
@attr(tags = ["advanced", "advancedns"])
def test_04_volumes_per_account(self):
"""Test Volumes limit per account
"""
tags = ["advanced", "advancedns"]
# Validate the following
# 1. Set volumes=2 limit for account 1.
@ -683,10 +683,10 @@ class TestResourceLimitsAccount(cloudstackTestCase):
)
return
@attr(tags = ["advanced", "advancedns"])
def test_05_templates_per_account(self):
"""Test Templates limit per account
"""
tags = ["advanced", "advancedns"]
# Validate the following
# 1. Set templates=1 limit for account 1.
@ -913,10 +913,10 @@ class TestResourceLimitsDomain(cloudstackTestCase):
raise Exception("Warning: Exception during cleanup : %s" % e)
return
@attr(tags = ["advanced", "advancedns"])
def test_01_vm_per_domain(self):
"""Test VM limit per domain
"""
tags = ["advanced", "advancedns"]
# Validate the following
# 1. Set max VM per domain to 2
@ -979,10 +979,10 @@ class TestResourceLimitsDomain(cloudstackTestCase):
)
return
@attr(tags = ["advanced", "advancedns"])
def test_01_publicip_per_domain(self):
"""Test Public IP limit per domain
"""
tags = ["advanced", "advancedns"]
# Validate the following
# 1. set max no of IPs per domain to 2.
@ -1049,10 +1049,10 @@ class TestResourceLimitsDomain(cloudstackTestCase):
)
return
@attr(tags = ["advanced", "advancedns"])
def test_03_snapshots_per_domain(self):
"""Test Snapshot limit per domain
"""
tags = ["advanced", "advancedns"]
# Validate the following
# 1. set max no of snapshots per domain to 1.
@ -1132,10 +1132,10 @@ class TestResourceLimitsDomain(cloudstackTestCase):
)
return
@attr(tags = ["advanced", "advancedns"])
def test_04_volumes_per_domain(self):
"""Test Volumes limit per domain
"""
tags = ["advanced", "advancedns"]
# Validate the following
# 1. set max no of volume per domain to 1.
@ -1185,10 +1185,10 @@ class TestResourceLimitsDomain(cloudstackTestCase):
)
return
@attr(tags = ["advanced", "advancedns"])
def test_05_templates_per_domain(self):
"""Test Templates limit per domain
"""
tags = ["advanced", "advancedns"]
# Validate the following
# 1. set max no of templates per domain to 2.
@ -1332,9 +1332,9 @@ class TestResources(cloudstackTestCase):
raise Exception("Warning: Exception during cleanup : %s" % e)
return
@attr(tags = ["advanced", "advancedns"])
def test_01_zones(self):
"""Check the status of zones"""
tags = ["advanced", "advancedns"]
# Validate the following
# 1. List zones
@ -1358,9 +1358,9 @@ class TestResources(cloudstackTestCase):
)
return
@attr(tags = ["advanced", "advancedns"]
def test_02_pods(self):
"""Check the status of pods"""
tags = ["advanced", "advancedns"]
# Validate the following
# 1. List pods
@ -1384,9 +1384,9 @@ class TestResources(cloudstackTestCase):
)
return
@attr(tags = ["advanced", "advancedns"])
def test_03_clusters(self):
"""Check the status of clusters"""
tags = ["advanced", "advancedns"]
# Validate the following
# 1. List clusters
@ -1410,9 +1410,9 @@ class TestResources(cloudstackTestCase):
)
return
@attr(tags = ["advanced", "advancedns"])
def test_04_hosts(self):
"""Check the status of hosts"""
tags = ["advanced", "advancedns"]
# Validate the following
# 1. List hosts with type=Routing
@ -1437,9 +1437,9 @@ class TestResources(cloudstackTestCase):
)
return
@attr(tags = ["advanced", "advancedns"])
def test_05_storage_pools(self):
"""Check the status of Storage pools"""
tags = ["advanced", "advancedns"]
# Validate the following
# 1. List storage pools for the zone
@ -1463,9 +1463,9 @@ class TestResources(cloudstackTestCase):
)
return
@attr(tags = ["advanced", "advancedns"])
def test_06_secondary_storage(self):
"""Check the status of secondary storage"""
tags = ["advanced", "advancedns"]
# Validate the following
# 1. List secondary storage

View File

@ -164,10 +164,10 @@ class TestRouterServices(cloudstackTestCase):
self._cleanup = []
return
@attr(tags = ["advanced"])
def test_01_AdvancedZoneRouterServices(self):
"""Test advanced zone router services
"""
tags = ["advanced"]
# Validate the following:
# 1. Verify that list of services provided by this network are running
# a. DNS
@ -310,10 +310,10 @@ class TestRouterServices(cloudstackTestCase):
)
return
@attr(tags = ["advanced"])
def test_02_NetworkGarbageCollection(self):
"""Test network garbage collection
"""
tags = ["advanced"]
# Validate the following
# 1. wait for router to start and guest network to be created
# a.listRouters account=user, domainid=1 (router state=Running)
@ -468,10 +468,10 @@ class TestRouterServices(cloudstackTestCase):
self._cleanup.append(self.vm_2)
return
@attr(tags = ["advanced"])
def test_03_RouterStartOnVmDeploy(self):
"""Test router start on VM deploy
"""
tags = ["advanced"]
# Validate the following
# 1. deployVirtualMachine in the account
# 2. listVirtualMachines account=user, domainid=1
@ -643,10 +643,10 @@ class TestRouterStopCreatePF(cloudstackTestCase):
self._cleanup = []
return
@attr(tags = ["advanced"])
def test_01_RouterStopCreatePF(self):
"""Test router stop create port forwarding
"""
tags = ["advanced"]
# validate the following
# 1. wait for router to start, guest network to be implemented and
# VM to report Running
@ -853,10 +853,10 @@ class TestRouterStopCreateLB(cloudstackTestCase):
self._cleanup = []
return
@attr(tags = ["advanced"])
def test_01_RouterStopCreateLB(self):
"""Test router stop create Load balancing
"""
tags = ["advanced"]
# validate the following
# 1. listLoadBalancerRules (publicipid=ipaddressid of source NAT)
# 2. rule should be for port 2222 as applied and
@ -1063,10 +1063,10 @@ class TestRouterStopCreateFW(cloudstackTestCase):
self._cleanup = []
return
@attr(tags = ["advanced"])
def test_01_RouterStopCreateFW(self):
"""Test router stop create Firewall rule
"""
tags = ["advanced"]
# validate the following
# 1. 1. listFirewallRules (filter by ipaddressid of sourcenat)
# 2. rule should be for ports 1-600 and in state=Active

View File

@ -162,11 +162,11 @@ class TestDefaultSecurityGroup(cloudstackTestCase):
return
@attr(tags = ["sg", "eip"])
def test_01_deployVM_InDefaultSecurityGroup(self):
"""Test deploy VM in default security group
"""
tags = ["sg", "eip"]
# Validate the following:
# 1. deploy Virtual machine using admin user
@ -241,11 +241,11 @@ class TestDefaultSecurityGroup(cloudstackTestCase):
)
return
@attr(tags = ["sg", "eip"])
def test_02_listSecurityGroups(self):
"""Test list security groups for admin account
"""
tags = ["sg", "eip"]
# Validate the following:
# 1. listSecurityGroups in admin account
@ -276,11 +276,11 @@ class TestDefaultSecurityGroup(cloudstackTestCase):
)
return
@attr(tags = ["sg", "eip"])
def test_03_accessInDefaultSecurityGroup(self):
"""Test access in default security group
"""
tags = ["sg", "eip"]
# Validate the following:
# 1. deploy Virtual machine using admin user
@ -433,11 +433,11 @@ class TestAuthorizeIngressRule(cloudstackTestCase):
return
@attr(tags = ["sg", "eip"])
def test_01_authorizeIngressRule(self):
"""Test authorize ingress rule
"""
tags = ["sg", "eip"]
# Validate the following:
#1. Create Security group for the account.
@ -569,11 +569,11 @@ class TestRevokeIngressRule(cloudstackTestCase):
return
@attr(tags = ["sg", "eip"])
def test_01_revokeIngressRule(self):
"""Test revoke ingress rule
"""
tags = ["sg", "eip"]
# Validate the following:
#1. Create Security group for the account.
@ -736,11 +736,11 @@ class TestDhcpOnlyRouter(cloudstackTestCase):
return
@attr(tags = ["sg", "eip", "basic"])
def test_01_dhcpOnlyRouter(self):
"""Test router services for user account
"""
tags = ["sg", "eip", "basic"]
# Validate the following
#1. List routers for any user account
@ -866,10 +866,10 @@ class TestdeployVMWithUserData(cloudstackTestCase):
return
@attr(tags = ["sg", "eip"])
def test_01_deployVMWithUserData(self):
"""Test Deploy VM with User data"""
tags = ["sg", "eip"]
# Validate the following
# 1. CreateAccount of type user
@ -1042,10 +1042,10 @@ class TestDeleteSecurityGroup(cloudstackTestCase):
return
@attr(tags = ["sg", "eip"])
def test_01_delete_security_grp_running_vm(self):
"""Test delete security group with running VM"""
tags = ["sg", "eip"]
# Validate the following
# 1. createsecuritygroup (ssh-incoming) for this account
@ -1126,10 +1126,10 @@ class TestDeleteSecurityGroup(cloudstackTestCase):
)
return
@attr(tags = ["sg", "eip"])
def test_02_delete_security_grp_withoout_running_vm(self):
"""Test delete security group without running VM"""
tags = ["sg", "eip"]
# Validate the following
# 1. createsecuritygroup (ssh-incoming) for this account
@ -1288,10 +1288,10 @@ class TestIngressRule(cloudstackTestCase):
return
@attr(tags = ["sg", "eip"])
def test_01_authorizeIngressRule_AfterDeployVM(self):
"""Test delete security group with running VM"""
tags = ["sg", "eip"]
# Validate the following
# 1. createsecuritygroup (ssh-incoming, 22via22) for this account
@ -1400,10 +1400,10 @@ class TestIngressRule(cloudstackTestCase):
% (ingress_rule_2["id"], e))
return
@attr(tags = ["sg", "eip"])
def test_02_revokeIngressRule_AfterDeployVM(self):
"""Test Revoke ingress rule after deploy VM"""
tags = ["sg", "eip"]
# Validate the following
# 1. createsecuritygroup (ssh-incoming, 22via22) for this account
@ -1554,10 +1554,10 @@ class TestIngressRule(cloudstackTestCase):
% (icmp_rule["ruleid"], e))
return
@attr(tags = ["sg", "eip"])
def test_03_stopStartVM_verifyIngressAccess(self):
"""Test Start/Stop VM and Verify ingress rule"""
tags = ["sg", "eip"]
# Validate the following
# 1. createsecuritygroup (ssh-incoming, 22via22) for this account

View File

@ -155,10 +155,10 @@ class TestSecurityKeysEncryption(cloudstackTestCase):
raise Exception("Warning: Exception during cleanup : %s" % e)
return
@attr(tags = ["advanced", "basic"])
def test_vm_instance_vnc_password(self):
""" Verify vm_instance table's vnc_password column encryption """
tags = ["advanced", "basic"]
#Steps,
#Deploy a VM
@ -182,10 +182,10 @@ class TestSecurityKeysEncryption(cloudstackTestCase):
)
return
@attr(tags = ["advanced"])
def test_vpn_users_password(self):
""" Verify vpn_users table's password column encryption """
tags = ["advanced"]
#Steps,
#Deploy a VM
@ -233,6 +233,7 @@ class TestSecurityKeysEncryption(cloudstackTestCase):
"Check password in vpn_users table to verify encryption"
)
@attr(tags = ["advanced", "basic"])
def test_user_secret_key(self):
""" Verify user table's SECRET key column encryption """
#Steps,
@ -240,7 +241,6 @@ class TestSecurityKeysEncryption(cloudstackTestCase):
#Validations,
#Verify user table's secret key column is encrypted
tags = ["advanced", "basic"]
user_keys = User.registerUserKeys(self.apiclient, self.account.account.user[0].id)
qresultset = self.dbclient.execute(
@ -261,10 +261,10 @@ class TestSecurityKeysEncryption(cloudstackTestCase):
)
return
@attr(tags = ["advanced", "basic"])
def test_host_password(self):
""" Verify host details table's value column encryption where name is password """
tags = ["advanced", "basic"]
#Validations,
#Verify host details table's value column is encrypted where name is password
@ -314,10 +314,10 @@ class TestSecurityKeysEncryption(cloudstackTestCase):
)
return
@attr(tags = ["advanced", "basic"])
def test_configurations_value_encryption(self):
""" verify configuration tables following name records value field are encrypted """
tags = ["advanced", "basic"]
#Steps
#verify configuration tables following name records value field are encrypted

View File

@ -160,10 +160,10 @@ class TestCreateVMsnapshotTemplate(cloudstackTestCase):
raise Exception("Warning: Exception during cleanup : %s" % e)
return
@attr(tags = ["advanced", "advancedns"])
def test_01_createVM_snapshotTemplate(self):
"""Test create VM, Snapshot and Template
"""
tags = ["advanced", "advancedns"]
# Validate the following
# 1. Deploy VM using default template, small service offering
# and small data disk offering.
@ -473,10 +473,10 @@ class TestAccountSnapshotClean(cloudstackTestCase):
raise Exception("Warning: Exception during cleanup : %s" % e)
return
@attr(tags = ["advanced", "advancedns"])
def test_02_accountSnapshotClean(self):
"""Test snapshot cleanup after account deletion
"""
tags = ["advanced", "advancedns"]
# Validate the following
# 1. listAccounts API should list out the newly created account
# 2. listVirtualMachines() command should return the deployed VM.
@ -816,10 +816,10 @@ class TestSnapshotDetachedDisk(cloudstackTestCase):
raise Exception("Warning: Exception during cleanup : %s" % e)
return
@attr(tags = ["advanced", "advancedns"])
def test_03_snapshot_detachedDisk(self):
"""Test snapshot from detached disk
"""
tags = ["advanced", "advancedns"]
# Validate the following
# 1. login in VM and write some data on data disk(use fdisk to
# partition datadisk,fdisk /dev/sdb, and make filesystem using
@ -1095,10 +1095,10 @@ class TestSnapshotLimit(cloudstackTestCase):
raise Exception("Warning: Exception during cleanup : %s" % e)
return
@attr(tags = ["advanced", "advancedns"])
def test_04_snapshot_limit(self):
"""Test snapshot limit in snapshot policies
"""
tags = ["advanced", "advancedns"]
# Validate the following
# 1. Perform hourly recurring snapshot on the root disk of VM and keep
# the maxsnapshots as 1
@ -1353,10 +1353,10 @@ class TestSnapshotEvents(cloudstackTestCase):
raise Exception("Warning: Exception during cleanup : %s" % e)
return
@attr(tags = ["advanced", "advancedns"])
def test_05_snapshot_events(self):
"""Test snapshot events
"""
tags = ["advanced", "advancedns"]
# Validate the following
# 1. Perform snapshot on the root disk of this VM and check the events/alerts.
# 2. delete the snapshots and check the events/alerts

View File

@ -167,10 +167,10 @@ class TestDeployVM(cloudstackTestCase):
except Exception as e:
self.debug("Warning! Exception in tearDown: %s" % e)
@attr(tags = ["advanced", "eip", "advancedns", "basic", "sg"])
def test_01_deploy_vm_no_startvm(self):
"""Test Deploy Virtual Machine with no startVM parameter
"""
tags = ["advanced", "eip", "advancedns", "basic", "sg"]
# Validate the following:
# 1. deploy Vm without specifying the startvm parameter
@ -221,10 +221,10 @@ class TestDeployVM(cloudstackTestCase):
self.fail("SSH to VM instance failed!")
return
@attr(tags = ["advanced", "eip", "advancedns", "basic", "sg"])
def test_02_deploy_vm_startvm_true(self):
"""Test Deploy Virtual Machine with startVM=true parameter
"""
tags = ["advanced", "eip", "advancedns", "basic", "sg"]
# Validate the following:
# 1. deploy Vm with the startvm=true
@ -276,10 +276,10 @@ class TestDeployVM(cloudstackTestCase):
self.fail("SSH to VM instance failed!")
return
@attr(tags = ["advanced", "eip", "advancedns", "basic", "sg"])
def test_03_deploy_vm_startvm_false(self):
"""Test Deploy Virtual Machine with startVM=false parameter
"""
tags = ["advanced", "eip", "advancedns", "basic", "sg"]
# Validate the following:
# 1. deploy Vm with the startvm=false
@ -368,10 +368,10 @@ class TestDeployVM(cloudstackTestCase):
)
return
@attr(tags = ["advanced", "eip", "advancedns", "basic", "sg"])
def test_04_deploy_startvm_false_attach_volume(self):
"""Test Deploy Virtual Machine with startVM=false and attach volume
"""
tags = ["advanced", "eip", "advancedns", "basic", "sg"]
# Validate the following:
# 1. deploy Vm with the startvm=false. Attach volume to the instance
@ -434,11 +434,11 @@ class TestDeployVM(cloudstackTestCase):
self.fail("Attach volume failed!")
return
@attr(tags = ["advanced", "eip", "advancedns", "basic", "sg"])
def test_05_deploy_startvm_false_change_so(self):
"""Test Deploy Virtual Machine with startVM=false and
change service offering
"""
tags = ["advanced", "eip", "advancedns", "basic", "sg"]
# Validate the following:
# 1. deploy Vm with the startvm=false. Attach volume to the instance
@ -547,11 +547,11 @@ class TestDeployVM(cloudstackTestCase):
)
return
@attr(tags = ["advanced", "eip", "advancedns", "basic", "sg"])
def test_06_deploy_startvm_attach_detach(self):
"""Test Deploy Virtual Machine with startVM=false and
attach detach volumes
"""
tags = ["advanced", "eip", "advancedns", "basic", "sg"]
# Validate the following:
# 1. deploy Vm with the startvm=false. Attach volume to the instance
@ -632,10 +632,10 @@ class TestDeployVM(cloudstackTestCase):
)
return
@attr(tags = ["advanced", "eip", "advancedns", "basic", "sg"])
def test_07_deploy_startvm_attach_iso(self):
"""Test Deploy Virtual Machine with startVM=false and attach ISO
"""
tags = ["advanced", "eip", "advancedns", "basic", "sg"]
# Validate the following:
# 1. deploy Vm with the startvm=false. Attach volume to the instance
@ -723,11 +723,11 @@ class TestDeployVM(cloudstackTestCase):
)
return
@attr(tags = ["advanced", "eip", "advancedns", "basic", "sg"])
def test_08_deploy_attach_volume(self):
"""Test Deploy Virtual Machine with startVM=false and
attach volume already attached to different machine
"""
tags = ["advanced", "eip", "advancedns", "basic", "sg"]
# Validate the following:
# 1. deploy Vm with the startvm=false. Attach volume to the instance
@ -923,10 +923,10 @@ class TestDeployHaEnabledVM(cloudstackTestCase):
except Exception as e:
self.debug("Warning! Exception in tearDown: %s" % e)
@attr(tags = ["advanced", "eip", "advancedns", "basic", "sg"])
def test_01_deploy_ha_vm_startvm_false(self):
"""Test Deploy HA enabled Virtual Machine with startvm=false
"""
tags = ["advanced", "eip", "advancedns", "basic", "sg"]
# Validate the following:
# 1. deployHA enabled Vm with the startvm parameter = false
@ -972,10 +972,10 @@ class TestDeployHaEnabledVM(cloudstackTestCase):
)
return
@attr(tags = ["advanced", "eip", "advancedns", "basic", "sg"])
def test_02_deploy_ha_vm_from_iso(self):
"""Test Deploy HA enabled Virtual Machine from ISO
"""
tags = ["advanced", "eip", "advancedns", "basic", "sg"]
# Validate the following:
# 1. deployHA enabled Vm using ISO with the startvm parameter=true
@ -1037,10 +1037,10 @@ class TestDeployHaEnabledVM(cloudstackTestCase):
)
return
@attr(tags = ["advanced", "eip", "advancedns", "basic", "sg"])
def test_03_deploy_ha_vm_iso_startvm_false(self):
"""Test Deploy HA enabled Virtual Machine from ISO with startvm=false
"""
tags = ["advanced", "eip", "advancedns", "basic", "sg"]
# Validate the following:
# 1. deployHA enabled Vm using ISO with the startvm parameter=false
@ -1154,10 +1154,10 @@ class TestRouterStateAfterDeploy(cloudstackTestCase):
except Exception as e:
self.debug("Warning! Exception in tearDown: %s" % e)
@attr(tags = ["advanced", "eip", "advancedns", "basic", "sg"])
def test_01_deploy_vm_no_startvm(self):
"""Test Deploy Virtual Machine with no startVM parameter
"""
tags = ["advanced", "eip", "advancedns", "basic", "sg"]
# Validate the following:
# 1. deploy Vm without specifying the startvm parameter
@ -1369,10 +1369,10 @@ class TestDeployVMBasicZone(cloudstackTestCase):
except Exception as e:
self.debug("Warning! Exception in tearDown: %s" % e)
@attr(tags = ["eip", "basic", "sg"])
def test_01_deploy_vm_startvm_true(self):
"""Test Deploy Virtual Machine with startVM=true parameter
"""
tags = ["eip", "basic", "sg"]
# Validate the following:
# 1. deploy Vm with the startvm=true
@ -1427,10 +1427,10 @@ class TestDeployVMBasicZone(cloudstackTestCase):
)
return
@attr(tags = ["eip", "basic", "sg"])
def test_02_deploy_vm_startvm_false(self):
"""Test Deploy Virtual Machine with startVM=true parameter
"""
tags = ["eip", "basic", "sg"]
# Validate the following:
# 1. deploy Vm with the startvm=true
@ -1584,11 +1584,11 @@ class TestDeployVMFromTemplate(cloudstackTestCase):
except Exception as e:
self.debug("Warning! Exception in tearDown: %s" % e)
@attr(tags = ["advanced", "eip", "advancedns", "basic", "sg"])
def test_deploy_vm_password_enabled(self):
"""Test Deploy Virtual Machine with startVM=false & enabledpassword in
template
"""
tags = ["advanced", "eip", "advancedns", "basic", "sg"]
# Validate the following:
# 1. Create the password enabled template
@ -1722,10 +1722,10 @@ class TestVMAccountLimit(cloudstackTestCase):
raise Exception("Warning: Exception during cleanup : %s" % e)
return
@attr(tags = ["advanced", "eip", "advancedns", "basic", "sg"])
def test_vm_per_account(self):
"""Test VM limit per account
"""
tags = ["advanced", "eip", "advancedns", "basic", "sg"]
# Validate the following
# 1. Set the resource limit for VM per account.
@ -1838,10 +1838,10 @@ class TestUploadAttachVolume(cloudstackTestCase):
raise Exception("Warning: Exception during cleanup : %s" % e)
return
@attr(tags = ["advanced", "eip", "advancedns", "basic", "sg"])
def test_upload_attach_volume(self):
"""Test Upload volume and attach to VM in stopped state
"""
tags = ["advanced", "eip", "advancedns", "basic", "sg"]
# Validate the following
# 1. Upload the volume using uploadVolume API call

View File

@ -156,10 +156,10 @@ class TestCreateTemplate(cloudstackTestCase):
return
@attr(tags = ["advanced", "advancedns"])
def test_01_create_template(self):
"""Test create public & private template
"""
tags = ["advanced", "advancedns"]
# Validate the following:
# 1. Upload a templates in raw img format. Create a Vm instances from
# raw img template.
@ -372,10 +372,10 @@ class TestTemplates(cloudstackTestCase):
return
@attr(tags = ["advanced", "advancedns"])
def test_01_create_template_volume(self):
"""Test Create template from volume
"""
tags = ["advanced", "advancedns"]
# Validate the following:
# 1. Deploy new VM using the template created from Volume
@ -412,9 +412,9 @@ class TestTemplates(cloudstackTestCase):
)
return
@attr(tags = ["advanced", "advancedns"])
def test_02_copy_template(self):
"""Test for copy template from one zone to another"""
tags = ["advanced", "advancedns"]
# Validate the following
# 1. copy template should be successful and
@ -470,10 +470,10 @@ class TestTemplates(cloudstackTestCase):
self.apiclient.deleteTemplate(cmd)
return
@attr(tags = ["advanced", "advancedns"])
def test_03_delete_template(self):
"""Test Delete template
"""
tags = ["advanced", "advancedns"]
# Validate the following:
# 1. Create a template and verify it is shown in list templates response
@ -525,10 +525,10 @@ class TestTemplates(cloudstackTestCase):
)
return
@attr(tags = ["advanced", "advancedns"])
def test_04_template_from_snapshot(self):
"""Create Template from snapshot
"""
tags = ["advanced", "advancedns"]
# Validate the following
# 2. Snapshot the Root disk

View File

@ -158,11 +158,11 @@ class TestUploadDataDisk(cloudstackTestCase):
except Exception as e:
raise Exception("Warning: Exception during cleanup : %s" % e)
@attr(tags = ["advanced", "basic", "eip", "advancedns", "sg"])
def test_01_upload_data_disk(self):
"""Test Upload a data disk
"""
tags = ["advanced", "basic", "eip", "advancedns", "sg"]
# Validate the following
# 1. call upload volume API with following parameters HTTP URL of the
@ -211,11 +211,11 @@ class TestUploadDataDisk(cloudstackTestCase):
)
return
@attr(tags = ["advanced", "basic", "eip", "advancedns", "sg"])
def test_02_upload_volume_limit(self):
"""Test upload volume limits
"""
tags = ["advanced", "basic", "eip", "advancedns", "sg"]
# Validate the following
# 1. Update the volume resource limit for account to 1
@ -316,11 +316,11 @@ class TestUploadDiskDiffFormat(cloudstackTestCase):
except Exception as e:
raise Exception("Warning: Exception during cleanup : %s" % e)
@attr(tags = ["advanced", "basic", "eip", "advancedns", "sg"])
def test_upload_disk_diff_format(self):
"""Test Upload a data disk in different format
"""
tags = ["advanced", "basic", "eip", "advancedns", "sg"]
# Validate the following
# 1. call upload volume API with following parameters HTTP URL of the
@ -449,11 +449,11 @@ class TestUploadAttachDisk(cloudstackTestCase):
except Exception as e:
raise Exception("Warning: Exception during cleanup : %s" % e)
@attr(tags = ["advanced", "basic", "eip", "advancedns", "sg"])
def test_upload_attach_data_disk(self):
"""Test Upload and attach a data disk
"""
tags = ["advanced", "basic", "eip", "advancedns", "sg"]
# Validate the following
# 1. call upload volume API with following parameters HTTP URL of the
@ -602,11 +602,11 @@ class TestUploadAttachDiskDiffFormat(cloudstackTestCase):
except Exception as e:
raise Exception("Warning: Exception during cleanup : %s" % e)
@attr(tags = ["advanced", "basic", "eip", "advancedns", "sg"])
def test_upload_disk_diff_format(self):
"""Test Upload a data disk in different format
"""
tags = ["advanced", "basic", "eip", "advancedns", "sg"]
# Validate the following
# 1. call upload volume API with following parameters HTTP URL of the
@ -757,11 +757,11 @@ class TestUploadDiskMultiStorage(cloudstackTestCase):
except Exception as e:
raise Exception("Warning: Exception during cleanup : %s" % e)
@attr(tags = ["advanced", "basic", "eip", "advancedns", "sg"])
def test_01_upload_volume_multi_sec_storage(self):
"""Test Upload a data disk when multiple sec storages are present
"""
tags = ["advanced", "basic", "eip", "advancedns", "sg"]
# Validate the following
# 1. Assume multiple secondary storages are present in a zone
@ -826,11 +826,11 @@ class TestUploadDiskMultiStorage(cloudstackTestCase):
)
return
@attr(tags = ["advanced", "basic", "eip", "advancedns", "sg"])
def test_02_upload_volume_multi_pri_storage(self):
"""Test Upload a data disk when multiple primary storages are present
"""
tags = ["advanced", "basic", "eip", "advancedns", "sg"]
# Validate the following
# 1. Assume multiple primary storages are present in a pod

View File

@ -174,10 +174,10 @@ class TestVmUsage(cloudstackTestCase):
raise Exception("Warning: Exception during cleanup : %s" % e)
return
@attr(tags = ["advanced", "basic", "sg", "eip", "advancedns"])
def test_01_vm_usage(self):
"""Test Create/Destroy VM and verify usage calculation
"""
tags = ["advanced", "basic", "sg", "eip", "advancedns"]
# Validate the following
# 1. Create a VM. Verify usage_events table contains VM .create,
# VM.start , Network.offering.assign , Volume.create events
@ -365,10 +365,10 @@ class TestPublicIPUsage(cloudstackTestCase):
raise Exception("Warning: Exception during cleanup : %s" % e)
return
@attr(tags = ["advanced", "eip", "advancedns"])
def test_01_public_ip_usage(self):
"""Test Assign new IP and verify usage calculation
"""
tags = ["advanced", "eip", "advancedns"]
# Validate the following
# 1. Aquire a IP for the network of this account. Verify usage_event
# table has Acquire IP event for the IP for this account
@ -512,10 +512,10 @@ class TestVolumeUsage(cloudstackTestCase):
raise Exception("Warning: Exception during cleanup : %s" % e)
return
@attr(tags = ["advanced", "basic", "sg", "eip", "advancedns"])
def test_01_volume_usage(self):
"""Test Create/delete a volume and verify correct usage is recorded
"""
tags = ["advanced", "basic", "sg", "eip", "advancedns"]
# Validate the following
# 1. Volume.create event for both root and data disk is there for the
# created account in cloud.usage_event table
@ -694,10 +694,10 @@ class TestTemplateUsage(cloudstackTestCase):
return
def test_01_template_usage(self):
@attr(tags = ["advanced", "basic", "sg", "eip", "advancedns"])
"""Test Upload/ delete a template and verify correct usage is generated
for the template uploaded
"""
tags = ["advanced", "basic", "sg", "eip", "advancedns"]
# Validate the following
# 1. Create a account
# 2. Upload a template from this account. template.create event is
@ -836,10 +836,10 @@ class TestISOUsage(cloudstackTestCase):
raise Exception("Warning: Exception during cleanup : %s" % e)
return
@attr(tags = ["advanced", "basic", "sg", "eip", "advancedns"])
def test_01_ISO_usage(self):
"""Test Create/Delete a ISO and verify its usage is generated correctly
"""
tags = ["advanced", "basic", "sg", "eip", "advancedns"]
# Validate the following
# 1. Create a account
# 2. Upload a ISO from this account. ISO.create event is recorded in
@ -987,10 +987,10 @@ class TestLBRuleUsage(cloudstackTestCase):
raise Exception("Warning: Exception during cleanup : %s" % e)
return
@attr(tags = ["advanced", "eip", "advancedns"])
def test_01_lb_usage(self):
"""Test Create/Delete a LB rule and verify correct usage is recorded
"""
tags = ["advanced", "eip", "advancedns"]
# Validate the following
# 1. Acquire a IP for this account. lb.rule.create event is registered
# for this account in cloud.usage_event table
@ -1142,11 +1142,11 @@ class TestSnapshotUsage(cloudstackTestCase):
raise Exception("Warning: Exception during cleanup : %s" % e)
return
@attr(tags = ["advanced", "basic", "sg", "eip", "advancedns"])
def test_01_snapshot_usage(self):
"""Test Create/Delete a manual snap shot and verify
correct usage is recorded
"""
tags = ["advanced", "basic", "sg", "eip", "advancedns"]
# Validate the following
# 1. Create snapshot of the root disk for this account.Snapshot.create
# event is there for the created account in cloud.usage_event table
@ -1313,10 +1313,10 @@ class TestNatRuleUsage(cloudstackTestCase):
raise Exception("Warning: Exception during cleanup : %s" % e)
return
@attr(tags = ["advanced", "advancedns"])
def test_01_nat_usage(self):
"""Test Create/Delete a PF rule and verify correct usage is recorded
"""
tags = ["advanced", "advancedns"]
# Validate the following
# 1. Acquire a IP for this account
# 2. Create a PF rule on the IP associated with this account.
@ -1475,10 +1475,10 @@ class TestVpnUsage(cloudstackTestCase):
raise Exception("Warning: Exception during cleanup : %s" % e)
return
@attr(tags = ["advanced", "advancedns"])
def test_01_vpn_usage(self):
"""Test Create/Delete a VPN and verify correct usage is recorded
"""
tags = ["advanced", "advancedns"]
# Validate the following
# 1. Enable VPN for this IP. vpn.add.user event is registered for this
# account in cloud.usage_event table

View File

@ -154,6 +154,7 @@ class TestVMPlacement(cloudstackTestCase):
raise Exception("Warning: Exception during cleanup : %s" % e)
return
@attr(tags = ["advanced", "vmware"])_
def test_vm_creation_in_fully_automated_mode(self):
""" Test VM Creation in automation mode = Fully automated
This test requires following preconditions:
@ -163,7 +164,6 @@ class TestVMPlacement(cloudstackTestCase):
- Another host should have some capacity remaining
- DRS Cluster is configured in "Fully automated" mode
"""
tags = ["advanced", "vmware", "eip", "advancedns", "basic", "sg"]
# Validate the following
# 1. Create a new VM in a host which is almost fully utilized
# 2 Automatically places VM on the other host
@ -279,7 +279,8 @@ class TestAntiAffinityRules(cloudstackTestCase):
except Exception as e:
raise Exception("Warning: Exception during cleanup : %s" % e)
return
@attr(tags = ["advanced", "vmware"])
def test_vmware_anti_affinity(self):
""" Test Set up anti-affinity rules
@ -291,7 +292,6 @@ class TestAntiAffinityRules(cloudstackTestCase):
- Add host names to host_1,host_2 and IDs of VM 1,2 in the settings
class "anti_affinity" above.
"""
tags = ["advanced", "vmware", "eip", "advancedns", "basic", "sg"]
# Validate the following
# 1. Deploy VMs on host 1 and 2
@ -481,6 +481,7 @@ class TestAffinityRules(cloudstackTestCase):
raise Exception("Warning: Exception during cleanup : %s" % e)
return
@attr(tags = ["advanced", "vmware"])
def test_vmware_affinity(self):
""" Test Set up affinity rules
@ -492,7 +493,6 @@ class TestAffinityRules(cloudstackTestCase):
- Add host names to host_1,host_2 and IDs of VM 1,2 in the settings
class "affinity" above.
"""
tags = ["advanced", "vmware", "eip", "advancedns", "basic", "sg"]
# Validate the following
# 1. Deploy VMs 2 VMs on same hosts

View File

@ -137,10 +137,10 @@ class TestAttachVolume(cloudstackTestCase):
self.dbclient = self.testClient.getDbConnection()
self.cleanup = []
@attr(tags = ["advanced", "advancedns"])
def test_01_volume_attach(self):
"""Test Attach volumes (max capacity)
"""
tags = ["advanced", "advancedns"]
# Validate the following
# 1. Deploy a vm and create 5 data disk
# 2. Attach all the created Volume to the vm.
@ -289,10 +289,10 @@ class TestAttachVolume(cloudstackTestCase):
)
return
@attr(tags = ["advanced", "advancedns"])
def test_02_volume_attach_max(self):
"""Test attach volumes (more than max) to an instance
"""
tags = ["advanced", "advancedns"]
# Validate the following
# 1. Attach one more data volume to VM (Already 5 attached)
@ -420,10 +420,10 @@ class TestAttachDetachVolume(cloudstackTestCase):
except Exception as e:
raise Exception("Warning: Exception during cleanup : %s" % e)
@attr(tags = ["advanced", "advancedns"])
def test_01_volume_attach_detach(self):
"""Test Volume attach/detach to VM (5 data volumes)
"""
tags = ["advanced", "advancedns"]
# Validate the following
# 1. Deploy a vm and create 5 data disk
@ -668,10 +668,10 @@ class TestAttachVolumeISO(cloudstackTestCase):
raise Exception("Warning: Exception during cleanup : %s" % e)
return
@attr(tags = ["advanced", "advancedns"])
def test_01_volume_iso_attach(self):
"""Test Volumes and ISO attach
"""
tags = ["advanced", "advancedns"]
# Validate the following
# 1. Create and attach 5 data volumes to VM
@ -864,10 +864,10 @@ class TestVolumes(cloudstackTestCase):
cleanup_resources(self.apiclient, self.cleanup)
return
@attr(tags = ["advanced", "advancedns"])
def test_01_attach_volume(self):
"""Attach a created Volume to a Running VM
"""
tags = ["advanced", "advancedns"]
# Validate the following
# 1. Create a data volume.
# 2. List Volumes should not have vmname and virtualmachineid fields in
@ -948,10 +948,10 @@ class TestVolumes(cloudstackTestCase):
)
return
@attr(tags = ["advanced", "advancedns"])
def test_02_detach_volume(self):
"""Detach a Volume attached to a VM
"""
tags = ["advanced", "advancedns"]
# Validate the following
# 1. Data disk should be detached from instance
@ -996,10 +996,10 @@ class TestVolumes(cloudstackTestCase):
)
return
@attr(tags = ["advanced", "advancedns"])
def test_03_delete_detached_volume(self):
"""Delete a Volume unattached to an VM
"""
tags = ["advanced", "advancedns"]
# Validate the following
# 1. volume should be deleted successfully and listVolume should not
# contain the deleted volume details.