cloudstack/test/integration/smoke
Rohit Yadav f30c52a16c CLOUDSTACK-8562: DB-Backed Dynamic Role Based API Access Checker
This feature allows root administrators to define new roles and associate API
permissions to them.

A limited form of role-based access control for the CloudStack management server
API is provided through a properties file, commands.properties, embedded in the
WAR distribution. Therefore, customizing API permissions requires unpacking the
distribution and modifying this file consistently on all servers. The old system
also does not permit the specification of additional roles.

FS:
https://cwiki.apache.org/confluence/display/CLOUDSTACK/Dynamic+Role+Based+API+Access+Checker+for+CloudStack

DB-Backed Dynamic Role Based API Access Checker for CloudStack brings following
changes, features and use-cases:
- Moves the API access definitions from commands.properties to the mgmt server DB
- Allows defining custom roles (such as a read-only ROOT admin) beyond the
  current set of four (4) roles
- All roles will resolve to one of the four known roles types (Admin, Resource
  Admin, Domain Admin and User) which maintains this association by requiring
  all new defined roles to specify a role type.
- Allows changes to roles and API permissions per role at runtime including additions or
  removal of roles and/or modifications of permissions, without the need
  of restarting management server(s)

Upgrade/installation notes:
- The feature will be enabled by default for new installations, existing
  deployments will continue to use the older static role based api access checker
  with an option to enable this feature
- During fresh installation or upgrade, the upgrade paths will add four default
  roles based on the four default role types
- For ease of migration, at the time of upgrade commands.properties will be used
  to add existing set of permissions to the default roles. cloud.account
  will have a new role_id column which will be populated based on default roles
  as well

Dynamic-roles migration tool: scripts/util/migrate-dynamicroles.py
- Allows admins to migrate to the dynamic role based checker at a future date
- Performs a harder one-way migrate and update
- Migrates rules from existing commands.properties file into db and deprecates it
- Enables an internal hidden switch to enable dynamic role based checker feature

Deprecate commands.properties

- Fixes apidocs and marvin to be independent of commands.properties usage
- Removes bundling of commands.properties in deb/rpm packaging
- Removes file references across codebase

Reviewed-by: John Burwell <john.burwell@shapeblue.com>
QA-by: Boris Stoyanov <boris.stoyanov@shapeblue.com>

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2016-04-25 14:52:02 +05:30
..
misc Moved vm sync test cases to misc folder 2014-08-14 00:40:32 +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 CLOUDSTACK-6914: Fixed the mentioned issue 2014-06-17 14:26:44 +05:30
test_deploy_vgpu_enabled_vm.py Removed 'BugId' tag from tests for fixed bugs 2014-09-08 16:00: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 CLOUDSTACK-6914: Fixed the mentioned issue 2014-06-17 14:26:44 +05:30
test_deploy_vms_with_varied_deploymentplanners.py CLOUDSTACK-6914: Fixed the mentioned issue 2014-06-17 14:26:44 +05:30
test_disk_offerings.py CLOUDSTACK-6914: Fixed the mentioned issue 2014-06-17 14:26:44 +05:30
test_dynamicroles.py CLOUDSTACK-8562: DB-Backed Dynamic Role Based API Access Checker 2016-04-25 14:52:02 +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 CLOUDSTACK-6914: Fixed the mentioned issue 2014-06-17 14:26:44 +05:30
test_iso.py List ISO's test to verify default ISO's are listed always 2014-10-13 00:00:59 -04:00
test_loadbalance.py CLOUDSTACK-6914: Fixed the mentioned issue 2014-06-17 14:26:44 +05:30
test_multipleips_per_nic.py CLOUDSTACK-6914: Fixed the mentioned issue 2014-06-17 14:26:44 +05:30
test_network.py CLOUDSTACK-7321: Resolved cleanup issue in test_network.py 2014-08-13 10:07:33 +05:30
test_network_acl.py CLOUDSTACK-6914: Fixed the mentioned issue 2014-06-17 14:26:44 +05:30
test_nic.py CLOUDSTACK-7800: Correcting code related to unplug NIC on VMware 2014-11-05 12:57:40 +05:30
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:27:01 +05:30
test_privategw_acl.py CLOUDSTACK-6914: Fixed the mentioned issue 2014-06-17 14:26:44 +05:30
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 CLOUDSTACK-6914: Fixed the mentioned issue 2014-06-17 14:26:44 +05:30
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 CLOUDSTACK-8143: Corrected a test in BVT test_routers.py 2015-01-13 16:43:01 +05:30
test_scale_vm.py CLOUDSTACK-7693: test_scale_vm.py - fix pep8 issues 2014-11-13 18:28:13 +05:30
test_secondary_storage.py CLOUDSTACK-6914: Fixed the mentioned issue 2014-06-17 14:26:44 +05:30
test_service_offerings.py CLOUDSTACK-8117: Increase the allowed margin (+/-) for memory of VM on hyperv used to equate with the memory specified in service offering 2014-12-24 10:36:33 +05:30
test_snapshots.py CLOUDSTACK-7727 Skip various BVT tests on LXC 2014-10-16 17:21:44 +05:30
test_ssvm.py CLOUDSTACK-8096: Fixed test_ssvm.py for issues while checking the result of diagnostic scripts 2014-12-23 14:24:32 +05:30
test_staticroles.py CLOUDSTACK-8562: DB-Backed Dynamic Role Based API Access Checker 2016-04-25 14:52:02 +05:30
test_templates.py CLOUDSTACK-7727 Skip various BVT tests on LXC 2014-10-16 17:21:44 +05:30
test_vm_life_cycle.py CLOUDSTACK-7727 Skip various BVT tests on LXC 2014-10-16 17:21:44 +05:30
test_vm_snapshots.py CLOUDSTACK-8098: Fixed VM snapshot issue in smoke/test_vm_snapshots.py 2014-12-23 14:59:55 +05:30
test_volumes.py CLOUDSTACK-8161: mark the data volume related operations on LXC as skipped if RBD storage pool is not available 2015-01-16 18:45:19 +05:30
test_vpc_vpn.py CLOUDSTACK-6914: Fixed the mentioned issue 2014-06-17 14:26:44 +05:30