cloudstack/test/integration/smoke
Remi Bergsma 9a21873c4a Merge pull request #1134 from pdube/CLOUDSTACK-6276
CLOUDSTACK-6276 Fixing affinity groups for projectsWith some contributions from @resmo and @ustcweizhou.
This closes https://github.com/apache/cloudstack/pull/508

To test manually (need at least 2 hosts):
Create a project
Create an affinity group in that project
Deploy a vm with that affinity group
Deploy a second vm with that affinity group
They should be on different hosts

Ran old and new tests for affinity groups on the simulator

Test create affinity group as admin in project ... === TestName: test_01_admin_create_aff_grp_for_project | Status : SUCCESS ===
ok
Test create affinity group as domain admin for projects ... === TestName: test_02_doadmin_create_aff_grp_for_project | Status : SUCCESS ===
ok
Test create affinity group as user for projects ... === TestName: test_03_user_create_aff_grp_for_project | Status : SUCCESS ===
ok
Test create affinity group that exists (same name) for projects ... === TestName: test_4_user_create_aff_grp_existing_name_for_project | Status : SUCCESS ===
ok
#Delete Affinity Group by id. ... === TestName: test_01_delete_aff_grp_by_id | Status : SUCCESS ===
ok
#Delete Affinity Group by id should fail for user not in project ... === TestName: test_02_delete_aff_grp_by_id_another_user | Status : SUCCESS ===
ok
test DeployVM in anti-affinity groups ... === TestName: test_01_deploy_vm_anti_affinity_group | Status : SUCCESS ===
ok
test DeployVM in anti-affinity groups with more vms than hosts. ... === TestName: test_02_deploy_vm_anti_affinity_group_fail_on_not_enough_hosts | Status : SUCCESS ===
ok
List affinity group for a vm for projects ... === TestName: test_01_list_aff_grps_for_vm | Status : SUCCESS ===
ok
List multiple affinity groups associated with a vm for projects ... === TestName: test_02_list_multiple_aff_grps_for_vm | Status : SUCCESS ===
ok
List affinity groups by id for projects ... === TestName: test_03_list_aff_grps_by_id | Status : SUCCESS ===
ok
List Affinity Groups by name for projects ... === TestName: test_04_list_aff_grps_by_name | Status : SUCCESS ===
ok
List Affinity Groups by non-existing id for projects ... === TestName: test_05_list_aff_grps_by_non_existing_id | Status : SUCCESS ===
ok
List Affinity Groups by non-existing name for projects ... === TestName: test_06_list_aff_grps_by_non_existing_name | Status : SUCCESS ===
ok
List affinity group should list all for a vms associated with that group for projects ... === TestName: test_07_list_all_vms_in_aff_grp | Status : SUCCESS ===
ok
Update the list of affinityGroups by using affinity groupids ... === TestName: test_01_update_aff_grp_by_ids | Status : SUCCESS ===
ok

----------------------------------------------------------------------
Ran 16 tests in 581.706s

OK

