salt/tests/unit/states
Lukas Raska 24cc9b2a0c [WIP] Refactor Elasticsearch execution and state modules (#40192)
* Add Ingest pipeline methods to Elasticsearch execution module

* Refactor Elasticsearch execution module and properly handle exceptions

* Throw CommandExecutionError in methods applicable for different Elasticsearch versions

* Refactor Elasticsearch states to reflect execution module changes

* Add state for managing Elasticsearch pipelines

* Fix few typos in Elasticsearch module, return None when deleted document doesn't exist

* Implements stats and health methods for Elasticsearch

* Add Elasticsearch methods to open/close index, manage search templates and repositories

* Merge existing Elasticsearch states into single one, add Search Template handling

* Add index alias state for Elasticsearch, fix documentation

* Catch all global exceptions in Elasticsearch states, unit test all of them

* Implement few Unit tests for Elasticsearch execution module, merge fixes into deprecated elastic states

* Implement additional unit tests for Elasticsearch execution module

* Finalize Elasticsearch module documentation
2017-03-30 13:22:58 -06:00
..
__init__.py Include the python encoding file header on tests. 2013-11-27 11:19:24 +00:00
test_alias.py Adjust to the new LoaderModuleMockMixin usage 2017-03-28 19:03:59 +01:00
test_alternatives.py Merge branch '2016.11' into 'develop' 2017-03-28 17:09:30 -06:00
test_apache_conf.py Adjust to the new LoaderModuleMockMixin usage 2017-03-28 19:03:59 +01:00
test_apache_module.py Proper mocking. 2017-03-28 19:04:01 +01:00
test_apache_site.py Proper mocking. 2017-03-28 19:04:01 +01:00
test_apache.py Adjust to the new LoaderModuleMockMixin usage 2017-03-28 19:03:59 +01:00
test_apt.py Proper mocking. 2017-03-28 19:04:01 +01:00
test_archive.py Adjust to the new LoaderModuleMockMixin usage 2017-03-28 19:03:59 +01:00
test_artifactory.py Proper mocking. 2017-03-28 19:04:01 +01:00
test_at.py Proper mocking. 2017-03-28 19:04:01 +01:00
test_augeas.py Import the full module namespace to avoid import shadowing. 2017-03-28 19:02:47 +01:00
test_aws_sqs.py Proper mocking. 2017-03-28 19:04:01 +01:00
test_blockdev.py Proper mocking. 2017-03-28 19:04:01 +01:00
test_boto_apigateway.py Code cleanup. Proper mocking. 2017-03-28 19:04:03 +01:00
test_boto_asg.py Adjust to the new LoaderModuleMockMixin usage 2017-03-28 19:03:59 +01:00
test_boto_cloudtrail.py Adjust to the new LoaderModuleMockMixin usage 2017-03-28 19:03:59 +01:00
test_boto_cloudwatch_alarm.py Adjust to the new LoaderModuleMockMixin usage 2017-03-28 19:03:59 +01:00
test_boto_cloudwatch_event.py Adjust to the new LoaderModuleMockMixin usage 2017-03-28 19:03:59 +01:00
test_boto_cognitoidentity.py Adjust to the new LoaderModuleMockMixin usage 2017-03-28 19:03:59 +01:00
test_boto_dynamodb.py Adjust to the new LoaderModuleMockMixin usage 2017-03-28 19:03:59 +01:00
test_boto_ec2.py Adjust to the new LoaderModuleMockMixin usage 2017-03-28 19:03:59 +01:00
test_boto_elasticache.py Adjust to the new LoaderModuleMockMixin usage 2017-03-28 19:03:59 +01:00
test_boto_elasticsearch_domain.py Adjust to the new LoaderModuleMockMixin usage 2017-03-28 19:03:59 +01:00
test_boto_elb.py Adjust to the new LoaderModuleMockMixin usage 2017-03-28 19:03:59 +01:00
test_boto_iam_role.py Adjust to the new LoaderModuleMockMixin usage 2017-03-28 19:03:59 +01:00
test_boto_iot.py Adjust to the new LoaderModuleMockMixin usage 2017-03-28 19:03:59 +01:00
test_boto_kinesis.py Adjust to the new LoaderModuleMockMixin usage 2017-03-28 19:03:59 +01:00
test_boto_lambda.py Adjust to the new LoaderModuleMockMixin usage 2017-03-28 19:03:59 +01:00
test_boto_lc.py Adjust to the new LoaderModuleMockMixin usage 2017-03-28 19:03:59 +01:00
test_boto_route53.py Adjust to the new LoaderModuleMockMixin usage 2017-03-28 19:03:59 +01:00
test_boto_s3_bucket.py Adjust to the new LoaderModuleMockMixin usage 2017-03-28 19:03:59 +01:00
test_boto_secgroup.py Adjust to the new LoaderModuleMockMixin usage 2017-03-28 19:03:59 +01:00
test_boto_sns.py Adjust to the new LoaderModuleMockMixin usage 2017-03-28 19:03:59 +01:00
test_boto_sqs.py Adjust to the new LoaderModuleMockMixin usage 2017-03-28 19:03:59 +01:00
test_boto_vpc.py Adjust to the new LoaderModuleMockMixin usage 2017-03-28 19:03:59 +01:00
test_bower.py Adjust to the new LoaderModuleMockMixin usage 2017-03-28 19:03:59 +01:00
test_chef.py Proper mocking. 2017-03-28 19:04:01 +01:00
test_cloud.py Proper mocking. 2017-03-28 19:04:01 +01:00
test_cmd.py Proper mocking. 2017-03-28 19:04:01 +01:00
test_composer.py Proper mocking. 2017-03-28 19:04:01 +01:00
test_cron.py Adjust to the new LoaderModuleMockMixin usage 2017-03-28 19:03:59 +01:00
test_cyg.py Absolute imports and A LOT of code cleanup. 2017-03-01 01:33:07 +00:00
test_ddns.py Proper mocking. 2017-03-28 19:04:01 +01:00
test_debconfmod.py Proper mocking. 2017-03-28 19:04:01 +01:00
test_disk.py Proper mocking. 2017-03-28 19:04:01 +01:00
test_docker_image.py Proper mocking. 2017-03-28 19:04:01 +01:00
test_docker_network.py Proper mocking. 2017-03-28 19:04:01 +01:00
test_docker_volume.py Proper mocking. 2017-03-28 19:04:01 +01:00
test_drac.py Proper mocking. 2017-03-28 19:04:01 +01:00
test_elasticsearch.py [WIP] Refactor Elasticsearch execution and state modules (#40192) 2017-03-30 13:22:58 -06:00
test_environ.py Adjust to the new LoaderModuleMockMixin usage 2017-03-28 19:03:59 +01:00
test_eselect.py Proper mocking. 2017-03-28 19:04:01 +01:00
test_event.py Proper mocking. 2017-03-28 19:04:01 +01:00
test_file.py Adjust to the new LoaderModuleMockMixin usage 2017-03-28 19:03:59 +01:00
test_gem.py Adjust to the new LoaderModuleMockMixin usage 2017-03-28 19:03:59 +01:00
test_glusterfs.py Adjust to the new LoaderModuleMockMixin usage 2017-03-28 19:03:59 +01:00
test_gnomedesktop.py Import the full module namespace to avoid import shadowing. 2017-03-28 19:02:47 +01:00
test_grafana_datasource.py Proper mocking. 2017-03-28 19:04:01 +01:00
test_grafana.py Proper mocking. 2017-03-28 19:04:01 +01:00
test_grains.py Adjust to the new LoaderModuleMockMixin usage 2017-03-28 19:03:59 +01:00
test_group.py Proper mocking. 2017-03-28 19:04:01 +01:00
test_hg.py Proper mocking. 2017-03-28 19:04:01 +01:00
test_hipchat.py Proper mocking. 2017-03-28 19:04:01 +01:00
test_host.py Proper mocking. 2017-03-28 19:04:01 +01:00
test_htpasswd.py Adjust to the new LoaderModuleMockMixin usage 2017-03-28 19:03:59 +01:00
test_http.py Proper mocking. 2017-03-28 19:04:01 +01:00
test_incron.py Proper mocking. 2017-03-28 19:04:01 +01:00
test_influxdb08_database.py Proper mocking. 2017-03-28 19:04:01 +01:00
test_influxdb08_user.py Proper mocking. 2017-03-28 19:04:01 +01:00
test_ini_manage.py Proper mocking. 2017-03-28 19:04:01 +01:00
test_ipmi.py Proper mocking. 2017-03-28 19:04:01 +01:00
test_ipset.py Proper mocking. 2017-03-28 19:04:01 +01:00
test_iptables.py Proper mocking. 2017-03-28 19:04:01 +01:00
test_jboss7.py Adjust to the new LoaderModuleMockMixin usage 2017-03-28 19:03:59 +01:00
test_kapacitor.py Adjust to the new LoaderModuleMockMixin usage 2017-03-28 19:03:59 +01:00
test_keyboard.py Proper mocking. 2017-03-28 19:04:01 +01:00
test_keystone.py Proper mocking. 2017-03-28 19:04:01 +01:00
test_kmod.py Proper mocking. 2017-03-28 19:04:01 +01:00
test_layman.py Proper mocking. 2017-03-28 19:04:01 +01:00
test_ldap.py Adjust to the new LoaderModuleMockMixin usage 2017-03-28 19:03:59 +01:00
test_libcloud_dns.py Proper mocking. 2017-03-28 19:04:01 +01:00
test_libvirt.py Proper mocking. 2017-03-28 19:04:01 +01:00
test_linux_acl.py Proper mocking. 2017-03-28 19:04:01 +01:00
test_locale.py Proper mocking. 2017-03-28 19:04:01 +01:00
test_lvm.py Proper mocking. 2017-03-28 19:04:01 +01:00
test_lvs_server.py Proper mocking. 2017-03-28 19:04:01 +01:00
test_lvs_service.py Proper mocking. 2017-03-28 19:04:01 +01:00
test_lxc.py Proper mocking. 2017-03-28 19:04:01 +01:00
test_mac_assistive.py Proper mocking. 2017-03-28 19:04:01 +01:00
test_mac_defaults.py Proper mocking. 2017-03-28 19:04:01 +01:00
test_mac_keychain.py Proper mocking. 2017-03-28 19:04:01 +01:00
test_mac_package.py Proper mocking. 2017-03-28 19:04:01 +01:00
test_mac_xattr.py Proper mocking. 2017-03-28 19:04:01 +01:00
test_makeconf.py Proper mocking. 2017-03-28 19:04:01 +01:00
test_mdadm.py Proper mocking. 2017-03-28 19:04:01 +01:00
test_memcached.py Proper mocking. 2017-03-28 19:04:01 +01:00
test_modjk_worker.py Proper mocking. 2017-03-28 19:04:01 +01:00
test_modjk.py Import the full module namespace to avoid import shadowing. 2017-03-28 19:02:47 +01:00
test_module.py Adjust to the new LoaderModuleMockMixin usage 2017-03-28 19:03:59 +01:00
test_mongodb_database.py Proper mocking. 2017-03-28 19:04:01 +01:00
test_mongodb_user.py Proper mocking. 2017-03-28 19:04:01 +01:00
test_mount.py Proper mocking. 2017-03-28 19:04:01 +01:00
test_mysql_grants.py Proper mocking. 2017-03-28 19:04:01 +01:00
test_mysql_query.py Proper mocking. 2017-03-28 19:04:01 +01:00
test_mysql_user.py Proper mocking. 2017-03-28 19:04:01 +01:00
test_network.py The develop branch no longer targets python 2.6 2017-03-28 19:04:03 +01:00
test_nftables.py Proper mocking. 2017-03-28 19:04:01 +01:00
test_npm.py Adjust to the new LoaderModuleMockMixin usage 2017-03-28 19:03:59 +01:00
test_ntp.py Proper mocking. 2017-03-28 19:04:01 +01:00
test_openstack_config.py Proper mocking. 2017-03-28 19:04:01 +01:00
test_openvswitch_port.py Proper mocking. 2017-03-28 19:04:01 +01:00
test_pagerduty.py Proper mocking. 2017-03-28 19:04:01 +01:00
test_pecl.py Proper mocking. 2017-03-28 19:04:01 +01:00
test_pip.py Adjust to the new LoaderModuleMockMixin usage 2017-03-28 19:03:59 +01:00
test_pkgng.py Proper mocking. 2017-03-28 19:04:01 +01:00
test_portage_config.py Proper mocking. 2017-03-28 19:04:01 +01:00
test_ports.py Proper mocking. 2017-03-28 19:04:01 +01:00
test_postgres_cluster.py Proper mocking. 2017-03-28 19:04:01 +01:00
test_postgres_database.py Proper mocking. 2017-03-28 19:04:01 +01:00
test_postgres_extension.py Proper mocking. 2017-03-28 19:04:01 +01:00
test_postgres_group.py Proper mocking. 2017-03-28 19:04:01 +01:00
test_postgres_initdb.py Import the full module namespace to avoid import shadowing. 2017-03-28 19:02:47 +01:00
test_postgres_language.py Import the full module namespace to avoid import shadowing. 2017-03-28 19:02:47 +01:00
test_postgres_privileges.py Import the full module namespace to avoid import shadowing. 2017-03-28 19:02:47 +01:00
test_postgres_schema.py Proper mocking. 2017-03-28 19:04:01 +01:00
test_postgres_user.py Proper mocking. 2017-03-28 19:04:01 +01:00
test_postgres.py Import the full module namespace to avoid import shadowing. 2017-03-28 19:02:47 +01:00
test_powerpath.py Proper mocking. 2017-03-28 19:04:01 +01:00
test_process.py Proper mocking. 2017-03-28 19:04:01 +01:00
test_proxy.py Adjust to the new LoaderModuleMockMixin usage 2017-03-28 19:03:59 +01:00
test_pyenv.py Proper mocking. 2017-03-28 19:04:01 +01:00
test_pyrax_queues.py Proper mocking. 2017-03-28 19:04:01 +01:00
test_quota.py Proper mocking. 2017-03-28 19:04:01 +01:00
test_rabbitmq_cluster.py Proper mocking. 2017-03-28 19:04:01 +01:00
test_rabbitmq_plugin.py Proper mocking. 2017-03-28 19:04:01 +01:00
test_rabbitmq_policy.py Proper mocking. 2017-03-28 19:04:01 +01:00
test_rabbitmq_vhost.py Proper mocking. 2017-03-28 19:04:01 +01:00
test_rbenv.py Proper mocking. 2017-03-28 19:04:01 +01:00
test_rdp.py Proper mocking. 2017-03-28 19:04:01 +01:00
test_redismod.py Proper mocking. 2017-03-28 19:04:01 +01:00
test_reg.py Proper mocking. 2017-03-28 19:04:01 +01:00
test_rvm.py Adjust to the new LoaderModuleMockMixin usage 2017-03-28 19:03:59 +01:00
test_saltmod.py Adjust to the new LoaderModuleMockMixin usage 2017-03-28 19:03:59 +01:00
test_schedule.py Proper mocking. 2017-03-28 19:04:01 +01:00
test_selinux.py Proper mocking. 2017-03-28 19:04:01 +01:00
test_serverdensity_device.py Proper mocking. 2017-03-28 19:04:01 +01:00
test_service.py Adjust to the new LoaderModuleMockMixin usage 2017-03-28 19:03:59 +01:00
test_slack.py Adjust to the new LoaderModuleMockMixin usage 2017-03-28 19:03:59 +01:00
test_smtp.py Adjust to the new LoaderModuleMockMixin usage 2017-03-28 19:03:59 +01:00
test_splunk_search.py Proper mocking. 2017-03-28 19:04:01 +01:00
test_ssh_auth.py Proper mocking. 2017-03-28 19:04:01 +01:00
test_ssh_known_hosts.py Proper mocking. 2017-03-28 19:04:01 +01:00
test_status.py Adjust to the new LoaderModuleMockMixin usage 2017-03-28 19:03:59 +01:00
test_supervisord.py Adjust to the new LoaderModuleMockMixin usage 2017-03-28 19:03:59 +01:00
test_svn.py Adjust to the new LoaderModuleMockMixin usage 2017-03-28 19:03:59 +01:00
test_sysctl.py Adjust to the new LoaderModuleMockMixin usage 2017-03-28 19:03:59 +01:00
test_syslog_ng.py Proper mocking. 2017-03-28 19:04:01 +01:00
test_sysrc.py Adjust to the new LoaderModuleMockMixin usage 2017-03-28 19:03:59 +01:00
test_test.py Adjust to the new LoaderModuleMockMixin usage 2017-03-28 19:03:59 +01:00
test_timezone.py Adjust to the new LoaderModuleMockMixin usage 2017-03-28 19:03:59 +01:00
test_tomcat.py Adjust to the new LoaderModuleMockMixin usage 2017-03-28 19:03:59 +01:00
test_user.py Adjust to the new LoaderModuleMockMixin usage 2017-03-28 19:03:59 +01:00
test_vbox_guest.py Proper mocking. 2017-03-28 19:04:01 +01:00
test_virtualenv_mod.py Proper mocking. 2017-03-28 19:04:01 +01:00
test_win_certutil.py Adjust to the new LoaderModuleMockMixin usage 2017-03-28 19:03:59 +01:00
test_win_dism.py Proper mocking. 2017-03-28 19:04:01 +01:00
test_win_dns_client.py Proper mocking. 2017-03-28 19:04:01 +01:00
test_win_firewall.py Proper mocking. Fix tests expectations. Runs on non windows too. 2017-03-28 19:04:03 +01:00
test_win_license.py Proper mocking. 2017-03-28 19:04:01 +01:00
test_win_network.py Proper mocking. 2017-03-28 19:04:01 +01:00
test_win_path.py Proper mocking. 2017-03-28 19:04:01 +01:00
test_win_pki.py Proper mocking. 2017-03-28 19:04:01 +01:00
test_win_powercfg.py Proper mocking. 2017-03-28 19:04:01 +01:00
test_win_servermanager.py Proper mocking. 2017-03-28 19:04:01 +01:00
test_win_snmp.py Proper mocking. 2017-03-28 19:04:01 +01:00
test_win_system.py Proper mocking. 2017-03-28 19:04:01 +01:00
test_win_update.py Import the full module namespace to avoid import shadowing. 2017-03-28 19:02:47 +01:00
test_winrepo.py Proper mocking. 2017-03-28 19:04:01 +01:00
test_xmpp.py Proper mocking. 2017-03-28 19:04:01 +01:00
test_zcbuildout.py Adjust to the new LoaderModuleMockMixin usage 2017-03-28 19:03:59 +01:00
test_zk_concurrency.py Proper mocking. 2017-03-28 19:04:01 +01:00