Pedro Algarvio
a0346d18bf
Try harder to get the minion grains
2019-05-27 19:05:26 +01:00
Pedro Algarvio
36717bddd7
Try and address the test flakyness
2019-05-27 19:05:21 +01:00
Pedro Algarvio
ce07d8c947
Add more information when the assertion fails
2019-05-27 19:05:15 +01:00
Daniel A. Wozniak
b99e914e05
Attempt to fix mine tests
2019-05-27 19:04:34 +01:00
Pedro Algarvio
fca981c909
One more known to return None
2019-05-27 19:02:43 +01:00
Pedro Algarvio
951df4882e
One more known to return None
2019-05-27 19:02:39 +01:00
Pedro Algarvio
eb5fd3ece2
Fix integration.modules.test_mine.MineTest.test_get
for sub_minion
...
Since the `sub_minion` does not have `mine_functions` defined,
`mine.update` returns `None` as opposed to `True` when `mine_functions`
are defined.
2019-05-27 19:02:33 +01:00
Pedro Algarvio
cefdd907c1
Stop error messages about missing roster file on syndic master
2019-05-27 11:46:31 +01:00
Pedro Algarvio
6bf8f46df3
Don't complain when attempting to close sockets at this stage
2019-05-27 11:45:26 +01:00
Megan Wilhite
d15c8f2db1
Merge branch '2019.2.1' into ami_window_cloud
2019-05-23 13:22:39 -04:00
Gareth J. Greenaway
6c452b3f4c
removing unwanted commits from this branch
...
Conflicts:
- salt/states/pip_state.py
- tests/support/helpers.py
2019-05-23 12:13:30 -04:00
Gareth J. Greenaway
e0b0ba8c71
Handling in flaky when maximum number of attempts raised and the exception should be raised. Different approaches depending on Py2 vs Py3.
...
Conflicts:
- tests/support/helpers.py
2019-05-23 11:49:46 -04:00
Gareth J. Greenaway
434dcdaae1
Disabling two tests when using Python 3 and OS X
...
Conflicts:
- tests/integration/modules/test_state.py
2019-05-23 11:47:49 -04:00
Gareth J. Greenaway
5784e80ca7
Disabling integration.shell.test_minion.MinionTest.test_issue_7754 test on OS X because it hangs the test suite.
2019-05-23 11:46:07 -04:00
Gareth J. Greenaway
78aeb61f67
Dropping the version check for InstallationError down to anything 1.0 or greater. Removing the test that simulates versions of pip below 1.0.
2019-05-23 11:45:58 -04:00
Gareth J. Greenaway
4ec90c2d39
Adding an jinja if statement to only the python parameter if the result from get_python_executable is a valid value. Maintaining backwards compatibilty to run tests without Nox.
2019-05-23 11:44:42 -04:00
twangboy
758d020c08
Skip test on Windows
2019-05-22 16:54:23 -06:00
Ch3LL
941778fdf8
Update ami's used for windows cloud tests
2019-05-22 12:09:42 -04:00
Megan Wilhite
16ef3d2093
Merge branch '2019.2.1' into shadow_fed_fix
2019-05-21 15:27:26 -04:00
Megan Wilhite
85e9b2f067
Merge pull request #53073 from Ch3LL/ssh_py3_log
...
salt-ssh: python binary exists before version check
2019-05-20 18:36:33 -04:00
Ch3LL
09ff8679b9
Check for all non-word when calling secure_password
2019-05-20 18:10:19 -04:00
Frode
9f4550caa2
vultr cloudtest fix
2019-05-20 21:04:20 +00:00
Gareth J. Greenaway
5f6581a228
Merge branch '2019.2.1' into yaml_flow_style
2019-05-16 12:42:14 -07:00
Ch3LL
383e781be8
Improve logging in salt-ssh gen_thin
2019-05-16 11:38:28 -04:00
Ch3LL
43714342d4
salt-ssh: python binary exists before version check
2019-05-16 11:22:27 -04:00
Gareth J. Greenaway
13e5e5524c
The maximum for the multiprocessing queue on MacOS is 32767, so if we running on MacOS then we use that maximum.
...
Conflicts:
- salt/log/setup.py
2019-05-16 11:10:46 -04:00
Pedro Algarvio
06fa91bd33
Merge pull request #52972 from garethgreenaway/52817_unit_modules_test_telegram_telegrammoduletest_test_post_message
...
[2019.2.1] Fix to unit.modules.test_telegram
2019-05-15 08:50:12 +01:00
Gareth J. Greenaway
cea7131cf1
Removing global declaration.
2019-05-14 17:48:05 -07:00
Ch3LL
0a213ee046
Change package name for suse pkg tests
2019-05-14 14:38:40 -04:00
Shane Lee
21838a1f2c
Merge branch '2019.2.1' into fix_test_pip_state
2019-05-13 14:33:34 -06:00
Ch3LL
368c012f12
Revert "Make sure --run-expensive runtests.py arg works"
...
This reverts commit 56bf069079
.
2019-05-13 14:45:12 -04:00
Gareth J. Greenaway
5bf9a95267
Fixing lint.
2019-05-10 16:36:41 -07:00
twangboy
351d415b69
Return path to Python instead of None
2019-05-10 17:21:56 -06:00
Gareth J. Greenaway
4d3c46d193
fixing broken unit.modules.test_telegram test.
2019-05-10 16:21:07 -07:00
Megan Wilhite
9a27fb3f96
Merge branch '2019.2.1' into yaml_flow_style
2019-05-10 14:54:33 -04:00
Ch3LL
0d0e354627
Fix yamldumper test for both py2/py3
2019-05-10 14:52:58 -04:00
Shane Lee
ac27e6970f
Merge branch '2019.2.1' into fix_test_file
2019-05-09 14:34:14 -06:00
Ch3LL
20bc954483
Update docs for yamldumper test
2019-05-09 15:42:52 -04:00
Megan Wilhite
bf648e57a8
Update tests/unit/utils/test_yamldumper.py
...
Co-Authored-By: Wayne Werner <waynejwerner@gmail.com>
2019-05-09 15:39:12 -04:00
Ch3LL
70d578a1af
Set default_flow_style=None in yaml.dump calls
2019-05-09 15:18:32 -04:00
Daniel Wozniak
4437764891
Merge pull request #52943 from Ch3LL/fix_elastisearch
...
Fix elasticsearch state module: allow user to define empty aliases
2019-05-09 08:46:37 -07:00
Pedro Algarvio
a06d7cef0e
We need to call the decorator
2019-05-09 15:17:24 +01:00
Pedro Algarvio
77185af841
Partial revert since this is a class method
2019-05-09 14:41:43 +01:00
Pedro Algarvio
f5c5771dd9
Lint fixes
2019-05-09 14:40:17 +01:00
Pedro Algarvio
8e505fb91a
Move tests to existing test modules
2019-05-09 14:20:23 +01:00
Pedro Algarvio
46816092eb
tests/unit/config/__init__.py
-> tests/unit/config/test_config.py
...
No top level `__init__.py` should contain tests
2019-05-09 14:19:56 +01:00
Pedro Algarvio
33743fc4a0
Don't traceback when trying to close a closed socket
2019-05-09 14:14:34 +01:00
Pedro Algarvio
da2e147e54
Always cleanup the changed environ
2019-05-09 14:13:32 +01:00
Pedro Algarvio
087c74d907
No globals in tests, specially dictionaries!
2019-05-09 14:11:12 +01:00
Daniel A. Wozniak
5bb7869adc
fix linter
2019-05-09 14:03:05 +01:00
Megan Wilhite
451fb7e60f
Merge branch '2019.2.1' into fix_elastisearch
2019-05-08 16:15:41 -04:00
Ch3LL
ebff9b94e0
Fix elasticsearch state module: allow user to define empty aliases
2019-05-08 15:50:35 -04:00
Pedro Algarvio
a8f7b464f5
Test is not destructive.
...
Changes salt's testing config, which is what testing is all about, but
does not change the underlying OS.
2019-05-08 19:46:30 +01:00
Pedro Algarvio
62574ee197
Typo
2019-05-08 13:16:52 +01:00
Pedro Algarvio
e9f6a1228d
identical_signature_wrapper
adds __wrapped__
to function globals
2019-05-08 13:16:51 +01:00
Daniel A. Wozniak
6e0b61baa9
Less flaky mine tests
2019-05-08 13:16:51 +01:00
Daniel A. Wozniak
3709ed745e
msgpack returns string_types
2019-05-08 13:16:51 +01:00
Daniel A. Wozniak
a36b15e449
Add regression test
2019-05-08 13:16:51 +01:00
Daniel A. Wozniak
8fdb04df0d
SIGKILL is not alwasy available use a local variable
2019-05-08 13:16:50 +01:00
Daniel A. Wozniak
4d6b8da5a0
Fix linter
2019-05-08 13:16:50 +01:00
Daniel A. Wozniak
759bccc202
Fix test_doc on windows by using grep yay!
2019-05-08 13:16:49 +01:00
Daniel A. Wozniak
0ce086d13d
Fix remaining failures on ubuntu 1404 and add to PR tests
2019-05-08 13:16:49 +01:00
Daniel A. Wozniak
b0aa28760c
Fix missing class wart
2019-05-08 13:16:49 +01:00
Daniel A. Wozniak
21ecb742db
fix linter
2019-05-08 13:16:49 +01:00
Daniel A. Wozniak
62c0f9fdd9
Skip tests when no libcloud
2019-05-08 13:16:48 +01:00
Daniel A. Wozniak
1d92290304
Fix unused import
2019-05-08 13:16:48 +01:00
Daniel A. Wozniak
238fd0f071
Fix broken pip state
2019-05-08 13:16:48 +01:00
Daniel A. Wozniak
1eea9908e9
Fix linter
2019-05-08 13:16:47 +01:00
Daniel A. Wozniak
52ca668360
Skip tests when no libcloud
2019-05-08 13:16:47 +01:00
Daniel A. Wozniak
522599d261
Dont fail just because some random process died
2019-05-08 13:16:47 +01:00
Daniel A. Wozniak
34cef86e14
Ignore super not called
2019-05-08 13:16:46 +01:00
Daniel A. Wozniak
b7ace9c929
Fix linter
2019-05-08 13:16:46 +01:00
Daniel A. Wozniak
aceb6d3013
Skip libcloud unit tests when no libcloud
2019-05-08 13:16:46 +01:00
Ch3LL
2acb0f37bc
Make sure --run-expensive runtests.py arg works
2019-05-08 13:16:45 +01:00
twangboy
12d8d351cf
Stop w32time before and start after testing
2019-05-08 13:16:45 +01:00
twangboy
7f1c22ce3a
Skip tests that fail on Windows
2019-05-08 13:16:45 +01:00
Pedro Algarvio
381f5fea52
Limit and reduce the ammount of log records sent over the wire
2019-05-08 13:16:44 +01:00
Pedro Algarvio
8948b690b1
Include COVERAGE_FILE
as an env variable.
...
This will tell coverage where to save all coverage files.
2019-05-08 13:16:44 +01:00
Pedro Algarvio
0af561ef24
Each generated script is now prepared for code coverage
2019-05-08 13:16:44 +01:00
Pedro Algarvio
666ca9f7cd
Fix proxy minion startup issue on the test suite
2019-05-08 13:16:43 +01:00
Daniel A. Wozniak
e9e57cfb05
Syndic roster not in 2017.7.9
2019-05-08 13:16:42 +01:00
Daniel A. Wozniak
111c63a4dc
Create the roster even when not running ssh
2019-05-08 13:16:42 +01:00
Daniel A. Wozniak
11c02a0be3
Fix unit.test_loader.LoaderGlobalsTest.test_states
2019-05-08 13:16:42 +01:00
Daniel A. Wozniak
8694db10d7
Fix windows tests
2019-05-08 13:16:42 +01:00
Daniel A. Wozniak
82e9ac5b8f
Avoid race condition in even assertions
2019-05-08 13:16:42 +01:00
Daniel A. Wozniak
9443451d9a
Revert part of 927219c
since it is not a fix
2019-05-08 13:16:42 +01:00
Daniel A. Wozniak
5fee7620a5
Fix timeout logic
2019-05-08 13:16:41 +01:00
Daniel A. Wozniak
517650f87b
check timeout when queue empty
2019-05-08 13:16:41 +01:00
Daniel A. Wozniak
7c0a9af3d0
fix linter
2019-05-08 13:16:41 +01:00
Daniel A. Wozniak
961dc40c9b
Ignore missing variable in six module
2019-05-08 13:16:41 +01:00
Daniel A. Wozniak
0f5a7f0abf
Fix typo
2019-05-08 13:16:41 +01:00
Daniel A. Wozniak
6c8c4182dd
Do not limit event assert to first event
2019-05-08 13:16:41 +01:00
Daniel A. Wozniak
304229240e
Wait longer for ping reaction
...
Wait longer for the ping reaction in case there are multiple events on
the bus and/or high load on the system running tests
2019-05-08 13:16:40 +01:00
Wayne Werner
b6b4e955d2
Lint cleanup
2019-05-08 13:16:40 +01:00
Wayne Werner
0670614c6a
Add tests for wraps
...
During testing I also discovered that `_ignores_kwargs` was also missing
the @wraps decorator. Now it has it.
2019-05-08 13:16:39 +01:00
Pedro Algarvio
0e5bc67d4b
Lint fixes
2019-05-08 13:16:39 +01:00
Pedro Algarvio
72e8603046
Skip test if required cypto libs are not available
2019-05-08 13:16:38 +01:00
Pedro Algarvio
b2b0764dd4
Be aware of the different path separators
2019-05-08 13:16:38 +01:00
Pedro Algarvio
7e79b182b6
We need to make sure the virtualenv path entry is removed when searching
2019-05-08 13:16:38 +01:00
Pedro Algarvio
ff6d3c6dae
We don't need to be root to run these tests
2019-05-08 13:16:38 +01:00
Pedro Algarvio
f86a44e1fc
Use the real python executable path when running within a virtualenv
2019-05-08 13:16:37 +01:00
Pedro Algarvio
3d407e8a2e
Add a helper to return the path to the real pytohn executable
...
In case the test suite is running from within a virtualenv
2019-05-08 13:16:37 +01:00
Pedro Algarvio
ea9d2460f0
We must also provide venv_bin
when running within a virtualenv
2019-05-08 13:16:37 +01:00
Pedro Algarvio
31e91b03bb
Fix pip tests, in particular under windows
2019-05-08 13:16:37 +01:00
Pedro Algarvio
4a072fe191
These tests aren't destructive
2019-05-08 13:16:35 +01:00
Pedro Algarvio
361ef6e50f
Don't try to change ownership on non existing paths
2019-05-08 13:16:34 +01:00
Pedro Algarvio
7b173523d8
More insight(context) on failure reports
2019-05-08 13:16:34 +01:00
Pedro Algarvio
51114aa4ed
Watch out for too long shebang's
2019-05-08 13:16:34 +01:00
Pedro Algarvio
d97fe82815
The output is important to know why it failed.
2019-05-08 13:16:34 +01:00
Pedro Algarvio
c8de644cad
Fix lint issues under tests
2019-05-08 13:16:31 +01:00
Ch3LL
4945e35085
Fix pylint on 2017.7.9
2019-05-08 13:16:26 +01:00
Pedro Algarvio
036bf686c0
Rerun failed tests
2019-05-08 13:16:26 +01:00
Daniel A. Wozniak
899c80e723
Fix integration.client.test_kwarg test timeouts
2019-05-08 13:16:25 +01:00
Pedro Algarvio
30a5093591
Merge branch '2019.2.1' into fix_test_file
2019-05-08 11:40:45 +01:00
Gareth J. Greenaway
eee5a38db6
Merge branch '2019.2.1' into 52836_test_argspec_report_failing
2019-05-07 09:37:44 -07:00
Gareth J. Greenaway
dfff09bd1a
Merge branch '2019.2.1' into bp-52780
2019-05-07 08:48:03 -07:00
Gareth J. Greenaway
8fdc48c0bd
Removing create_autospec and having salt.utils.args.argspec_report run against the _test_spec function directly. Depending on the python version, create_autospec gives different results and cause the test to fail. The test is now more accurate at testing the arguments for the function.
2019-05-06 18:30:16 -07:00
Ch3LL
fc70884ca1
Reload matcher loader when ext_pillar_first set
2019-05-06 17:57:11 -04:00
Sean Brennan
c1eae841ca
Add test
2019-05-06 10:10:14 -04:00
Shane Lee
c08b10d79b
Merge branch '2019.2.1' into fix_test_file
2019-05-03 18:58:25 -06:00
Megan Wilhite
1ee8f37c77
Merge branch '2019.2.1' into zmq_filter_test
2019-05-02 10:35:53 -04:00
Pedro Algarvio
b68544ffbc
Merge pull request #52771 from twangboy/fix_test_gpg
...
Fix `test_gpg` tests on Windows
2019-05-02 14:30:17 +01:00
Ch3LL
cde29cb334
Fix boto_apigateway tests for PyYAML 5.1
2019-05-01 15:40:58 -04:00
Megan Wilhite
d74b6ee7b9
Merge branch '2019.2.1' into zmq_filter_test
2019-05-01 10:33:44 -04:00
twangboy
c7f45c241a
Pass encoding to stringutils.to_unicode
2019-04-30 16:29:03 -06:00
twangboy
340ee23a10
Pass encoding to _validate_str_list
2019-04-30 15:55:08 -06:00
Daniel Wozniak
35094653c9
Merge pull request #52769 from twangboy/fix_test_core
...
Remove domain grain from tests for Windows
2019-04-30 14:14:25 -07:00
Daniel Wozniak
32102749da
Fix linter warnings
2019-04-30 13:23:45 -07:00
twangboy
0049f85fbe
Remove domain grain from tests
2019-04-30 14:01:24 -06:00
twangboy
123b6075fe
Remove pchanges... again...
2019-04-30 13:53:43 -06:00
Ch3LL
e7c9d6ea22
increase timeout when gathering results
2019-04-30 15:53:39 -04:00
Ch3LL
784786d004
Add zmq_filter unit tests
2019-04-30 15:48:53 -04:00
twangboy
811b381714
Skip test_gen_thin_compression_fallback_py3
...
Skips this test on Windows running Python 2
This test is causing python to hard crash, thus killing the entire test
suite
Also simplifies the _get_thintar_prefix function
2019-04-29 16:56:26 -06:00
Shane Lee
04ad027732
Merge branch '2019.2.1' into ec2test
2019-04-29 09:39:52 -06:00
Daniel A. Wozniak
b770f965d3
Skip test requiring crypto when none available
2019-04-29 03:41:38 +00:00
tanlingyun2005
2c6867e36f
add test case to tests/unit/cli/test_batch.py
2019-04-26 23:44:22 +08:00
twangboy
915c780775
Fix issues with the win_file tests
...
Remove pchanges
Migrate to __utils__['dacl.check_perms']
2019-04-22 16:30:32 -06:00
Daniel A. Wozniak
859d088da8
Merge remote-tracking branch 'origin/cron_test_fix' into cron_test_fix
2019-04-22 00:11:37 +00:00
Daniel A. Wozniak
169c2d56aa
Chattr version py3 fix
2019-04-22 00:11:13 +00:00
Gareth J. Greenaway
7f7bb900dc
Merge branch '2019.2.1' into cron_test_fix
2019-04-21 15:44:27 -07:00
Daniel A. Wozniak
cf88c27353
Fix linter issues
2019-04-21 22:43:15 +00:00
Daniel A. Wozniak
0ea007de6f
Parse chattr version and fix test case
...
- Parse the system's chattr version from the chattr man page
- Fix integration.states.test_cron on centos 6
2019-04-21 22:19:45 +00:00
Daniel Wozniak
f7d823c8aa
Merge pull request #52601 from Ch3LL/cp-52415
...
Cherry-Pick #52415 into 2019.2.1
2019-04-21 12:33:03 -07:00
Pedro Algarvio
af4f2043bf
Merge pull request #52645 from dwoz/test_fixes
...
Fix salt.modules.publish and salt.states.x509 tests
2019-04-20 09:17:17 +01:00
Daniel A. Wozniak
9b6f9f94d0
Clean up cruft
2019-04-20 03:57:36 +00:00
Daniel A. Wozniak
c3971a5802
Fix salt.modules.publish and salt.states.x509 tests
...
The peers.conf addition for the x509 state tests broke the
salt.modules.publish tests. Move the configuration to the test master's
config. Also increase the publish call timeout in the x509 module to
make the x509 state tests reliable on all platforms.
2019-04-20 03:16:46 +00:00
Megan Wilhite
ecd6802b3f
Merge branch '2019.2.1' into cp-52415
2019-04-19 16:01:12 -04:00
Daniel A. Wozniak
c001022913
Fix linter
2019-04-19 16:22:52 +00:00
Daniel A. Wozniak
423f6f96b7
Fix vent assertion race condition
2019-04-19 16:16:01 +00:00
Daniel A. Wozniak
105784a0da
Remove unused method from pytest engine
2019-04-18 22:48:34 +00:00