Deploy vm as Admin in Affinity Group belonging to regular user (should fail) ... === TestName: test_01_deploy_vm_another_user | Status : SUCCESS ===
ok
Create Affinity Group as admin for regular user ... === TestName: test_02_create_aff_grp_user | Status : SUCCESS ===
ok
List Affinity Groups as admin for all the users ... === TestName: test_03_list_aff_grp_all_users | Status : SUCCESS ===
ok
List Affinity Groups belonging to admin user ... === TestName: test_04_list_all_admin_aff_grp | Status : SUCCESS ===
ok
List Affinity Groups belonging to regular user passing account id and domain id ... === TestName: test_05_list_all_users_aff_grp | Status : SUCCESS ===
ok
List Affinity Groups belonging to regular user passing group id ... === TestName: test_06_list_all_users_aff_grp_by_id | Status : SUCCESS ===
ok
Delete Affinity Group belonging to regular user ... === TestName: test_07_delete_aff_grp_of_other_user | Status : SUCCESS ===
ok
Test create affinity group as admin ... === TestName: test_01_admin_create_aff_grp | Status : SUCCESS ===
ok
Test create affinity group as domain admin ... === TestName: test_02_doadmin_create_aff_grp | Status : SUCCESS ===
ok
Test create affinity group as user ... === TestName: test_03_user_create_aff_grp | Status : SUCCESS ===
ok
Test create affinity group that exists (same name) ... === TestName: test_04_user_create_aff_grp_existing_name | Status : SUCCESS ===
ok
Test create affinity group with existing name but within different account ... === TestName: test_05_create_aff_grp_same_name_diff_acc | Status : SUCCESS ===
ok
Test create affinity group of non-existing type ... === TestName: test_06_create_aff_grp_nonexisting_type | Status : SUCCESS ===
ok
Delete Affinity Group by name ... === TestName: test_01_delete_aff_grp_by_name | Status : SUCCESS ===
ok
Delete Affinity Group as admin for an account ... === TestName: test_02_delete_aff_grp_for_acc | Status : SUCCESS ===
ok
Delete Affinity Group which has vms in it ... === TestName: test_03_delete_aff_grp_with_vms | Status : SUCCESS ===
ok
Delete Affinity Group with id which does not belong to this user ... === TestName: test_05_delete_aff_grp_id | Status : SUCCESS ===
ok
Delete Affinity Group by name which does not belong to this user ... === TestName: test_06_delete_aff_grp_name | Status : SUCCESS ===
ok
Delete Affinity Group by id. ... === TestName: test_08_delete_aff_grp_by_id | Status : SUCCESS ===
ok
Root admin should be able to delete affinity group of other users ... === TestName: test_09_delete_aff_grp_root_admin | Status : SUCCESS ===
ok
Deploy VM without affinity group ... === TestName: test_01_deploy_vm_without_aff_grp | Status : SUCCESS ===
ok
Deploy VM by aff grp name ... === TestName: test_02_deploy_vm_by_aff_grp_name | Status : SUCCESS ===
ok
Deploy VM by aff grp id ... === TestName: test_03_deploy_vm_by_aff_grp_id | Status : SUCCESS ===
ok
test DeployVM in anti-affinity groups ... === TestName: test_04_deploy_vm_anti_affinity_group | Status : SUCCESS ===
ok
Deploy vms by affinity group id ... === TestName: test_05_deploy_vm_by_id | Status : SUCCESS ===
ok
Deploy vm in affinity group of another user by name ... === TestName: test_06_deploy_vm_aff_grp_of_other_user_by_name | Status : SUCCESS ===
ok
Deploy vm in affinity group of another user by id ... === TestName: test_07_deploy_vm_aff_grp_of_other_user_by_id | Status : SUCCESS ===
ok
Deploy vm in multiple affinity groups ... === TestName: test_08_deploy_vm_multiple_aff_grps | Status : SUCCESS ===
ok
Deploy multiple vms in multiple affinity groups ... === TestName: test_09_deploy_vm_multiple_aff_grps | Status : SUCCESS ===
ok
Deploy VM by aff grp name and id ... === TestName: test_10_deploy_vm_by_aff_grp_name_and_id | Status : SUCCESS ===
ok
List affinity group for a vm ... === TestName: test_01_list_aff_grps_for_vm | Status : SUCCESS ===
ok
List multiple affinity groups associated with a vm ... === TestName: test_02_list_multiple_aff_grps_for_vm | Status : SUCCESS ===
ok
List affinity groups by id ... === TestName: test_03_list_aff_grps_by_id | Status : SUCCESS ===
ok
List Affinity Groups by name ... === TestName: test_04_list_aff_grps_by_name | Status : SUCCESS ===
ok
List Affinity Groups by non-existing id ... === TestName: test_05_list_aff_grps_by_non_existing_id | Status : SUCCESS ===
ok
List Affinity Groups by non-existing name ... === TestName: test_06_list_aff_grps_by_non_existing_name | Status : SUCCESS ===
ok
List affinity group should list all for a vms associated with that group ... === TestName: test_07_list_all_vms_in_aff_grp | Status : SUCCESS ===
ok
Update the list of affinityGroups by using affinity groupids ... === TestName: test_01_update_aff_grp_by_ids | Status : SUCCESS ===
ok
Update the list of affinityGroups by using affinity groupnames ... === TestName: test_02_update_aff_grp_by_names | Status : SUCCESS ===
ok
Update the list of affinityGroups for vm which is not associated ... === TestName: test_03_update_aff_grp_for_vm_with_no_aff_grp | Status : SUCCESS ===
ok
Update the list of Affinity Groups to empty list ... SKIP: Skip - Failing - work in progress
Update the list of Affinity Groups on running vm ... === TestName: test_05_update_aff_grp_on_running_vm | Status : SUCCESS ===
ok

----------------------------------------------------------------------
Ran 42 tests in 976.432s

OK (SKIP=1)

* pr/1134:
  CLOUDSTACK-6276 Removing unused parameter in integration test for projects
  CLOUDSTACK-6276 Removing unused parameter in integration test
  CLOUDSTACK-6276 Fixing affinity groups for projects

