salt/tests/unit/states
rallytime 6ae1111295 Replace @mock_ec2 calls with @mock_ec2_deprecated calls
moto versions >= 1.0.0 have changed the way the mocked connections through
boto are handled with the @mock_ec2 decorator. They use the boto3 connection
method. However, since we are still using boto in many places, we need to use
the new @mock_ec2_deprecated decorator instead to handle the boto connection
functions for the unit tests.

Versions of moto < 1.0.0 are not Python 3 compatible, so salt-jenkins should
be installing newer versions of moto for those tests. Unfortunately, we cannot
install an older version of moto for Python2 that use the original @mock_ec2 call
and also import the @mock_ec2_deprecated function for newer versions of moto
simultaneously as the @mock_ec2_deprecated function doesn't exist in older
versions of moto.
2017-08-15 14:22:59 -04: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 some test=True comments 2017-03-27 18:19:52 -05: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 Fix mocking in unit tests 2017-04-10 13:57:39 -05:00
artifactory_test.py Update unit test to look for actual string comment 2017-03-31 15:34:24 -06:00
at_test.py adding states/at unit test case 2015-04-20 15:59:27 +05:30
augeas_test.py Fixed augeas_test.py to match True v.s. None for test_change_in_test_mode 2016-11-27 08:40:05 -05: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 references to 'disk' in blockdev state unit test 2016-08-16 15:02:18 -06:00
boto_apigateway_test.py Remove repr formatting flag in places where it is used solely for quoting (#34183) 2016-06-29 16:30:18 -04:00
boto_asg_test.py Patch config.option 2015-09-30 10:04:10 -07:00
boto_cloudtrail_test.py Fixing skipped boto tests to prevent errors if boto3 does not exists. 2016-09-06 12:41:56 +01:00
boto_cloudwatch_alarm_test.py adding states/boto_cloudwatch_alarm unit test case 2015-04-22 16:15:54 +05:30
boto_cloudwatch_event_test.py Fix pylint warnings in test code 2016-08-25 15:51:02 -05:00
boto_cognitoidentity_test.py Remove repr formatting flag in places where it is used solely for quoting (#34183) 2016-06-29 16:30:18 -04: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_elasticsearch_domain_test.py Pylint fixes 2016-07-11 14:26:06 -06:00
boto_elb_test.py Remove stray debug print statements (#35019) 2016-07-28 09:17:27 -06:00
boto_iam_role_test.py Update unit tests to reflect changes 2016-02-22 10:58:23 -06:00
boto_iot_test.py [PY3] Change log.warn statements to log.warning (#37531) 2016-11-08 13:06:54 -07:00
boto_lambda_test.py Fixing skipped boto tests to prevent errors if boto3 does not exists. 2016-09-06 12:41:56 +01: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 Merge branch '2016.3' into 'carbon' 2016-09-08 16:14:04 -06:00
boto_secgroup_test.py Rename unit.states.boto_secgroup to unit.states.boto_secgroup_test 2016-07-07 21:29:36 -06:00
boto_sns_test.py added an optional parameter into boto_sns absent state to remove all subscriptions tied to the topic being removed. 2016-06-28 13:16:53 -07:00
boto_sqs_test.py adding states/boto_sqs unit test case 2015-04-27 17:07:06 +05:30
boto_vpc_test.py Replace @mock_ec2 calls with @mock_ec2_deprecated calls 2017-08-15 14:22:59 -04: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 Append failed cmd in comments. (#32651) 2016-04-22 12:54:58 -06:00
composer_test.py Remove repr formatting flag in places where it is used solely for quoting (#34183) 2016-06-29 16:30:18 -04:00
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 states.disk: rewrite unit tests 2016-06-16 12:49:36 -06:00
dockerio_test.py Rename dockerio.py unit tests to dockerio_test.py 2016-09-08 11:36:17 +01:00
dockerng_test.py Add regression tests for #41982 2017-06-30 11:03:45 +01: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 unit test to reflect new behavior 2017-05-06 01:29:49 -05:00
gem_test.py Fix tests for #25115 2015-07-06 08:54:45 -06:00
glusterfs_test.py Take the develop version of glusterfs.py state 2016-05-09 11:17:46 -06: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 add comment and unit test 2017-04-11 21:08:06 -06: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 fix 34241, webutil.useradd_all is deprecated (#35788) 2016-08-26 12:52:11 -06: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
influxdb08_database_test.py Rename InfluxDB states and modules for 0.8 2016-07-16 09:46:44 +02:00
influxdb08_user_test.py Rename InfluxDB states and modules for 0.8 2016-07-16 09:46:44 +02:00
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 Refactor ipset tests (#32973) 2016-05-05 07:31:49 -07:00
iptables_test.py Do not force 'filter' table when flushing 2016-06-28 15:40:50 +01:00
jboss7_test.py more test updates 2015-09-14 13:05:07 -04:00
kapacitor_test.py clean up and fix tests 2016-12-29 11:14:24 +01:00
keyboard_test.py adding states/keyboard unit test case 2015-05-12 18:04:26 +05:30
keystone_test.py Fix unit tests for PR #41509 2017-05-31 17:22:07 -06:00
kmod_test.py Fix unit.states.kmod_test to pass when running in Py3 2016-07-11 14:26:06 -06: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
libcloud_dns_test.py remove unused imports 2017-05-12 16:38:30 -06:00
libvirt_test.py Fix tests for the virt state 2015-07-15 13:09:11 +02:00
linux_acl_test.py Back-port #36124 to 2016.3 (#36296) 2016-09-14 10:08:16 -06:00
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 Remove tests for deprecated functions 2016-08-08 09:58:37 -06:00
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 Moved to using run_all in the absent function 2016-06-17 16:13:38 +02:00
mac_keychain_test.py Change OSX/OS X to macOS where possible 2016-12-28 14:49:46 -07: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 postgres_extension: report changes when an extension was installed (#36335) 2016-09-16 08:23:20 -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 Change OSX/OS X to macOS where possible 2016-12-28 14:49:46 -07: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_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 Merge branch '2016.3' into 'develop' 2016-08-10 10:25:32 -06:00
schedule_test.py adding states/schedule unit test case. 2015-06-15 17:16:21 +05:30
selinux_test.py added the new getconfig function to the test 2017-02-06 09:55:09 -05:00
serverdensity_device_test.py adding states/serverdensity_device unit test case. 2015-06-17 16:50:40 +05:30
service_test.py fix incorrect service.running success response 2017-05-08 10:25:21 -04: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 Adjusting SVN unit test 2017-06-14 13:40:50 -06:00
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 Fix 'present' option when used without 'key_type' 2016-11-14 12:16:51 -07:00
timezone_test.py states.timezone: Fix 'desrired' typo 2015-12-18 13:54:04 +01:00
tomcat_test.py use loader for war extraction 2017-04-13 11:51:22 -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 Update mocks for failing tests in win_certutil_test 2016-10-12 11:31:58 -06:00
win_dism_test.py Fix mocks in win_disim tests 2017-02-16 12:26:49 -07:00
win_dns_client_test.py update mock data 2017-05-10 10:33:34 -05:00
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 Fix unit tests 2016-05-27 11:33:52 -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 Updated winrepo_test (#34227) 2016-06-23 13:05:49 -04: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 Enable blocking on min_party until minimum set of nodes are available (#32592) 2016-04-15 13:35:29 -06:00