Erik Johnson
4243a2211d
Rewrite the reactor unit tests
...
These have been skipped for a while now because they didn't work
correctly. The old tests have been scrapped in favor of new ones that
test both the old and new config schema.
2017-09-13 10:35:23 -05:00
Alexandru Bleotu
449dccdaa1
pylint
2017-09-13 05:13:01 -04:00
Alexandru Bleotu
b861d5e85e
pylint
2017-09-13 05:06:58 -04:00
Alexandru Bleotu
0222a5a056
Fix to vsphere tests
2017-09-12 18:43:08 -04:00
Alexandru Bleotu
afa4921d37
Fixed vsphere tests to support the esxcluster proxy
2017-09-12 18:43:05 -04:00
Alexandru Bleotu
26710fa8fc
Added tests for esxcluster execution module
2017-09-12 18:42:58 -04:00
Alexandru Bleotu
4113aa3ca7
Added tests for esxcluster proxy
2017-09-12 18:42:53 -04:00
Alexandru Bleotu
0e7b8e0c92
Adjusted tests for esxdatacenter proxy
2017-09-12 18:37:04 -04:00
Alexandru Bleotu
71c5725008
Merge branch 'develop' into test_fixes-gh
2017-09-12 23:31:37 +01:00
Alexandru Bleotu
f11a618274
Fixed Linux sysctl tests to be run in a local environment
2017-09-12 18:27:28 -04:00
Alexandru Bleotu
5c3dd00692
Updated config.test_api tests to take into account a ROOT_DIR override
2017-09-12 18:27:26 -04:00
Alexandru Bleotu
4cadfdcb56
Updated kubernetes tests to be skipped if library is not loaded
2017-09-12 18:27:23 -04:00
Erik Johnson
575ce9eb73
Fix unicode handling on PR 43378
...
The strings passed to exceptions should not be unicode types, as this
can cause problems elsewhere when exception class instances are
referenced.
2017-09-12 16:37:15 -05:00
Nicole Thomas
1016f585f5
Merge pull request #43378 from terminalmage/git-configparser
...
Add a GitConfigParser class for manipulating git config files
2017-09-12 17:10:43 -04:00
Mike Place
68d2558988
Merge pull request #43096 from lyft/add-util-func-for-state-return-merging
...
Add utils function to merge state returns
2017-09-12 11:02:14 -06:00
Mike Place
87ffd3f105
Merge pull request #42103 from davidjoliver86/ssh-config-roster
...
ssh config roster for salt-ssh
2017-09-12 10:38:49 -06:00
Erik Johnson
626129f5a3
Import all of configparser into module for easier access to error classes
2017-09-12 11:37:13 -05:00
Erik Johnson
507c1b871e
Add a GitConfigParser class for manipulating git config files
...
This class is designed to be used for (among other things) gitfs and git_pillar, to enforce config settings which reside in a git config file without resorting to using the git CLI.
2017-09-12 11:37:13 -05:00
Mike Place
1a81663e46
Merge pull request #43302 from lyft/upstream-boto_cloudfront
...
Upstream boto_cloudfront execution and state modules
2017-09-12 10:10:20 -06:00
Olivier Mauras
139e065ce9
New pillar/master_tops saltclass module
2017-09-12 15:53:39 +02:00
ribx
b712f971f7
Merge branch 'develop' into develop
2017-09-12 11:49:29 +02:00
Aneesh Agrawal
2e9f1999f6
Upstream boto_cloudfront execution and state modules
...
AWS recently added support for tagging CloudFront distributions,
which allows us to start managing them via Salt
as we can insert a Salt-controlled identifier as a `Name` tag.
(CloudFront distributions get unique IDs generated by AWS,
which we can't predict and thus use to manage them idempotently.)
2017-09-11 23:36:31 +00:00
Mike Place
08d102c869
Merge pull request #41943 from twangboy/win_unit_test_local_cache
...
Fix `unit.returners.test_local_cache` for Windows
2017-09-11 15:34:02 -06:00
Mike Place
50ab79f0cb
Merge pull request #43424 from twangboy/win_unit_test_hosts
...
Fix `unit.modules.test_hosts` for Windows
2017-09-11 15:28:41 -06:00
Mike Place
2ac185b055
Merge pull request #43439 from rallytime/merge-develop
...
[develop] Merge forward from 2017.7 to develop
2017-09-11 15:18:40 -06:00
Mike Place
2c28156b89
Merge pull request #41619 from skizunov/develop2
...
Add ability to set minion ID by module
2017-09-11 15:16:50 -06:00
Mike Place
bb8bffde1a
Merge pull request #42915 from garethgreenaway/missing_minions_branch
...
Show missing minions in lists & nodegroups
2017-09-11 13:38:55 -06:00
Mike Place
da16b6670a
Merge pull request #42752 from skizunov/develop4
...
Add config option to ensure jid is unique
2017-09-11 13:38:30 -06:00
Mike Place
9b60cc0d1f
Merge pull request #43137 from aogier/x-no-grains-on-jenkins
...
system group creation integration test
2017-09-11 13:09:36 -06:00
Mike Place
0e42e8f9cc
Merge pull request #43188 from alexbleotu/ext_pillar_config_param-gh
...
Ext pillar config param gh
2017-09-11 12:58:01 -06:00
Mike Place
e7a411c7f4
Merge pull request #43252 from rallytime/utils-files-moves
...
Move salt.utils.istextfile to salt.utils.files.is_text_file
2017-09-11 12:42:40 -06:00
rallytime
5413a5337e
Lint: remove unused import
2017-09-11 14:34:20 -04:00
Mike Place
ca091bc8a4
Merge pull request #43438 from rallytime/merge-2017.7
...
[2017.7] Merge forward from 2016.11 to 2017.7
2017-09-11 12:33:38 -06:00
twangboy
c0dc3f73ef
Use sys.platform instead of salt.utils to detect Windows
2017-09-11 12:22:06 -06:00
twangboy
e496d28cbf
Fix unit.utils.test_verify
for Windows
...
Use Windows api to get and set the maxstdio
Change messages to work with Windows
2017-09-11 12:22:06 -06:00
Mike Place
a9592dd3e2
Merge pull request #43320 from twangboy/win_fix_alternatives
...
Fix `unit.modules.test_alternatives` for Windows
2017-09-11 11:27:59 -06:00
Mike Place
9b89e49846
Merge pull request #43363 from twangboy/scratch_ini_tests
...
Fix `unit.modules.test_ini_manage` for Windows
2017-09-11 11:10:30 -06:00
rallytime
984fa35062
Merge branch '2017.7' into 'develop'
...
Conflicts:
- salt/key.py
- salt/modules/mount.py
- salt/modules/system.py
- tests/unit/modules/test_mount.py
- tests/unit/modules/test_pam.py
- tests/unit/modules/test_parted.py
2017-09-11 12:55:39 -04:00
Mike Place
2964707e5d
Merge pull request #43341 from ixs/fedora-rh_ip
...
Fix rh_ip template use for Fedora
2017-09-11 10:30:53 -06:00
rallytime
ef7b4242c3
Merge branch '2016.11' into '2017.7'
...
No conflicts.
2017-09-11 12:24:10 -04:00
Mike Place
9f421dde89
Merge pull request #43370 from rallytime/merge-develop
...
[develop] Merge forward from 2017.7 to develop
2017-09-11 09:38:20 -06:00
Mike Place
e89e23a32e
Merge pull request #43422 from twangboy/win_unit_cloud_ec2
...
Fix `unit.cloud.clouds.test_ec2` for Windows
2017-09-11 09:17:19 -06:00
rallytime
e11aa7e5ef
Adjust test mocking to handle __utils__['files.is_text_file']
2017-09-11 10:25:00 -04:00
rallytime
1279556873
Move salt.utils.istextfile to salt.utils.files.is_text_file
...
Moves the original function to `salt.utils.files.py`, adds a deprecation
warning to the original function, and updates all of the istextfile
references in salt code.
2017-09-11 10:21:43 -04:00
Alexandru Bleotu
0882fed61a
Merge branch 'develop' into ext_pillar_config_param-gh
2017-09-10 18:46:57 +01:00
twangboy
90dcf8287c
Fix unit.modules.test_hosts
for Windows
...
Fix problem with TmpStringIO Class on Windows. The module uses this
class twice in normal operation. In Windows there's an additional run
before the real runs where it is opened with mode='w'. This causes the
data to be wiped out. So, this sets it to only save the value in the
instance to data if it is not empty.
Use the windows path to the hosts file in Windows
2017-09-08 17:21:01 -06:00
twangboy
b2cea18d13
Fix unit.modules.test_gem
for Windows
...
Mock `salt.utils.is_windows` to return False so the test will run on
Windows
2017-09-08 15:53:07 -06:00
twangboy
1379627334
Fix unit.cloud.clouds.test_ec2
for Windows
...
Mock instead of create tempfile
2017-09-08 15:36:52 -06:00
Alessandro -oggei- Ogier
496f14a7e7
forgot to mock the proper one
2017-09-08 21:37:09 +02:00
Nicole Thomas
97f05ff603
Merge pull request #43398 from twangboy/win_fix_test_mount
...
Fix `unit.modules.test_mount` for Windows
2017-09-08 09:39:28 -04:00
Nicole Thomas
6a4cc5c1b0
Merge pull request #43399 from twangboy/win_fix_test_pam
...
Fix `unit.modules.test_pam` for Windows
2017-09-08 09:37:49 -04:00
Nicole Thomas
2b5cfae3f8
Merge pull request #43400 from twangboy/win_unit_test_parted
...
Fix `unit.modules.test_parted` for Windows
2017-09-08 09:36:59 -04:00
Nicole Thomas
332deeb013
Merge pull request #43401 from twangboy/win_unit_test_pw_group
...
Fix `unit.modules.test_pw_group` for Windows
2017-09-08 09:35:44 -04:00
Nicole Thomas
c0f54bfef1
Merge pull request #43402 from twangboy/win_unit_test_qemu_nbd
...
Fix `unit.modules.test_qemu_nbd` for Windows
2017-09-08 09:34:57 -04:00
Alessandro -oggei- Ogier
8d79ee2d49
test system group creation
2017-09-08 10:34:14 +02:00
Alessandro -oggei- Ogier
70642e495d
better qemu_static parameter mangle in deboostrap management, tests
2017-09-08 10:17:32 +02:00
twangboy
6ceb895a84
Use os.path.join for paths
2017-09-07 16:51:10 -06:00
twangboy
531ce8022b
Fix unit.modules.test_qemu_nbd
for Windows
...
Use os.sep
2017-09-07 15:44:35 -06:00
twangboy
78e39a1b9d
Fix unit.modules.test_pw_group
for Windows
...
Skip `test_info` and `test_getent` because they require grp which is not
available on Windows
2017-09-07 15:34:57 -06:00
twangboy
8e3e897ee2
Fix unit.modules.test_parted
for Windows
...
Mock salt.utils.is_windows to be False so that the __virtual__ tests
will run
2017-09-07 15:27:11 -06:00
twangboy
6257aa964a
Fix unit.modules.test_pam
for Windows
...
Mocks os.path.exists
2017-09-07 15:18:14 -06:00
twangboy
4a8d7e522c
Fix tests, Use full path to salt.utils.which
2017-09-07 14:41:56 -06:00
Sergey Kizunov
88ee8ad566
Add config option id_function
...
Signed-off-by: Sergey Kizunov <sergey.kizunov@ni.com>
2017-09-07 13:41:10 -05:00
Sergey Kizunov
3c58717c58
Add config option to ensure jid is unique
...
Having a jid that is occasionally not unique (eg two processes creating
jobs at about the same time) causes problems in my usage due to
job tracking assuming unique jids. Add a config option called `unique_jid`
that will enforce unique jids, but will change the jid format by
appending an underscore and the process id.
Signed-off-by: Sergey Kizunov <sergey.kizunov@ni.com>
2017-09-07 13:25:35 -05:00
Nicole Thomas
6106aec696
Merge pull request #43356 from gtmanfred/2016.11
...
never-download got readded
2017-09-07 13:46:04 -04:00
Nicole Thomas
3f19b247f3
Add handler.messages back in for test comparison
2017-09-07 11:51:39 -04:00
Jochen Breuer
20619b24c4
Fixed test for delete_deployment
...
Due to implementation change, we need to mock the return value.
2017-09-07 10:20:46 +02:00
twangboy
a909813fa5
Remove unused import (lint)
2017-09-06 15:56:24 -06:00
twangboy
3ef8d714cb
Fix unit tests to mock salt.utils.path.readlink
2017-09-06 13:03:14 -06:00
twangboy
7c4460164b
Fix alternatives for Windows
...
Not sure this is necessary... I don't think alternatives is a thing in
Windows. Anyway, it uses `__salt__['file.readlink']` instead of
`os.readlink` as there is no `os.readlink` in Windows.
Modifies the tests to mock `__salt__['file.readlink']` instead of
`os.readlink`
2017-09-06 13:03:14 -06:00
Aneesh Agrawal
60d80e7cda
Add utils function to merge state returns
...
This makes it possible to merge the state return
for a subresource into a main state return.
This is useful for configuring e.g. alarms to go along with a resource.
2017-09-06 18:14:04 +00:00
Alexandru Bleotu
103ef69016
Merge branch 'develop' into ext_pillar_config_param-gh
2017-09-06 18:49:37 +01:00
Alexandru Bleotu
33feda7a5b
Mocked salt.utils.args.get_function_argspec instead of inspect.getargspec in all external pillar data tests
2017-09-06 12:26:40 -04:00
Nicole Thomas
7d462d29c2
Merge branch 'develop' into expand-list_pkg-attr-parameter
2017-09-06 12:15:01 -04:00
Nicole Thomas
5111cf8bad
Merge branch '2016.11' into 43086-no-member
2017-09-06 10:41:18 -04:00
rallytime
5701d54516
Merge branch '2017.7' into 'develop'
...
Conflicts:
- salt/state.py
- salt/utils/gitfs.py
2017-09-06 09:39:27 -04:00
Andreas Thienemann
6aefa5c3f8
Update unit test to provide osmajorrelease grain.
2017-09-06 03:46:00 +02:00
twangboy
a94319a082
Make sure formatting of TEST_FILE_CONTENT matches original
2017-09-05 17:03:50 -06:00
twangboy
6263bc8983
Remove print statement
2017-09-05 16:48:58 -06:00
twangboy
79cd3831ae
Fix empty value preserved test
2017-09-05 16:44:12 -06:00
twangboy
85997391f1
Is this handled the same on Linux and Windows
2017-09-05 16:32:43 -06:00
Nicole Thomas
f19274e1b4
Merge pull request #43222 from rallytime/oxygen-warnings-env
...
Remove deprecation warnings for "env"
2017-09-05 18:24:54 -04:00
Mike Place
a414325a82
Merge pull request #43070 from lyft/support-states-returning-a-list-of-comments
...
Support states returning a list for ret['comment']
2017-09-05 16:19:26 -06:00
Mike Place
f902bd8bc9
Merge pull request #43152 from garethgreenaway/adding_custom_beacons
...
Adding custom beacons with beacon module
2017-09-05 15:37:39 -06:00
rallytime
b93392dfb7
Return a SaltInvocationError when passing incorrect function pattern
...
When calling an incorrectly formatted wheel or runner function, we should
be raising a SaltInvocationError with a hint to check function syntax rather
that raising an Eauth authentication error.
This PR does several things:
- Adds a dictionary error return when the function syntax passed through to
`utils.minions.CkMinions.spec_check` does not match the expected `module.function`
syntax
- Handles the return of this new dictionary error (instead of previous `False` return)
wherever the spec_check function is called. This is handled up the stack in
`master.py` and `masterapi.py`.
- Reworks the runner and wheel functions in `master.py` and `masterapi.py` to
help make those functions more DRY (see `salt.auth.check_authentication` function).
- Adds tests for all of these changes (written before the runner and wheel functions
were moved to use the new salt.auth.check_authentication function) to help prevent
regressions.
- Fixes a couple of places where unit tests exposed potential stacktraces.
- Adjusts one previous unit test concerning the dictionary error change from spec_check
2017-09-05 17:08:50 -04:00
Mike Place
6e1b541b46
Merge pull request #43232 from terminalmage/gitfs-inheritance
...
Improve inheritance in salt.utils.gitfs
2017-09-05 14:37:05 -06:00
Mike Place
9c57869234
Merge pull request #43276 from rallytime/utils-state-moves
...
Move state-related utils to salt.utils.state.py
2017-09-05 14:20:08 -06:00
Aneesh Agrawal
ba63920874
Support states returning a list for ret['comment']
...
Some states are complicated and multiple subparts,
or maybe cross-call into __states__ if they manage subresources.
In these cases, they will have multiple comments.
Make this more ergonomic by supporting a list of strings as the
value for ret['comment'] in state returns and documenting this.
By joining comments on newlines, it is possible to combine
single-line and multi-line comments cleanly, as opposed to e.g. commas.
The driving impetus for this is some of the boto modules.
An update to the boto_sqs module is included as an example.
Add a check that outgoing state return data has the right shape,
and add a testcase as well.
Fix the NPM state tests and the saltmod runner & wheel state functions
to comply with the prescribed format.
2017-09-05 19:52:42 +00:00
Daniel Wallace
9911b04208
fix test
2017-09-05 13:52:02 -06:00
rallytime
ed9b45ceaa
Adjust a couple more tests to handle __utils__['state.check_result'] mocking
2017-09-05 10:11:11 -04:00
Robin Lutz
ba7d00f58e
use dep_getkey for atom extraction to allow non existing versions and packages, added unit test to verify behaviour
2017-09-05 09:34:54 +02:00
Silvio Moioli
130c1b1c21
Merge branch 'develop' into expand-list_pkg-attr-parameter
2017-09-04 15:36:44 +02:00
twangboy
5bd5ea042a
Fix unit.modules.test_chef
for Windows
...
Mocks the __opts__ to contain cachedir
2017-09-01 14:49:50 -06:00
rallytime
4322f009cf
Merge branch '2017.7' into 'develop'
...
Conflicts:
- salt/auth/__init__.py
- salt/auth/ldap.py
- salt/grains/metadata.py
- salt/master.py
- salt/modules/apache.py
- salt/modules/dockermod.py
2017-09-01 16:37:29 -04:00
rallytime
d891433214
Adjust test mocking to handle __utils__['state.check_result']
2017-09-01 16:09:59 -04:00
rallytime
8127bca9ed
Use __utils__ where possible for moved state utils
...
And update all references to new state names in salt.utils.state.py
2017-09-01 16:09:59 -04:00
rallytime
4a86f23bf1
Move state-related utils to salt.utils.state.py
...
Moves the following functions from `salt.utils` to `salt.utils.state`:
- gen_state_tag
- search_onfail_requisites
- check_onfail_requisites
- check_state_result
Original functions have a deprecation warning added and all references
in Salt code were updated to use the new function path, including moving
some unit tests.
2017-09-01 16:09:59 -04:00
Mike Place
0e262b8c0d
Merge pull request #43253 from rallytime/utils-color-moves
...
Move get_colors and get_color_theme to salt.utils.color.py
2017-09-01 12:44:40 -06:00
Mike Place
24962587bc
Merge pull request #43269 from rallytime/merge-develop
...
[develop] Merge forward from 2017.7 to develop
2017-09-01 12:12:36 -06:00
Silvio Moioli
3dc46212cc
test_yumpkg: adapt to new supported attrs
2017-08-31 16:21:26 +02:00
Silvio Moioli
7b0a7432f4
test_zypper: adapt to new supported attrs
2017-08-31 16:21:26 +02:00
William Cannon
58eef3dc2c
fixed dunder usage problem in unit test
2017-08-30 17:00:27 -05:00
Nicole Thomas
bab9a49418
Merge branch 'develop' into ext_pillar_config_param-gh
2017-08-30 17:44:41 -04:00
wcannon
c080b263d5
Merge branch 'develop' into develop
2017-08-30 15:54:57 -05:00
Nicole Thomas
479e0e06ac
Merge pull request #42975 from brejoc/tests-for-kubernetes-module
...
Added unit tests for Kubernetes module
2017-08-30 16:30:15 -04:00
Nicole Thomas
ca7df1d4cf
Merge pull request #43176 from terminalmage/issue42935
...
docker_image states: Handle Hub images prefixed with "docker.io/"
2017-08-30 16:08:13 -04:00
Nicole Thomas
fdad9177b5
Merge branch '2017.7' into tests-for-kubernetes-module
2017-08-30 14:47:37 -04:00
Nicole Thomas
3777b34572
Merge branch '2017.7' into win_unit_test_local_cache
2017-08-30 12:16:52 -04:00
rallytime
14f5e5e023
Merge branch '2017.7' into 'develop'
...
Conflicts:
- salt/modules/augeas_cfg.py
- salt/modules/inspectlib/collector.py
2017-08-30 12:16:28 -04:00
Nicole Thomas
ec1bedc646
Merge pull request #43254 from twangboy/win_fix_test_inspect_collector
...
Fix `unit.modules.test_inspect_collector` on Windows
2017-08-30 11:46:07 -04:00
Nicole Thomas
25666f88f7
Merge pull request #43251 from twangboy/win_skip_test_groupadd
...
Skips `unit.modules.test_groupadd` on Windows
2017-08-30 09:56:36 -04:00
rallytime
29a763ffcb
Lint: Remove extra space
2017-08-30 09:38:39 -04:00
twangboy
cec627a60b
Skip mac tests for user and group
...
They use grp and pwd
2017-08-29 16:28:12 -06:00
twangboy
b401340e6c
Fix unit.modules.test_inspect_collector
on Windows
...
Uses os.sep instead of unix-style paths in the test
Uses salt.utils.path.islink() to detect symlinks instead of
os.path.islink(). os.path.islink() does not correctly detect symlinks in
Windows
Put grp and pwd imports inside a try/except block
2017-08-29 15:59:08 -06:00
rallytime
26f52bd2b8
Move get_colors and get_color_theme to salt.utils.color.py
...
Moves the `get_colors` and `get_color_theme` out of `salt.utils.py`
and into a new file named `salt.utils.color.py`.
This PR moves the original functions, adds a deprecation warning to
the old function paths, and updates any references to the functions
in Salt code to the new location. This includes moving a test as well.
2017-08-29 17:33:01 -04:00
twangboy
5185071d5a
Skips unit.modules.test_groupadd
on Windows
...
There is a test_win_groupadd modules for testing the win_groupadd module
on Windows.
2017-08-29 14:29:50 -06:00
rallytime
26410c662f
Update some salt.utils.x paths for moved util functions
...
Through merge forwards, some of the old-style paths have made their
way into develop. This PR corrects some of these instances on the more
popular functions.
2017-08-29 16:24:47 -04:00
twangboy
c956d24283
Fix is_windows detection when USERNAME missing
2017-08-29 10:16:21 -06:00
twangboy
869e8cc603
Fix unit.fileserver.test_gitfs
for Windows
...
Put `import pwd` in a try/except block
Set `os.environ['USERNAME']` in windows using win_functions
Add error function for `shutil.rmtree`
2017-08-29 10:16:21 -06:00
Jochen Breuer
c227cb25ad
Skipping test on ImportError
...
This most probably means that the Kubernetes client lib is not
installed.
2017-08-29 17:12:25 +02:00
Erik Johnson
53bd3a3e23
Improve inheritance in salt.utils.gitfs
...
This makes the following changes:
1. Renames the valid_providers param in GitBase to git_providers,
allowing for a dictionary mapping provider names to their associated
classes. This allows for alternate providers to be used with a
GitBase subclass.
2. Renames the get_provider function to verify_provider to reduce
confusion with git_providers.
3. Uses super() to run a parent class' dunder init instead of invoking
the parent class directly.
2017-08-28 21:49:42 -05:00
rallytime
375b1faa92
Remove deprecation warnings for "env"
...
Removal of these deprecation warnings has no behavioral effect, as
support for "env" instead of "saltenv" in these cases has already
been removed. Only the warning text will no longer display to users.
2017-08-28 10:37:05 -04:00
rallytime
6fad40454a
Merge branch '2017.7' into 'develop'
...
Conflicts:
- salt/modules/aptpkg.py
- salt/utils/napalm.py
2017-08-28 09:28:41 -04:00
rallytime
3911df2f4b
Merge branch '2016.11' into '2017.7'
...
No conflicts.
2017-08-28 09:25:49 -04:00
Nicole Thomas
df18a89836
Lint: Remove unused import
2017-08-28 09:21:52 -04:00
Jochen Breuer
bd76a870ce
Dunder vars are now defined via setup_loader_modules
2017-08-28 14:17:00 +02:00
Nicole Thomas
a563a9422a
Merge pull request #43201 from rallytime/merge-2017.7
...
[2017.7] Merge forward from 2016.11 to 2017.7
2017-08-25 18:56:46 -04:00
Mike Place
cfde26562b
Merge pull request #42991 from DarkKnightCZ/exec-code-all-fix
...
Allow cmdmod.exec_code_all to utilize cmdmod.run_all parameters
2017-08-25 15:25:31 -06:00
Mike Place
ce04ab4286
Merge pull request #42997 from twangboy/win_fix_test_module_names
...
Fix `unit.test_test_module_names` for Windows
2017-08-25 15:19:10 -06:00
Mike Place
f16b7246e4
Merge pull request #43103 from aogier/43101-genesis-bootstrap
...
genesis.bootstrap deboostrap fix
2017-08-25 14:48:23 -06:00
rallytime
d40eba6b37
Merge branch '2016.11' into '2017.7'
...
Conflicts:
- salt/states/git.py
2017-08-25 16:07:27 -04:00
Mike Place
5471f9fe0c
Merge pull request #43196 from gtmanfred/2016.11
...
Pin request install to version for npm tests
2017-08-25 12:43:05 -06:00
Daniel Wallace
ccd2241777
Pin request install to version
...
This fails on centos 6 because its node is too old to support the version of
hawk bumped here https://github.com/request/request/pull/2751 , we can still
test the functionality. This will pull from github, and install a specific tag
version, and we still do the uninstall using the github path.
This should be more stable.
2017-08-25 10:23:35 -06:00
Alexandru Bleotu
dc082a2087
pylint fix and fix when calling _external_pillar_data function
2017-08-25 06:41:30 -04:00
Alexandru Bleotu
a771dd94f3
Added tests for external pillar function calls
2017-08-25 06:41:27 -04:00
Alexandru Bleotu
2090d9d32f
Added tests for AsyncRemotePillar adding extra minion data from config
2017-08-25 06:41:25 -04:00
Alexandru Bleotu
5b383f0036
Added tests for RemotePillar adding extra minion data from config
2017-08-25 06:41:23 -04:00
Erik Johnson
7279f98e92
docker_image states: Handle Hub images prefixed with "docker.io/"
...
On some platforms, for reason which I do not yet grok, images pulled
from the Hub are prefixed with "docker.io/". This causes the
docker_image states to fail unless the user manually adds "docker.io/"
before the image name.
This commit adds a new function called "docker.resolve_tag" which
disambiguates this variance and allows images to be specified without
the "docker.io/" prefix.
Resolves #42935 .
2017-08-25 00:06:28 -05:00
garethgreenaway
d3cb78e74e
Merge branch 'develop' into adding_custom_beacons
2017-08-24 17:25:13 -07:00
Nicole Thomas
a6a327b1e5
Merge pull request #43155 from terminalmage/issue43001
...
Resolve image ID during container comparison
2017-08-24 18:09:46 -04:00
garethgreenaway
0186835ebf
Fix docstring in test
2017-08-24 17:08:52 -05:00
rallytime
3d0d9110ac
Merge branch '2017.7' into 'develop'
...
Conflicts:
- salt/pillar/git_pillar.py
- salt/utils/files.py
- salt/utils/process.py
- tests/unit/utils/test_which.py
2017-08-24 15:33:15 -04:00
garethgreenaway
a0bb654e46
Fixing lint issues
2017-08-24 12:09:29 -07:00
Gareth J. Greenaway
41790d4f28
Missing the test_add Beacon test.
2017-08-24 10:24:27 -07:00
Nicole Thomas
4d174746f9
Merge pull request #43049 from redmatter/add-docker-network-ipam-support
...
Add docker network ipam support
2017-08-24 12:19:16 -04:00
Nicole Thomas
5f0bdd620e
Merge branch 'develop' into exec-code-all-fix
2017-08-24 12:18:36 -04:00
Alessandro -oggei- Ogier
db94f3bb1c
better formatting
2017-08-24 15:07:08 +02:00
Alessandro -oggei- Ogier
e5cc667762
tests: fix a leftover and simplify some parts
2017-08-24 15:04:37 +02:00
Alessandro -oggei- Ogier
13e5997457
lint
2017-08-24 12:49:39 +02:00
Alessandro -oggei- Ogier
216ced69e5
allow comma-separated pkgs lists, quote args, test deb behaviour
2017-08-24 12:00:36 +02:00
Andy Bulford
89ac3f9092
Merge branch 'develop' into add-docker-network-ipam-support
2017-08-23 23:02:07 +01:00
rallytime
c48801095f
Remove tests for old git_pillar syntax.
...
These tests were testing things present in the legacy git pillar syntax
and are no longer needed. The new git pillar syntax has many more integration
tests to cover various cases.
2017-08-23 16:49:58 -04:00
rallytime
5901b10c14
Remove deprecated Legacy Git Pillar code
2017-08-23 16:49:58 -04:00
twangboy
2722e9521d
Use os.path.join to create paths
2017-08-23 14:43:44 -06:00
garethgreenaway
92bc4fa39b
Merge branch 'develop' into missing_minions_branch
2017-08-23 12:56:02 -07:00
Mike Place
0f4d1dd767
Merge pull request #41662 from lordcirth/nfs-exports
...
Expand module nfs3
2017-08-23 12:19:34 -06:00
Mike Place
970003731a
Merge pull request #42111 from bechtoldt/fix_ssh_auth_keys_newline
...
stripping whitespaces/newlines in authorized key file lines
2017-08-23 12:12:25 -06:00
Mike Place
ae5d3ffe99
Merge pull request #43013 from amendlik/kernelpkg-remove
...
Add kernelpkg functions to remove kernel packages
2017-08-23 11:47:58 -06:00
Erik Johnson
d5b2a0be68
Resolve image ID during container comparison
...
This fixes an issue where inspecting the container returns an image ID
instead of an image name, resulting in a spurious report of a changed
image. By resolving the image down to its ID for both the existing and
new containers, we ensure we're comparing ID to ID.
2017-08-23 12:23:33 -05:00
Mike Place
03f652159f
Merge pull request #43123 from twangboy/win_fix_test_which
...
Fix `unit.utils.test_which` for Windows
2017-08-23 10:01:38 -06:00
rallytime
0eafc59f33
Merge branch '2017.7' into 'develop'
...
Conflicts:
- salt/modules/win_groupadd.py
- salt/modules/yumpkg.py
- salt/state.py
- salt/utils/url.py
2017-08-23 10:07:01 -04:00
Nicole Thomas
0467a0e3bf
Merge pull request #43038 from twangboy/win_unit_utils_test_url
...
Fix `unit.utils.test_url` for Windows
2017-08-23 09:35:24 -04:00
twangboy
ed97cff5f6
Fix unit.utils.test_which
for Windows
...
This test wasn't really written with Windows in mind. Uses PATHEXT that
actually resembles a Windows environment. The test value has the correct
path seperator for Windows.
2017-08-22 16:59:22 -06:00
Mike Place
87c918583d
Merge branch 'develop' into nfs-exports
2017-08-22 15:09:49 -06:00
Mike Place
7c68c93e93
Merge pull request #42720 from kunal-bajpai/modularise-tokens
...
Modularise eauth token storage and authentication
2017-08-22 14:10:45 -06:00
Mike Place
874dd2245a
Merge pull request #41868 from yagnik/nacl_renderer
...
Add support for nacl renderer for encrypted data
2017-08-22 13:36:38 -06:00
Adam Mendlik
017eb849f1
Remove kernelpkg test assertions added in Python 3.6
2017-08-22 13:05:32 -06:00
Nicole Thomas
177a4c366a
Merge pull request #42729 from DSRCorporation/features/19732_extended_ext_auth
...
Allow `external_auth` limit funs/args for runner/wheel modules.
2017-08-22 14:19:06 -04:00
Mike Place
7d52bcee46
Merge pull request #42894 from gilbsgilbs/postgres-valid-until
...
Add support for PostgreSQL password expiration.
2017-08-22 12:14:53 -06:00
Mike Place
1e1a81036c
Merge pull request #42962 from twangboy/win_unit_test_doc
...
Fix `unit.test_doc test` for Windows
2017-08-22 12:06:22 -06:00
Daniel Wallace
ea9e6dfd73
Merge branch 'develop' into modularise-tokens
2017-08-22 08:49:55 -06:00
Alessandro -oggei- Ogier
42a118ff56
fixed cmd composition and unified his making across module
2017-08-22 16:25:54 +02:00
Tarjei Husøy
1a987cb948
Fix broken negation in iptables
...
Introduced in 7c6ff77c
and released with 2017.7.
2017-08-22 09:43:20 -04:00
rallytime
67cdfd28ad
Merge branch '2017.7' into 'develop'
...
Conflicts:
- salt/cli/cp.py
- salt/modules/testinframod.py
- salt/states/jenkins.py
- tests/unit/utils/test_find.py
2017-08-22 09:07:26 -04:00
Dmitry Kuzmenko
7ec398eb72
Allow external_auth
limit funs/args for runner/wheel modules.
...
Example:
external_auth:
pam:
thatch:
- '@runner':
- 'mod.fun':
args: ['a', 'b']
kwargs:
aa: bb
2017-08-22 12:17:09 +03:00
Andy Bulford
49f4f990c3
Merge branch 'develop' into add-docker-network-ipam-support
2017-08-22 09:44:21 +01:00
Mike Place
f9b4976c02
Merge pull request #42996 from twangboy/win_fix_test_stateconf
...
Fix `unit.test_stateconf` for Windows
2017-08-21 16:43:58 -06:00
Mike Place
19fc644c9b
Merge pull request #43024 from twangboy/win_unit_utils_test_find
...
Fix `unit.utils.test_find` for Windows
2017-08-21 16:38:09 -06:00
Mike Place
3940084df9
Merge branch 'develop' into postgres-valid-until
2017-08-21 16:16:18 -06:00
Mike Place
1a531169fc
Merge pull request #43088 from gtmanfred/2017.7
...
allow docker util to be reloaded with reload_modules
2017-08-21 16:14:36 -06:00
Mike Place
b071384611
Merge pull request #42977 from redmatter/fix-broken-docker-network-create
...
Remove check_duplicates from create_network call
2017-08-21 15:59:50 -06:00
Mike Place
5482524270
Merge pull request #41994 from twangboy/win_unit_test_cmdmod
...
Fix `unit.modules.test_cmdmod` on Windows
2017-08-21 15:53:01 -06:00
Mike Place
a063ddbaad
Merge branch 'develop' into kernelpkg-remove
2017-08-21 14:18:22 -06:00
Daniel Wallace
373a9a0be4
allow docker util to be reloaded with reload_modules
...
If we reference the actual import, the utils module won't be reloaded, but if
we use `__utils__` it can be reloaded on a pip install
2017-08-21 13:18:08 -06:00
garethgreenaway
882fcd846f
Merge pull request #43029 from terminalmage/fix-func-alias
...
Normalize the salt caching API
2017-08-21 09:54:58 -07:00
William Cannon
e9cdbe7266
fixing pylint issues
2017-08-18 19:45:17 -05:00
William Cannon
3f490f63f5
fixes for pylint
2017-08-18 19:24:30 -05:00
William Cannon
1499314595
Merge branch 'develop' of https://github.com/saltstack/salt into salt-check-feature
2017-08-18 16:37:40 -05:00
Nicole Thomas
9ac043d997
Merge branch 'develop' into fix-iptables-negation
2017-08-18 16:52:29 -04:00
rallytime
6ca3607770
Merge branch '2017.7' into 'develop'
...
Conflicts:
- salt/engines/slack.py
- salt/modules/win_pkg.py
- salt/utils/versions.py
2017-08-18 09:28:26 -04:00
Jochen Breuer
3c99e61637
Renamed test to match new convention
2017-08-18 15:19:34 +02:00
Jochen Breuer
caf78d206d
Fixed imports for pytest
...
Imports now match the new test-suite introduced in 2017.7.
2017-08-18 15:15:20 +02:00
rallytime
84829a6f8c
Merge branch '2016.11' into '2017.7'
...
Conflicts:
- salt/modules/jenkins.py
- salt/states/jenkins.py
2017-08-18 09:13:54 -04:00
Daniel Wallace
35e45049e2
use a ruby gem that doesn't have dependencies
2017-08-18 08:55:02 -04:00
Andrew Bulford
d4507f1a08
Re-use container connection logic on net creation
...
Re-factoring a little following the previous commit, so that the same
container connection logic can be used in both places, rather than it
being repeated.
2017-08-18 13:36:46 +01:00
Andrew Bulford
d59d0adfeb
Add ability to re-configure docker networks
...
Previously any changes to network states wouldn't result in any change
to the network when the state was applied. This was less of an issue
the only attributes you could set for a network were its name and
driver, but with the recent support for driver options and now IPAM
config being added, it's useful for the state to be able to modify the
network if it needs to.
The Docker API doesn't provide any facility to modify an existing
network, so the only option is to recreate it with the new options,
which means disconnecting and reconnecting all containers.
Fixes #43047
2017-08-18 13:36:14 +01:00
Andrew Bulford
ec2a8a82c8
Add support for IPAM config in Docker networks
...
Fixes #43047
2017-08-18 13:35:48 +01:00
Andrew Bulford
8048fbcfa7
Remove check_duplicates from create_network call
...
The create_network function in dockermod.py doesn't take a
check_duplicates argument so passing it here causes a failure.
Fixes #42976
2017-08-18 13:26:33 +01:00
garethgreenaway
2957467ed7
Merge pull request #43026 from rallytime/bp-43020
...
Back-port #43020 to 2016.11
2017-08-17 16:19:46 -07:00
Erik Johnson
f8f74a310c
Update localfs cache tests to reflect changes to func naming
2017-08-17 17:19:34 -05:00
twangboy
fbe54c9a33
Remove unused import six (lint)
2017-08-17 15:54:38 -06:00
twangboy
7f5ee55f57
Fix unit.utils.test_url
for Windows
...
Detect escaped urls in Windows
Unescape urls in Windows
Fix tests to deal with sanitized Windows paths
2017-08-17 14:20:25 -06:00
Nicole Thomas
c35706fa3f
Merge pull request #43011 from rallytime/merge-develop
...
[develop] Merge forward from 2017.7 to develop
2017-08-17 16:19:33 -04:00
Daniel Wallace
ba80a7d4b5
use a ruby gem that doesn't have dependencies
2017-08-17 13:45:10 -06:00
garethgreenaway
51d16840bb
Merge pull request #42890 from DSRCorporation/bugs/42627_salt-cp
...
Make chunked mode in salt-cp optional
2017-08-17 11:37:43 -07:00
Daniel Wallace
0eb15a1f67
test with gem that appears to be abandoned
2017-08-17 14:28:39 -04:00
twangboy
b04d1a2f18
Fix unit.utils.test_find
for Windows
...
Fix skipIf statements
Use sys.maxsize instead of sys.maxint
2017-08-17 11:55:00 -06:00
Adam Mendlik
f87fe54b7b
Fix linter errors for kernelpkg modules and states
2017-08-17 11:27:57 -06:00
Adam Mendlik
8f575ade60
Add kernelpkg.remove function for APT-based systems
2017-08-17 11:27:57 -06:00
Adam Mendlik
5c4a5ca59a
Add kernelpkg.remove function for YUM-based systems
2017-08-17 11:27:57 -06:00
Erik Johnson
4089b7b1bc
Use socket.AF_INET6 to get the correct value instead of doing an OS check
...
This builds on #43014 with a more future-proof solution.
2017-08-17 12:12:27 -05:00
garethgreenaway
973d288eca
Merge pull request #43020 from gtmanfred/test_gem
...
test with gem that appears to be abandoned
2017-08-17 09:40:40 -07:00
Daniel Wallace
0a1f40a664
test with gem that appears to be abandoned
2017-08-17 10:38:32 -06:00
garethgreenaway
daa2537c75
Merge branch 'develop' into missing_minions_branch
2017-08-17 08:27:58 -07:00
Ch3LL
b8eee4401e
Change AF_INET6 family for mac in test_host_to_ips
2017-08-17 10:55:53 -04:00
rallytime
93c11d827a
Merge branch '2017.7' into 'develop'
...
Conflicts:
- salt/engines/slack.py
- salt/minion.py
2017-08-17 09:30:50 -04:00
rallytime
8a0f948e4a
Merge branch '2016.11' into '2017.7'
...
Conflicts:
- salt/utils/versions.py
- tests/unit/modules/test_boto_elb.py
- tests/unit/modules/test_boto_secgroup.py
- tests/unit/states/test_boto_vpc.py
2017-08-17 09:10:31 -04:00
aajdinov
d365888489
Initial commit of oneandone salt cloud driver.
2017-08-17 08:03:01 +00:00
twangboy
92dc3c0ece
Use os.sep for path
2017-08-16 15:59:10 -06:00
Lukas Raska
90c46ddefb
Allow cmdmod.exec_code_all to utilize cmdmod.run_all parameters
2017-08-16 21:40:33 +02:00
Gareth J. Greenaway
eec0646c79
Fixing lint error in test_auth.py
2017-08-16 11:22:16 -07:00
Tarjei Husøy
6f19fc023c
Fix broken negation in iptables
...
Introduced in 7c6ff77c
and released with 2017.7.
2017-08-16 10:30:55 -07:00
twangboy
201ceae4c4
Fix lint, remove debug statement
2017-08-16 10:29:26 -06:00
Andrew Bulford
d3f792d47d
Remove check_duplicates from create_network call
...
The create_network function in dockermod.py doesn't take a
check_duplicates argument so passing it here causes a failure.
Fixes #42976
2017-08-16 14:05:31 +01:00
Jochen Breuer
c8e98c8d8a
Added unit tests for Kubernetes module
...
Added unit tests for:
* Node listing,
* deployment listing,
* service listing,
* pod listing,
* deployment deletion and
* deployment creation.
2017-08-16 14:51:16 +02:00
Gilbert Gilb's
08d453eb37
Fix unit tests.
2017-08-16 09:00:26 +02:00
Gareth J. Greenaway
869599cb42
Updating another test for nodegroups in pillar.
2017-08-15 20:24:40 -07:00
Gareth J. Greenaway
0c0cdd8aa1
Updating the test_auth tests.
2017-08-15 20:24:40 -07:00
Gareth J. Greenaway
e6b750d6a1
Adding some integration tests.
2017-08-15 20:24:40 -07:00
twangboy
e9febe4893
Fix unit.test_fileclient
...
Use os.sep instead of hard-coded, unix-style paths
2017-08-15 16:34:03 -06:00
Mike Place
40c4323593
Merge branch 'develop' into modularise-tokens
2017-08-15 15:48:25 -06:00
Nicole Thomas
abac36d907
Merge pull request #42450 from pwdng/ldap_fix
...
Use OrderedSet instead of set to allow handling of OpenLDAP X-ORDERED…
2017-08-15 17:30:35 -04:00
twangboy
37029c1a16
Fix unit.test_doc test
...
Use findstr instead of grep on Windows
Use os.linesep for file paths
2017-08-15 15:30:13 -06:00
Nicole Thomas
275122d04e
Merge pull request #42834 from terminalmage/salt.utils.versions
...
Move 4 functions from salt.utils to salt.utils.versions
2017-08-15 17:28:24 -04:00
Mike Place
f881aa5117
Merge branch 'develop' into nfs-exports
2017-08-15 13:28:12 -06:00
Mike Place
4f406602cf
Merge branch 'develop' into ldap_fix
2017-08-15 12:36:47 -06:00
rallytime
c6b9ca4b9e
Lint fix: add missing space
2017-08-15 14:26:44 -04:00
rallytime
5597b1a30e
Skip 2 failing tests in Python 3 due to upstream bugs
2017-08-15 14:26:44 -04:00
rallytime
a0b19bdc27
Update account id value in boto_secgroup module unit test
...
This value was updated in moto 1.0.0 with the following commit:
5f3fbff627
2017-08-15 14:23:00 -04:00
rallytime
60b406e088
@mock_elb needs to be changed to @mock_elb_deprecated as well
2017-08-15 14:23:00 -04:00
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
Erik Johnson
2b76029ded
Move 4 functions from salt.utils to salt.utils.versions
...
This moves the following functions from salt.utils to salt.utils.versions:
- warn_until
- kwargs_warn_until
- compare_versions (as salt.utils.versions.compare)
- version_cmp
2017-08-15 12:53:57 -05:00
Nicole Thomas
47ff9d5627
Merge pull request #42812 from terminalmage/yaml-loader-tests
...
Update custom YAML loader tests to properly test unicode literals
2017-08-15 13:50:22 -04:00
Erik Johnson
9d8486a894
Add test for custom YAML loader with unicode literal strings
2017-08-15 11:06:20 -05:00
Erik Johnson
a0118bcece
Remove bytestrings and use textwrap.dedent for readability
...
PyYAML works with and without bytestrings on PY3, and Python 3 can read
all of the test data as regular strings, so bytestrings are unnecessary
here.
This also adds use of textwrap.dedent to make the YAML easier to read,
so it can be indented away from the far left side of the line.
2017-08-15 11:05:48 -05:00
garethgreenaway
8b48341a36
Merge branch 'develop' into fixing_beacons
2017-08-15 09:00:09 -07:00
Mike Place
db32d81d8a
Merge pull request #42917 from rallytime/merge-develop
...
[develop] Merge forward from 2017.7 to develop
2017-08-14 21:53:18 -06:00
Mike Place
11a33fe692
Merge pull request #42925 from terminalmage/f26-debug-logging
...
Add debug logging to troubleshoot test failures
2017-08-14 21:47:50 -06:00
Erik Johnson
8165f46165
Add debug logging to troubleshoot test failures
...
This adds logging to troubleshoot https://github.com/saltstack/salt-jenkins/issues/477
2017-08-14 16:28:09 -05:00
Nicole Thomas
4fcdab3ae9
Merge pull request #42657 from nhavens/2017.7
...
back-port #42612 to 2017.7
2017-08-14 15:42:25 -04:00
garethgreenaway
bbaae409b5
Merge branch 'develop' into postgres-valid-until
2017-08-14 12:09:43 -07:00
Gareth J. Greenaway
ed742bb506
Updating mock from salt.utils to salt.utils.files for fopen.
2017-08-14 12:04:38 -07:00
Gareth J. Greenaway
bf1aefa47b
Updating memusage, ps and diskusage beacons for python3 related failures. Updating respective tests as well.
2017-08-14 12:04:38 -07:00
Gareth J. Greenaway
fe5dd1e7b9
Removing unused import from ps beacon. Fixing mock for sensehat test.
2017-08-14 12:04:38 -07:00
Gareth J. Greenaway
9072edd8a1
Fixing mocking for ps beacon. Types for sensehat beacon.
2017-08-14 12:04:38 -07:00
Gareth J. Greenaway
d8ac1f8cfb
Updating unit and integration tests for beacons to reflect changes.
2017-08-14 12:04:38 -07:00
Gareth J. Greenaway
ff6f42405f
Fixing typo in service beacon. Removing unused import.
2017-08-14 12:04:38 -07:00
Gareth J. Greenaway
4e1fea1433
Updating logging, shuffling some imports of salt.ext.six.moves around to fix linting. better way to determine the twilio library version.
2017-08-14 12:04:38 -07:00
Gareth J. Greenaway
813445d1ed
Updating with various requested changes
2017-08-14 12:04:38 -07:00
Gareth J. Greenaway
cca7c0d091
Removing the wrong import, re-adding Mock and removing the ones that are not used.
2017-08-14 12:04:38 -07:00
Gareth J. Greenaway
71963cccce
fixing more lint issues
2017-08-14 12:04:38 -07:00
Gareth J. Greenaway
1ec4ccba85
Renaming all tests to be consistent with naming.
2017-08-14 12:04:38 -07:00
Gareth J. Greenaway
23d572199a
Adding test_beacon for the beacon state module. Updating beacon state module documentation. Removing over aggressive code in the validate function for service beacon.
2017-08-14 12:04:38 -07:00
Gareth J. Greenaway
474b6dbdf8
Updating various documentation and beacons. Adding unit tests for the beacon module.
2017-08-14 12:04:38 -07:00
Gareth J. Greenaway
7f89fa4886
Removing test_network_settings_match from tests.
2017-08-14 12:04:37 -07:00
Gareth J. Greenaway
ee3befbed8
Updating documentation for wtmp, btmp, fixing service tests and updating various bits in the service beacon.
2017-08-14 12:04:37 -07:00
Gareth J. Greenaway
6f9412b41c
adding network_info, network_settings, and service tests.
2017-08-14 12:04:37 -07:00
Gareth J. Greenaway
4f6c04cbbf
Adding the tests
2017-08-14 12:04:37 -07:00
Gareth J. Greenaway
507071e9e6
Updating the salt_proxy beacon to use list based configuration and adding unit tests.
2017-08-14 12:04:37 -07:00
Gareth J. Greenaway
a04b0fe3ee
Updating network_info beacon for list based configuration. Adding unit tests for network_info beacon
2017-08-14 12:04:37 -07:00
Gareth J. Greenaway
8b507b1635
Updating twilio_txt_msg & memusage beacons to ensure list based configuration. Adding/Updating unit tests for both. Updating twilio related things to support newer version of twilio python library.
2017-08-14 12:04:37 -07:00
Gareth J. Greenaway
366bed8998
Updating twilio_txt_msg beacon for list based configuration.
2017-08-14 12:04:37 -07:00
Gareth J. Greenaway
7361672339
Updating the telegram_bot_msg beacon to use list based configuration rather that dictionary based configuration.
2017-08-14 12:04:37 -07:00
Gareth J. Greenaway
dfc27c63fd
Updating beacon.log to use list based configuration rather than dictionary. Adding the unit test for beacon.log.
2017-08-14 12:04:37 -07:00
Gareth J. Greenaway
b03f840aed
Simplying the validate functions by converting from list to dict when looking for various items to be present.
2017-08-14 12:04:36 -07:00
Gareth J. Greenaway
2a02d1c324
Updating inotify beacon & inotify beacon test to use list based configuration rather than dictionary based configuration
2017-08-14 12:04:36 -07:00
Gareth J. Greenaway
8f0a34e035
Adding unit test for haproxy beacon. Updating haproxy beacon to use list based configuration instead of dictionary based configurations
2017-08-14 12:04:36 -07:00
Gareth J. Greenaway
ebcdbfeb52
Shuffling things around in the haproxy module. Initially adding the unit test.
2017-08-14 12:04:36 -07:00
Gareth J. Greenaway
f3843ac789
Fixing validate in adb to check that the states parameter is an array/list. Updating glxinfo and glxinfo beacon tests to use configuration based on a list rather than a dictionary.
2017-08-14 12:04:36 -07:00
Gareth J. Greenaway
0b0ada65e3
Couple typos in the avahi and bonnjour beacons. Reworked the diskusage beacon to handle regex properly. Adding unit test for diskusage beacon.
2017-08-14 12:04:36 -07:00
Gareth J. Greenaway
cf1a4ff2d6
Fixing some typos in adb beacon, updating unit tests to reflect changes
2017-08-14 12:04:36 -07:00
rallytime
78e744bda4
Merge branch '2017.7' into 'develop'
...
Conflicts:
- salt/client/mixins.py
- salt/fileclient.py
- salt/modules/status.py
- tests/integration/states/test_npm.py
2017-08-14 14:21:17 -04:00
Nicole Thomas
c6ca7d639f
Merge pull request #42889 from rallytime/merge-2017.7
...
[2017.7] Merge forward from 2016.11 to 2017.7
2017-08-14 10:16:19 -04:00
Adam Bolte
7848189ad4
Implement rbenv state module test mode checks
...
Fixes #42815 and updates unit tests.
2017-08-14 19:13:42 +10:00
Dmitry Kuzmenko
9fedf6012e
Fixed 'test_valid_docs' test.
2017-08-14 10:54:16 +03:00
davidjoliver86
dd58225a20
ssh config roster for salt-ssh
...
addresses #35727
2017-08-12 14:39:33 -07:00
Gilbert Gilb's
3c136e3138
Add support for PostgreSQL password expiration.
2017-08-12 13:48:12 +02:00
rallytime
fb7117f2ac
Use salt.utils.versions.LooseVersion instead of distutils
2017-08-11 16:31:24 -04:00
Erik Johnson
1764878754
Merge pull request #42883 from rallytime/fix-boto-tests
...
Fix failing boto tests
2017-08-11 15:29:11 -05:00
rallytime
29ff19c587
Merge branch '2016.11' into '2017.7'
...
Conflicts:
- salt/config/__init__.py
- salt/states/dockerng.py
- salt/utils/cloud.py
2017-08-11 15:17:19 -04:00
Nicole Thomas
b21778efac
Merge pull request #42885 from terminalmage/fix-f26-tests
...
Move weird tearDown test to an actual tearDown
2017-08-11 15:14:41 -04:00
rallytime
6a7bf99848
Lint fix: add missing space
2017-08-11 14:19:15 -04:00
Erik Johnson
462d653082
Move weird tearDown test to an actual tearDown
...
Also catch KeyError when user doesn't exist
2017-08-11 12:20:50 -05:00
Daniel Wallace
da3402a53d
make sure cmd is not run when npm isn't installed
...
apparently the skipIf on the functions still get run, even if the function is
going to be skipped based on a skipIf on the class.
2017-08-11 10:58:00 -06:00
rallytime
43643227c6
Skip 2 failing tests in Python 3 due to upstream bugs
2017-08-11 12:57:39 -04:00
rallytime
7f46603e9c
Update account id value in boto_secgroup module unit test
...
This value was updated in moto 1.0.0 with the following commit:
5f3fbff627
2017-08-10 17:31:14 -04:00
rallytime
7c1d493fdd
@mock_elb needs to be changed to @mock_elb_deprecated as well
2017-08-10 17:15:45 -04:00
Daniel Wallace
c1f673eca4
use older name if _create_unverified_context is unvailable
2017-08-10 14:43:33 -06:00
rallytime
3055e17ed5
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-10 16:40:11 -04:00
Daniel Wallace
b458b89fb8
skip cache_clean test if npm version is >= 5.0.0
2017-08-10 14:17:47 -06:00
rallytime
5d8d6225b5
Merge branch '2017.7' into 'develop'
...
Conflicts:
- salt/modules/augeas_cfg.py
- salt/netapi/rest_cherrypy/app.py
- salt/runners/manage.py
- salt/states/boto_cfn.py
- salt/utils/cloud.py
- tests/integration/states/test_pkg.py
2017-08-10 14:47:14 -04:00
Nicole Thomas
e6357abdda
Merge pull request #42718 from moio/yumpkg-list_pkg-attr-parameter
...
yumpkg.list_pkgs: add parameter for returned attribute selection
2017-08-09 16:58:02 -04:00
Silvio Moioli
5a15e53886
yumpkg.list_pkg: add/adapt tests
...
This includes changes to the zypper tests because of the refactoring that
affected both modules.
2017-08-09 11:43:56 +02:00
Erik Johnson
c69f17dd18
Add integration test for #42774
2017-08-08 14:20:42 -05:00
Erik Johnson
3184168365
Use explicit unicode strings + break up salt.utils
...
This PR is part of what will be an ongoing effort to use explicit
unicode strings in Salt. Because Python 3 does not suport Python 2's raw
unicode string syntax (i.e. `ur'\d+'`), we must use
`salt.utils.locales.sdecode()` to ensure that the raw string is unicode.
However, because of how `salt/utils/__init__.py` has evolved into the
hulking monstrosity it is today, this means importing a large module in
places where it is not needed, which could negatively impact
performance. For this reason, this PR also breaks out some of the
functions from `salt/utils/__init__.py` into new/existing modules under
`salt/utils/`. The long term goal will be that the modules within this
directory do not depend on importing `salt.utils`.
A summary of the changes in this PR is as follows:
* Moves the following functions from `salt.utils` to new locations
(including a deprecation warning if invoked from `salt.utils`):
`to_bytes`, `to_str`, `to_unicode`, `str_to_num`, `is_quoted`,
`dequote`, `is_hex`, `is_bin_str`, `rand_string`,
`contains_whitespace`, `clean_kwargs`, `invalid_kwargs`, `which`,
`which_bin`, `path_join`, `shlex_split`, `rand_str`, `is_windows`,
`is_proxy`, `is_linux`, `is_darwin`, `is_sunos`, `is_smartos`,
`is_smartos_globalzone`, `is_smartos_zone`, `is_freebsd`, `is_netbsd`,
`is_openbsd`, `is_aix`
* Moves the functions already deprecated by @rallytime to the bottom of
`salt/utils/__init__.py` for better organization, so we can keep the
deprecated ones separate from the ones yet to be deprecated as we
continue to break up `salt.utils`
* Updates `salt/*.py` and all files under `salt/client/` to use explicit
unicode string literals.
* Gets rid of implicit imports of `salt.utils` (e.g. `from salt.utils
import foo` becomes `import salt.utils.foo as foo`).
* Renames the `test.rand_str` function to `test.random_hash` to more
accurately reflect what it does
* Modifies `salt.utils.stringutils.random()` (née `salt.utils.rand_string()`)
such that it returns a string matching the passed size. Previously
this function would get `size` bytes from `os.urandom()`,
base64-encode it, and return the result, which would in most cases not
be equal to the passed size.
2017-08-08 13:33:43 -05:00
Nicole Thomas
ddb671b8fe
Merge pull request #42783 from rallytime/fix-flaky-py3-test
...
Sort lists before comparing them in python 3 unit test
2017-08-08 09:25:14 -04:00
kunal-bajpai
9ce6e0f3b1
Merge branch 'develop' into modularise-tokens
2017-08-08 16:20:56 +05:30
Kunal Ajay Bajpai
0d7658c870
Fixed lint failure
2017-08-08 14:21:02 +05:30
Kunal Ajay Bajpai
200f414969
Fixed failing LoadAuth unit test
2017-08-08 13:35:05 +05:30
rallytime
998834fbac
Sort lists before compairing them in python 3 unit test
2017-08-07 16:09:43 -04:00
rallytime
f49da018e4
Sort lists before compairing them in python 3 unit test
2017-08-07 14:38:10 -04:00
Erik Johnson
665de2d1f9
Fix domainname parameter input translation
...
Resolves #42538
2017-08-07 09:51:14 -05:00
rallytime
f20f3742cb
Merge branch '2017.7' into 'develop'
...
Conflicts:
- tests/unit/test_crypt.py
2017-08-07 10:43:06 -04:00
Mike Place
547ada9418
Merge pull request #42612 from nhavens/develop
...
fix for issue #42611
2017-08-03 17:37:05 -05:00
Mike Place
b8acf9f6ec
Merge pull request #42624 from lyft/modernize-boto-sqs-modules
...
Modernize boto_sqs execution and state modules
2017-08-03 17:34:18 -05:00
Mike Place
834d6c605e
Set fact gathering style to 'old' for test_junos
...
Without this, we stacktrace because it does not appear that setting
'gather_facts' to False prevents the library from assuming the presence
of facts. I believe this to be an upstream bug with jnpr.
Because they have listed this as being a deprecated option in the future
this may re-break in the future.
2017-08-02 23:11:52 -06:00
Mike Place
4c1d931654
Merge pull request #42481 from twangboy/win_unit_test_crypt
...
Fix `unit.test_crypt` for Windows
2017-08-01 13:10:49 -05:00
Neile Havens
d73c4b55b7
back-port #42612 to 2017.7
2017-07-31 17:10:06 -05:00
Neile Havens
afce919746
Merge branch 'develop' into develop
2017-07-31 15:51:10 -05:00
Mike Place
968a9dba46
Merge pull request #42354 from alexbleotu/vmware_logs_and_no_permission_exc-gh
...
VMware utils functions: additional logs & raise NoPermission exceptions
2017-07-31 15:03:45 -05:00
Mike Place
5baf2650fc
Merge pull request #42453 from gtmanfred/makedirs
...
don't pass user to makedirs on windows
2017-07-31 14:57:57 -05:00
Mike Place
a09091a696
Merge pull request #42517 from alexbleotu/linux_acl_fixes-gh
...
Fixes to linux_acl.present state & cmd.run function
2017-07-31 14:44:57 -05:00
garethgreenaway
25094ad9b1
Merge pull request #42602 from garethgreenaway/42514_2017_7_superseded_deprecated_from_pillar
...
Use superseded and deprecated configuration from pillar
2017-07-31 11:53:06 -07:00
Aneesh Agrawal
c4f5888c85
Modernize boto_sqs execution and state modules
...
Headline changes:
- Move to boto3
- Use result-style error handling
- Optimize number of API calls:
- Set attributes at creation time
- Set all attributes in one API call
- Show diff when attribute changes detected
2017-07-31 18:08:29 +00:00
Philippe Wooding
78f5da36f4
Update LDAP unit test
2017-07-31 14:28:27 +02:00
Anil Kabra
a8f263d1cb
Merge branch 'develop' into v2016.11.5_protect_master_key
2017-07-28 14:03:26 -05:00
Anil Kabra
b77b2e2a05
Fix unit test signing with passphrase
2017-07-28 14:02:31 -05:00
garethgreenaway
7e58b5160d
Merge branch 'develop' into develop
2017-07-28 11:28:46 -07:00
Nicole Thomas
7d385f8bdc
Merge pull request #42006 from redmatter/fix-dockerng-network-matching-2017.7
...
Fix dockerng.network_* name matching
2017-07-28 09:52:51 -06:00
Nicole Thomas
f83960c02a
Lint: Remove extra line at end of file.
2017-07-28 09:13:59 -06:00
Anil Kabra
2f3c50206b
Fix calls to files utility module method from open from fopen
2017-07-28 09:40:57 -05:00
Neile Havens
8eee58af97
fix test_selinux for issue #42611
...
- expect change from selinux.boolean state if it makes changes
- result = False if there's an error making changes
2017-07-28 09:39:38 -05:00
Anil Kabra
f474016037
Merge branch 'v2016.11.5_protect_master_key' of https://github.com/Mastercard/salt into v2016.11.5_protect_master_key
2017-07-28 07:46:08 -05:00
Anil Kabra
7875ee9d34
Fixed error due to new files module in utils
2017-07-28 07:44:50 -05:00
Andrew Bulford
c7d364ec56
Add regression tests for #41982
...
These test the scenarios where another network with a similar name
already exists, verifying that absent doesn't attempt to remove a
network which isn't specified, and present still attempts to create the
specified network despite a similarly named network already being present.
2017-07-28 10:41:44 +01:00
Andrew Bulford
d31f2913bd
Fix broken unit test test_network_absent
...
This started failing following commit 515c612
, which relied on the
'Name' key being present in the return value of docker.networks -
as the mock didn't have this set the test started failing.
2017-07-28 09:57:45 +01:00
garethgreenaway
bab7503f68
Merge branch 'develop' into linux_acl_fixes-gh
2017-07-27 16:59:36 -07:00
William Cannon
e4f7603723
removed comments, updated docstrings - mostly cosmetic
2017-07-27 15:43:12 -07:00
Nicole Thomas
22eea389fa
Merge pull request #42290 from isbm/isbm-module_run_parambug_42270_217
...
Backport of #42270
2017-07-27 16:30:05 -06:00
Anil Kabra
3a9746f67e
Merge branch 'develop' into v2016.11.5_protect_master_key
2017-07-27 17:04:51 -05:00
William Cannon
e7785bf758
changed output of tests from True/False to Pass/Fail, updated unit tests
2017-07-27 14:33:16 -07:00
Nicole Thomas
6b45debf28
Merge pull request #41988 from redmatter/fix-dockerng-network-matching
...
Fix dockerng.network_* name matching
2017-07-27 15:25:06 -06:00
Gareth J. Greenaway
74bae13939
Small update to something I missed in the first commit. Updating tests to also test for pillar values.
2017-07-27 13:19:48 -07:00
rallytime
9b66464fcc
Merge branch '2017.7' into 'develop'
...
No conflicts.
2017-07-27 13:52:52 -06:00
Mike Place
2985e4c0e6
Merge pull request #42255 from twangboy/win_unit_test_win_system
...
Fix `unit.modules.test_win_system` for Windows
2017-07-27 14:12:41 -05:00
Mike Place
66a2a8edc0
Merge pull request #42398 from garethgreenaway/42189_show_docs_then_error
...
Show documentation when no function is included
2017-07-27 13:49:35 -05:00
Mike Place
71b4c86a40
Merge pull request #42430 from alexbleotu/esxdatacenter_proxy-gh
...
Esxdatacenter proxy + related updates
2017-07-27 13:47:10 -05:00
Anil Kabra
acfc5fb710
Resolved merge conflict
2017-07-27 13:28:41 -05:00
Sigmon, Jeffrey
bb29afd022
Passphrase protect master private key
2017-07-27 13:17:26 -05:00
Daniel Wallace
559d432930
fix tests
2017-07-27 12:00:38 -06:00
rallytime
1f0b90aa57
Merge branch '2017.7' into 'develop'
...
Conflicts:
- salt/cloud/clouds/joyent.py
- salt/engines/slack.py
2017-07-26 17:51:36 -06:00
William Cannon
493d065e21
added auto check of minion config option
2017-07-26 15:00:56 -07:00
William Cannon
1088e5eddc
major updates - refactored to make __salt__ work in module with unit tests, squashed deep nesting bug too
2017-07-26 15:00:56 -07:00
William Cannon
5d088a6359
added lots of unit tests
2017-07-26 15:00:56 -07:00
William Cannon
4b502b3c3b
pylint fixes, initial unit test
2017-07-26 15:00:56 -07:00
Gareth J. Greenaway
016e2e7a34
Updating tests to reflect changes. Updating to include passed function name in returned docs with message that it is not available.
2017-07-26 09:04:22 -07:00
Alexandru Bleotu
2218905cb7
Merge branch 'develop' into vmware_logs_and_no_permission_exc-gh
2017-07-25 23:38:01 +01:00
Alexandru Bleotu
4715c8eca3
Merge branch 'develop' into linux_acl_fixes-gh
2017-07-25 23:36:52 +01:00
Alexandru Bleotu
c565ed94dd
Merge branch 'develop' into esxdatacenter_proxy-gh
2017-07-25 23:36:25 +01:00
Mike Place
fa519b76d0
Merge pull request #42310 from moio/zypper-list_pkg-attr-parameter
...
zypper.list_pkgs: add parameter for returned attribute selection
2017-07-25 16:07:45 -05:00
Mike Place
62abac6fbc
Merge pull request #42396 from rallytime/parse_docstring_util
...
Move parse_docstring from salt.utils to salt.utils.doc.py
2017-07-25 16:04:00 -05:00
Alexandru Bleotu
89cebfd96b
Merge branch 'develop' into linux_acl_fixes-gh
2017-07-25 21:54:46 +01:00
Mike Place
07c2793e86
Merge pull request #42266 from twangboy/win_unit_states_test_file
...
Fix `unit.states.test_file` for Windows
2017-07-25 15:26:32 -05:00
Mike Place
641a9d7efd
Merge pull request #41968 from root360-AndreasUlm/fix-rabbitmqctl-output-handler
...
Fix rabbitmqctl output sanitizer for version 3.6.10
2017-07-25 14:12:36 -05:00
Alexandru Bleotu
b2a2791534
Merge branch 'develop' into vmware_logs_and_no_permission_exc-gh
2017-07-24 20:30:58 +01:00
Alexandru Bleotu
0f3d784c0f
Updated all tests for modules.mod_acl and added one when the error is raised
2017-07-24 19:35:06 +01:00
Alexandru Bleotu
8e415c8ef7
Updated and added linux_acl_test.present tests
2017-07-24 19:35:06 +01:00
Nicole Thomas
c793d83d26
Merge pull request #42180 from twangboy/win_unit_test_timezone
...
Fix `unit.modules.test_timezone` for Windows
2017-07-24 08:46:16 -06:00
Nicole Thomas
083ff00410
Merge pull request #42474 from whiteinge/cmd-arg-kwarg-parsing-test
...
Cmd arg kwarg parsing test
2017-07-24 08:13:29 -06:00
twangboy
102509029e
Remove chown mock, fix path seps
2017-07-21 16:36:07 -06:00
Seth House
0cc0c0967a
Lint fixes
2017-07-21 16:14:32 -06:00
garethgreenaway
580c6989b3
Merge branch 'develop' into esxdatacenter_proxy-gh
2017-07-21 10:45:53 -07:00
Alexandru Bleotu
500899bc12
Fix tests #2
2017-07-21 08:18:57 +01:00
Alexandru Bleotu
0ba680f68e
Merge branch 'develop' into datacenter_vsphere_func-gh
2017-07-21 07:58:56 +01:00
Silvio Moioli
5e23f5d678
zypper.list_pkgs: add install_time_date_t as a supported attribute
2017-07-21 08:15:50 +02:00
Silvio Moioli
db22777a09
zypper_test: add test for list_pkgs and attr
2017-07-21 08:14:37 +02:00
Silvio Moioli
bb049cb70f
zypper_test: adapt existing unit tests to new code
2017-07-21 08:14:37 +02:00
Silvio Moioli
a32ee4af05
zypper_test: correct mock behavior
...
Previously incorrect, although the test passed
2017-07-21 08:14:37 +02:00
Alexandru Bleotu
7f52358eac
Fixed test
2017-07-21 00:07:42 +01:00
Alexandru Bleotu
632cbf69b4
Fixed pylint
2017-07-20 22:22:24 +01:00
Seth House
622ff5be40
Add LocalClient.cmd test for arg/kwarg parsing
2017-07-20 14:28:24 -06:00
Alexandru Bleotu
d5b6c6be25
Fixed pylint
2017-07-20 21:06:35 +01:00
rallytime
c673b64583
Merge branch '2016.11' into '2017.7'
...
Conflicts:
- doc/conf.py
- doc/ref/configuration/master.rst
- doc/ref/configuration/minion.rst
- salt/engines/hipchat.py
- salt/engines/slack.py
- salt/grains/core.py
- salt/version.py
- tests/integration/states/test_renderers.py
2017-07-20 09:54:08 -06:00
Alexandru Bleotu
5a63ed7449
Added tests for datacenter_configured state
2017-07-20 16:43:44 +01:00
Erik Johnson
2fb986f5ca
Merge pull request #42367 from rallytime/files-util
...
Move file-related utilities out of init file and into salt.utils.files.py
2017-07-19 16:55:52 -05:00
rallytime
60d80fc06c
Move parse_docstring from salt.utils to salt.utils.doc.py
...
- Moves function to new location in salt.utils.doc.py
- Adds deprecation warning to salt.utils.parse_docstring
- Moves related unit test in test_utils.py to new test_doc.py file
2017-07-19 12:06:55 -06:00
Mike Place
0a72e56f6b
Merge pull request #42356 from meaksh/2016.11-AliasesLoader-wrapper-fix
...
Allow to check whether a function is available on the AliasesLoader wrapper
2017-07-19 11:56:41 -05:00
Mike Place
c9972fe4fb
Merge pull request #42383 from AndrewPashkin/revert-37003-gradual-pillar-loading
...
Revert "Make possible to reference previous pillars from subsequent pillars, as they specified in the top file"
2017-07-19 11:28:22 -05:00
Alexandru Bleotu
89f4f324e6
Added tests for salt.modules.vsphere.create_datacenter
2017-07-19 17:20:24 +01:00
Alexandru Bleotu
b0aafe1632
Added tests for salt.modules.vsphere.list_datacenters_via_proxy
2017-07-19 17:20:23 +01:00
Nicole Thomas
59e012b485
Merge pull request #42150 from twangboy/win_unit_test_pip
...
Fix `unit.modules.test_pip` for Windows
2017-07-19 10:01:17 -06:00
Nicole Thomas
ade25c6b34
Merge pull request #42154 from twangboy/win_unit_test_reg
...
Fix `unit.modules.test_reg_win` for Windows
2017-07-19 10:00:38 -06:00
Mike Place
7419e82cb2
Merge pull request #42362 from rallytime/merge-develop
...
[develop] Merge forward from 2017.7 to develop
2017-07-19 10:56:15 -05:00
Nicole Thomas
07593675e2
Merge pull request #42182 from twangboy/win_unit_test_useradd
...
Fix `unit.modules.test_useradd` for Windows
2017-07-19 09:55:32 -06:00
Alexandru Bleotu
f343a2b277
Added tests for esxdatacenter proxy
2017-07-19 15:24:10 +01:00
Alexandru Bleotu
e041b8f486
Added tests for get_details in modules.esxdatacenter
2017-07-19 15:24:10 +01:00
Alexandru Bleotu
6814e8405d
Added tests for supporting esxdatacenter proxy in modules.vsphere
2017-07-19 15:24:10 +01:00
Andrew Pashkin
b0148c15c7
Revert "Make possible to reference previous pillars from subsequent pillars, as they specified in the top file"
2017-07-19 12:25:22 +03:00
rallytime
0ab4787d81
Fix all salt.utils fopen references in test_file
2017-07-18 17:10:11 -06:00
rallytime
3f0945b9b7
Fix one more salt.utils fopen reference to point to files
2017-07-18 15:04:49 -06:00
rallytime
89d957b124
Update unit test mocks for salt.utils.files.fopen
2017-07-18 13:40:07 -06:00
rallytime
0f5dd79aa0
Lint fixes
2017-07-18 12:46:15 -06:00
rallytime
df693423b9
Move salt.utils.rm_rf to salt.utils.files.rm_rf
...
Also added a deprecation warning to utils/__init__.py and updated
all references to rm_rf in salt codebase.
2017-07-18 10:48:54 -06:00
rallytime
ccf790a83f
Update all references for moved functions to use "files" util
...
- fopen
- flopen
- fpopen
- safe_rm
- is_empty
- is_fcntl_available
2017-07-18 10:31:01 -06:00
rallytime
7aa31ff030
Merge branch '2016.11' into '2017.7'
...
Conflicts:
- salt/grains/core.py
- salt/modules/git.py
- salt/modules/pillar.py
- salt/states/saltmod.py
- salt/states/user.py
- tests/integration/states/handle_iorder.py
2017-07-18 09:05:43 -06:00
rallytime
f59ecb7ffe
Merge branch '2017.7' into 'develop'
...
Conflicts:
- salt/executors/sudo.py
2017-07-18 08:57:55 -06:00
Pablo Suárez Hernández
915d94219e
Allow to check whether a function is available on the AliasesLoader wrapper
2017-07-18 12:57:36 +01:00
Alexandru Bleotu
e783d6edd5
pylint
2017-07-18 06:44:34 -04:00
Erik Johnson
14cf6ce322
is_windows is a function, not a propery/attribute
...
While not fatal, this could potentially cause problems running this
test on Windows.
2017-07-17 23:36:21 -05:00
Mike Place
3ec5bb1c2f
Merge pull request #42257 from twangboy/win_unit_pillar_test_git
...
Fix `unit.pillar.test_git` for Windows
2017-07-17 12:51:41 -05:00
Mike Place
36395625c2
Merge pull request #42258 from twangboy/win_unit_states_tests_environ
...
Fix `unit.states.test_environ` for Windows
2017-07-17 12:50:37 -05:00
Mike Place
894bdd2b19
Merge pull request #42265 from rallytime/gate-moto-version
...
Gate boto_elb tests if proper version of moto isn't installed
2017-07-17 12:47:51 -05:00
Mike Place
baf04f2a2d
Merge pull request #42277 from twangboy/win_unit_states_test_winrepo
...
Fix `unit.states.test_winrepo` for Windows
2017-07-17 12:37:06 -05:00
Alexandru Bleotu
c256eaef82
Renamed vmware_test folder to vmware to follow new naming standard
2017-07-17 13:12:34 -04:00
Alexandru Bleotu
62edc82d34
Added tests for catching vim.fault.NoPermission for all tested function in utils.vmware
2017-07-17 13:12:32 -04:00
Alexandru Bleotu
ec5532cdcf
Added no_permission tests to vmware functions
2017-07-17 13:12:30 -04:00
Mike Place
acd29f9b38
Merge pull request #42206 from rallytime/fix-flaky-test
...
[PY3] Fix test that is flaky in Python 3
2017-07-17 12:09:52 -05:00
Mike Place
8f1cb287cf
Merge pull request #42126 from rallytime/merge-2017.7
...
[2017.7] Merge forward from 2016.11 to 2017.7
2017-07-17 12:07:18 -05:00
Arnold Bechtoldt
178274f320
actually add newline (per line) to form a valid file
2017-07-14 09:40:40 +02:00
Bo Maryniuk
8c71257a4b
Call unnamed parameters properly
2017-07-13 10:11:00 +02:00
Bo Maryniuk
94c97a8f25
Update and correct the error message
2017-07-13 10:10:50 +02:00
twangboy
ed89cd0b93
Use os.sep for path seps
2017-07-12 10:13:26 -06:00
Andrew Pashkin
7d59f7a6c6
Make possible to reference pillars, that come before current pillar in the top file
2017-07-12 19:03:05 +03:00
twangboy
669aaee10d
Mock file exists properly
2017-07-11 17:09:21 -06:00
rallytime
78cdee51d5
Gate boto_elb tests if proper version of moto isn't installed
...
For Python 2 tests, we can use an older version. But when running
these tests of Python 3, we need a newer version of moto that supports
Python 3.
This gates the tests if the expected version of moto is missing.
2017-07-11 17:00:50 -06:00
twangboy
a4231c9827
Fix ret mock for linux
2017-07-11 16:59:42 -06:00
twangboy
0c484f8979
Fix unit tests on Windows
2017-07-11 16:55:43 -06:00
Nathan Fish
ed531304e2
test_nfs3: pass string, not list
2017-07-11 15:05:25 -05:00
twangboy
55b278c478
Mock the reg.read_value function
2017-07-11 13:23:11 -06:00
twangboy
45be32666a
Add error-handling function to shutil.rmtree
2017-07-11 13:08:00 -06:00
twangboy
acc0345bc8
Fix unit tests
2017-07-11 12:08:13 -06:00
rallytime
7e0c099ab3
Add get_driver function used with libcloud modules to doc exception list
...
Fixes failing valid_docs test in develop
2017-07-11 09:13:38 -06:00
Mike Place
e0c4a4bb1b
Merge pull request #42192 from rallytime/merge-develop
...
[develop] Merge forward from 2017.7 to develop
2017-07-07 13:59:30 -05:00
rallytime
bf45c18f9d
Convert remaining "assert_called_once" references to new syntax
...
These tests are new to develop and need to be converted to use the new
assert_called_once syntax introduced in #42084 .
2017-07-07 10:28:19 -06:00
rallytime
2be4865f48
[PY3] Fix test that is flaky in Python 3
...
We can't rely on lists having the same order in Python3 the same
way we rely on them in Python2. If we sort them first, and then
compare them, this test will be more reliable.
2017-07-07 09:43:52 -06:00
rallytime
8d960d463a
Merge branch '2017.7' into 'develop'
...
Conflicts:
- salt/grains/core.py
2017-07-06 17:42:30 -06:00
garethgreenaway
47ade9e91c
Merge pull request #42088 from terminalmage/update-mocking
...
Update mocking in network tests
2017-07-06 15:03:42 -07:00
Jay
623ca64121
Merge branch 'develop' into patch-4
2017-07-06 16:58:53 -04:00
twangboy
8260a71c07
Disable tests that require pwd in Windows
2017-07-06 13:19:40 -06:00
Gareth J. Greenaway
a34970b45b
Back porting the fix for 2017.7 that ensures the order of the names parameter.
2017-07-06 12:12:50 -07:00
twangboy
832a3d86dd
Skip tests that use os.symlink on Windows
2017-07-06 13:11:02 -06:00
Nicole Thomas
b869ae5579
Merge pull request #42101 from rallytime/haproxyconn-tests
...
[PY3] Fix haproxyconn unit tests that are failing
2017-07-06 12:17:46 -06:00
Mike Place
30f04a7224
Merge pull request #42138 from rallytime/py3-saltmod-tests
...
[PY3] Make test_saltmod unit tests less flaky for Python 3
2017-07-06 11:47:20 -05:00
Nicole Thomas
c87d1edd0c
Merge branch 'develop' into haproxyconn-tests
2017-07-06 10:22:33 -06:00
twangboy
00d9a52802
Fix problem with handling REG_QWORD in list values
2017-07-05 17:44:06 -06:00
twangboy
4ee24202fc
Fix unit tests for test_pip
2017-07-05 15:49:53 -06:00
rallytime
cdfcc854ad
[PY3] Make test_saltmod unit tests less flaky for Python 3
...
Separates out the comment from the rest of the state return to make this
test more stable on Python 3. This state run in PY3 adds the minion
names to the comment in a random order, so we can't rely on asserting
against this order in the test.
This PR updates the test so that we are still checking for all of the
elements in the comment, but not relying on the order the minions are
added the comment list.
2017-07-05 12:56:03 -06:00
twangboy
9b61533b09
Get more accurate currnet time in local_cache
2017-07-05 12:19:20 -06:00
twangboy
844e3f65bc
Fix unit tests for Windows
2017-07-05 12:03:13 -06:00
Erik Johnson
d15f7ded82
Add integration test for 42116
2017-07-05 11:07:38 -05:00