salt/tests/unit/states
hlub 1494c44918 Refactored GlusterFS support
Usage of GlusterFS states did not change except the state 'created' was deprecated in favor of more descriptive name 'volume_present'.
- Improved separation of functionality in the execution module from the states. Module functions now return booleans instead of varying
strings. Parsing those strings in the states was very error-prone. In glusterfs.peer() function this problem was earlier solved by returning
a dict containing both the exit value and output string of the gluster call. This could be a good idea, although without calling the gluster
calls twice, and applied to other functios too.
- Calls to gluster are now logged more verbosely, while a failing call no longer raises an immediate exception.
- Improved checking and verbosity in the state level. Cleaned code a lot, removed some bugs and other odd behaviour.
- Updated tests to match the changes. Refactored some test code to be more readable. Added assertions to test that some functions are not
called when things are already in the desired state. Preferred changing behaviour of the mocked functions while proceeding instead of listing
all of the return values first.
- Replaced glusterfs.list_peers() with more informative peer_status() and deprecated the old name. The function now returns a dict with UUIDs as its keys.
- glusterfs.info() can now be called without volume name. It always returns a dictionary. Use this function instead of status() in sates.
- Functions glusterfs.delete() and glusterfs.create() were deprecated and renamed to delete_volume() and create_volume().
2016-02-25 10:46:43 -07:00
..
__init__.py Include the python encoding file header on tests. 2013-11-27 11:19:24 +00:00
alias_test.py Python 3 compat fixes for develop 2015-04-17 12:00:01 -06:00
alternatives_test.py Fix bad unit test 2016-02-11 10:31:40 -07:00
apache_conf_test.py Fix deb_apache states methods tense 2015-12-13 13:58:27 +01:00
apache_module_test.py Fix deb_apache states methods tense 2015-12-13 13:58:27 +01:00
apache_site_test.py Fix deb_apache states methods tense 2015-12-13 13:58:27 +01:00
apache_test.py fix failing apache state unit test 2015-04-23 08:09:15 -06:00
apt_test.py VirtualName for states.apt 2015-06-05 09:45:52 +02:00
archive_test.py Merge remote-tracking branch 'upstream/2015.5' into merge-forward-2015.8 2015-08-25 13:55:44 -06:00
artifactory_test.py Changed examples to use the "example.com" domain instead of "mycompany.com" or "company.com" 2016-01-12 13:37:09 -07:00
at_test.py adding states/at unit test case 2015-04-20 15:59:27 +05:30
augeas_test.py Add support for augeas loading of non stock lenses 2016-01-04 14:48:44 +02:00
aws_sqs_test.py adding states/aws_sqs unit test case 2015-04-21 17:30:48 +05:30
blockdev_test.py update blockdev exec and state module unit tests 2015-10-23 18:12:43 -06:00
boto_apigateway_test.py lint warnings/errors. 2016-02-11 14:24:35 -08:00
boto_asg_test.py Patch config.option 2015-09-30 10:04:10 -07:00
boto_cloudtrail_test.py Add tag support to boto_cloudtrail 2016-01-13 10:13:05 -06:00
boto_cloudwatch_alarm_test.py adding states/boto_cloudwatch_alarm unit test case 2015-04-22 16:15:54 +05:30
boto_cognitoidentity_test.py fixed lint warnings/errors. 2016-02-10 11:43:47 -08:00
boto_dynamodb_test.py Fix unit test 2016-01-19 16:06:07 -08:00
boto_ec2_test.py adding states/boto_ec2 unit test case 2015-04-22 16:46:39 -06:00
boto_elasticache_test.py adding states/boto_elasticache unit test 2015-04-24 12:05:24 -06:00
boto_elb_test.py Fix tests. 2015-11-24 18:09:12 -08:00
boto_iam_role_test.py Update unit tests to reflect changes 2016-02-22 10:58:23 -06:00
boto_iot_test.py Another pylint error 2015-12-31 14:30:01 -06:00
boto_lambda_test.py A few missed lint errors 2015-12-09 16:52:10 -06:00
boto_lc_test.py adding states/boto_lc unit test case 2015-04-27 17:01:26 +05:30
boto_route53_test.py adding states/boto_route53 unit test case 2015-04-27 17:03:33 +05:30
boto_s3_bucket_test.py Pylint fixes 2016-01-21 11:37:43 -06:00
boto_secgroup.py Merge remote-tracking branch 'upstream/2015.2' into merge-forward-develop 2015-04-29 12:01:52 -06:00
boto_sns_test.py adding states/boto_sns unit test case 2015-04-27 17:05:34 +05:30
boto_sqs_test.py adding states/boto_sqs unit test case 2015-04-27 17:07:06 +05:30
boto_vpc_test.py Merge remote-tracking branch 'upstream/2015.8' into merge-forward-2016.3 2016-02-11 22:33:49 -07:00
bower_test.py Implement Bower state module 2015-02-21 05:57:54 +00:00
chef_test.py adding states/chef unit test case 2015-04-27 17:08:56 +05:30
cloud_test.py Fix lxc cloud provided minion reporting present 2016-02-08 15:06:56 +00:00
cmd_test.py fix cmd_test for develop branch 2015-04-29 15:00:56 -06:00
composer_test.py adding states/composer unit test case 2015-04-30 15:41:45 +05:30
cron_test.py cron: support for commented cron jobs 2015-12-07 15:40:36 +01:00
cyg_test.py fix bad file perms 2014-12-18 10:42:25 -07:00
ddns_test.py adding states/ddns unit test case 2015-04-30 15:43:17 +05:30
debconfmod_test.py adding states/debconfmod unit test case 2015-04-30 15:44:29 +05:30
disk_test.py adding states/disk unit test case 2015-04-30 15:46:39 +05:30
dockerio.py Add from __future__ import absolute_import 2015-01-30 22:25:04 +00:00
dockerng_test.py Merge remote-tracking branch 'upstream/2015.8' into merge-forward-2016.3 2016-02-11 22:33:49 -07:00
drac_test.py adding states/drac unit test case 2015-04-30 15:47:53 +05:30
environ_test.py Fixed lint issues 2015-09-01 13:56:43 +02:00
eselect_test.py tests/unit/states/eselect_test.py: remove raw string formatting 2015-08-26 23:26:08 -05:00
event_test.py Adding states event.py unit tests 2015-04-03 11:24:47 +05:30
file_test.py Update test to reflect new position of contents param 2016-02-17 20:54:44 -06:00
gem_test.py Fix tests for #25115 2015-07-06 08:54:45 -06:00
glusterfs_test.py Refactored GlusterFS support 2016-02-25 10:46:43 -07:00
gnomedesktop_test.py adding states/gnomedesktop unit test case 2015-05-04 16:10:54 +05:30
grafana_datasource_test.py Lint 2015-12-09 09:27:12 -07:00
grafana_test.py adding states/grafana unit test case 2015-05-07 15:14:16 +05:30
grains_test.py grains state: allow deleting grain with 'False' value 2015-11-02 09:31:44 -05:00
group_test.py Adding states/group.py unit test cases 2015-04-14 19:12:49 +05:30
hg_test.py Adding states/hg.py unit test cases 2015-04-09 15:44:22 +05:30
hipchat_test.py adding states/hipchat unit test case 2015-05-11 17:57:06 +05:30
host_test.py salt.states.host.only: new function to limit to specific hostnames 2015-08-26 20:21:45 -04:00
htpasswd_test.py Make enhancements to htpasswd modules 2015-03-13 21:18:50 +00:00
http_test.py Fix failing unit test 2016-01-22 10:54:25 -07:00
incron_test.py adding states/incron unit test case 2015-05-08 16:15:06 +05:30
influxdb_database_test.py adding states/influxdb_database unit test case 2015-05-08 16:16:24 +05:30
influxdb_user_test.py adding states/influxdb_user unit test case 2015-05-08 16:21:17 +05:30
ini_manage_test.py INI test compliancy - modified ini_manage_test.py 2015-11-05 13:49:05 +00:00
ipmi_test.py adding states/ipmi unit test case 2015-05-11 17:59:54 +05:30
ipset_test.py adding states/ipset unit test case 2015-05-12 18:03:14 +05:30
iptables_test.py Fix iptables test_flush 2015-04-16 17:18:50 -06:00
jboss7_test.py more test updates 2015-09-14 13:05:07 -04:00
keyboard_test.py adding states/keyboard unit test case 2015-05-12 18:04:26 +05:30
keystone_test.py adding states/keystone unit test case 2015-05-07 15:15:47 +05:30
kmod_test.py update kmod exec and state module unit tests 2015-11-07 16:04:23 -07:00
layman_test.py adding states/layman unit test case 2015-05-12 18:05:35 +05:30
ldap_test.py new ldap state module 2015-10-09 17:47:56 -04:00
libvirt_test.py Fix tests for the virt state 2015-07-15 13:09:11 +02:00
linux_acl_test.py removed error. 2015-05-13 18:02:35 +05:30
locale_test.py Adding states/locale.py unit test cases 2015-04-14 16:02:30 +05:30
lvm_test.py adding states/lvm test case 2015-04-16 17:09:26 +05:30
lvs_server_test.py adding states/lvs_server unit test case 2015-05-14 14:54:29 +05:30
lvs_service_test.py adding states/lvs_service unit test case 2015-05-14 14:53:26 +05:30
lxc_test.py adding states/lxc unit test case 2015-05-06 17:29:53 +05:30
mac_assistive_test.py Added ability to change assistive access on OSX 10.9+ 2016-01-29 13:59:51 +01:00
mac_defaults_test.py Updated based on PR feedback 2016-02-02 09:01:38 +01:00
mac_keychain_test.py Added the ability to configure keychains on OSX 2016-01-29 11:47:43 +01:00
mac_package_test.py Added ability to install PKG, DMG and APP files for OS X minions 2016-02-01 14:22:22 +01:00
mac_xattr_test.py Lint fixes 2016-01-29 15:29:06 +01:00
makeconf_test.py adding states/makeconf unit test case 2015-05-15 17:37:53 +05:30
mdadm_test.py Adding states/mdadm.py unit test cases 2015-04-14 16:04:26 +05:30
memcached_test.py adding states/memcached unit test case 2015-05-20 15:30:45 +05:30
modjk_test.py py3: fix tests/unit/states/modjk_test.py 2015-06-11 15:16:17 -06:00
modjk_worker_test.py adding states/modjk_worker unit test case 2015-05-21 17:07:01 +05:30
module_test.py Merge remote-tracking branch 'upstream/2015.2' into merge-forward-develop 2015-03-20 20:09:19 -06:00
mongodb_database_test.py adding states/mongodb_database unit test case 2015-05-21 17:09:20 +05:30
mongodb_user_test.py resolved errors 2015-05-22 10:48:28 +05:30
mount_test.py Additional fixes to test output, unit tests fixes 2016-02-19 13:11:59 +01:00
mysql_grants_test.py adding states/mysql_grants unit test case 2015-05-25 15:58:10 +05:30
mysql_query_test.py adding states/mysql_query unit test case 2015-05-25 15:59:25 +05:30
mysql_user_test.py adding states/mysql_user unit test case 2015-05-26 15:24:43 +05:30
network_test.py Skip the network state unit tests if sustem is on Python 2.6 2015-04-21 14:13:58 -06:00
nftables_test.py Adding states/nftables.py unit test cases 2015-04-15 18:55:21 +05:30
npm_test.py Fixing npm cache cleaned lint errors 2016-02-12 20:35:13 -08:00
ntp_test.py adding states/ntp unit test case 2015-05-26 15:26:50 +05:30
openstack_config_test.py Mock test key in __opts__ dict 2015-08-12 14:29:33 -06:00
pagerduty_test.py adding states/pagerduty unit test case. 2015-05-27 14:51:19 +05:30
pecl_test.py adding states/pecl unit test case. 2015-05-27 14:52:19 +05:30
pip_test.py Do not parse state name with pip in editable mode 2015-03-24 16:09:38 +00:00
pkgng_test.py adding states/pkgng unit test case. 2015-05-27 14:54:19 +05:30
portage_config_test.py adding states/portage_config unit test case. 2015-05-27 14:55:31 +05:30
ports_test.py adding states/ports unit test case. 2015-05-28 17:11:41 +05:30
postgres_cluster_test.py pylint fixes 2015-07-23 09:02:44 +02:00
postgres_database_test.py Revert "Revert "adding states/postgres_database unit test case."" 2015-07-01 09:47:08 -06:00
postgres_extension_test.py adding states/postgres_extension unit test case. 2015-06-02 17:20:09 +05:30
postgres_group_test.py adding states/postgres_group unit test case. 2015-06-02 17:21:25 +05:30
postgres_initdb_test.py Add postgres_initdb state module tests 2016-01-22 12:16:51 +02:00
postgres_language_test.py lint 2015-12-20 20:41:40 +02:00
postgres_privileges_test.py add postgres_privileges state module tests 2015-12-29 12:57:21 +02:00
postgres_schema_test.py adding states/postgres_schema unit test case. 2015-06-03 18:16:27 +05:30
postgres_test.py Merge remote-tracking branch 'upstream/2015.5' into merge-forward-2015.8 2015-07-02 09:46:36 -06:00
postgres_user_test.py adding states/postgres_user unit test case. 2015-06-03 18:17:42 +05:30
powerpath_test.py adding states/powerpath unit test case. 2015-06-04 17:47:39 +05:30
process_test.py adding states/process unit test case. 2015-06-04 17:49:04 +05:30
proxy_test.py Fixed a bug where new changes are detected when nothing changed in proxy state 2016-01-28 15:06:06 +01:00
pyenv_test.py adding states/pyenc unit test case. 2015-06-04 17:50:04 +05:30
pyrax_queues_test.py adding states/pyrax_queues unit test case. 2015-06-05 17:32:19 +05:30
quota_test.py adding states/quota unit test case. 2015-05-29 13:19:33 +05:30
rabbitmq_cluster_test.py Refactor rabbitmq_cluster states to use test=true functionality correctly 2016-01-25 16:47:54 -07:00
rabbitmq_plugin_test.py Fine tuning and fix tests 2015-10-27 10:30:00 -04:00
rabbitmq_policy_test.py Refactor rabbitmq_policy states to use test=true functionality correctly 2016-01-25 15:21:19 -07:00
rabbitmq_user_test.py Merge remote-tracking branch 'upstream/2015.8' into merge-forward-2016.3 2016-02-11 22:33:49 -07:00
rabbitmq_vhost_test.py Fixed rabbitmq_vhost test failure. 2016-02-08 10:02:43 -07:00
rbenv_test.py adding states/rbenv unit test case. 2015-06-08 18:24:24 +05:30
rdp_test.py adding states/rdp unit test case. 2015-06-10 18:41:29 +05:30
redismod_test.py adding states/redismod unit test case. 2015-06-11 17:42:15 +05:30
reg_test.py fix comment and unit test for reg state 2015-09-14 16:04:09 -06:00
rvm_test.py Py3 compatibility fixes 2015-01-30 22:25:11 +00:00
saltmod_test.py Fix test 2015-07-22 11:43:19 -06:00
schedule_test.py adding states/schedule unit test case. 2015-06-15 17:16:21 +05:30
selinux_test.py adding states/selinux unit test case. 2015-06-16 17:11:44 +05:30
serverdensity_device_test.py adding states/serverdensity_device unit test case. 2015-06-17 16:50:40 +05:30
service_test.py check service enable state in test mode 2015-12-01 15:02:00 +08:00
slack_test.py adding states/slack unit test case. 2015-06-18 15:47:27 +05:30
smtp_test.py adding states/smtp unit test case. 2015-04-08 17:54:52 +05:30
splunk_search_test.py adding states/splunk_search unit test case. 2015-06-19 15:15:49 +05:30
ssh_auth_test.py fix ssh_auth_test 2015-11-30 20:13:52 +01:00
ssh_known_hosts_test.py adding states/ssh_known_hosts unit test case. 2015-06-23 15:53:46 +05:30
status_test.py adding states/status unit test case. 2015-06-24 17:23:13 +05:30
supervisord_test.py adding states/supervisord unit test case. 2015-06-26 13:06:53 +05:30
svn_test.py Adding states svn.py unit test cases 2015-04-08 16:20:51 +05:30
sysctl_test.py cosmetic change 2015-04-08 17:49:38 +05:30
syslog_ng_test.py Add from __future__ import absolute_import 2015-01-30 22:25:04 +00:00
sysrc_test.py Adding states/sysrc.py unit tests 2015-05-18 21:04:03 +05:30
test_test.py Adding states/test.py unit tests 2015-05-18 21:18:47 +05:30
timezone_test.py states.timezone: Fix 'desrired' typo 2015-12-18 13:54:04 +01:00
tomcat_test.py update tomcat war_deployed state tests 2015-07-08 15:39:52 -06:00
user_test.py Adding states/user.py unit tests 2015-05-14 21:28:37 +05:30
vbox_guest_test.py Removed errors 2015-05-12 23:20:36 +05:30
virtualenv_mod_test.py Adding states/virtualenv_mod.py unit tests 2015-05-11 21:49:59 +05:30
win_certutil_test.py Added the ability to add and remove certificates from Windows minions 2016-02-02 10:06:20 +01:00
win_dism_test.py Added DISM module and states 2016-01-29 10:35:58 +01:00
win_dns_client_test.py Adding states/win_dns_client.py unit tests 2015-05-12 22:34:31 +05:30
win_firewall_test.py Fixed win_firewall_test 2015-10-23 09:53:03 -06:00
win_license_test.py Lint fixes 2016-02-02 11:48:17 +01:00
win_network_test.py removed lint error 2015-05-12 23:06:20 +05:30
win_path_test.py Adding states/win_path.py unit tests 2015-05-12 22:50:02 +05:30
win_powercfg_test.py Lint fixes 2015-05-12 15:48:53 +02:00
win_servermanager_test.py Fixed test failures for Colton 2015-06-18 12:58:18 -06:00
win_system_test.py Fix uppercase computer names 2016-02-22 16:42:08 -07:00
win_update_test.py Fixup unit test 2016-02-10 14:36:21 -07:00
winrepo_test.py Fix comment in return value 2015-08-09 22:07:02 -05:00
xmpp_test.py Fix xmpp test 2015-05-06 14:40:46 -06:00
zcbuildout_test.py Add from __future__ import absolute_import 2015-01-30 22:25:04 +00:00
zk_concurrency_test.py adding states/zk_concurrency unit test case 2015-05-05 15:37:35 +05:30