Daniel A Wozniak
7513474f71
Use salt.utils to ensure string type
2018-08-25 12:19:59 -07:00
Daniel Wozniak
5766e982e7
Merge pull request #49322 from dwoz/state_module_test_fix
...
Encode shell commands explicitly.
2018-08-24 21:43:26 -07:00
Daniel Wozniak
b47da0aff7
Merge pull request #49299 from dwoz/test_fix
...
Work around cmd.run unicode issues in test for now
2018-08-24 21:43:02 -07:00
Daniel A. Wozniak
1f7d50d194
Encode shell commands explicitly.
...
On Windows subprocess.Popen will try to implicity encode shell commands
using the default system encoding. This will raise an exception if
passed utf-8.
2018-08-24 14:27:02 -07:00
Daniel A. Wozniak
f4bd644a4b
Fix string formatting wart in file state tests
2018-08-24 12:09:37 -07:00
Daniel Wallace
b65890c363
Merge pull request #49305 from terminalmage/issue48299
...
Allow git.latest to remove local tags which have been removed remotely
2018-08-24 12:29:02 -05:00
Daniel Wallace
459354a6a3
Merge pull request #49308 from terminalmage/issue49009
...
Don't include ignored paths in mtime map
2018-08-24 12:28:41 -05:00
Nicole Thomas
914bb09667
Merge pull request #49282 from rallytime/merge-2018.3
...
[2018.3] Merge forward from 2017.7 to 2018.3
2018-08-24 12:45:49 -04:00
Daniel Wallace
4c81c2ecf3
Merge pull request #49303 from gtmanfred/forking
...
use os._exit instead of sys.exit when daemonizing
2018-08-24 09:15:54 -05:00
rallytime
21a51c9336
Add 'minion_data_cache: True' to mocked opts for minions unit tests
2018-08-24 09:44:15 -04:00
Erik Johnson
2badd7f78f
Don't include ignored paths in mtime map
...
Fixes #49009
2018-08-24 07:10:39 -05:00
Erik Johnson
4a093d97fb
lint
2018-08-24 06:40:36 -05:00
Erik Johnson
ed7b99453c
Gate tag manipulation behind a sync_tags argument
2018-08-24 06:40:36 -05:00
Erik Johnson
29de855ede
Add test for a removed tag
2018-08-24 06:40:36 -05:00
Erik Johnson
eb9a4594b6
Properly handle tags deleted from remote repository
2018-08-24 06:40:36 -05:00
Erik Johnson
916c15a04d
Add git.tag function
2018-08-24 06:40:36 -05:00
Daniel A. Wozniak
e84e60857c
Fix wart in file state test
2018-08-23 21:00:35 -07:00
Daniel Wallace
e06ce49c1b
use os._exit instead of sys.exit when daemonizing
...
According to the docs [here](https://docs.python.org/3/library/os.html#os._exit )
> `os._exit` should should normally only be used in the child process after a fork().
This will exit the process with status n, without calling cleanup
handlers, flushing stdio buffers, etc.
Fixes saltstack/salt-jenkins#1075
2018-08-23 19:08:39 -05:00
Daniel A. Wozniak
71d4465b6c
Work around cmd.run unicode issues in test for now
...
Cat is missing on windows. I tired unsuccesfully to make this work with
the 'type' command on windows. This is maybe not ideal but it stablizes
the test suite for now.
2018-08-23 16:21:20 -07:00
rallytime
196ce3f75e
Call the with_tempfile
decorator correctly for 2018.3
2018-08-23 16:37:03 -04:00
rallytime
37f24fda78
Fix unit test for file state
...
Chose the wrong side of a merge conflict resolution. This commit restores
the correct testing behavior.
2018-08-23 16:18:29 -04:00
Nicole Thomas
158c1ca575
Merge pull request #49276 from terminalmage/fix-moved-funcs
...
Fix paths to moved functions
2018-08-23 12:38:54 -04:00
Mike Place
ef39f85fac
Merge pull request #49270 from dwoz/test_event_fix
...
Add async helper to test_sock_path_len
2018-08-23 10:17:54 -06:00
rallytime
6f9a158661
Update old utils paths with new paths
2018-08-23 11:52:49 -04:00
rallytime
c3ecefc785
Merge branch '2017.7' into '2018.3'
...
Conflicts:
- salt/modules/file.py
- salt/modules/win_service.py
- salt/states/mount.py
- salt/states/service.py
- tests/integration/__init__.py
- tests/integration/runners/test_state.py
- tests/integration/states/test_file.py
- tests/unit/states/test_file.py
2018-08-23 11:50:41 -04:00
Daniel Wallace
5da743adff
Merge pull request #49199 from jacobweinstock/fix-typeerror-unicode
...
Fix typeerror unicode
2018-08-23 09:38:16 -05:00
Nicole Thomas
e28f8f1ae0
Merge pull request #49264 from gtmanfred/diskusage
...
fix diskusage beacon
2018-08-23 10:36:06 -04:00
Daniel Wallace
f6b2b93afe
Merge pull request #49253 from gtmanfred/vmware
...
skip ID 7 for vmware hard drives
2018-08-23 09:35:30 -05:00
Erik Johnson
322a988def
Fix paths to moved functions
2018-08-23 08:32:11 -05:00
Erik Johnson
2a2bd48d83
Merge pull request #49263 from terminalmage/issue49159
...
Revert default value for ipv6 to None
2018-08-23 08:02:12 -05:00
Daniel A. Wozniak
51bf79afd9
Add async helper to test_sock_path_len
...
This test function is causing another test:
unit.utils.test_event.TestAsyncEventPublisher.test_event_subscription
To fail with 'Async operation timed out after 5 seconds', Adding the
tornado Async test helper so that both tests pass.
2018-08-22 14:49:34 -07:00
Daniel Wozniak
ec32428f9b
Merge pull request #49244 from dwoz/gitfs_fixes
...
Test fixes: unit.fileserver.test_gitfs
2018-08-22 13:19:41 -07:00
Daniel Wallace
2d7f8460bc
Merge pull request #49265 from terminalmage/fix-failing-file-tests
...
Fix failing unit file module unit tests
2018-08-22 14:35:07 -05:00
Erik Johnson
6b51f71e40
Fix failing unit file module unit tests
...
This just looks to have been incorrectly handled in a merge-forward.
2018-08-22 14:22:44 -05:00
Daniel Wallace
879c3ad7b7
Merge pull request #49262 from bloomberg/short-circuit
...
extend #48588 to cover SyncAuth class
2018-08-22 14:04:08 -05:00
Daniel Wallace
15857c2c54
fix diskusage
2018-08-22 14:00:26 -05:00
Daniel Wallace
1900aff4d3
Merge pull request #49144 from twangboy/fix_48163
...
Add timeout parameter to win_service functions
2018-08-22 13:58:13 -05:00
Erik Johnson
bf5d907ce4
Revert default value for ipv6 to None
2018-08-22 13:29:31 -05:00
Jacob Weinstock
25608ef119
Merge branch '2018.3' into fix-typeerror-unicode
2018-08-22 12:24:31 -06:00
Jacob Weinstock
11ad11c53a
add unicode_literals back to handle logging and other things.
2018-08-22 12:22:08 -06:00
Daniel Wozniak
4634752b7e
Merge pull request #49240 from dwoz/state_tests
...
file state test fixes
2018-08-22 11:16:41 -07:00
Daniel A. Wozniak
b533fa179a
Simplify by using to_unicode helper
2018-08-22 10:01:39 -07:00
Matt Phillips
a3594db10f
extend #488588 to cover SyncAuth class
...
the original fix was only covered asyncauth, but the syncauth method overrode
the fix. This patch duplicates it so behavior should be consistent in both
codepaths.
2018-08-22 12:54:00 -04:00
Mike Place
395bae6486
Merge pull request #49259 from gtmanfred/flaky-2017.7
...
[2017.7] flaky tests
2018-08-22 10:40:53 -06:00
Mike Place
55ded9f03d
Merge pull request #49260 from gtmanfred/flaky-2018.3
...
[2018.3] flaky tests
2018-08-22 10:40:38 -06:00
Daniel Wallace
41973ff6c0
flaky tests are flaky yo
2018-08-22 11:38:48 -05:00
Daniel Wallace
c927f1bc2b
mark orchestration state tests as flaky
2018-08-22 11:38:40 -05:00
Daniel Wallace
93a576ef63
flaky tests are flaky yo
2018-08-22 11:38:23 -05:00
Daniel Wallace
f518bd3efc
mark orchestration state tests as flaky
2018-08-22 11:37:43 -05:00
Mike Place
62cc0dffd6
Merge pull request #49231 from minusf/mount-check-name
...
Check for mandatory parameters for `mount.mounted`
2018-08-22 09:26:03 -06:00