rallytime
0da4c46b68
Merge branch '2016.3' into '2016.11'
...
Conflicts:
- salt/utils/__init__.py
- salt/utils/gitfs.py
- tests/unit/modules/ssh_test.py
2017-03-31 09:59:59 -06:00
Nitin Madhok
dd62310941
Adding unit tests for vmware_test
2017-03-30 00:54:57 -04:00
Nitin Madhok
034ef30f7c
Remove old vmware unit tests
2017-03-30 00:53:09 -04:00
Erik Johnson
cafa08d8e0
Add ability for salt.utils.path_join to force the use of posixpath
...
Also remove unused and unnecessary behavior from this function when the
first path component is of single length. An empty first parameter to
this function will normalze to "." and result in an incorrectly-joined
result.
2017-03-28 14:18:29 -05:00
Vyacheslav Spiridonov
9d5db1910c
fix initial data structure for schedule tests
2017-03-15 21:02:08 +03:00
Vyacheslav Spiridonov
d3a2489c9c
schedule tests to ensure pillar jobs are not modified
2017-03-15 18:36:15 +03:00
rallytime
a9c2c106c1
Pylint fix
2017-02-09 08:50:56 -07:00
rallytime
f6aad99db2
Merge branch '2016.3' into '2016.11'
...
Conflicts:
- salt/loader.py
- salt/output/highstate.py
- salt/runners/fileserver.py
2017-02-08 16:57:54 -07:00
Erik Johnson
1b9217d636
Update jsonschema tests to reflect change in jsonschema 2.6.0 ( #39260 )
...
Version 2.6.0 changed the wording of one of the exceptions tested,
causing tests to fail when jsonschema 2.6.0 is installed. This commit
updates the tests to change the assert for 2.6.0 and later.
2017-02-08 16:51:56 -07:00
Bo Maryniuk
a112b790fe
Fix typo
2017-01-25 21:15:05 +01:00
Bo Maryniuk
47a16916c3
Add unit test
2017-01-25 15:44:38 +01:00
Alexander Weidinger
30fe5641c7
fix parsing of sockstat -4
2017-01-22 02:06:25 +01:00
rallytime
ce6d1b103d
Make sure we're using the opts dict mocking in parsers_test
...
The additional call to parser.parse_args(args) negates the first
patch to running self.config_func. We want the opts that we set
up in the above test to patch the setup args when the parse_args
func is called. This updates the mock to work with better with
patch and removes the additional parser.parse_args call.
2017-01-20 10:20:51 -07:00
rallytime
315b2c8712
Merge branch '2016.3' into '2016.11'
...
Conflicts:
- salt/modules/win_system.py
- tests/unit/modules/win_system_test.py
2017-01-18 14:16:45 -07:00
Denys Havrysh
9bd203ffcc
Fix #38388
...
If `log_level_logfile` is not set explicitly it should inherit the
level set by `log_level` configuration option.
2017-01-18 19:16:38 +02:00
Alexey Aksenov
42d3d26f28
[38073] Fix test assertion
2016-12-16 13:37:50 +03:00
Alexey Aksenov
9b37ead913
Fix broken os.write without string.encode
...
Fixes #38048
2016-12-16 13:33:59 +03:00
Alexey Aksenov
70c8db5489
Fix decoding of broken string from remote sources
...
Fixes #38070
Suggest to replace incorrect UTF symbols with the special replacement character.
This would simplily interation with broken things in the real world.
https://docs.python.org/3/howto/unicode.html#the-unicode-type
2016-12-15 14:33:33 +03:00
rallytime
342884018b
Fix SaltKeyOptionParserTestCase test failures
2016-12-06 15:03:44 -07:00
rallytime
74a417e527
Update the mocked cloud configs to also include master configs
...
The master configs are injected into the cloud configs, and we need
them here in order to get the `user` default for the parsers test.
2016-12-02 15:38:53 -07:00
rallytime
8fd53a4808
Merge branch '2016.3' into '2016.11'
...
Conflicts:
- doc/topics/cloud/vsphere.rst
- salt/config/__init__.py
- salt/daemons/masterapi.py
- salt/templates/rh_ip/network.jinja
- salt/utils/parsers.py
- tests/unit/daemons_test.py
2016-12-02 12:18:18 -07:00
Denys Havrysh
518a3dd7ee
Add unit tests for Salt parsers processing logging options
2016-11-21 16:53:29 +02:00
Nicole Thomas
2e8e56ca69
[PY3] Change log.warn statements to log.warning ( #37531 )
...
* [PY3] Change log.warn statements to log.warning
log.warn is deprecated in Python 3. This change removes the
occurance of deprecation warnings for using log.warn. For example:
```
17:24:23 [WARNING ] /testing/salt/utils/verify.py:522: DeprecationWarning: The 'warn' method is deprecated, use 'warning' instead
17:24:23 log.warn('Insecure logging configuration detected! Sensitive data may be logged.')
17:24:23
17:24:23 [WARNING ] Insecure logging configuration detected! Sensitive data may be logged.
```
* Tweak unit.utils.verify_test to using warning instead of warn
2016-11-08 13:06:54 -07:00
rallytime
e10058c831
Merge branch '2016.3' into 'carbon'
...
No conflicts.
2016-10-31 10:15:25 -06:00
Mike Place
02d61e5928
Lint
2016-10-31 23:21:43 +13:00
Mike Place
3d36f47d53
Skip process test on < 2.7
...
There is an unfixed bug in 2.6 that makes this unstable.
2016-10-31 23:20:48 +13:00
Mike Place
a6b7417fe9
SIGILL -> SIGKILL in process test
...
Fairly sure this was a typo. cc: @s0undt3ch
2016-10-31 20:54:42 +13:00
Mike Place
36f47a4449
Reset dir for extend test
2016-10-28 15:02:13 +09:00
rallytime
caa8fc9169
Merge branch '2016.3' into 'carbon'
...
Conflicts:
- pkg/deb/salt-api.service
- pkg/deb/salt-master.service
- salt/client/__init__.py
- salt/fileclient.py
- salt/modules/cp.py
- salt/modules/status.py
- tests/integration/__init__.py
- tests/integration/modules/cp.py
2016-10-21 15:50:03 -06:00
Dmitry Kuzmenko
4695619599
Updated host_to_ip to return all the IPs instead of the first one.
...
This fixes the bug #36866 where minion gets __master_disconnected right
after connect because '::1' isn't in the list of connected masters that
is ['127.0.0.1'].
2016-10-20 18:15:27 +03:00
Mike Place
d7aebd1877
Remove unnecessary sleep from unit.utils.process_test.TestProcessManager.test_restarting
2016-10-20 14:29:10 +09:00
Nicole Thomas
a8eee6e90b
Update the ip to test against in unit.utils.network_test.NetworkTestCase.test_host_to_ip ( #36975 )
2016-10-13 10:25:58 -06:00
C. R. Oldham
755c069fb9
Align tests for new calls
2016-09-21 16:08:28 -06:00
C. R. Oldham
3c62ceb3b4
Fix salt-cloud breakage--local traversal was skipping what we needed. Fixes #36301
...
Align tests for new calls
More specific 'skip' selection for PropertyCollector depending on local_properties request.
2016-09-21 09:43:14 -06:00
Nicole Thomas
2f16e43d67
Update the extend.py and extend_test.py imports ( #36382 )
...
When using `fopen`, we need to import all of salt.utils. We should
also be explicit about calling salt.utils.fopen.
This also cleans up the ordering of the salttesting vs salt libs to
be consistent with other files and conform with `ensure_is_syspath`.
Also changes a print statement to a log.info
2016-09-16 16:26:13 -06:00
rallytime
26cf545d03
Merge branch '2016.3' into 'carbon'
...
Conflicts:
- salt/utils/gitfs.py
- tests/unit/modules/disk_test.py
2016-09-16 10:35:49 -06:00
rallytime
37aea4188a
Merge branch '2015.8' into '2016.3'
...
No conflicts.
2016-09-16 09:24:17 -06:00
Mike Place
70ffdafbf0
Schema test requires jsonschema 2.5.0 or above
2016-09-15 17:23:51 -06:00
Mike Place
340d7fdc53
Schema test requires jsonschema 2.5.0 or above
2016-09-15 12:20:49 -06:00
Mike Place
93f2d108ae
Fix extend test
...
The test suite can't guarantee what the pwd will be. Pass it into the function under test.
2016-09-15 20:39:39 +09:00
Pablo Suárez Hernández
52a7ed605e
Fixed _interfaces_ifconfig output for SunOS test
2016-09-08 12:39:28 +01:00
Eric Radman
29814f9d43
Skip utils_test if timelib is not installed ( #32699 )
...
date_cast() throws a RuntimeError, not an ImportError
2016-09-08 12:39:28 +01:00
Pablo Suárez Hernández
305bab8be0
Fixed _interfaces_ifconfig output for SunOS test
2016-09-08 11:36:17 +01:00
Eric Radman
5977f1f54c
Skip utils_test if timelib is not installed ( #32699 )
...
date_cast() throws a RuntimeError, not an ImportError
2016-09-08 11:36:17 +01:00
Justin Anderson
3f7e4d9f59
traversal_spec has skip=True, not false ( #35877 )
2016-08-29 16:12:16 -06:00
Nicole Thomas
27697e952a
Pylint fixes for develop branch ( #35863 )
2016-08-29 12:20:50 -06:00
Mike Place
409f17aa58
Merge pull request #35673 from cro/proxy_getsi_fix
...
Proxies don't handle reusing the SmartConnect instances very well. D…
2016-08-29 13:11:35 +09:00
Mike Place
5bb62345f6
Merge pull request #35728 from alexbleotu/vmware_enhancements-gh
...
Vmware enhancements gh
2016-08-29 12:54:14 +09:00
rallytime
2b1ad9e9b9
Merge branch '2016.3' into 'develop'
...
Conflicts:
- salt/utils/gitfs.py
2016-08-26 14:54:54 -06:00
rallytime
e8e73b55ac
Merge branch '2015.8' into '2016.3'
...
Conflicts:
- doc/topics/jobs/schedule.rst
- salt/states/user.py
2016-08-26 13:21:12 -06:00