Jorge Schrauwen
95a1668bc1
fix type in test data
2015-12-22 21:21:07 +00:00
Mike Place
c19782a184
Merge pull request #29853 from basepi/merge-forward-develop
...
Merge forward from 2015.8 to develop
2015-12-22 08:05:49 -07:00
Mike Place
62c9514108
Merge pull request #29881 from sjorge/module_zpool
...
rework salt.module.zpool
2015-12-21 14:51:10 -07:00
Jorge Schrauwen
1ca3757782
tests now cover most commands that query data
2015-12-21 20:44:10 +00:00
Jorge Schrauwen
08b65e79ac
add a few more unit tests
2015-12-21 20:40:28 +00:00
Jorge Schrauwen
37ac0df4e3
also test zpool.status
2015-12-21 20:19:03 +00:00
Jorge Schrauwen
21ee4b71b6
also do negative test
2015-12-21 20:07:48 +00:00
Jorge Schrauwen
28c4d28446
attempt to fix unit test
2015-12-21 19:49:40 +00:00
Mike Place
fa7dead492
Merge pull request #29901 from cachedout/fixup_29863
...
Fixup 29863
2015-12-21 11:26:00 -07:00
Mike Place
0d7ef0e95c
Fix broken tests
2015-12-21 11:25:18 -07:00
Mike Place
3f324faa07
Merge pull request #29871 from skizunov/develop2
...
Fixed Windows salt-master memory leaks in logger
2015-12-21 11:10:10 -07:00
Mike Place
23bffbb623
Merge pull request #29875 from akissa/add-postgres_language-state
...
Add PostgreSQL Language management functionality
2015-12-21 10:39:46 -07:00
Mike Place
207bb5af0c
Merge pull request #29830 from terminalmage/issue29064
...
Optimizations/bugfixes/feature adds for systemd execution module
2015-12-21 10:37:36 -07:00
Mike Place
4f46255044
Merge pull request #29856 from rallytime/esxi-unit-tests
...
Added some initial unit tests for the salt.modules.vsphere.py file
2015-12-21 10:12:20 -07:00
Andrew Colin Kissa
f921a88a30
lint
2015-12-20 20:41:40 +02:00
Sergey Kizunov
793c0bef75
Fixed Windows salt-master memory leaks in logger
...
__process_multiprocessing_logging_queue:
- A leak was observed in this process on Windows. On Windows, creating a
new process doesn't fork (copy the parent process image). Due to this, we
need to setup extended logging inside this process. The leak was due to
the temp null and temp logging handlers being active which just store
messages but don't process them. Setting up extended logging removes
those handlers and fixes the leak (as well as properly dealing with
incoming logging messages).
setup_multiprocessing_logging:
- A leak was obversed in processes that used this on Windows. Similar
to above, due to lack of fork, the new process will have the temp null
and temp logging handlers enabled, causing the leak. In this function,
removing those handlers prevents the leak.
Signed-off-by: Sergey Kizunov <sergey.kizunov@ni.com>
2015-12-20 09:05:19 -06:00
Andrew Colin Kissa
a826720371
Add PostgreSQL Language management functionality
...
Fixes #29874
2015-12-20 09:37:41 +02:00
rallytime
b908ebd123
Added some initial unit tests for the salt.modules.vsphere.py file
...
More will follow to cover the remaining functions.
2015-12-18 16:18:01 -07:00
Colton Myers
95fe811724
Merge remote-tracking branch 'upstream/2015.8' into merge-forward-develop
...
Conflicts:
salt/minion.py
salt/modules/network.py
salt/scripts.py
salt/states/file.py
salt/states/git.py
salt/utils/event.py
2015-12-18 15:00:24 -07:00
Erik Johnson
15047918a9
systemd test fixes
...
This removes a bunch of tests that don't test anything (see https://github.com/saltstack/salt/issues/29852 ).
It also changes some of the tests to reflect recent changes in
systemd.py.
2015-12-18 15:17:38 -06:00
Andrew Colin Kissa
98593a94d5
fix various bugs in augeas modules
...
Fixes #29842
2015-12-18 23:01:44 +02:00
lburg
6d1ab2ece0
states.timezone: Fix 'desrired' typo
2015-12-18 13:54:04 +01:00
Andreas Lutro
51088d938a
add tests, rename a function to more closely mirror influxdb
2015-12-17 21:58:51 +01:00
Andrew Colin Kissa
b749b9faba
Add Pillar SQLCipher module
...
Fixes #29781
2015-12-17 09:48:27 +02:00
Nicole Thomas
cb10aad1b3
Merge pull request #29774 from cachedout/splay_jenkins
...
Splay sleeps inside jenkins
2015-12-16 16:55:53 -07:00
Thomas S Hatch
ab61f78295
Merge pull request #29775 from lyft/listen-id-declaration-resolution-stable
...
Change listen requisite resolution from name to ID declaration
2015-12-16 15:56:03 -07:00
Paul Fisher
ff3a809c11
Change listen requisite resolution from name to ID declaration
2015-12-16 13:54:49 -08:00
Mike Place
1c65cdcbc4
Splay sleeps inside jenkins
2015-12-16 14:48:51 -07:00
Mike Place
613213b921
Merge pull request #29757 from cachedout/refresh_db
...
Skip refresh db test if upstream repo does not repsond.
2015-12-16 13:23:16 -07:00
Mike Place
83df4c4c75
Skip refresh db test if upstream repo does not repsond.
2015-12-16 10:23:10 -07:00
Mike Place
aab929d196
Merge pull request #29718 from thusoy/issue-29423
...
Support match-sets in iptables module
2015-12-16 07:48:18 -07:00
Tarjei Husøy
387ac2ce5e
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 .
2015-12-15 16:35:06 -08:00
Mike Place
d19827fd3a
Disable some boto tests per resolution of moto issue
...
Pending resolution of https://github.com/spulec/moto/issues/493
2015-12-15 14:59:14 -07:00
Mike Place
a2b1f41f49
Disable some boto tests per resolution of moto issue
...
Pending resolution of https://github.com/spulec/moto/issues/493
2015-12-15 14:57:52 -07:00
Colton Myers
5ac96cc8ba
Merge remote-tracking branch 'upstream/2015.8' into merge-forward-develop
...
Conflicts:
salt/client/ssh/ssh_py_shim.py
salt/modules/tls.py
salt/states/git.py
salt/transport/tcp.py
2015-12-14 15:56:26 -07:00
Alexandre Garnier
f3a2b27671
Fix deb_apache states methods tense
2015-12-13 13:58:27 +01:00
Mike Place
8b336dc1b4
Merge pull request #29638 from cachedout/fix_29535
...
Fix 29535
2015-12-11 13:37:42 -07:00
Mike Place
5bda5ff664
Updated pip module internal check for log.
2015-12-11 13:36:51 -07:00
Mike Place
14a19f9313
Merge pull request #29634 from cachedout/lint_29459
...
Lint 29459
2015-12-11 12:53:07 -07:00
Mike Place
3514765d33
Merge pull request #29573 from kraney/boto_lambda
...
An implementation of support for AWS Lambda
2015-12-10 13:01:26 -07:00
Kris Raney
c024ca70b1
A few missed lint errors
2015-12-09 16:52:10 -06:00
Kris Raney
4e04c3fbbd
Fix lint warnings, add log when using default region
2015-12-09 16:03:20 -06:00
Kris Raney
f33d7a761c
Fix unit test to work with code that understands FunctionArn
2015-12-09 12:49:27 -06:00
Mike Place
78fa3111a7
Merge pull request #29571 from cachedout/lint_29493
...
Lint #29493
2015-12-09 09:28:17 -07:00
Mike Place
ab439e9173
Lint
2015-12-09 09:27:12 -07:00
Andreas Lutro
7c69c177ed
update test
2015-12-09 13:18:47 +01:00
Justin Findlay
45acd05065
state.file: add file.mkdir to unit test mock
2015-12-08 16:33:33 -07:00
Justin Findlay
aa393a4831
state.file: add pchanges to unit test mock
2015-12-08 16:33:07 -07:00
Kris Raney
591e2756cc
Add tests for boto_lambda states.
2015-12-08 16:20:31 -06:00
Colton Myers
7918736656
Merge remote-tracking branch 'upstream/2015.8' into merge-forward-develop
...
Conflicts:
salt/client/ssh/ssh_py_shim.py
salt/modules/dracr.py
salt/states/boto_vpc.py
tests/unit/states/file_test.py
2015-12-08 14:46:23 -07:00
Colton Myers
e59364ad1d
Fix failing unit test
2015-12-08 13:45:34 -07:00
Kris Raney
bda53f74a4
Full unit test coverage for lambda module
2015-12-08 13:33:28 -06:00
Andreas Lutro
36e493cadf
lint - tabs to spaces, oops
2015-12-08 20:24:45 +01:00
Colton Myers
9673fd0937
Merge remote-tracking branch 'upstream/2015.5' into merge-forward-2015.8
...
Conflicts:
salt/cloud/clouds/ec2.py
tests/unit/states/file_test.py
2015-12-08 12:23:26 -07:00
Kris Raney
f98791054e
Lambda function unit test cases
2015-12-08 10:15:11 -06:00
Mike Place
95523312a0
Merge pull request #29512 from dr4Ke/fix_remount_cifs_uid_name
...
Fix forced remount if uid/gid is provided as a name
2015-12-08 09:08:33 -07:00
Christophe Drevet-Droguet
9a268e05d6
mount exec module: resolve user/group names in opts
...
In relation to #25293 , it solves the improbable case where the OS returns the
mount options as names instead of numeric ids. The module converts these names
to numeric ids before returning the opts.
This is done only for uid= and gid= opts, for now. It can be extended to others.
2015-12-08 12:43:47 +01:00
Christophe Drevet-Droguet
7395a949e4
mount state module: uid/gid verification with names
...
Should fix #25293
2015-12-08 12:43:46 +01:00
Mike Place
87fb8baad1
Merge pull request #29294 from skizunov/develop2
...
ZeroMQ no longer required when transport is TCP
2015-12-07 21:59:44 -07:00
Nicole Thomas
df90c406ba
Merge pull request #29462 from techhat/genesispart
...
Create partitioned, bootable images
2015-12-07 19:28:24 -07:00
Sergey Kizunov
a37a2700af
ZeroMQ no longer required when transport is TCP
...
salt/master.py:
- If ZMQ is not importable, use `tornado.ioloop.IOLoop` as the loop class.
- Check HAS_ZMQ before using any zmq.* content.
- Did not touch `FloMWorker` usage of zmq.*. This is only used when the
transport is RAET.
salt/minion.py:
- If ZMQ is not importable, use `tornado.ioloop.IOLoop` as the loop class.
- Check HAS_ZMQ before using any zmq.* content.
salt/transport/ipc.py:
- Added `IPCMessagePublisher`. This is intended to function much like
ZMQ's zmq.PUB sockets. Used in implementing utils/event.py to function
without ZMQ.
- Added `IPCMessageSubscriber`. This is intended to function much like
ZMQ's zmq.SUB sockets. Used in implementing utils/event.py to function
without ZMQ. What makes this class a bit different is that the associated
IO Loop is meant to not be running when it is used. Due to this, it is
recommended that the caller create a new IO Loop for this purpose. The
reason for this is that the `get_event()` API may be invoked from
anywhere, whether or not there is a current IO Loop that is running in
the thread of the invocation.
salt/utils/async.py:
- If ZMQ is not importable, use `tornado.ioloop.IOLoop` as the loop class.
salt/utils/event.py:
- Implemented using `salt.transport.ipc` instead of ZMQ.
- zmq.PUB ==> `IPCMessagePublisher`
- zmq.SUB ==> `IPCMessageSubscriber`
- zmq.PUSH ==> `IPCMessageClient`
- zmq.PULL ==> `IPCMessageServer`
Signed-off-by: Sergey Kizunov <sergey.kizunov@ni.com>
2015-12-07 20:22:16 -06:00
Justin Findlay
99b229c9fe
modules.genesis: update unit tests for bootstrap
2015-12-07 15:19:22 -07:00
Andreas Lutro
edf2a3098e
remove "2" from state name
2015-12-07 21:54:16 +01:00
Andreas Lutro
00b6eb5907
add tests, clean up/fix logic
2015-12-07 21:52:22 +01:00
Mike Place
7efd6dd140
Merge pull request #29399 from jfindlay/second_up
...
modules.status: add human_readable option to uptime
2015-12-07 12:53:52 -07:00
Joseph Hall
bb6e2d5a8a
Adding tests for disk.blkid
2015-12-07 08:52:06 -07:00
Christophe Drevet-Droguet
4a00cc5b70
cron: support for commented cron jobs
...
This change is an implementation for managing commented cron jobs.
Before that, commented cron jobs were not manageable by salt. They were ignored
at reading, and thus lost while writing the new crontab.
This is described in issue #29082 , which should be fixed now.
There is a new `commented` parameter, defaulting to False. The cron job is
set like any other, but is prefixed by `#DISABLED#`.
2015-12-07 15:40:36 +01:00
Justin Findlay
48e7beb0eb
modules.status: add in_seconds option to uptime
...
Implements #29311 .
2015-12-04 18:52:59 -07:00
Justin Findlay
ca69a646d6
modules.genesis.bootstrap: update unit tests
2015-12-04 18:44:42 -07:00
Craig Rodrigues
381e8cc144
Use print as a function [PEP 3105].
...
This reduces warnings from the 2to3 utility
and future proofs the code when it is time to move to Python 3.
2015-12-04 16:17:35 -08:00
Kris Raney
be58e095d4
Avoid leaving zip files scattered around after tests.
2015-12-04 14:23:40 -06:00
Mike Place
00cbcb9f3b
Lint test case
2015-12-04 12:43:14 -07:00
Mike Place
0c6852e67d
Fix augeas test
2015-12-04 08:37:01 -07:00
Kris Raney
6a208dca84
Start unit tests for boo_lambda
2015-12-03 21:09:48 -06:00
Mike Place
af1c327461
Fix augeas_cfg test
2015-12-03 13:54:43 -07:00
Mike Place
d2c0fcbc97
Merge pull request #29398 from cachedout/lint_29288
...
Lint 29288
2015-12-03 11:03:53 -07:00
Mike Place
3b0033e529
Lint #29288
2015-12-03 11:02:49 -07:00
Mike Place
6a7a95f28a
Merge pull request #28501 from twangboy/jmoney_26898
...
Requested fixes for 26898
2015-12-02 18:12:12 -07:00
Mike Place
17d80c051a
Merge pull request #29334 from rallytime/bp-29237
...
Back-port #29237 to 2015.8
2015-12-02 12:37:31 -07:00
Mike Place
2607246686
Merge pull request #29321 from techhat/sparsegenesis
...
Handle sparse files
2015-12-02 12:36:28 -07:00
Mike Place
5ec7947595
Merge pull request #29300 from ticosax/dockerng-volumes
...
[dockerng] Add support for volume management in dockerng
2015-12-02 10:48:53 -07:00
Mike Place
eda0cffee5
Merge pull request #29338 from cachedout/fixup_28815
...
Fixup 28815
2015-12-02 10:47:25 -07:00
Mike Place
7b11eb0d67
Fixup test for #29321
2015-12-02 10:45:01 -07:00
Mike Place
f2bf2dff14
Adjust test for syndic config
...
Refs #28115
2015-12-02 09:35:48 -07:00
Nicolas Delaby
cb9cb463b0
Provide states for managing docker volumes
2015-12-02 17:27:20 +01:00
Nicolas Delaby
dff6fa1fb2
Add execution module to manage docker volumes
2015-12-02 17:27:20 +01:00
Jorge Schrauwen
598226def1
fix unit test (attempt 1)
2015-12-02 08:34:59 -07:00
Mike Place
99b7d87688
Merge pull request #29218 from clan/service_state
...
check service enable state in test mode
2015-12-02 08:31:00 -07:00
Mike Place
b96552b716
Merge pull request #29304 from sbz/monit-module-changes
...
modules/monit: complete monit execution module functions
2015-12-02 07:50:56 -07:00
Colton Myers
3f09d58fff
Merge remote-tracking branch 'upstream/2015.8' into merge-forward-develop
...
Conflicts:
salt/cloud/clouds/vmware.py
salt/modules/rh_ip.py
salt/modules/s3.py
salt/modules/saltutil.py
salt/modules/zypper.py
salt/spm/__init__.py
salt/utils/aws.py
salt/utils/s3.py
tests/unit/modules/s3_test.py
tests/unit/pydsl_test.py
2015-12-01 15:31:03 -07:00
Justin Findlay
60bd5781ef
Merge pull request #29312 from sjmh/fix/etcd_watch_valerr
...
Catch ValueError on timeout on non-existing key
2015-12-01 13:55:41 -07:00
Sofian Brabez
a2e5586cd4
modules/monit: alias reload function also and fix lint issues
2015-12-01 21:42:56 +01:00
Steve Hajducko
cef6eff7c8
Catch ValueError on timeout on non-existing key
...
The etcd watch function tries to read a key when it reaches the timeout
in order to obtain details about the key.
On python 2.6, when it tries to re-read the key, it throws a ValueError,
since python-etcd doesn't officially support python 2.6. The watch
function wasn't catching this ValueError, so it was returning the
exception, rather than a blank dict.
2015-12-01 10:30:45 -08:00
Mike Place
a890307cc0
Merge pull request #29310 from cachedout/fixup_spmverbose
...
Fixup spmverbose
2015-12-01 11:28:07 -07:00
Mike Place
cdde617be3
Fixup test for spm verbose PR
...
Refs #29274
2015-12-01 11:27:03 -07:00
Mike Place
39667fda12
Merge pull request #29240 from clan/linux_acl
...
handle acl_type [[d]efault:][user|group|mask|other]
2015-12-01 10:56:20 -07:00
Justin Findlay
4d6c71aa80
modules.glusterfs: fix start_volume unit test
2015-12-01 10:53:32 -07:00
Mike Place
7e424e10f2
Merge pull request #28054 from dr4Ke/custom_grains_deep_merge
...
loader uses a deep dictionary merge for the grains (core and customs)
2015-12-01 10:33:52 -07:00
Sofian Brabez
539fd52220
modules/monit: complete monit execution module functions
...
add new functions configtest(), id(), reload(), version() and validate()
to the monit execution module
2015-12-01 17:33:52 +01:00
Z. Liu
a1250a9729
check service enable state in test mode
2015-12-01 15:02:00 +08:00
Z. Liu
02429aca69
handle acl_type [[d]efault:][user|group|mask|other]
2015-12-01 14:55:08 +08:00
Mike Place
84c36ec92f
Merge pull request #29259 from Unity-Technologies/feature/beacon-adb
...
Add beacon for android devices
2015-11-30 15:30:18 -07:00
Mike Place
8d32d8d43d
Merge pull request #29264 from alprs/fix-ssh_auth_absent_test
...
Prevent ssh_auth.absent from running when test=True
2015-11-30 14:54:15 -07:00
Mike Place
87e4aa4fae
Merge pull request #28994 from timcharper/2015.8.1-dev
...
add support to s3 for aws role assumption
2015-11-30 13:52:17 -07:00
Mike Place
aa741b7015
Merge pull request #29176 from woodrow/elb-backend-policy-management
...
Allow boto_elb to manage ELB backend policies.
2015-11-30 13:36:44 -07:00
Mike Place
d651d7167e
Merge pull request #29067 from jacksontj/2015.8
...
Fix infinite recursion in state compiler for prereq of SLSs
2015-11-30 13:27:09 -07:00
Daniel Hobley
24a3a98b3c
Removed global in favour of updating a dictionary
2015-11-30 20:29:53 +01:00
Daniel Hobley
2690e3c8f3
Replaced double quotes with single
2015-11-30 20:19:13 +01:00
Andreas Lutro
9193676f9c
fix ssh_auth_test
...
there were 4 side_effect return values, when it should only return 2
times - 2 of the 4 states.ssh_auth.absent calls are done with test=True
test=True and should therefore not call modules.ssh.rm_auth_key
2015-11-30 20:13:52 +01:00
Jorge Schrauwen
cbded94f1a
fix unit test (attempt 1)
2015-11-30 16:21:49 +00:00
Tim Harper
e060986828
add support to s3 for aws role assumption
2015-11-28 00:57:45 -07:00
Daniel Hobley
f482643959
Added beacon for detecting low battery on android devices
2015-11-27 14:03:05 +01:00
Bastiaan Bakker
5226cd8f79
remove trailing whitespace
...
fix subdict_match test cases
2015-11-25 20:41:13 -07:00
Bastiaan Bakker
44713cdb95
fix issue 29191: only try partial matches when a wildcard has been specified
2015-11-25 20:41:13 -07:00
Mike Place
7bd15621c8
Merge pull request #29192 from bastiaanb/fix/issue-29191-subdict_match-regression
...
fix issue 29191: only try partial matches when a wildcard has been sp…
2015-11-25 13:06:39 -07:00
Mike Place
2477ff2eab
Add __init__ and pydsl test
2015-11-25 10:50:30 -07:00
Mike Place
89aee406fa
Merge pull request #29153 from DSRCompany/features/3077_acl_limit_args
...
ACL limit args
2015-11-25 10:29:35 -07:00
Mike Place
063f075a99
Add integration renderer tests to the suite
2015-11-25 10:14:46 -07:00
Bastiaan Bakker
7052479ad3
remove trailing whitespace
...
fix subdict_match test cases
2015-11-25 17:12:17 +01:00
Bastiaan Bakker
e3af8d2151
fix issue 29191: only try partial matches when a wildcard has been specified
2015-11-25 16:03:33 +01:00
Dmitry Kuzmenko
002b1ef9bd
Fixed use of assert_has_calls in tests.
...
The method logic was changed in mock-1.1.0.
This mades the use of the method compatible with both <1.1.0 and >=1.1.0
2015-11-25 15:31:20 +03:00
Dmitry Kuzmenko
09c4f69402
ACL test fix.
2015-11-25 12:33:46 +03:00
Stephen Woodrow
c695a57ba9
Fix tests.
2015-11-24 18:09:12 -08:00
Colton Myers
28b40de8da
Merge remote-tracking branch 'upstream/2015.8' into merge-forward-develop
...
Conflicts:
salt/client/ssh/__init__.py
salt/client/ssh/ssh_py_shim.py
salt/cloud/clouds/ec2.py
salt/cloud/clouds/vmware.py
salt/grains/philips_hue.py
salt/modules/boto_ec2.py
salt/modules/boto_route53.py
salt/modules/dracr.py
salt/modules/philips_hue.py
salt/proxy/philips_hue.py
salt/states/virtualenv_mod.py
2015-11-24 16:07:31 -07:00
Mike Place
81bf332be4
Migrate pydsl tests to integration test suite
...
This marks the beginning of a migration of the pydsl renderer tests
to the integration test suite and away from the unit test suite.
The unit test approach is becoming too difficult to maintain due to its complex approach to trying to internally manage a highstate run instead of calling into the salt state system to fully manage it.
2015-11-24 15:46:14 -07:00
Mike Place
68d6c454b8
Merge pull request #29141 from optix2000/full_sls_import
...
Add test case for require: sls with only import statements
2015-11-24 09:17:57 -07:00
Dmitry Kuzmenko
f20d2aa43e
ACL test update and fixes
2015-11-24 17:35:17 +03:00
Dmitry Kuzmenko
de5890a346
ACL function args: test and fixes
2015-11-24 17:35:17 +03:00
Dmitry Kuzmenko
3b9c4d2b35
Fixed LoadAuthTestCase
2015-11-24 17:35:16 +03:00
Nicolas Delaby
e98d18ba41
Expose docker networking as state
2015-11-24 13:55:22 +01:00
Nicolas Delaby
17ff5c1ab5
Add expose networking to modules.dockerng
2015-11-24 13:55:22 +01:00
Weilu Jia
596843e8d6
Add test case for sls with only import
...
Tests https://github.com/saltstack/salt/issues/10852
2015-11-23 18:27:56 -08:00
Weilu Jia
64e439cda2
Add test for infinite recursion with sls prerequisites
2015-11-23 09:12:06 -08:00
Mike Place
b06f4b25cd
Merge pull request #29054 from jtand/file_test
...
Adjusted the expected output to match the actual results
2015-11-20 08:51:33 -07:00
Christophe Drevet-Droguet
89e7578d21
loader test for external grains deep merge (non-functional)
...
This test is disabled until we have a way to reload the minion, or
just the custom grains, with the grains_deep_merge option set.
2015-11-20 08:44:29 +01:00
Mike Place
714ef8ff27
Merge pull request #29057 from lyft/file-manage-local-source-list
...
Add local file support for file.managed source list
2015-11-19 14:57:34 -07:00
Mike Place
30d0e7a0c2
Merge pull request #29008 from k00mi/develop
...
Make systemd service state less slow
2015-11-19 14:54:48 -07:00
justinta89
64a62662ef
Added sys import
2015-11-19 14:42:15 -07:00
Justin Findlay
401e4bfd33
file state: integration test difflib version check
2015-11-19 14:10:29 -07:00
Justin Findlay
9a4959a42b
systemd module: new unit test for available
2015-11-19 13:29:08 -07:00
Mike Place
b692ab1cfb
Merge pull request #29047 from schwing/fix-gpg-exception
...
Fix salt.modules.gpg.import_key exception: 'GPG_1_3_1 referenced before assignment'
2015-11-19 12:07:36 -07:00
justinta89
f947e1e549
Adjusted the expected output to match the actual results
2015-11-19 11:32:18 -07:00
John Schwinghammer
813f6e6808
Fix 'GPG_1_3_1 referenced before assignment'
...
- Fix gpg.import_key() exception:
"local variable 'GPG_1_3_1' referenced before assignment"
- Update the unit tests to test both the gpg.GPG_1_3_1=True and
gpg.GPG_1_3_1=False cases.
2015-11-19 09:27:46 -06:00
Mike Place
83e50d2515
Merge pull request #28906 from TronPaul/configparser-serializer
...
Configparser serializer
2015-11-18 19:42:52 -07:00
Paul Fisher
d175061c5d
Add tests for file.source_list with local files
2015-11-18 15:55:44 -08:00
Justin Findlay
0c0bce3ea6
cache runner test: add new unit tests
2015-11-18 16:33:46 -07:00
Christophe Drevet-Droguet
f13e9435b1
loader test for custom grains
2015-11-18 22:08:24 +01:00
Mike Place
b386bfa59d
Merge pull request #28952 from rominf/hg_status_multiple_repos
...
[modules/hg] hg.status: multiple repositories
2015-11-18 11:35:29 -07:00
Colton Myers
d76d62877d
Merge remote-tracking branch 'upstream/2015.8' into merge-forward-develop
...
Conflicts:
salt/modules/git.py
salt/renderers/gpg.py
salt/utils/__init__.py
2015-11-17 16:24:43 -07:00
Mark McGuire
f0a60b33e2
Use changes in #28926
2015-11-17 10:54:19 -06:00
Mark McGuire
be2751885d
Merge remote-tracking branch 'origin/develop' into configparser-serializer
2015-11-17 10:26:09 -06:00
Roman Inflianskas
ded2d46663
[modules/hg] hg.status: multiple repositories
2015-11-17 19:05:57 +03:00
Mike Place
1e9214f4e4
Merge pull request #28787 from chrigl/fix-28784
...
closes #28784
2015-11-17 08:54:04 -07:00
Mike Place
5b680c938a
Merge pull request #28950 from DSRCompany/pr/28812_which
...
PR 28812 which test fix
2015-11-17 08:32:16 -07:00
Dmitry Kuzmenko
18571000c5
Fix which test in PR#28812
2015-11-17 11:29:41 +03:00
Christoph Glaubitz
8639e3e9c3
closes #28784
...
In fact this test will fail on the current code, but that is like
intended. This tests the fix of #28783 , which was introduced in 2015.5.
2015-11-16 20:30:37 +01:00
Mike Place
27b917b623
Adjust tests for new loader spec
2015-11-16 12:23:05 -07:00
Justin Findlay
5ce61abf57
rewrite GPG unit tests
2015-11-16 09:36:29 -07:00
Mark McGuire
4324189658
add deserializer test, fix deserialization
2015-11-15 14:14:42 -06:00
Mark McGuire
53dd9ae138
Add configparser serializer
...
* move "python" serializer to serializers
* make salt.states.file.serializer load serializers from salt.serializers
2015-11-15 14:04:27 -06:00
Justin Findlay
e32a9aab85
rh_service._chkconfig_is_enabled unit tests
2015-11-13 23:38:40 -07:00
Colton Myers
efb479a1bd
Merge remote-tracking branch 'upstream/2015.8' into merge-forward-develop
...
Conflicts:
doc/topics/cloud/vmware.rst
salt/cloud/clouds/vmware.py
salt/grains/chronos.py
salt/grains/marathon.py
salt/loader.py
salt/modules/chronos.py
salt/modules/marathon.py
salt/proxy/chronos.py
salt/proxy/marathon.py
salt/state.py
salt/states/chronos_job.py
salt/states/marathon_app.py
salt/states/user.py
salt/utils/schedule.py
2015-11-13 15:18:45 -07:00
Mike Place
785bf94f55
Add transport setting to shell test
2015-11-12 14:32:39 -07:00
Mike Place
8d3244166b
Cast to dict to fix wheel tests in tcp
2015-11-12 12:21:52 -07:00
Colton Myers
224602437a
Merge pull request #28804 from cachedout/tcp_test_fixes
...
TCP test fixes
2015-11-12 11:39:25 -07:00
Todd Tomkinson
ba94878f45
marathon and chronos proxy minions
2015-11-12 10:03:38 -07:00
C. R. Oldham
2ad01fe7a2
Merge pull request #28778 from toddtomkinson/marathon_chronos_proxy_minions
...
marathon and chronos proxy minions
2015-11-12 08:07:21 -07:00
Mike Place
9b18f372e6
Normalize IPC check among transports
2015-11-11 16:26:32 -07:00
twangboy
c0cf33332c
Fixed some Lint...
2015-11-11 14:27:06 -07:00
Justin Findlay
bc7e0cfe64
add file.symlink unit tests
2015-11-11 13:37:47 -07:00
Justin Findlay
9381dc7215
orthogonalize file.symlink unit tests
2015-11-11 13:37:18 -07:00
rallytime
e2b0fee57e
Don't change perms list, only existing perms should be a dictionary.
...
Refs #28269
2015-11-11 12:31:51 -07:00
rallytime
7601647d69
Revert "rabbitmq.list_user_permissions returns a dict, not a list. Don't expect a list."
...
This reverts commit 07482211eb
.
2015-11-11 12:23:17 -07:00
Todd Tomkinson
f6ccc0e250
marathon and chronos proxy minions
2015-11-11 10:51:28 -07:00
rallytime
07482211eb
rabbitmq.list_user_permissions returns a dict, not a list. Don't expect a list.
...
Refs #28269
2015-11-11 09:45:35 -07:00
Scott Walton
e9b84b35b4
Resolved merge conflict with upstream.
2015-11-11 16:38:31 +00:00
Scott Walton
e46d31d446
Amended the tests to remove the tab-check and still keep #28608 fixed
2015-11-11 16:32:56 +00:00
Colton Myers
87365212b4
Merge pull request #28723 from basepi/merge-forward-develop
...
Merge forward from 2015.8 to develop
2015-11-10 11:26:29 -07:00
Mike Place
590f503fb8
Merge pull request #28748 from tinyclues/cors_url_with_arguments
...
[Saltnado] - Add support for CORS preflight request for parametrized urls
2015-11-10 11:24:30 -07:00
FELD Boris
049815fb34
Add support for cors preflight request for parametrized urls
...
The implementation was broken for jobs and minions handlers
2015-11-10 18:37:03 +01:00
Colton Myers
8a23181dd7
Merge remote-tracking branch 'upstream/2015.8' into merge-forward-develop
...
Conflicts:
salt/modules/boto_secgroup.py
salt/modules/rabbitmq.py
salt/modules/win_system.py
salt/modules/yumpkg.py
salt/states/mount.py
2015-11-09 17:05:43 -07:00
Colton Myers
c90431eddc
Rip out unit test that doesn't apply anymore
...
We now use -q with the command so we don't have to test our ability to
strip "Listing vhosts" out of the test
2015-11-09 15:22:01 -07:00
Mike Place
26fd2bc89e
Merge pull request #28215 from s0undt3ch/features/signal-handling
...
Proper signal handling
2015-11-09 12:11:15 -07:00
Mike Place
759242a6ec
Merge pull request #28671 from jfindlay/multi_mod
...
implement multiple modules in the kmod state
2015-11-07 19:11:52 -07:00
Justin Findlay
8524281f4e
update kmod exec and state module unit tests
2015-11-07 16:04:23 -07:00
Steve Hajducko
455f40b0d2
Refactor etcd modules
...
The etcd modules were using bits and pieces of python-etcd directly and
were using outdated exceptions to catch errors. These errors were
causing issues when trying to use etcd modules for logic.
A summary of changes
- Most of the 'work' is now done in etcd_util
- Removed import of python-etcd from states/etcd_mod and the
returner
- Added new tests for etcd_util
- Put in proper exceptions and catches for python-etcd
- Added support for ValueError catching. python-etcd doesn't
support python 2.6 and raises ValueError when trying to format
exceptions
- Added watch function to etcd execution module
- Added autospec to unit tests so hopefully less brittle
- Added TTL and directory features to the set function
*BACKWARDS INCOMPATIBLE CHANGES*
All interfaces are still backwards incompatible. However, the returns
from several of the etcd util functions have been changed. The old
returns presented issues with certain test cases. For instance, a
failed 'get' returned '', but a key with no value will also return ''.
The same issues occured with the 'ls', 'tree' and 'set' functions. Trying to
ls a blank directory returned the same result as a failed ls of a
non-existent key.
2015-11-06 16:29:50 -08:00
rallytime
cded9ac01d
Merge branch '2015.8' into 'develop'
...
Conflicts:
- salt/cloud/clouds/vmware.py
- salt/modules/freebsdpkg.py
- salt/modules/virtualenv_mod.py
- salt/states/boto_asg.py
- tests/integration/__init__.py
- tests/runtests.py
2015-11-06 09:34:31 -07:00
Pedro Algarvio
058cd00aea
Name some more runtests daemon processes
2015-11-06 13:15:12 +00:00
Pedro Algarvio
9dc5533fae
Name the test daemon processes for ps output
2015-11-06 13:15:12 +00:00
Scott Walton
540305dc99
Added test and fix for #28608 .
2015-11-06 09:06:07 +00:00
Mike Place
81396927f8
Merge pull request #28605 from zigarn/a2xxconf
...
Improvements on Debian-style apache utilities a2(en|dis)(mode|site|conf)
2015-11-05 15:18:28 -07:00
Nicole Thomas
b5a89927f0
Merge pull request #28594 from rallytime/merge-develop
...
Merge branch '2015.8' into develop
2015-11-05 14:47:42 -07:00
Alexandre Garnier
f505b51ab1
Add module and state wrappers on a2enconf
/a2disconf
2015-11-05 19:07:14 +01:00
rallytime
62d688d720
Fix mock patch module name
2015-11-05 10:45:30 -07:00
rallytime
3bcd068f6a
Update cloud vmware unittests to utilize the salt.utils.vmware.py file
2015-11-05 10:02:05 -07:00
Alexandre Garnier
2e6cf66d80
Add apache_site
state (like apache_module
)
...
Allow to enable/disable Debian-style sites with `a2ensite`/`a2dissite`.
2015-11-05 17:52:42 +01:00
Alexandre Garnier
39e1e6448b
Simplify deb_apache.check_mod_enabled
...
There is no 'default' with '000-' prefix for modules.
(Looks like a copy/paste from `check_site_enabled`)
2015-11-05 17:52:42 +01:00
Mike Place
9a08e4c1dd
Merge pull request #28562 from jirikotlin/develop
...
Test True support for INI state module.
2015-11-05 09:01:50 -07:00
Mike Place
5293150d25
Fix tests
2015-11-05 08:29:55 -07:00
Jiri Kotlin
eb19140cc5
INI test compliancy - modified ini_manage_test.py
2015-11-05 13:49:05 +00:00
rallytime
eec9d69387
Merge branch '2015.5' into '2015.8'
...
Conflicts:
salt/modules/virtualenv_mod.py
salt/states/file.py
tests/integration/__init__.py
2015-11-04 15:52:59 -07:00
rallytime
d31b0d1573
Merge branch '2015.8' into develop
2015-11-04 15:40:03 -07:00
Mike Place
7ca7ed4b37
Merge pull request #28579 from jfindlay/virt_ret
...
fix __virtual__ returns: tls,uptime mods
2015-11-04 15:00:02 -07:00
Justin Findlay
333c132378
fix __virtual__ returns: tls,uptime mods
2015-11-04 13:10:38 -07:00
Mike Place
ec924e8410
Merge pull request #28560 from bdrung/2015.8
...
Fix various typos
2015-11-04 08:06:36 -07:00
Mike Place
bdd5274c55
Merge pull request #28505 from plastikos/improvement-minio_process_grains
...
Add grains/minion_process.py - grains describing the minion process
2015-11-04 07:40:05 -07:00
Benjamin Drung
470e82f17f
Fix typo an dictionnary -> dictionary
2015-11-04 11:06:09 +01:00
Justin Findlay
11a9a5868f
simplify timezone module unit test mocks
2015-11-03 19:37:54 -07:00
Justin Findlay
476b651c94
update timezone module unit tests for timedatectl
2015-11-03 19:34:01 -07:00
Thayne Harbaugh
3bedbb713b
Use "test.versions" instead of "-g" (pid in grains changes).
...
integration.shell.call.test_issue_15074_output_file_append test just needs any
output that is repeatable. Previously it used the grains output ("-g"
argument). Unfortunately grains now includes the PID which changes for each
invocation of "salt-call" and is therefore not predictably comparable. Use
"test.versions" that should have constant output across multiple invocations.
2015-11-03 14:10:37 -07:00
twangboy
0da6ff7c50
Fixed some logic
2015-11-03 10:09:49 -07:00
Thayne Harbaugh
ab09d08c99
Expand test integration.modules.grains to check for new minion process grains.
2015-11-03 00:14:32 -07:00
Colton Myers
422c641233
Remove test failing because of mocks -- it's deprecated anyway
2015-11-02 19:42:01 -07:00
Colton Myers
32969b2408
Merge remote-tracking branch 'upstream/2015.8' into merge-forward-develop
...
Conflicts:
doc/topics/cloud/digitalocean.rst
salt/cloud/clouds/digital_ocean.py
salt/cloud/clouds/linode.py
salt/loader.py
salt/modules/blockdev.py
salt/modules/boto_route53.py
salt/modules/boto_vpc.py
salt/modules/bsd_shadow.py
salt/modules/file.py
salt/modules/rabbitmq.py
salt/modules/schedule.py
salt/modules/win_network.py
salt/runners/state.py
salt/spm/__init__.py
tests/unit/modules/blockdev_test.py
2015-11-02 18:19:01 -07:00
twangboy
7d39091c91
Fixed some more lint
2015-11-02 16:51:16 -07:00
twangboy
cf1e059be5
Fixed windows tests
2015-11-02 16:16:22 -07:00
twangboy
3dbd62af2c
Fixed some tests... hopefully
2015-11-02 16:13:07 -07:00
Colton Myers
238411c8ce
Merge pull request #28464 from basepi/merge-forward-2015.8
...
[2015.8] Merge forward from 2015.5 to 2015.8
2015-11-02 13:18:21 -07:00
Colton Myers
6f6e687cb4
Mock master_uri for even tests
2015-11-02 12:15:53 -07:00
Mike Place
da62fdc1e7
Merge pull request #28498 from rominf/postgres-quotes
...
[modules/postgres] quote identifiers in SQL
2015-11-02 12:11:57 -07:00
Roman Inflianskas
0184ecaba7
[modules/postgres] fix tests
2015-11-02 20:53:18 +03:00
Mike Place
7c81188f67
Merge pull request #28421 from rominf/service_run
...
[modules/service] Add run function to run services with custom arguments
2015-11-02 10:43:54 -07:00
Christophe Drevet-Droguet
eee2318873
grains state: allow deleting grain with 'False' value
...
and destroy a grain previously set to None, with destructive=True:
The f46722aaeb
commit, from Bruno Binet <bruno.binet@gmail.com> was
effectively reverted during my work on nested and complex values support.
This commit get it back, plus the ability to destroy a existing grain that
was previously set to None, plus tests for these.
2015-11-02 09:31:44 -05:00
Christophe Drevet-Droguet
576252da05
grains state: list_present, list_absent support nested grain
...
... and custom delimiter
2015-11-02 09:31:44 -05:00
Christophe Drevet-Droguet
62a1f37d86
grains state: nested support for grains.append
2015-11-02 09:31:44 -05:00
Christophe Drevet-Droguet
c19cff517a
grains state: more tests
2015-11-02 09:31:44 -05:00
Christophe Drevet-Droguet
cc844e4a2c
grains state tests: test the grain file content as well
...
It may be overkill, but I'm nervous about this change and
I don't want to mess with the grain file of a lot of people
2015-11-02 09:31:44 -05:00
Christophe Drevet-Droguet
1c5cd4c82d
grains state: changes comment more accurate
2015-11-02 09:31:44 -05:00
Christophe Drevet-Droguet
c63913e602
grains module: simpler comment for already set key
2015-11-02 09:31:44 -05:00
Christophe Drevet-Droguet
6b8c245b87
grains state: new tests for nested grains
2015-11-02 09:31:43 -05:00
Andreas Lutro
a772ce330a
fix tests
2015-11-02 10:50:51 +01:00
Daniel Hobley
e0060ac5e9
Replaced user with runas for cmd.run
2015-11-01 09:35:58 +01:00
Daniel Hobley
b6e27932c8
Added the ability to run adb as a specific user
2015-10-31 23:09:08 +01:00
Daniel Hobley
3d1552e9b9
Fixed a bug in adb beacon when the deamon starts up
2015-10-31 21:56:59 +01:00
Daniel Hobley
3fe0a7764b
Added beacon for adb devices
...
With this beacon you are able to get events when a device goes offline or goes missing from the minion
2015-10-31 21:06:58 +01:00
Roman Inflianskas
5d0ef71b3d
[tests/unit][modules/service] add service.run, fix service.*
2015-10-31 14:42:05 +03:00
Roman Inflianskas
6190d6699e
[modules/service] add service.run
2015-10-31 14:41:58 +03:00
Roman Inflianskas
233b9163a5
[tests/unit][modules/hg] add hg.status
2015-10-31 14:30:08 +03:00
Colton Myers
3286a5250f
Merge remote-tracking branch 'upstream/2015.5' into merge-forward-2015.8
...
Conflicts:
doc/topics/installation/windows.rst
doc/topics/tutorials/pillar.rst
pkg/windows/installer/Salt-Minion-Setup.nsi
salt/modules/file.py
salt/modules/schedule.py
salt/pillar/git_pillar.py
salt/states/boto_route53.py
salt/states/pkg.py
tests/integration/modules/pillar.py
2015-10-30 16:05:26 -06:00
justinta89
7ca79f1f7b
Skipped wipefs test if wipefs does not exist on OS
2015-10-30 15:04:33 -06:00
Justin Findlay
9ec72ca724
fix file state unit tests for win symlink feature
2015-10-29 13:50:38 -06:00
Mike Place
558be2e033
Merge pull request #28352 from rominf/check_or_die_to_virtual
...
Replace all check_or_die to __virtual__
2015-10-29 13:41:33 -06:00
Mike Place
26e7875202
Merge pull request #28389 from kmshultz/fix-loader-tests
...
commit 7b262f8
missed one fix
2015-10-29 09:48:17 -06:00
Daniel Hobley
124c758587
Lint fixes
2015-10-29 15:53:31 +01:00
Daniel Hobley
8af9246c4c
Hostname is the same even if the characters are in different cases
...
- Windows likes to give you back a hostname in uppercase while you might want to specify it in lower case, this commit allows you to do that
2015-10-29 13:36:18 +01:00
Daniel Hobley
72db9026e1
Lint fixes
2015-10-29 12:02:14 +01:00
Daniel Hobley
a78aab3255
Added the ability to change the "hostname" on windows minions
2015-10-29 11:39:22 +01:00
Roman Inflianskas
e299fc3ff2
Replace check_or_die functions to __virtual__
2015-10-29 10:59:58 +03:00
Kent Shultz
73236b4ea8
commit 7b262f8
missed one fix
2015-10-28 17:18:01 -07:00
Matthias Erll
042314246f
Unit test for merging included pillars.
2015-10-28 21:45:26 +01:00