Alessandro -oggei- Ogier
216ced69e5
allow comma-separated pkgs lists, quote args, test deb behaviour
2017-08-24 12:00:36 +02:00
Erik Johnson
d5b2a0be68
Resolve image ID during container comparison
...
This fixes an issue where inspecting the container returns an image ID
instead of an image name, resulting in a spurious report of a changed
image. By resolving the image down to its ID for both the existing and
new containers, we ensure we're comparing ID to ID.
2017-08-23 12:23:33 -05:00
Alessandro -oggei- Ogier
42a118ff56
fixed cmd composition and unified his making across module
2017-08-22 16:25:54 +02:00
Tarjei Husøy
1a987cb948
Fix broken negation in iptables
...
Introduced in 7c6ff77c
and released with 2017.7.
2017-08-22 09:43:20 -04:00
Mike Place
1a531169fc
Merge pull request #43088 from gtmanfred/2017.7
...
allow docker util to be reloaded with reload_modules
2017-08-21 16:14:36 -06:00
Mike Place
5482524270
Merge pull request #41994 from twangboy/win_unit_test_cmdmod
...
Fix `unit.modules.test_cmdmod` on Windows
2017-08-21 15:53:01 -06:00
Daniel Wallace
373a9a0be4
allow docker util to be reloaded with reload_modules
...
If we reference the actual import, the utils module won't be reloaded, but if
we use `__utils__` it can be reloaded on a pip install
2017-08-21 13:18:08 -06:00
Jochen Breuer
3c99e61637
Renamed test to match new convention
2017-08-18 15:19:34 +02:00
Jochen Breuer
caf78d206d
Fixed imports for pytest
...
Imports now match the new test-suite introduced in 2017.7.
2017-08-18 15:15:20 +02:00
Jochen Breuer
c8e98c8d8a
Added unit tests for Kubernetes module
...
Added unit tests for:
* Node listing,
* deployment listing,
* service listing,
* pod listing,
* deployment deletion and
* deployment creation.
2017-08-16 14:51:16 +02:00
rallytime
c6b9ca4b9e
Lint fix: add missing space
2017-08-15 14:26:44 -04:00
rallytime
a0b19bdc27
Update account id value in boto_secgroup module unit test
...
This value was updated in moto 1.0.0 with the following commit:
5f3fbff627
2017-08-15 14:23:00 -04:00
rallytime
60b406e088
@mock_elb needs to be changed to @mock_elb_deprecated as well
2017-08-15 14:23:00 -04:00
rallytime
6ae1111295
Replace @mock_ec2 calls with @mock_ec2_deprecated calls
...
moto versions >= 1.0.0 have changed the way the mocked connections through
boto are handled with the @mock_ec2 decorator. They use the boto3 connection
method. However, since we are still using boto in many places, we need to use
the new @mock_ec2_deprecated decorator instead to handle the boto connection
functions for the unit tests.
Versions of moto < 1.0.0 are not Python 3 compatible, so salt-jenkins should
be installing newer versions of moto for those tests. Unfortunately, we cannot
install an older version of moto for Python2 that use the original @mock_ec2 call
and also import the @mock_ec2_deprecated function for newer versions of moto
simultaneously as the @mock_ec2_deprecated function doesn't exist in older
versions of moto.
2017-08-15 14:22:59 -04:00
rallytime
6a7bf99848
Lint fix: add missing space
2017-08-11 14:19:15 -04:00
rallytime
7f46603e9c
Update account id value in boto_secgroup module unit test
...
This value was updated in moto 1.0.0 with the following commit:
5f3fbff627
2017-08-10 17:31:14 -04:00
rallytime
7c1d493fdd
@mock_elb needs to be changed to @mock_elb_deprecated as well
2017-08-10 17:15:45 -04:00
rallytime
3055e17ed5
Replace @mock_ec2 calls with @mock_ec2_deprecated calls
...
moto versions >= 1.0.0 have changed the way the mocked connections through
boto are handled with the @mock_ec2 decorator. They use the boto3 connection
method. However, since we are still using boto in many places, we need to use
the new @mock_ec2_deprecated decorator instead to handle the boto connection
functions for the unit tests.
Versions of moto < 1.0.0 are not Python 3 compatible, so salt-jenkins should
be installing newer versions of moto for those tests. Unfortunately, we cannot
install an older version of moto for Python2 that use the original @mock_ec2 call
and also import the @mock_ec2_deprecated function for newer versions of moto
simultaneously as the @mock_ec2_deprecated function doesn't exist in older
versions of moto.
2017-08-10 16:40:11 -04:00
Mike Place
834d6c605e
Set fact gathering style to 'old' for test_junos
...
Without this, we stacktrace because it does not appear that setting
'gather_facts' to False prevents the library from assuming the presence
of facts. I believe this to be an upstream bug with jnpr.
Because they have listed this as being a deprecated option in the future
this may re-break in the future.
2017-08-02 23:11:52 -06:00
Mike Place
2985e4c0e6
Merge pull request #42255 from twangboy/win_unit_test_win_system
...
Fix `unit.modules.test_win_system` for Windows
2017-07-27 14:12:41 -05:00
Nicole Thomas
c793d83d26
Merge pull request #42180 from twangboy/win_unit_test_timezone
...
Fix `unit.modules.test_timezone` for Windows
2017-07-24 08:46:16 -06:00
Nicole Thomas
59e012b485
Merge pull request #42150 from twangboy/win_unit_test_pip
...
Fix `unit.modules.test_pip` for Windows
2017-07-19 10:01:17 -06:00
Nicole Thomas
ade25c6b34
Merge pull request #42154 from twangboy/win_unit_test_reg
...
Fix `unit.modules.test_reg_win` for Windows
2017-07-19 10:00:38 -06:00
Nicole Thomas
07593675e2
Merge pull request #42182 from twangboy/win_unit_test_useradd
...
Fix `unit.modules.test_useradd` for Windows
2017-07-19 09:55:32 -06:00
rallytime
78cdee51d5
Gate boto_elb tests if proper version of moto isn't installed
...
For Python 2 tests, we can use an older version. But when running
these tests of Python 3, we need a newer version of moto that supports
Python 3.
This gates the tests if the expected version of moto is missing.
2017-07-11 17:00:50 -06:00
twangboy
acc0345bc8
Fix unit tests
2017-07-11 12:08:13 -06:00
garethgreenaway
47ade9e91c
Merge pull request #42088 from terminalmage/update-mocking
...
Update mocking in network tests
2017-07-06 15:03:42 -07:00
twangboy
8260a71c07
Disable tests that require pwd in Windows
2017-07-06 13:19:40 -06:00
twangboy
832a3d86dd
Skip tests that use os.symlink on Windows
2017-07-06 13:11:02 -06:00
twangboy
00d9a52802
Fix problem with handling REG_QWORD in list values
2017-07-05 17:44:06 -06:00
twangboy
4ee24202fc
Fix unit tests for test_pip
2017-07-05 15:49:53 -06:00
Erik Johnson
fc27c1a948
Update mocking in network tests
...
017fbdb
changed the function calls in such a way that tests in 2017.7
now fail. This updates the mocking to account for new code paths
introduced in this commit.
2017-07-03 10:43:34 -05:00
Erik Johnson
d942752e95
Fix usage of assert_called_once in Python 3 < 3.6
...
This is a more complete fix which builds upon 41c65b0
and covers all
refs to assert_called_once in the suite.
2017-07-03 09:30:12 -05:00
rallytime
f0416acc37
Add mode back in for tmp file creation on Linux
...
The mode arg was removed in PR #41966 to get this test to pass on
Windows. However, this caused the same test to fail on Arch Linux
when running Python 3.
Let's keep the test the way it was for non-windows boxes, and only
remove the mode for windows.
2017-06-30 12:06:54 -06:00
twangboy
a5f7288ad9
Skip test that uses pwd, not available on Windows
2017-06-28 15:35:35 -06:00
twangboy
bf20938f11
Fixes problem with path
2017-06-28 15:02:12 -06:00
Andreas Ulm
76fd941d91
added tests for rabbitmq 3.6.10 output handler
...
Signed-off-by: Andreas Ulm <andreas.ulm@root360.de>
2017-06-28 01:13:30 +02:00
twangboy
3eca45e000
Fix unit tests for ssh
2017-06-27 15:29:44 -06:00
Mike Place
41c65b0e2c
Gate assert check behind mock ver
2017-06-26 11:04:49 -06:00
Mike Place
eb2bf865b8
Merge branch '2016_11_to_7' of github.com:cachedout/salt into 2016_11_to_7
2017-06-23 10:51:04 -06:00
Erik Johnson
61870075aa
Add building_highstate odict to mock HighState class
2017-06-23 11:48:00 -05:00
Mike Place
00746cafce
Lint fix for win_certutil
2017-06-23 10:11:48 -06:00
Mike Place
8647086de8
Merge branch '2016_11_to_7' of github.com:cachedout/salt into 2016_11_to_7
2017-06-22 15:39:38 -06:00
Erik Johnson
2ee43fc743
Fix default opts handling
...
Starting in 2017.7 the dunder dicts are handled differently in unit
tests.
2017-06-22 13:40:40 -05:00
Mike Place
80cb57e02b
Fix win_certutil merge error
2017-06-22 11:40:56 -06:00
Mike Place
481797b147
Merge branch '2016.11' into '2017.7'
2017-06-21 15:49:39 -06:00
Mike Place
6e9e0714f0
Merge forward from 2016.11 to 2017
2017-06-21 14:51:02 -06:00
Mike Place
a25818b90b
Merge pull request #41872 from DSRCorporation/bugs/py3_DiskTestCase
...
Py3: test_disk fix: don't expect dict iteration order will be the same
2017-06-21 12:09:57 -05:00
Mike Place
eea9cafba0
Merge pull request #41874 from DSRCorporation/bugs/py3_mdadm_test
...
Py3 mdadm test
2017-06-21 12:03:33 -05:00
Mike Place
13df29ed9b
Merge pull request #41877 from Ch3LL/fix_netstat_test
...
Fix netstat and routes test
2017-06-21 11:16:58 -05:00
Mike Place
66f8c83c93
Merge pull request #41566 from morganwillcock/certutil
...
win_certutil: workaround for reading serial numbers with non-English languages
2017-06-21 10:40:28 -05:00
Mike Place
4d0f5c433d
Merge pull request #41679 from terminalmage/get-top-file-envs
...
Prevent unnecessary duplicate pillar compilation
2017-06-21 10:32:42 -05:00
Dmitry Kuzmenko
e1e8d96ef2
Removed unneeded import.
2017-06-21 18:08:44 +03:00
Ch3LL
d2076a6c93
Patch salt.utils.which for test_route test
2017-06-21 10:55:01 -04:00
Ch3LL
51f7e107dc
Patch salt.utils.which for test_netstat test
2017-06-21 10:50:03 -04:00
Erik Johnson
a916e8da49
Improve normalization of saltenv/pillarenv usage for states
2017-06-21 08:49:34 -05:00
Erik Johnson
02f293a19c
Update state unit tests to reflect recent changes
2017-06-21 08:19:05 -05:00
Dmitry Kuzmenko
1401b2d5ba
Py3: mdadm test fix: don't expect kwargs iteration order
2017-06-21 15:45:55 +03:00
Dmitry Kuzmenko
127e48025a
Py3: tests_disk fix: don't expect dict iteration order will be the same
2017-06-21 14:48:59 +03:00
Morgan Willcock
c337d52d0c
Fix test data for test_get_serial, and a typo
2017-06-21 00:26:47 +01:00
Morgan Willcock
7f6961378e
test and lint fixes
2017-06-20 22:30:11 +01:00
Mike Place
4f8714037d
Merge pull request #41851 from DSRCorporation/bugs/py3_tests_nitrogen
...
Minor Py3 related tests fixes.
2017-06-20 15:11:43 -05:00
Mike Place
f04888d88f
Remove unused import
2017-06-20 12:15:50 -06:00
Mike Place
594b7631f7
Merge pull request #41850 from DSRCorporation/bugs/py3_tests_2017.7
...
Py3 tests fix for 2017.7
2017-06-20 12:17:28 -05:00
Dmitry Kuzmenko
ea656e92c6
Py3: Disabled augeas test that segfaults the test suite.
...
Because of a bug in python-augeas:
https://github.com/hercules-team/python-augeas/issues/30
2017-06-20 16:59:38 +03:00
Dmitry Kuzmenko
5a1bdd368e
Py3: minor tests updates
...
Correct skipping explanation and correctly disable by proper conditions.
BTW, mysql works on Py3. There's a port of python-mysql and test passes.
2017-06-20 16:59:38 +03:00
Dmitry Kuzmenko
2cff18e2ef
Py3: fix boto elb test
2017-06-20 16:59:38 +03:00
Dmitry Kuzmenko
9de940d3d3
Py3: don't use mock.assert_called_once implemented in 3.6.
2017-06-20 16:34:22 +03:00
Bo Maryniuk
b08d790ede
Lintfix: wrap lines over 120 chars
2017-06-19 14:54:22 +02:00
Bo Maryniuk
6220380c3d
Remove an older version of the unit test
2017-06-19 14:00:52 +02:00
Bo Maryniuk
d834bc2c8b
Remove old tester.
2017-06-19 13:57:54 +02:00
Pablo Suárez Hernández
fb444db0f2
Search the entire CACHE_DIR because storage paths change across versions
...
Prevents zero length error on Python 2.6
Fixes Zypper unit test
Enhances pkg.list_downloaded information of a package
Listing all patches instead of security ones only
Adapting Zypper test to new list_downloaded output
Fixes zypper test error after backporting
Pylint fixes
2017-06-16 15:28:42 +02:00
Pablo Suárez Hernández
27ef83fd62
Adding support for installing patches in yum/dnf execution module
...
Adding support for installing patches in Zypper module
Adding list_downloaded function to Zypper module
Adding list_downloaded function to Yum module
Adding new pkg.downloaded state
Adding documentation for pkg.downloaded state
Adding pkg.patched and pkg.patch_downloaded states
Check targets for advisory patches installation
Adds support for listing advisory patches with Zypper
Adds support for listing advisory patches with Yum
Improving function naming
Moving advisory ids checks into pkg_resource.parse_targets
Fixes _find_download_targets to call _preflight_check
Fixes parse_targets when advisory id is passed as name
Pylint fixes
Enables pkg.downloaded to verify packages after package manager call.
Adding missing kwargs parameters to pkg.install call
Adding versionadded flags
Some refactoring and minor fixes
Adding unit tests for Zypper execution module
Adding more unit tests for Zypper module
Pylint fix
2017-06-16 15:28:10 +02:00
Peter V. Saveliev
4761e711fe
clean up change
attribute from interface dict
...
The attribute is hidden in IPDB from the high-level logics since
pyroute2 version 0.4.2.
Bug-Url: https://github.com/saltstack/salt/issues/41461
unit tests: add pyroute2 interface dict test
Bug-Url: https://github.com/saltstack/salt/pull/41487
Bug-Url: https://github.com/saltstack/salt/issues/41461
unit tests: fix absolute imports in test_pyroute2
Bug-Url: https://github.com/saltstack/salt/pull/41533
unit tests: add encoding clause into test_pyroute2
Bug-Url: https://github.com/saltstack/salt/pull/41533
unit tests: test_pyroute2 -- add skipIf
... and comments
Bug-Url: https://github.com/saltstack/salt/pull/41533
Update new pyroute2 unit test to conform with 2016.11 branch standards
2017-06-16 14:39:08 +02:00
Michael Calmer
f7cd2f6722
Fix os_family case in unittest
2017-06-16 14:39:08 +02:00
Bo Maryniuk
2d8c9883ff
Use correct grain constants for timezone
...
Adjust the test so it is using the right grain for SUSE systems
Bugfix: use correct grain constant for platform
Refactor with setup/teardown
Add UT for RedHat's set_zone
Fix doc for RH UT
Remove unnecessary mock patch
Doc fix
Add UT for set_zone on SUSE series
Adjust UT to use correct grain for SUSE series
Bugfix: use correct os_family grain value for SUSE series
Add UT for gentoo on set_zone
Add UT for Debian on set_zone
Remove duplicate code
Add UT for get_hwclock on UTC/localtime
Remove dead code
Add UT for get_hwclock on SUSE platform
Bugfix: use correct grain for SUSE and RedHat platform
Add UT for RedHat/SUSE platforms on get_hwclock
Add UT for Debian on get_hwclock
Add UT on Solaris
Add UT for AIX on get_hwclock
Add UT for set_hwclock on AIX
Fix docstrings
Add UT for set_hwclock on solaris
Add UT for set_hwclock on Arch
Add UT for set_hwclock on RedHat
Fix UT names
Add UT set_hwclock on SUSE
Bugfix: use correct grain name for SUSE platform
Add UT for set_hwclock on Debian
Add UT on set_hw_clock on Gentoo
Fix lint issues
Rewrite test case for using no patch decorators
Disable the test for a while
Do not use multiple variables in "with" statement as of lint issues
2017-06-16 14:39:08 +02:00
rallytime
b6cc0b6bf0
Manually backport the changes in PR #41615
...
The automatic back-porting process did't work for this file since the
testing file has been renamed. I manually added the changes to
`timezone_test.py` that were present in PR #41615 .
2017-06-15 08:53:25 -06:00
rallytime
2b51a20d02
Replace "nitrogen" references with 2017.7.0, too!
2017-06-14 12:20:45 -06:00
rallytime
b0145578bf
Update Nitrogen references to 2017.7.0 for states, utils, tests directory
...
Also updated version.py with release tuple
2017-06-14 11:54:27 -06:00
Nicole Thomas
832b96ea05
Merge pull request #41614 from rallytime/merge-nitrogen
...
[nitrogen] Merge forward from 2016.11 to nitrogen
2017-06-06 18:42:44 -06:00
rallytime
8aaadd8787
Revert "Update new pyroute2 unit test to conform with 2016.11 branch standards"
...
This reverts commit 535b8e8d8e
.
2017-06-06 16:35:12 -06:00
Ch3LL
ea147701f4
Fix get_hwclock_aix test on MacOSX
2017-06-06 15:06:08 -04:00
rallytime
1a40e105e5
Merge branch '2016.11' into 'nitrogen'
...
Conflicts:
- tests/integration/__init__.py
- tests/integration/modules/test_state.py
2017-06-06 12:57:44 -06:00
rallytime
535b8e8d8e
Update new pyroute2 unit test to conform with 2016.11 branch standards
2017-06-05 20:55:44 -06:00
Peter V. Saveliev
5c86dee73c
unit tests: test_pyroute2 -- add skipIf
...
... and comments
Bug-Url: https://github.com/saltstack/salt/pull/41533
2017-06-05 17:22:48 -06:00
Peter V. Saveliev
026b39493f
unit tests: add encoding clause into test_pyroute2
...
Bug-Url: https://github.com/saltstack/salt/pull/41533
2017-06-05 17:22:48 -06:00
Peter V. Saveliev
9ab203d54b
unit tests: fix absolute imports in test_pyroute2
...
Bug-Url: https://github.com/saltstack/salt/pull/41533
2017-06-05 17:22:48 -06:00
Peter V. Saveliev
1f507cfa7a
unit tests: add pyroute2 interface dict test
...
Bug-Url: https://github.com/saltstack/salt/pull/41487
Bug-Url: https://github.com/saltstack/salt/issues/41461
2017-06-05 17:22:48 -06:00
Nicole Thomas
a49348cc89
Merge pull request #41535 from rallytime/merge-nitrogen
...
[nitrogen] Merge forward from 2016.11 to nitrogen
2017-06-01 16:25:35 -06:00
rallytime
cb69296f55
Remove test_win_firewall unit tests: they don't actually test anything
2017-06-01 10:07:23 -06:00
Dmitry Kuzmenko
7ba25db473
Replace assertCountEqual not-implemented in Py2
2017-06-01 16:52:09 +03:00
Dmitry Kuzmenko
64954d8e40
Fixed pylint errors.
2017-06-01 16:49:57 +03:00
Dmitry Kuzmenko
4a2406f178
Py3: fixed some tests.
...
tls module: convert bytes to string
gzip util: use BytesIO for 'wb' file
django module: ignore arguments order in assert
pillar module: correctly test pillar merge
2017-06-01 16:49:57 +03:00
rallytime
63ea033ec3
Merge branch '2016.11' into 'nitrogen'
...
Conflicts:
- salt/modules/win_status.py
- salt/states/selinux.py
- tests/unit/modules/test_ssh.py
2017-05-31 14:29:12 -06:00
Mike Place
06ed4f077b
Merge pull request #41337 from Foxlik/2016.11
...
Fix #41335 - list index out of range on empty line in authorized_keys
2017-05-31 14:59:16 -05:00
Tomas Zvala
916fecb64f
modify ssh_test.py, to check empty lines and comments in authorized_keys #41335
2017-05-31 10:56:02 +02:00
rallytime
675937e0ab
Merge branch '2016.11' into 'nitrogen'
...
Conflicts:
- tests/unit/states/test_keystone.py
2017-05-30 10:16:14 -06:00
Nicole Thomas
f7411393e4
Merge pull request #41495 from isbm/bp-41405
...
Takeover from "rallytime:bp-41405"
2017-05-30 09:11:43 -06:00
Mike Place
491d4d941a
Merge pull request #41430 from DSRCorporation/bugs/py3_tests_nitrogen
...
One more bunch of tests fixes.
2017-05-26 16:53:37 -05:00
Petr Michalec
6db8915021
Endpoint handling per region, fixes #35874
...
- extend tests for multiple regions
- region arg by default set to None
- print verbose changes to be exec.
2017-05-26 11:15:29 -06:00
Bo Maryniuk
fa5c2c1672
Add UT for unsupported operators
2017-05-25 12:55:46 -06:00
Bo Maryniuk
157b83c05a
Lintfixes
2017-05-25 12:55:46 -06:00
Bo Maryniuk
43abd345b2
Add UT for operator conditions
2017-05-25 12:55:46 -06:00
Bo Maryniuk
1053daf2d0
Add UT for typecheck on the output data
2017-05-25 12:55:46 -06:00
Bo Maryniuk
5c1259834f
Add UT for None type verification if version has been not passed
2017-05-25 12:55:46 -06:00
Bo Maryniuk
0dd27380b1
Add UT for wildcard finder usage
2017-05-25 12:55:46 -06:00
Bo Maryniuk
5e836a2543
Test the exact methods for matcher
2017-05-25 12:55:46 -06:00
Bo Maryniuk
2af4160a1a
Add UT for exact match of the pattern at the beginning
2017-05-25 12:55:46 -06:00
Bo Maryniuk
5a2248d254
Add UT for exact match of the pattern at the end
2017-05-25 12:55:46 -06:00
Bo Maryniuk
334c634826
Add UT to match multiple asterisks
2017-05-25 12:55:46 -06:00
Bo Maryniuk
f73b39fd3c
Add UT for matching all versions
2017-05-25 12:55:46 -06:00
Bo Maryniuk
a9c3c8bf03
Fix a docstring
2017-05-25 12:55:46 -06:00
Bo Maryniuk
344295666b
Rename UT to a proper name
2017-05-25 12:55:46 -06:00
Bo Maryniuk
369b4bf127
Add unit test scaffold for wildcard support
2017-05-25 12:55:46 -06:00
rallytime
ff0def408b
Whitespace fix
2017-05-25 10:26:06 -06:00
Dmitry Kuzmenko
7a9b4a92af
Fixed syslog-ng test: it passes command as list, not as a string.
2017-05-25 14:33:43 +03:00
Dmitry Kuzmenko
6b0921e5ba
Py3 tests fixes: don't mock non-callable objects with return_value.
...
mock = MagicMock(return_value='') works for functions: here mock() will
return the value (empty string). But mock returns the MagicMock object.
Not sure why but it worked in Py2, but in Py3 os.path.join(mock,
'something'), for instance, returns an error.
Fixed the issues by avoiding of using mocks where we can use simple
strings.
2017-05-25 12:33:43 +03:00
rallytime
9ff2694155
Merge branch '2016.11' into 'nitrogen'
...
Conflicts:
- pkg/salt-minion.service
- salt/modules/junos.py
- salt/modules/localemod.py
- salt/modules/win_system.py
- salt/states/junos.py
- tests/unit/modules/test_localemod.py
- tests/unit/modules/test_win_powercfg.py
- tests/unit/states/dockerng_test.py
2017-05-24 16:32:59 -06:00
Mike Place
88fd3c0ed9
Merge pull request #41336 from mcalmer/fix-locale-on-SUSE
...
fix setting and getting locale on SUSE systems
2017-05-24 12:46:07 -05:00
Benjamin Drung
33a7f8b2ec
Fix typos
...
lintian found several spelling errors.
Signed-off-by: Benjamin Drung <benjamin.drung@profitbricks.com>
2017-05-24 12:50:29 +02:00
rallytime
c6c1d30c48
Merge branch '2016.11' into 'nitrogen'
...
Conflicts:
- salt/modules/yumpkg.py
- salt/spm/__init__.py
- tests/unit/modules/test_zypper.py
- tests/unit/utils/test_network.py
2017-05-20 17:07:34 -06:00
Michael Calmer
f30f5c8a25
fix unit tests
2017-05-19 13:28:52 +02:00
Mike Place
9f359d841f
Merge pull request #41208 from pkazmierczak/pkazmierczak-zypper-multiple-ver-pkgs
...
Fix: zypper handling of multiple version packages
2017-05-18 10:44:26 -05:00
Mike Place
fe38c7cf5e
Merge pull request #41282 from mcdermj/bp-41247
...
JunOS: Change os_install to use get_file instead of get_template
2017-05-17 13:25:26 -05:00
Piotr Kaźmierczak
d411a91676
Reverted back to cascading with statements for python 2.6 compat
2017-05-17 11:52:56 +02:00
rallytime
76714d116b
Mock calls to salt.utils.pkg.clear_rtag call in aptpkg unit tests
2017-05-16 16:00:37 -06:00
Piotr Kaźmierczak
7204013653
Compacted with statements in the unit test.
2017-05-16 22:48:09 +02:00
Piotr Kaźmierczak
6c4c08042c
Added unit tests and copied the behavior to
...
.upgrade method, too.
2017-05-16 20:47:04 +02:00
Jeremy McDermond
3e481cb764
JunOS: Fix whitespace for PEP compliance
2017-05-16 10:00:58 -07:00
Jeremy McDermond
f1751d135a
JunOS: Fix Unit Test
...
When adding the cp.get_file function, we need to add it into the list of
mock functions in the unit test along with get_template or the unit
tests will fail.
2017-05-16 10:00:50 -07:00
rallytime
d23010a114
Merge branch '2016.11' into 'nitrogen'
...
Conflicts:
- salt/modules/aptpkg.py
- salt/states/libcloud_dns.py
- salt/states/pkg.py
- tests/integration/modules/test_pkg.py
- tests/unit/modules/test_mac_brew.py
- tests/unit/modules/test_pkgutil.py
- tests/unit/modules/test_zypper.py
- tests/unit/states/libcloud_dns_test.py
2017-05-15 16:41:59 -06:00
Mike Place
50d8fde123
Merge pull request #41101 from terminalmage/issue40940
...
Fix "latest" keyword for version specification when used with aggregation
2017-05-15 11:52:35 -05:00
Dmitry Kuzmenko
b10730d8a1
Py3: Fixed timezone test.
2017-05-15 19:40:57 +03:00
rallytime
9014033726
Use LoaderModuleMockMixin for setting up default grains/salt dunders
2017-05-10 13:49:43 -06:00
rallytime
c282533612
Use with patch.dict for timezone.__grains__ dictionaries
2017-05-10 10:32:24 -06:00
rallytime
baa8e3f5a6
Move new timezone_test.py tests over to test_timezone.py tests
2017-05-09 16:33:18 -06:00
rallytime
ef0df4a954
Merge branch '2016.11' into 'nitrogen'
...
Conflicts:
- salt/modules/win_network.py
- salt/modules/win_pkg.py
- salt/utils/gitfs.py
- tests/unit/modules/test_win_network.py
- tests/unit/states/test_file.py
2017-05-09 14:32:49 -06:00
Mike Place
a2f359fa13
Merge pull request #40852 from isbm/isbm-fix-coregrains-constants-bsc#1032931
...
Isbm fix coregrains constants bsc#1032931
2017-05-09 12:35:45 -06:00
Bo Maryniuk
f3b12a3f5b
Do not use multiple variables in "with" statement as of lint issues
2017-05-09 10:17:49 +02:00
Bo Maryniuk
35a8d99934
Disable the test for a while
2017-05-08 13:49:54 +02:00
Bo Maryniuk
76cb1b7150
Rewrite test case for using no patch decorators
2017-05-08 10:41:50 +02:00
Erik Johnson
2af89beb53
Merge pull request #41103 from lorengordon/win.get_route
...
Adds a get_route() function to win_network.py
2017-05-06 01:19:41 -05:00
Erik Johnson
92011dbe5f
Fix "latest" keyword for version specification when used with aggregation
...
The "latest" keyword was only implemented when both "name" and "version"
were used, and not for "pkgs". But mod_aggregate puts all packages into
a single low chunk, within "pkgs". This means that using aggregation in
conjuntion with the "latest" keyword no longer resolves the latest
version and thus breaks these states.
This fixes the problem by moving the logic for resolving the "latest"
keyword into _find_install_targets(). It also makes some improvements to
the logic we use to ensure only one package DB refresh is performed per
Salt run, by making the pkg.refresh_db functions handle removing the
rtag file, instead of requiring a call to a helper function everywhere
in the pkg state where we might be calling a function that refreshes the
package DB.
2017-05-06 00:46:06 -05:00
Loren Gordon
93ce5644ea
Adds test for win_network.get_route
2017-05-05 17:32:50 -04:00
Mike Place
044e0b2063
Merge pull request #40860 from twangboy/change_broadcast
...
Remove dependency on win32gui
2017-05-02 10:45:51 -06:00
Erik Johnson
26d2f4a52a
Do not automatically unmask services to start/restart/etc. them
2017-05-01 16:01:35 -05:00
Mike Place
9d12a614b7
Fix failing test
2017-05-01 11:50:39 -06:00
Pedro Algarvio
e6ee82e7be
The expected error message is different on py2 and py3
2017-04-28 13:36:45 +01:00
Pedro Algarvio
abe608d739
Drop @patch
usage
2017-04-28 13:36:42 +01:00
Pedro Algarvio
4b59c351e4
This branch no longer targets py 2.6
2017-04-28 13:33:37 +01:00
Pedro Algarvio
9ffc79ca67
Use tornado HTTPClient directly.
2017-04-28 13:33:35 +01:00
Pedro Algarvio
7480a8e5fb
Check status on setUp
not on the module level @skipIf
decorator
2017-04-28 13:33:34 +01:00
twangboy
e8d440b543
Mock win32api instead of win32gui
2017-04-26 12:41:13 -06:00
twangboy
fa8f9b55d8
Fix unit test, still mocking SendMessageTimout
2017-04-25 10:13:55 -06:00
Bo Maryniuk
f71af0b625
Fix lint issues
2017-04-24 18:46:27 +02:00
Bo Maryniuk
0e6abb3e37
Add UT on set_hw_clock on Gentoo
2017-04-24 16:08:22 +02:00
Bo Maryniuk
a2b1d4638c
Add UT for set_hwclock on Debian
2017-04-24 16:08:22 +02:00
Bo Maryniuk
88e8184702
Add UT set_hwclock on SUSE
2017-04-24 16:08:22 +02:00
Bo Maryniuk
0cd590f927
Fix UT names
2017-04-24 16:08:22 +02:00
Bo Maryniuk
bee94ade63
Add UT for set_hwclock on RedHat
2017-04-24 16:08:22 +02:00
Bo Maryniuk
dfe2610d05
Add UT for set_hwclock on Arch
2017-04-24 16:08:22 +02:00
Bo Maryniuk
d000a8a6f5
Add UT for set_hwclock on solaris
2017-04-24 16:08:22 +02:00
Bo Maryniuk
d2614aedaa
Fix docstrings
2017-04-24 16:08:22 +02:00
Bo Maryniuk
6d782191dc
Add UT for set_hwclock on AIX
2017-04-24 16:08:22 +02:00
Bo Maryniuk
d303e0dd8a
Add UT for AIX on get_hwclock
2017-04-24 16:08:22 +02:00
Bo Maryniuk
86f2d83781
Add UT on Solaris
2017-04-24 16:08:22 +02:00
Bo Maryniuk
c3cafed6d5
Add UT for Debian on get_hwclock
2017-04-24 16:08:22 +02:00
Bo Maryniuk
d337c09357
Add UT for RedHat/SUSE platforms on get_hwclock
2017-04-24 16:08:22 +02:00
Bo Maryniuk
f25dc5c56c
Add UT for get_hwclock on SUSE platform
2017-04-24 16:08:22 +02:00
Bo Maryniuk
08e00c865c
Remove dead code
2017-04-24 16:08:22 +02:00
Bo Maryniuk
1216a0bf12
Add UT for get_hwclock on UTC/localtime
2017-04-24 16:08:22 +02:00
Bo Maryniuk
58676c568d
Add UT for Debian on set_zone
2017-04-24 16:08:22 +02:00
Bo Maryniuk
1b9ce37b1b
Add UT for gentoo on set_zone
2017-04-24 16:08:22 +02:00
Bo Maryniuk
6ed9be985e
Adjust UT to use correct grain for SUSE series
2017-04-24 16:08:22 +02:00
Bo Maryniuk
ce4c836a60
Add UT for set_zone on SUSE series
2017-04-24 16:08:22 +02:00
Bo Maryniuk
155a498b49
Doc fix
2017-04-24 16:08:22 +02:00
Bo Maryniuk
a40876cdac
Remove unnecessary mock patch
2017-04-24 16:08:22 +02:00
Bo Maryniuk
ffab2db213
Fix doc for RH UT
2017-04-24 16:08:22 +02:00
Bo Maryniuk
72388f7ae2
Add UT for RedHat's set_zone
2017-04-24 16:08:22 +02:00
Bo Maryniuk
11595d3a42
Refactor with setup/teardown
2017-04-24 16:08:22 +02:00
Bo Maryniuk
28072c9e41
Adjust the test so it is using the right grain for SUSE systems
2017-04-24 16:08:22 +02:00
Bo Maryniuk
7a0e4be4f8
Add unit test for get_zone and various platforms
2017-04-24 16:08:22 +02:00
rallytime
d5b1241972
Skip tsl unit test when we hit an error due to OpenSSL and junos-eznc packaging conflict
...
he pip junos-eznc package, when installed with PyOpenSSL version 0.14 causes
this test failure. If you either remove junos-eznc, or upgrade PyOpenSSL
(current is 0.17) the test is happy. So, we need to handle this case in the test.
2017-04-20 17:02:33 -06:00
rallytime
f552dd63f3
Merge branch '2016.11' into 'nitrogen'
...
Conflicts:
- pkg/windows/installer/Salt-Minion-Setup.nsi
- tests/unit/states/test_tomcat.py
2017-04-14 10:46:56 -06:00
Ch3LL
60724980ec
fix test_fstype test for mac
2017-04-13 12:04:20 -04:00
rallytime
cd0adb82d6
Spelling fix
2017-04-11 13:35:38 -06:00
rallytime
36f7a6481b
Remove blacklisted loader usage of dunder variables
2017-04-11 12:16:15 -06:00
rallytime
2cd0c5e4ec
Merge branch '2016.11' into 'nitrogen'
...
Conflicts:
- doc/topics/cloud/azurearm.rst
- salt/cloud/clouds/vultrpy.py
- salt/modules/aptpkg.py
- salt/modules/dockermod.py
- tests/unit/modules/dockerng_test.py
- tests/unit/modules/test_pillar.py
2017-04-10 14:09:25 -06:00
rallytime
5a419b8aae
Merge branch '2016.3' into '2016.11'
...
Conflicts:
- salt/modules/pillar.py
2017-04-07 11:23:41 -06:00
Erik Johnson
0c608d7417
Add client_args_mock back to test
...
I removed this incorrectly in resolving a merge conflict.
2017-04-07 08:50:45 -05:00
Erik Johnson
cb4db56eb5
Allow pillar.get to merge list as well as dictionaries
...
This also gets rid of the exception that used to be raised when the
default was not of the proper type, and instead skips merging in those
cases.
2017-04-06 12:24:22 -05:00
Erik Johnson
a6d68f50fe
Merge remote-tracking branch 'upstream/2016.3' into merge-2016.3-2016.11
2017-04-06 10:15:47 -05:00
Pedro Algarvio
843e218572
Remove unmocked patching
2017-04-05 23:17:36 +01:00
Nicole Thomas
4d7871e4d7
Merge pull request #40494 from rallytime/merge-develop
...
[develop] Merge forward from 2016.11 to develop
2017-04-05 14:15:05 -06:00
Mike Place
8da27c9e1d
Merge pull request #40306 from terminalmage/issue40279
...
Don't use context caching for gathering systemd services
2017-04-04 14:36:38 -06:00
Pedro Algarvio
de9ccbdb43
Fix mocked test
2017-04-04 18:58:21 +01:00
Pedro Algarvio
61003bca0a
Take care of resource leakage on tests
2017-04-04 18:58:20 +01:00
Pedro Algarvio
4a43d00d80
Proper mocking
2017-04-04 18:58:19 +01:00
Mike Place
6056ee302a
Merge pull request #40339 from s0undt3ch/features/py3-pt2
...
[WIP] Move unit tests which were in integration tests - More py3 and mocking fixes
2017-04-04 10:21:46 -06:00
Eric Radman
3299f5b2ea
Add mocks to allow keyboard tests to function on non-Linux systems
2017-04-03 22:11:38 -04:00