cloudstack/test/integration/smoke
Abhinandan Prateek 987fcbd441 CLOUDSTACK-8592: Implement Quota service
Quota service while allowing for scalability will make sure that the cloud is
not exploited by attacks, careless use and program errors. To address this
problem, we propose to employ a quota-enforcement service that allows resource
usage within certain bounds as defined by policies and available quotas for
various entities.  Quota service extends the functionality of usage server to
provide a measurement for the resources used by the accounts and domains using a
common unit referred to as cloud currency in this document. It can be configured
to ensure that your usage won’t exceed the budget allocated to accounts/domain
in cloud currency.  It will let user know how much of the cloud resources he is
using. It will help the cloud admins, if they want, to ensure that a user does
not go beyond his allocated quota. Per usage cycle if a account is found to be
exceeding its quota then it is locked. Locking an account means that it will not
be able to initiat e a new resource allocation request, whether it is more
storage or an additional ip. Needless to say quota service as well as any action
on the account is configurable.

Changes from Github code review:

- Added marvin test for quota plugin API
- removed unused commented code
- debug messages in debug enabled check
- checks for nulls, fixed access to member variables and feature
- changes based on PR comments
- unit tests for UsageTypes
- unit tests for all Cmd classes
- unit tests for all service and manager impls
- try-catch-finally or try-with-resource in dao impls for failsafe db switching
- remove dead code
- add missing quota calculation case (regression fixed)
- replace tabs with spaces in pom.xmls
- quota: though default value for quota_calculated is 0, the usage server
  makes it null while entering usage entries. Flipping the condition so
  as to acocunt for that.
- quotatypes: fix NPE in quota type
- quota framework test fixes
- made statement period configurable
- changed default email templates to reflect the fact that exhausted quota may not result in a locked account
- added quotaUpdateCmd that refreshes quota balances and sends alerts and statements
- report quotaSummary command returns quota balance, quota usage and state for all account
- made UI framework changes to allow for text area input in edit views
- process usage entries that have greater than 0 usage
- orocess quota entries only if tariff is non zero
- if there are credit entries but no balance entry create a dummy balance entry
- remove any credit entries that are before the last balance entry
  when displaying balance statement
- on a rerun the last balance is now getting added

FS: https://cwiki.apache.org/confluence/display/CLOUDSTACK/Quota+Service+-+FS
PR: https://github.com/apache/cloudstack/pull/768

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2015-12-07 23:02:48 +05:30
..
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_quota.py CLOUDSTACK-8592: Implement Quota service 2015-12-07 23:02:48 +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