Daniel A. Wozniak
dbf4356aac
Use the code directory instead of cwd for python path
2019-02-11 14:47:19 -07:00
Daniel A. Wozniak
e49ba862cf
Add testing path to run_script commands
2019-02-11 14:13:25 -07:00
Daniel A. Wozniak
daffcb3b6a
Fix linter warnings
2018-12-18 13:05:45 -07:00
Daniel A. Wozniak
a5dffb9efe
Increase and standardize ShellCase timeouts
2018-12-18 12:51:06 -07:00
Daniel A. Wozniak
6118bdffe0
Fix spacing
2018-12-02 15:40:09 -07:00
Daniel A. Wozniak
ba7c8ab1da
Honor run_run timeout for shell tests
2018-12-02 15:30:11 -07:00
Ch3LL
8501581f27
Merge branch '2018.3' into 'fluorine'
...
Conflicts:
- salt/utils/mac_utils.py
- salt/utils/win_runas.py
- tests/support/case.py
2018-11-14 12:38:16 -05:00
rallytime
d8e7c47a05
Merge branch '2017.7' into '2018.3'
...
Conflicts:
- tests/support/case.py
2018-11-12 16:11:17 -05: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
twangboy
9858c4d792
Fix some lint
2018-11-03 10:53:49 -06:00
twangboy
c5a9af7fbe
Increase timeout
2018-11-02 18:21:35 -06:00
rallytime
82e73fe49d
Merge branch '2018.3' into 'fluorine'
...
Conflicts:
- doc/ref/tops/all/index.rst
- salt/fileclient.py
- salt/grains/core.py
- salt/modules/win_file.py
- salt/pillar/__init__.py
- salt/utils/http.py
2018-10-18 10:41:42 -04:00
Daniel A. Wozniak
df5e27156e
Add spm tests for windows
2018-10-04 15:43:50 -07:00
rallytime
7e0db5cb15
Merge branch '2018.3' into 'fluorine'
...
Conflicts:
- salt/cloud/clouds/azurearm.py
2018-09-25 15:18:00 -04:00
Daniel A. Wozniak
536fce611f
Increase function timeout
2018-09-20 09:30:17 -06:00
Daniel A. Wozniak
1757eddae1
Increase ModuleTest.run_function timeout
...
Reduce flakyness with greater timeout
2018-09-19 11:21:12 -06:00
rallytime
ab6cc1c741
Update old utils paths to use new paths
2018-08-28 11:41:38 -04:00
rallytime
ac406c49a7
Merge branch '2017.7' into '2018.3'
...
Conflicts:
- salt/ext/win_inet_pton.py
- salt/pillar/git_pillar.py
- tests/integration/cli/test_batch.py
- tests/integration/modules/test_archive.py
- tests/integration/modules/test_pkg.py
- tests/integration/states/test_file.py
- tests/support/case.py
- tests/whitelist.txt
2018-08-28 11:22:47 -04: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
907b46d9f6
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-26 00:31:25 -07:00
Daniel Wallace
5e07b8306b
fix last async issue
2018-08-13 12:25:49 -04:00
Daniel Wallace
53c7ca16fb
fix last async issue
2018-08-13 10:23:00 -05:00
Bo Maryniuk
47078a300f
Remove async keyword, moving it into the kwargs.
2018-08-10 15:59:24 +02:00
Bo Maryniuk
31dccc4fdf
fix unicode literals
2018-08-10 15:59:24 +02:00
Bo Maryniuk
6cf400bfc9
Remove async keyword, moving it into the kwargs.
2018-08-09 18:13:13 +02:00
Bo Maryniuk
d4450707f7
fix unicode literals
2018-08-09 18:12:47 +02:00
rallytime
6177d6e3c1
Merge branch '2018.3' into 'develop'
...
Conflicts:
- doc/ref/configuration/minion.rst
- salt/client/__init__.py
- salt/grains/core.py
- salt/modules/timezone.py
- tests/support/case.py
- tests/unit/modules/test_file.py
- tests/unit/roster/test_sshconfig.py
2018-06-25 11:26:25 -04:00
rallytime
398cc78224
Merge branch '2017.7' into '2018.3'
...
Conflicts:
- .kitchen.yml
- doc/topics/releases/2017.7.6.rst
- salt/modules/timezone.py
- tests/support/case.py
- tests/unit/modules/test_timezone.py
2018-06-15 16:51:45 -04:00
Ch3LL
48b5d2e9d3
Add timeout argument to run_salt for ShellCase
2018-06-14 16:19:33 -04:00
rallytime
d991430715
Merge branch '2018.3' into 'develop'
...
No conflicts.
2018-06-07 13:03:54 -04:00
rallytime
7dc1e770c4
Merge branch '2018.3' into 'develop'
...
Conflicts:
- doc/topics/installation/freebsd.rst
- salt/cloud/clouds/oneandone.py
- salt/grains/core.py
- salt/modules/napalm_ntp.py
- salt/modules/win_update.py
- salt/modules/win_wua.py
- salt/modules/zabbix.py
- salt/renderers/pass.py
- salt/states/vault.py
- tests/unit/states/test_win_update.py
2018-06-06 13:35:36 -04:00
Erik Johnson
41e5a75027
Add catch_timeout to run_script
...
One of the tests depends on forcing a timeout, but since we no longer
include the timeout message in the stdout/stderr return, we needed a way
to return whether or not the script timed out.
2018-06-06 09:04:09 -05:00
Erik Johnson
a1ce0631fd
Use @property instead of @staticmethod for config_dir
...
We're not passing arguments and we're just getting back a string
contstant, so there's no need to make this a staticmethod.
2018-06-05 14:10:33 -05:00
Erik Johnson
551ada8e4d
Capture and log output of processes that timed out and were killed
...
Before, tests.support.case.ShellTestCase.run_script would just go
¯\_(ツ)_/¯ and return that it killed the process. But you can still run
`.communicate()` on a process that was terminated, so this commit does
that and uses it to log the output from the killed process.
2018-06-05 13:33:39 -05:00
Nicole Thomas
a46e42ab11
Merge pull request #47927 from rallytime/merge-2018.3
...
[2018.3] Merge forward from 2017.7 to 2018.3
2018-06-04 14:55:11 -04:00
Erik Johnson
af02d5ba7b
Add result logging to run_script, make returns DRY
2018-06-04 00:17:41 -05:00
rallytime
3273bbdab7
Merge branch '2017.7' into '2018.3'
...
Conflicts:
- doc/ref/configuration/master.rst
- doc/ref/modules/all/index.rst
- doc/topics/grains/index.rst
- doc/topics/releases/2016.3.4.rst
- doc/topics/spm/spm_formula.rst
- doc/topics/tutorials/cron.rst
- doc/topics/tutorials/index.rst
- doc/topics/tutorials/stormpath.rst
- salt/engines/slack.py
- salt/log/handlers/fluent_mod.py
- salt/modules/cyg.py
- salt/modules/junos.py
- salt/modules/namecheap_dns.py
- salt/modules/namecheap_domains.py
- salt/modules/namecheap_ns.py
- salt/modules/namecheap_ssl.py
- salt/modules/namecheap_users.py
- salt/modules/reg.py
- salt/modules/tomcat.py
- salt/modules/vault.py
- salt/modules/win_file.py
- salt/modules/zpool.py
- salt/output/highstate.py
- salt/renderers/pass.py
- salt/runners/cache.py
- salt/states/boto_apigateway.py
- salt/states/boto_iam.py
- salt/states/boto_route53.py
- salt/states/msteams.py
- salt/states/reg.py
- salt/states/win_iis.py
- tests/integration/modules/test_cmdmod.py
- tests/integration/states/test_user.py
- tests/support/helpers.py
- tests/unit/cloud/clouds/test_openstack.py
- tests/unit/fileserver/test_gitfs.py
- tests/unit/modules/test_junos.py
- tests/unit/pillar/test_git.py
- tests/unit/states/test_win_path.py
- tests/unit/test_pillar.py
- tests/unit/utils/test_format_call.py
- tests/unit/utils/test_utils.py
- tests/unit/utils/test_warnings.py
2018-06-01 14:54:12 -04: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
Erik Johnson
25afc932f7
WIP salt-jenkins issue 1000
...
This adds logging of the output and retcode when the output file fails
to be created. As I have thus far been unable to reproduce this locally,
this is the best shot at seeing what is causing the issue, since
ShellCase's run_script is rather opaque about what happens in the script
itself. We do know from the salt-runtests.log that the `salt-call -g` is
successfully returning, what we don't know is what happened after that
data was returned, and this should provide that insight.
2018-05-30 11:40:51 -05:00
rallytime
25f03ae425
Merge branch '2017.7' into '2018.3'
...
Conflicts:
- tests/integration/modules/test_status.py
- tests/integration/states/test_pip_state.py
- tests/support/case.py
- tests/whitelist.txt
2018-05-09 11:24:02 -04:00
Daniel A Wozniak
c6697b9f16
Move kill process tree and re-use it
2018-05-06 09:44:55 -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
rallytime
13e8124031
Merge branch '2017.7' into '2018.3'
...
Due to the many merge conflicts created from #47106 against the 2017.7 branch
and #46002 against the 2018.3 branch, the changes from #47106 have been largely
removed from this merge forward and the HEAD of 2018.3 was taken.
A separate fix for Tornado 5.0 support will need to be made directly against the
2018.3 branch.
Conflicts:
- doc/topics/development/conventions/formulas.rst
- salt/master.py
- salt/minion.py
- salt/netapi/rest_tornado/saltnado.py
- salt/states/zfs.py
- salt/transport/ipc.py
- salt/transport/tcp.py
- salt/transport/zeromq.py
- salt/utils/async.py
- tests/support/helpers.py
- tests/support/parser/cover.py
- tests/unit/grains/test_core.py
- tests/unit/modules/test_ssh.py
- tests/unit/test_minion.py
- tests/unit/utils/test_safe_walk.py
2018-04-27 13:38:35 -04: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
rallytime
94c2a12be6
Merge branch '2017.7' into '2018.3'
...
Conflicts:
- tests/integration/modules/test_state.py
- tests/unit/templates/test_jinja.py
- tests/unit/test_minion.py
2018-04-17 10:54:42 -04:00
Mike Place
b8990f5258
Pass the timeout variable to the CLI when calling salt in tests
2018-04-13 16:37:01 -06:00
Dmitry Kuzmenko
6fdc458a7f
Increase timeout for run_run in ShellCase
2018-03-29 22:46:23 +03:00