Signed-off-by: Remi Bergsma <github@remi.nl>
2015-12-03 20:10:16 +01:00
..
misc Adding new test which would verify the fix for issue "The ISO/Template is automatically deleted after URL expires" 2014-10-17 18:04:35 +05:30
__init__.py apply chip childers licensing patches for the test directory 2012-06-26 11:19:58 -04:00
test_affinity_groups.py Removed medium dictionary from test_data and modified the tests dependent on it 2015-08-06 11:29:13 +05:30
test_affinity_groups_projects.py CLOUDSTACK-6276 Fixing affinity groups for projects 2015-11-27 14:43:02 -05:00
test_deploy_vgpu_enabled_vm.py Removed medium dictionary from test_data and modified the tests dependent on it 2015-08-06 11:29:13 +05:30
test_deploy_vm_iso.py CLOUDSTACK-8286: Adding Basic validation test case to test deploying VM from ISO and correcting old regression test case to test HA VM from ISO 2015-03-12 11:10:08 +05:30
test_deploy_vm_root_resize.py Removed 'BugId' tag from tests for fixed bugs 2014-09-08 16:00:08 +05:30
test_deploy_vm_with_userdata.py Removed medium dictionary from test_data and modified the tests dependent on it 2015-08-06 11:29:13 +05:30
test_deploy_vms_with_varied_deploymentplanners.py Removed medium dictionary from test_data and modified the tests dependent on it 2015-08-06 11:29:13 +05:30
test_disk_offerings.py removed unnecessary pdb break point. 2015-02-09 11:56:33 +05:30
test_global_settings.py CLOUDSTACK-6914: Fixed the mentioned issue 2014-06-17 14:26:44 +05:30
test_guest_vlan_range.py Re-enabling fixed test cases 2014-06-25 18:02:04 +05:30
test_hosts.py Fixed Regression issues mentioned under CLOUDSTACK-6708 2014-07-11 20:49:00 +05:30
test_internal_lb.py Add wait for template download 2015-10-23 15:23:53 +02:00
test_iso.py CLOUDSTACK-8755: xs-tools.iso missing from ISOs in CCP GUI 2015-09-02 11:46:28 +05:30
test_loadbalance.py CLOUDSTACK-8947 - Do not rely on the machine hostname to verify the test 2015-10-14 07:44:39 +02:00
test_multipleips_per_nic.py CLOUDSTACK-6914: Fixed the mentioned issue 2014-06-17 14:26:44 +05:30
test_network.py CLOUDSTACK-8991 - Process the IPs that have been removed 2015-10-28 19:51:57 +01:00
test_network_acl.py Removed medium dictionary from test_data and modified the tests dependent on it 2015-08-06 11:29:13 +05:30
test_nic.py CLOUDSTACK-8394: Skip test cases through setUp() instead of setUpClass() 2015-04-28 12:33:54 +05:30
test_nic_adapter_type.py CLOUDSTACK-8394: Skip test cases through setUp() instead of setUpClass() 2015-04-28 12:33:54 +05:30
test_nicira_controller.py Add Marvin test for Nicira NVP plugin 2015-08-25 14:50:30 +02:00
test_non_contigiousvlan.py Re-enabling fixed test cases 2014-06-25 18:02:04 +05:30
test_over_provisioning.py CLOUDSTACK-6914: Fixed the mentioned issue 2014-06-17 14:26:44 +05:30
test_portable_publicip.py CLOUDSTACK-6914: Fixed the mentioned issue 2014-06-17 14:26:44 +05:30
test_primary_storage.py CLOUDSTACK-7938: Marvin - Create a new section in test_data.py for configurable data and change test cases accordingly 2014-11-25 18:30:33 +05:30
test_privategw_acl.py CLOUDSTACK-9075 - Uses the same vlan since it should have been already released 2015-12-02 10:36:53 +01:00
test_public_ip_range.py CLOUDSTACK-6914: Fixed the mentioned issue 2014-06-17 14:26:44 +05:30
test_pvlan.py CLOUDSTACK-6914: Fixed the mentioned issue 2014-06-17 14:26:44 +05:30
test_regions.py test fails unexplicalby while functionality is ok 2015-02-20 14:24:45 +01:00
test_reset_vm_on_reboot.py CLOUDSTACK-6914: Fixed the mentioned issue 2014-06-17 14:26:44 +05:30
test_resource_detail.py CLOUDSTACK-6914: Fixed the mentioned issue 2014-06-17 14:26:44 +05:30
test_routers.py Removed medium dictionary from test_data and modified the tests dependent on it 2015-08-06 11:29:13 +05:30
test_scale_vm.py CLOUDSTACK-8924: Removed duplicate test from test_scale_vm.py 2015-09-30 15:23:30 +05:30
test_secondary_storage.py Extend wait before retry to states other than 'Starting' 2015-06-24 07:34:26 +02:00
test_service_offerings.py Removed medium dictionary from test_data and modified the tests dependent on it 2015-08-06 11:29:13 +05:30
test_snapshots.py Removed medium dictionary from test_data and modified the tests dependent on it 2015-08-06 11:29:13 +05:30
test_ssvm.py CLOUDSTACK-9021 - Add right interface when test is executed against HyperV/VMware 2015-11-03 11:18:11 +01:00
test_templates.py verify that when createTemplate is ued to create templates with same name, all of them fet unique_name under vm_template table so that templates with same name does not get deleted during template sync 2015-08-26 17:43:14 +05:30
test_usage_events.py CLOUDSTACK-8314: Add test case to validate VM.DESTROY event is logged when VM deployment fails 2015-03-12 16:43:08 +05:30
test_vm_life_cycle.py Removed medium dictionary from test_data and modified the tests dependent on it 2015-08-06 11:29:13 +05:30
test_vm_snapshots.py Modified test description 2015-09-23 11:52:10 +05:30
test_volumes.py Removed medium dictionary from test_data and modified the tests dependent on it 2015-08-06 11:29:13 +05:30
test_vpc_vpn.py smoke/test_vpc_vpn: Add template wait & refactor 2015-11-04 07:45:10 +01:00