Commit Graph

71593 Commits

Author SHA1 Message Date
Shane Lee
84e2e8b101 Fix grains integration tests for Windows (#34941) 2016-07-26 10:49:10 -06:00
Anthony Shaw
6c08afd62b GCE Cloud tests (#34871)
* add test module

* modify GCE tests to remove mocks

* use certifi, libcloud has also patched the SuSE/Mac cert issues

* skip cert checking

* validate the __virtual__ and import process

* fix munged merge

* fixed lint errors and failing test

* fix dimensiondata tests in the same way whilst I'm here
2016-07-26 09:24:20 -06:00
Joseph Hall
cdc9882f83 Create regdata before try/except (#34931) 2016-07-26 09:05:24 -06:00
Joseph Hall
e1a6ebac3a Add prune option to reg.list (#34934) 2016-07-26 09:03:52 -06:00
Shane Lee
c4131c0afb Skip inode test in Windows (#34938) 2016-07-26 08:59:47 -06:00
Jakub Pavlik
21fe1a0f95 Remove use_carrier bond for Ubuntu Xenial later (#34779)
network.managed type bond generate use_carrier
option, which is unknown parameter in ubuntu 16.04

Fixes #34778
2016-07-26 08:53:12 -06:00
Mike Place
29baba7574 Merge pull request #34948 from bebehei/bashcompletion-saltkey
Bashcompletion salt-key remove headers
2016-07-26 08:36:26 -06:00
Benedikt Heine
3cd47297ed [bashcompletion] replace ticks with bash subshell 2016-07-26 14:58:59 +02:00
Benedikt Heine
9091f0bffa [bashcompletion] ignore salt-key headers 2016-07-26 14:56:20 +02:00
Mike Place
0e0c428469 Merge pull request #34891 from rallytime/serializer-unit-tests
Update serializers/configparser.py for Py3 use.
2016-07-25 04:21:41 -06:00
Mike Place
7e4ebc3961 Merge pull request #34913 from terminalmage/issue2707
Update unit test
2016-07-22 20:25:17 -06:00
Erik Johnson
92fffb06a7 Update unit test
This unit test asserts based on the args with which a function was
called, and the args were changed which broke the test. This fixes the
test.
2016-07-22 21:21:55 -05:00
Mike Place
3555d05bf0 Merge pull request #34912 from cachedout/fix_config_test
Config test no longer applies to new test config
2016-07-22 19:00:22 -06:00
Mike Place
baee2f2558 Config test no longer applies to new test config 2016-07-22 18:59:31 -06:00
Mike Place
1aee8b7dd4 Merge pull request #34906 from cachedout/set_run_salt_timeout
Set timeout for run_salt in test suite
2016-07-22 16:43:48 -06:00
Mike Place
caf0361bc1 Merge pull request #34807 from terminalmage/issue2707
Feature addition: preserve mode in file states
2016-07-22 16:43:31 -06:00
Mike Place
38ac79d8bb Merge pull request #34829 from gtmanfred/py3
[PY3] tests.unit.pillar
2016-07-22 16:33:47 -06:00
Mike Place
5e0c63c0eb Merge pull request #34886 from eradman/cron
Preserve trailing lines in crontab
2016-07-22 16:25:23 -06:00
Mike Place
365fca3c60 Merge pull request #34895 from skizunov/develop2
Fix console and file logging on Windows
2016-07-22 16:23:32 -06:00
Nicole Thomas
bdafa60e6a Lint #34897 (#34907) 2016-07-22 16:22:30 -06:00
Mike Place
345e3e56b8 Merge pull request #34899 from rallytime/integration-cli-tests
Fix integration/cli/*.py test failures when Running in Python 3
2016-07-22 16:22:11 -06:00
Jeremy McMillan
b1e5cdbe88 salt-cloud -f post_dns_record support (#34897)
refactor arguments in salt.cloud.clouds.digital_ocean.post_dns_record() to enable use with salt-cloud --function on command line

#34884
2016-07-22 16:20:57 -06:00
Mike Place
cdfd0161fc Set timeout for run_salt in test suite 2016-07-22 16:14:25 -06:00
Nicole Thomas
df372c8749 Merge pull request #34905 from rallytime/remove-tests
Remove tests that don't test anything
2016-07-22 16:13:57 -06:00
rallytime
56fb834718 Remove tests that don't test anything 2016-07-22 16:12:16 -06:00
Mike Place
ab84fd273e Merge pull request #34637 from cachedout/int_tests_interfaces
Int tests interfaces
2016-07-22 15:58:59 -06:00
rallytime
ed5b89655a Transform unicode string to bytes before hashing 2016-07-22 14:31:55 -06:00
rallytime
1031f19f3d Update batch integration tests to not be flaky in Python3 2016-07-22 14:19:15 -06:00
Thomas S Hatch
82f4ff6a83 Merge pull request #34889 from techhat/regpersist
Add load_reg and save_reg for Thorium
2016-07-22 13:52:20 -06:00
Mike Place
403854dac7 Merge pull request #34896 from skizunov/develop3
Fix unbound local variable error
2016-07-22 13:14:20 -06:00
Sergey Kizunov
9ee1ea8629 Fix unbound local variable error
I have occasionally come across this error while running a salt-minion on
Windows using Python 3.5.1 and the TCP transport:

'''
  File "...\salt\crypt.py", line 498, in _authenticate
    if not error:
UnboundLocalError: local variable 'error' referenced before assignment
[WARNING ] Minion received a SIGINT. Exiting.
'''

It seems like there is an overloaded use of the local variable called
`error`, each use with a different lifespan. Changed it so that `error`
is no longer overloaded. This has fixed the issue.

Signed-off-by: Sergey Kizunov <sergey.kizunov@ni.com>
2016-07-22 14:02:46 -05:00
Sergey Kizunov
950cf79cd4 Fix console and file logging on Windows
On Windows, only the main process properly logged to console and to
file. Things worked on other OSes due to the logging configuration
being propogated via fork, something that won't work on Windows.

The new strategy for Windows is if multiprocessing mode is used,
all console and file logging will be performed through the
Multiprocessing Logging Listener except for the main process. The
main process does not send stuff to the Multiprocessing Logging Listener.
Hence the main process will still configure file and console logging
separately from the MP Logging Listener.
If multiprocessing mode is off, then logging will be done as before
(which should be ok since there is only one process).

salt/utils/parsers.py:
- Broke apart the logic that figures out the input options for
`log.setup_logfile_logger` and `log.setup_console_logger`. This
functionality is run before `self._setup_mp_logging_listener` so that
the options passed to the MP Logging Listener are appropriate for direct
use in the functions that setup the console and file logging in the
MP Logging Listener process.
- Moved the logic that verifies the path for the log file from
`cli/daemons.py` to be able to run it before creating the MP Logging
Listener. Its original place in `cli/daemons.py` would run after the
MP Logging Listener is created.

salt/log/setup.py:
- Invoke `setup_console_logger` and `setup_logfile_logger` using the
appropriate options if running on Windows.

salt/minion.py:
- No longer need to invoke the functions to setup the console and file
logging on Windows multiprocessing mode due to the MP Logging
Listener taking care of that on Windows.

salt/cli/daemons.py:
- Moved the logic that verifies the path for the log file to
`utils/parsers.py`.

Signed-off-by: Sergey Kizunov <sergey.kizunov@ni.com>
2016-07-22 13:57:43 -05:00
Joseph Hall
590de80010 Fix __opts__ 2016-07-22 11:42:51 -06:00
Joseph Hall
3de9dbffe5 Fix msgpack functions 2016-07-22 11:41:31 -06:00
Thomas S Hatch
1c5dacdb00 Merge pull request #34615 from techhat/winapi
Properly gate pythoncom
2016-07-22 11:26:49 -06:00
Thomas S Hatch
a2cba5fd6c Merge pull request #34758 from adelcast/dev/adelcast/avahi_beacon
Add avahi based beacon for zeroconf announcement
2016-07-22 11:25:54 -06:00
Joseph Hall
dcb8f2b983 Allow register_returner to be Non 2016-07-22 11:03:04 -06:00
rallytime
39f69ef563 Update serializers/configparser.py for Py3 use.
SafeConfigParser and readfp are deprecated in Python 3.2.
2016-07-22 10:52:48 -06:00
Joseph Hall
b552c853ed Add load_reg and save_reg for Thorium 2016-07-22 10:37:03 -06:00
Eric Radman
b9be6521db Preserve trailing lines in crontab
This allows cron.file to install a crontab file that contains trailing
newlines. Previously a change may have been detected on every run.
2016-07-22 12:18:08 -04:00
Bo Maryniuk
87ffd6dc1e Regression fix: minion ID generator should use FQDN first, if available (#34876)
* Regression fix: use FQDN first, if available

* Adjust the tests to the new behaviour (FQDN first)
2016-07-22 09:21:42 -06:00
Alejandro Bednarik
5cdec8ced8 Add VirtuozzoLinux is yumpkg enable list. (#34878) 2016-07-22 09:18:13 -06:00
Alejandro Bednarik
99c872bb7f modules.proxy: __virtual__ return err msg (#34879) 2016-07-22 09:16:59 -06:00
Mike Place
166d5483ac Merge pull request #34853 from rallytime/merge-develop
[develop] Merge forward from 2016.3 to develop
2016-07-21 13:14:47 -06:00
Mike Place
d85aca1f7a Merge branch 'develop' into int_tests_interfaces 2016-07-21 12:26:21 -06:00
Dmitry Kuzmenko
66653620de Fix problem when no acl configured 2016-07-21 12:23:20 -06:00
rallytime
1a9d6eee15 Merge branch '2016.3' into 'develop'
Conflicts:
  - salt/grains/core.py
  - salt/state.py
  - tests/unit/grains/core_test.py
2016-07-21 12:06:25 -06:00
Mike Place
caef413e59 Merge pull request #34849 from thatch45/saltfiledoc
Add a clarifying note on Saltfile
2016-07-21 11:52:43 -06:00
Mike Place
b3d8143d36 Merge pull request #34852 from rallytime/skip-gce-tests
Skip GCE unit tests - causes test suite to hang
2016-07-21 11:52:31 -06:00
Nicole Thomas
7423177491 Update 2016.3.2 release notes (#34850) 2016-07-21 11:18:31 -06:00