Mikhail Sokolov
1535dceddd
slack module: add slack incomming webhook suport.
2016-02-26 14:41:23 +07:00
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
Mike Place
e483978fc8
Merge pull request #31423 from twangboy/win_system_dev
...
Fix uppercase computer names
2016-02-25 09:15:58 -07:00
Mike Place
43d531b93d
Merge pull request #31392 from vodik/nftables
...
Changes to nftables module
2016-02-23 09:15:01 -07:00
twangboy
144f7206fe
Fix uppercase computer names
2016-02-22 16:42:08 -07:00
Mike Place
873061e2fa
Merge pull request #31422 from cachedout/remove_runit_test
...
Remove useless test
2016-02-22 16:28:01 -07:00
Mike Place
56a899c8d9
Remove useless test
...
This tests absolutely nothing and has no real point.
2016-02-22 16:26:30 -07:00
Mike Place
2bd9af38b0
Merge pull request #31329 from kraney/boto_iam
...
Extend boto_iam with support for managed policies
2016-02-22 12:28:30 -07:00
Kris Raney
04b3a24e78
Update unit tests to reflect changes
2016-02-22 10:58:23 -06:00
rallytime
38f89bf8fd
Merge branch '2016.3' into 'develop'
...
Conflicts:
- salt/beacons/inotify.py
- salt/beacons/load.py
2016-02-21 15:23:24 -07:00
Simon Gomizelj
c0ac0c0096
Fix check_table
...
The output of 'nft list tables' has the family included in the output
2016-02-20 21:32:48 -05:00
Ronald van Zantvoort
3110e3424f
Additional fixes to test output, unit tests fixes
2016-02-19 13:11:59 +01:00
Mike Place
3832f9b874
Merge pull request #30979 from dschaller/npm-cache-clean
...
Adding NPM cache_cleaned state & module functions
2016-02-18 14:51:04 -07:00
Mike Place
b40c611d0d
Merge pull request #31067 from jfindlay/deprecate_env
...
Deprecate env
2016-02-18 14:42:10 -07:00
Mike Place
02f79dc2b3
Merge pull request #31322 from rallytime/merge-2016.3
...
[2016.3] Merge forward from 2015.8 to 2016.3
2016-02-18 14:28:02 -07:00
rallytime
cc29092dcb
Merge branch '2016.3' into 'develop'
2016-02-18 11:33:24 -07:00
rallytime
01aa33ac12
Merge branch '2015.8' into '2016.3'
2016-02-18 11:13:23 -07:00
rallytime
7ea9dacbdd
Merge branch '2015.8' into '2016.3'
...
Conflicts:
- salt/beacons/inotify.py
- salt/beacons/load.py
- salt/minion.py
- salt/modules/win_update.py
- salt/modules/yumpkg.py
- salt/utils/pkg/rpm.py
2016-02-18 11:10:44 -07:00
Mike Place
ce5bc23431
Merge pull request #31289 from jtand/utils_network_tests
...
Added some additional unit tests to unit.utils.network
2016-02-18 09:56:18 -07:00
Erik Johnson
cf2ce95e61
Update test to reflect new position of contents param
...
The addition of the new skip_verify argument to
salt.modules.file.manage_file() means that the position of contents
param in returner.call_args[0] has changed. This commit updates this
test to reflect the new position.
Additionally, a comment has been added to hopefully make failures in
this test easier to grok for people moving forward.
2016-02-17 20:54:44 -06:00
justinta89
d16b520d79
Fixed lint error
2016-02-17 15:43:03 -07:00
Mike Place
74a8f008f5
Merge pull request #31143 from kraney/boto_apigateway
...
Boto apigateway
2016-02-17 15:17:16 -07:00
justinta89
b3c1fa8de2
Fixed lint errors
2016-02-17 15:01:59 -07:00
Joe Julian
783e9b2e13
Rework tests and fix reverse peering with gluster 3.7
...
Reworked the test structure design for the gluster module and state so I
could create a test that mimiced the behavior difference between 3.7 and
prior versions when reverse probing by ip a server that already exists.
Added the additional data given by gluster 3.7 to the output of
glusterfs.list_peers to allow us to compare a requested peering against
a host's aliases.
Fixes #30932
2016-02-17 13:10:07 -08:00
rallytime
023ad4635c
Merge branch '2015.5' into '2015.8'
...
Conflicts:
- salt/modules/win_update.py
- salt/states/win_update.py
2016-02-17 09:33:08 -07:00
Justin Findlay
a119fa0e66
tests/unit/utils/url_test.py: remove env support
2016-02-16 20:33:23 -07:00
Justin Findlay
4e709ab2be
tests/unit/pydsl_test.py: remove env support
2016-02-16 20:33:23 -07:00
Mike Place
52a3c9b0c9
Merge pull request #31130 from ticosax/saltnado_pass_get
...
Saltnado: provide also get parameters to the context
2016-02-16 10:18:52 -07:00
Nicolas Delaby
f0a6d2b814
Saltnado provide also get parameters to the context
2016-02-15 10:09:02 +01:00
Derek Schaller
8d7ab01c67
Fixing npm cache cleaned lint errors
2016-02-12 20:35:13 -08:00
Derek Schaller
6c88c43f28
Merging in cachedout's test fixes
2016-02-12 20:09:22 -08:00
Derek Schaller
4a133d5ddc
cache_clean should return a mocked value
2016-02-12 19:51:22 -08:00
rallytime
73d73e80c1
Merge branch '2016.3' into 'develop'
...
Conflicts:
- doc/topics/releases/2015.8.4.rst
- doc/topics/releases/2015.8.5.rst
- doc/topics/thorium/index.rst
- salt/cloud/clouds/opennebula.py
- salt/engines/thorium.py
- salt/loader.py
- salt/modules/archive.py
- salt/modules/boto_vpc.py
- salt/modules/data.py
- salt/modules/reg.py
- salt/pillar/mysql.py
- salt/runners/cache.py
- salt/states/archive.py
- salt/states/cron.py
- salt/states/file.py
- salt/states/glance.py
- salt/states/reg.py
- salt/thorium/__init__.py
- salt/thorium/check.py
- salt/thorium/file.py
- salt/thorium/reg.py
- salt/utils/jid.py
- salt/utils/parsers.py
- setup.py
2016-02-12 14:38:50 -07:00
justinta89
d43d24ba6c
Added more basic unit tests to unit.utils.network
2016-02-12 13:07:07 -07:00
Mike Place
498dec2e91
Fix tests
2016-02-12 10:56:01 -07:00
Tarjei Husøy
ceae2a16f8
Support match-sets in iptables module
...
Based on work by @l13t in https://github.com/saltstack/salt/pull/29426 .
Added tests and fixed incorrect appending of the built rule.
Closes #29423 .
2016-02-12 10:24:50 -07:00
Erik Johnson
23b6c08727
Lint fixes for merge-forward
2016-02-12 10:44:18 -06:00
Colton Myers
0a7b958ae3
Fix s3 test for new kms_keyid parameter/return
2016-02-12 09:21:49 -07:00
Derek Schaller
b5815d367e
Reset the name to valid package in npm cache_cleaned unit test
2016-02-11 22:22:21 -08:00
Colton Myers
076b49a4ca
Merge remote-tracking branch 'upstream/2015.8' into merge-forward-2016.3
...
Conflicts:
README.rst
doc/conf.py
doc/ref/index.rst
doc/ref/proxy/all/salt.proxy.ssh_sample.rst
doc/topics/installation/rhel.rst
doc/topics/releases/2015.8.4.rst
doc/topics/tutorials/states_pt5.rst
salt/cloud/clouds/ec2.py
salt/cloud/clouds/opennebula.py
salt/config/__init__.py
salt/modules/boto_dynamodb.py
salt/modules/boto_ec2.py
salt/modules/boto_elasticache.py
salt/modules/boto_elb.py
salt/modules/boto_iam.py
salt/modules/boto_rds.py
salt/modules/boto_sns.py
salt/modules/boto_sqs.py
salt/modules/dracr.py
salt/modules/git.py
salt/modules/mine.py
salt/modules/systemd.py
salt/modules/win_pkg.py
salt/modules/yumpkg.py
salt/pillar/__init__.py
salt/states/git.py
salt/states/rabbitmq_vhost.py
salt/states/saltmod.py
salt/utils/pkg/rpm.py
setup.py
tests/unit/modules/systemd_test.py
tests/unit/states/rabbitmq_vhost_test.py
2016-02-11 22:33:49 -07:00
Derek Schaller
47f8aeee97
Cleaning up npm cache_cleaned unit tests expected response
2016-02-11 20:39:42 -08:00
Derek Schaller
fe56101584
Update unit test to reflect npm ls directory structure
2016-02-11 19:41:08 -08:00
Winston Liu
6006c404bc
use itertools instead of zip.
2016-02-11 17:56:28 -08:00
Winston Liu
bc1a6ecec2
import zip from salt.ext.six.moves
2016-02-11 15:18:01 -08:00
justinta89
61e80d7e2f
Added more unit tests to unit.utils.network
2016-02-11 15:52:13 -07:00
Winston Liu
b994bcfae5
lint warnings/errors.
2016-02-11 14:24:35 -08:00
Winston Liu
19bbf51a2e
resourcepath -> resourcePath for consistency naming.
2016-02-11 13:26:05 -08:00
Mike Place
f24954dde5
Merge pull request #31139 from exowaucka/develop
...
Improve %h and %u handling in SSH module
2016-02-11 14:13:05 -07:00
Alex Wauck
329b25b3f1
Improved ssh_auth path expansion test
2016-02-11 13:49:15 -06:00
justinta89
cfc7075c44
Lint and test fixes
2016-02-11 11:22:35 -07:00