Erik Johnson
153bf45b03
Fix regression in file.managed when source_hash used with local file
...
This ensures that we enforce the passed source_hash when the source is a
file local to the minion.
2017-12-03 00:01:44 -06:00
rallytime
1bbe1abeb2
Allow --static option to display state runs with highstate output
...
Fixes #44556
2017-11-28 13:10:37 -05:00
Mike Place
69a50204a6
Add newline for lint.
2017-11-13 11:16:33 -07:00
Gabe Van Engel
ef7b6bbb81
Fixed issue with file.line on Windows running Python 2.
...
The target file was being read as binary, but written as text, causing file.line to append an extra linesep on every line.
Added integration test to ensure file.line produces the expected content.
2017-11-12 23:55:35 -08:00
Gabe Van Engel
8f89c99fa5
Fix FileModuleTest setUp and tearDown to work on Windows.
2017-11-12 23:55:35 -08:00
Gabe Van Engel
b2b8f075b9
Fixed test to work on Windows.
2017-11-12 23:55:34 -08:00
Gabe Van Engel
5a5a2dd026
Added integration test for issue #41474
2017-11-12 23:55:33 -08: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
Daniel Wallace
35e45049e2
use a ruby gem that doesn't have dependencies
2017-08-18 08:55:02 -04: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
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
Dmitry Kuzmenko
9fedf6012e
Fixed 'test_valid_docs' test.
2017-08-14 10:54:16 +03: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
Daniel Wallace
b458b89fb8
skip cache_clean test if npm version is >= 5.0.0
2017-08-10 14:17:47 -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
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
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
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
Erik Johnson
9a268949e3
Add integration test for 42116
2017-07-05 00:48:50 -05:00
Denys Havrysh
54910fe55f
archive.extracted: fix hash sum verification for local archives
2017-06-26 19:08:47 +03:00
Seth House
9d1cc1a176
Add test to check that runners ignore invalid kwargs
...
I dunno if this is what we want long-term but this tests current
behavior.
2017-06-15 17:40:38 -06:00
Daniel Wallace
0fa380f75c
npm 5 and greater requires --force for cache clean
...
This is the error
```
npm ERR! As of npm@5, the npm cache self-heals from corruption issues and
data extracted from the cache is guaranteed to be valid. If you want to make
sure everything is consistent, use 'npm cache verify' instead.
npm ERR!
npm ERR! If you're sure you want to delete the entire cache, rerun this command
with --force.
```
2017-06-12 14:48:43 -06:00
Daniel Wallace
19ea5481b6
remove test that never passed
2017-06-05 17:45:23 -06:00
Daniel Wallace
e2a4d5e1e2
Check all entries in result
...
Without this change, we ony check the first return from state tests, if
there is more than one state run, we do not check subsequent tests.
2017-06-02 17:26:07 -06:00
Petr Michalec
6db8915021
Endpoint handling per region, fixes #35874
...
- extend tests for multiple regions
- region arg by default set to None
- print verbose changes to be exec.
2017-05-26 11:15:29 -06:00
Nicole Thomas
824f2d3b69
Merge pull request #41398 from rallytime/merge-2016.11
...
[2016.11] Merge forward from 2016.3 to 2016.11
2017-05-26 09:17:48 -06:00
Benjamin Drung
33a7f8b2ec
Fix typos
...
lintian found several spelling errors.
Signed-off-by: Benjamin Drung <benjamin.drung@profitbricks.com>
2017-05-24 12:50:29 +02:00
rallytime
d2d9a3d29f
Merge branch '2016.3' into '2016.11'
...
Conflicts:
- doc/ref/cli/salt-cp.rst
- salt/config/__init__.py
2017-05-23 15:58:14 -06:00
Mike Place
1ba95684a9
Merge pull request #41113 from cro/proxy_auto_test2
...
Rescue proxy_auto_tests PR from git rebase hell
2017-05-22 12:05:07 -05:00
C. R. Oldham
6db31ce52a
Fix problem with sysrc on FreeBSD, YAML overeager to coerce to bool and int.
...
Fix problem with sysrc on FreeBSD, YAML overeager to coerce to bool
2017-05-20 19:39:22 -06:00
Mike Place
d617c9fe72
Merge pull request #41265 from terminalmage/issue41234
...
yumpkg: fix latest_version() when showdupesfromrepos=1 set in /etc/yum.conf
2017-05-19 13:49:58 -05:00
Erik Johnson
edf552fe9a
Update PKG_TARGETS for RHEL-based distros
2017-05-18 11:15:06 -05:00
Mike Place
50d8fde123
Merge pull request #41101 from terminalmage/issue40940
...
Fix "latest" keyword for version specification when used with aggregation
2017-05-15 11:52:35 -05:00
Erik Johnson
0e15fdbb1a
Update salt-cp integration test to reflect recent changes
2017-05-14 14:20:27 -05:00
Erik Johnson
7fe64219ae
Add rtag check to integration test for pkg.refresh_db
2017-05-12 15:21:22 -05:00
Ch3LL
dac16583b7
add test to query results of /jobs call in api
2017-05-10 12:39:17 -04:00
C. R. Oldham
3be90cc9f4
Rescue proxy_auto_tests PR from git rebase hell
2017-05-05 17:04:00 -06:00
rallytime
da811fe505
Skip the correct test for the matcher tests in Arch
...
I mixed up the test that was actually failing for Arch. I originally
submitted #41074 to skip the test_salt_documentation test in the
shell matcher tests. This is the wrong test to skip.
I reverted the previous commit, and applied the skipTest to the
correct test that is failing on Arch, which is the
test_salt_documentation_arguments_not_assumed test.
2017-05-04 14:45:58 -06:00
rallytime
b9d1ce9aed
Revert "Skip integration.shell.matcher.MatchTest.test_salt_documentation test for Arch"
...
This reverts commit 9eb482d5c7
.
2017-05-04 14:45:38 -06:00
rallytime
9eb482d5c7
Skip integration.shell.matcher.MatchTest.test_salt_documentation test for Arch
...
This test is failing in Arch due to a bug in salt-testing. Skipping until
salt-testing can be upgraded. For more information, see
https://github.com/saltstack/salt-jenkins/issues/324 .
2017-05-04 11:26:01 -06:00
Mike Place
ff39613a53
Merge pull request #41049 from Ch3LL/fix_wheel_test
...
fix integration wheel test_gen test
2017-05-04 09:33:58 -06:00
Erik Johnson
ee493bae47
Update package targets for Arch pkg tests
...
Something else is installing pytz (likely via pip), causing filesystem
conflicts when the pkg integration tests try to install python2-pytz as
a dep of python2-django.
This commit also changes a bunch of the other tests so that they are
explicitly skipped instead of just being no-ops in cases where they are
not configured to be run. This provides more accurate information in the
overall test results.
2017-05-03 17:02:32 -05:00
Ch3LL
ba223827b9
fix integration wheel test_gen test
2017-05-03 15:37:44 -04:00
rallytime
5a419b8aae
Merge branch '2016.3' into '2016.11'
...
Conflicts:
- salt/modules/pillar.py
2017-04-07 11:23:41 -06:00
Ch3LL
7710355e3a
check for salt install fail on vultur test
2017-04-05 14:39:31 -06:00
rallytime
ede4c28887
Group checks for failhard setting in () in state.check_failhard function
...
Fixes #38683
When two states combine the `require`, `failhard`, and `order` options,
the `order` option should be ignored because `require` is present. Then
the `failhard` option should make the state run fail.
The check for "failhard" in the `check_failhard` function in the state
compiler was too broad. We want "failhard" to be true AND tag to be in
the `running` dict. Without the parens around the first OR statement,
we were bypassing the AND requirement because failhard was found.
Since the second state's tag was not found in the running dict, the state
run stacktraces on a KeyError.
2017-04-03 14:41:54 -06:00
Ch3LL
8b21b4c8bb
add use_cmd_unzip test
2017-03-27 10:32:27 -06:00
rallytime
0ba773d86b
Skip flaky test for now
2017-03-21 15:47:20 -06:00