Daniel A. Wozniak
8697ce703e
Disable pylint checks, only for 2017.7
2019-02-11 17:28:37 -07:00
Daniel A. Wozniak
e5972f5a03
Use the code directory instead of cwd for python path
2019-02-11 17:15:16 -07:00
Daniel A. Wozniak
3f4c5a3e2d
Merge branch 'cloud_config_2017' of github.com:dwoz/salt into cloud_config_2017
2019-01-30 03:17:27 -07:00
Daniel A. Wozniak
7bb4ceb620
Fix python 3 path for shell test cases
2019-01-30 03:15:41 -07:00
Daniel A. Wozniak
bac652f439
Add testing path to run_script commands
2019-01-29 17:52:42 -07:00
Pedro Algarvio
3840af86df
"Tell" coverage to track subprocesses.
2019-01-25 12:58:52 +00:00
Daniel A. Wozniak
ecd84863cd
Honor run_run timeout for shell tests
2018-12-02 15:21:17 -07:00
Daniel A. Wozniak
57f702dc58
Fix linter warning
2018-11-11 21:49:20 -07:00
Daniel A. Wozniak
686153a77c
Fix up integration.minion.test_timeout
...
This test wasn't able to be run on it's own. Fix it and add more
debugging
2018-11-11 21:30:08 -07:00
Daniel A. Wozniak
7f613ac020
Do not fail if process already ended
...
We can expect the subprocess has already ended by the time we're
checking for child processes. Handle this case gracefully so that tests
do not fail with an exception.
2018-10-24 10:17:59 -07:00
Daniel A. Wozniak
7ce1b645c0
Use utf-8 encoding for salt-runtests.log
2018-09-28 13:08:37 -07:00
Daniel Wozniak
d50324b4b5
Merge branch '2017.7' into more_tests
2018-08-27 16:30:10 -07:00
Daniel A Wozniak
cd6706e9f0
Fix merge wart
2018-08-27 14:36:40 -07:00
Daniel A Wozniak
3e55d10584
Platform module doesn't exist in 2017.7
2018-08-27 00:44:36 -07:00
Daniel A. Wozniak
0394ece642
The set command does not work like inline env vars
...
Remove set command prefix on windows since it can not be run inline with
other commands.
2018-08-27 00:44:35 -07:00
Daniel A. Wozniak
19911987b7
Fix review nits
2018-08-26 17:03:16 -07:00
Daniel A. Wozniak
6abc2daf56
Re-factor dedent to fix warts
...
- textwarp.dedent does not support bytes on py3
- make sure to preserve trailing newlines
2018-08-24 10:46:50 -07:00
Daniel A. Wozniak
75b2e3d990
Use salt.utils.to_* functions
2018-08-24 09:35:02 -07:00
Daniel A. Wozniak
fa78a7b2ee
Add dedent that sets line endings
2018-08-24 09:35:00 -07:00
Michael Calmer
6224f7b551
calling range is going up to the upper limit but not including it
2018-08-23 13:08:04 -04:00
Erik Johnson
0441cd56ef
Add optimization_order to mocking
2018-08-08 11:22:52 -05:00
Gareth J. Greenaway
11cb86e6eb
General cleanup in pkg state, reducing duplicate code. Fixing the requires_salt_modules decorator, sys.doc was returning too much information for the event to handle. This change specifically calls sys.doc with the module name.
2018-07-31 09:46:05 -07:00
Ch3LL
236773e3e9
Skip new sha256 files on repo.saltstack.com/windows
2018-06-20 14:28:31 -04:00
Ch3LL
48b5d2e9d3
Add timeout argument to run_salt for ShellCase
2018-06-14 16:19:33 -04:00
Nicole Thomas
a2b588299b
Merge pull request #47860 from terminalmage/state-writing-docs
...
Clean up doc build warnings, add best practices for writing states
2018-06-01 10:42:54 -04:00
Daniel Wallace
735e92093e
Merge pull request #47917 from dwoz/winsuite
...
Fix windows tests suite breakage
2018-06-01 06:42:14 -05:00
Daniel A Wozniak
118601ebd6
Fix windows tests suite breakage
2018-05-31 23:17:18 -07:00
Erik Johnson
93ee5ee2b0
Fix all Sphinx warnings
...
Well, all but one, which we expect to see
2018-05-31 15:28:25 -05:00
Daniel A. Wozniak
c2f8aef7c5
Fix for py3 ec2 cloud tests
2018-05-27 14:09:50 -07:00
Daniel A. Wozniak
e5948902af
Use salt utils method for this_user
2018-05-24 00:40:20 -07:00
Daniel A. Wozniak
a056a293f1
Centeralize test username lookup
2018-05-23 16:16:35 -07:00
Daniel A Wozniak
6a6ab69722
Get the current username on windows
2018-05-23 16:16:32 -07:00
Erik Johnson
3b449f11fc
Add regression test for excludes issue
2018-05-16 12:26:46 -05:00
Daniel A Wozniak
c6697b9f16
Move kill process tree and re-use it
2018-05-06 09:44:55 -07:00
Daniel Wozniak
6a4d0380b1
Merge pull request #47493 from dwoz/win_run_timeout
...
Add support for windows timeout to run_salt
2018-05-05 22:34:30 -07:00
Daniel A Wozniak
fec1233dc4
Add support for windows timeout to run_salt
...
The run_salt function needs to support timeout on windows for the full
test suite to run.
2018-05-05 15:10:14 -07:00
twangboy
14ee5537b9
Add @with_tempdir helper
...
Fix two state tests
Remove redundent tests
2018-05-02 12:17:36 -06:00
Shane Lee
f031710af2
Merge branch '2017.7' into fix_47024
2018-05-01 16:26:04 -06:00
twangboy
7c46d9d0d4
Fix integration.modules.test_pip
...
Pass password as kwarg for runas on Windows
Fix issues with pip 10 in unit.states.test_pip
2018-05-01 15:33:29 -06:00
Nicole Thomas
aacd5cefe3
Merge pull request #47304 from cachedout/test_cli_timeout_arg
...
Pass timeout to salt CLI for tests
2018-04-27 09:11:57 -04:00
Daniel A. Wozniak
94a70e847a
Ignore gitfs tests when symlinks not enabled
2018-04-26 23:51:28 -07:00
Mike Place
85025af83c
Pass timeout to salt CLI for tests
...
This should hopefully fix up the race condition in the long-running
jobs test.
2018-04-25 11:04:59 -05:00
Daniel A. Wozniak
ad9c7f63f0
Fix coverate on py3 windows builds
...
Setting a value for will cause coverage to look for a config file called
named '1' and in-turn raises an Exception. Based on the docs, if the
environment variable exists coverage is enabled. Just defined the
environment variable instead of giving it a value.
2018-04-20 12:30:43 -07:00
Daniel A. Wozniak
25803c9176
Move process target to top level module namespace
2018-04-19 18:38:28 -07:00
Mike Place
b8990f5258
Pass the timeout variable to the CLI when calling salt in tests
2018-04-13 16:37:01 -06:00
Daniel Wallace
2edd5eaf9e
fix path
2018-04-04 13:37:39 -05:00
Daniel A. Wozniak
5c22a0f88d
Use aboslute imports
2018-03-28 22:32:30 -07:00
Daniel A. Wozniak
5ac89ad307
Use winrm_verify_ssl option causing tests to pass
2018-03-28 20:21:40 -07:00
Daniel A. Wozniak
ba5f11476c
Adding windows minion tests for salt cloud
2018-03-28 15:16:54 -07:00
Erik Johnson
f9f187e915
Improve reliability/idempotence of file.blockreplace state
...
This makes the following changes:
- The `append_newline` argument to the `file.blockreplace`
remote-execution function has been modified so that if its value is
`None`, it only appends a newline when the content block does not end
in one.
- A couple of fixes were made to newline handling. The existing code
normalized the newlines in the content block, replacing them with
os.linesep. However, when the file contains newlines that don't match
the OS (i.e. POSIX newlines in a file on a Windows box, or Windows
newlines on a Linux/Mac/BSD/etc. box), then we would still end up with
mixed newlines. The line separator is now detected when we read in the
original file, and the detected line separator is used when writing
the content block. Additionally, the same newline mismatch was
possible when appending/prepending the content block. This has been
fixed by using a common function for appending, prepending, and
replacing the content block.
- Support for the `append_newline` argument has been added to the
`file.blockreplace` state. The default value for the state is `None`.
A `versionchanged` has been added to the remote execution function to
let users know that the Fluorine release will change the default value
of that variable.
- 20 new integration tests have been written to test the
`file.blockreplace` state.
2018-03-07 22:29:39 -06:00