Silvio Moioli
a32ee4af05
zypper_test: correct mock behavior
...
Previously incorrect, although the test passed
2017-07-21 08:14:37 +02:00
rallytime
ccf790a83f
Update all references for moved functions to use "files" util
...
- fopen
- flopen
- fpopen
- safe_rm
- is_empty
- is_fcntl_available
2017-07-18 10:31:01 -06:00
rallytime
3c823109a1
Lint: Remove extra blank line
2017-06-28 13:29:31 -06:00
rallytime
e512a29f08
Merge branch '2017.7' into 'develop'
...
Conflicts:
- salt/modules/state.py
- salt/modules/yumpkg.py
- salt/modules/zypper.py
- salt/states/pkg.py
- salt/version.py
- tests/unit/config/test_config.py
- tests/unit/modules/test_zypper.py
2017-06-28 11:31:53 -06:00
Bo Maryniuk
b08d790ede
Lintfix: wrap lines over 120 chars
2017-06-19 14:54:22 +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
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
Mike Place
49f93cb091
Merge pull request #41405 from isbm/isbm-zypper-wildcards-dev
...
Wildcards for Zypper
2017-05-24 11:57:42 -05:00
Bo Maryniuk
22732504a3
Add UT for unsupported operators
2017-05-24 16:29:59 +02:00
Bo Maryniuk
a579ffc166
Lintfixes
2017-05-24 15:19:39 +02:00
Bo Maryniuk
3d40688cd9
Add UT for operator conditions
2017-05-24 13:55:49 +02:00
Bo Maryniuk
0bf0950158
Add UT for typecheck on the output data
2017-05-24 13:55:49 +02:00
Bo Maryniuk
20ff494b93
Add UT for None type verification if version has been not passed
2017-05-24 13:55:49 +02:00
Bo Maryniuk
c806128d51
Add UT for wildcard finder usage
2017-05-24 13:55:49 +02:00
Bo Maryniuk
552b3265d0
Test the exact methods for matcher
2017-05-24 13:55:49 +02:00
Bo Maryniuk
561ae0b8c8
Add UT for exact match of the pattern at the beginning
2017-05-24 13:55:49 +02:00
Bo Maryniuk
b1ddcccda0
Add UT for exact match of the pattern at the end
2017-05-24 13:55:49 +02:00
Bo Maryniuk
4c9dd39118
Add UT to match multiple asterisks
2017-05-24 13:55:49 +02:00
Bo Maryniuk
8839f7219b
Add UT for matching all versions
2017-05-24 13:55:49 +02:00
Bo Maryniuk
5988e3b5d3
Fix a docstring
2017-05-24 13:55:49 +02:00
Bo Maryniuk
508c439b2b
Rename UT to a proper name
2017-05-24 13:55:49 +02:00
Bo Maryniuk
3b44018f58
Add unit test scaffold for wildcard support
2017-05-24 13:55:49 +02:00
rallytime
718b0adc70
Merge branch 'nitrogen' into 'develop'
...
Conflicts:
- salt/modules/zypper.py
- tests/unit/utils/test_network.py
2017-05-23 09:05:13 -06: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
rallytime
9668480fc5
Merge branch 'nitrogen' into 'develop'
...
No conflicts.
2017-05-16 19:58:21 -06: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
rallytime
f875ee3309
Merge branch 'nitrogen' into 'develop'
...
Conflicts:
- tests/integration/runners/test_runner_returns.py
2017-04-28 09:26:26 -06:00
Pedro Algarvio
abe608d739
Drop @patch
usage
2017-04-28 13:36:42 +01:00
Pablo Suárez Hernández
9b241b7338
Adapting Zypper test to new list_downloaded output
2017-04-26 12:35:27 +01:00
Pablo Suarez Hernandez
ddf98e3fe3
Enhances pkg.list_downloaded information of a package
2017-04-26 12:34:13 +01:00
Pablo Suárez Hernández
bd1f170a05
Fixes Zypper unit test
2017-04-19 10:18:46 +01:00
Pablo Suárez Hernández
fa9e7f01f7
Pylint fix
2017-04-17 14:18:09 +01:00
Pablo Suárez Hernández
40422ecd02
Adding more unit tests for Zypper module
2017-04-17 13:06:35 +01:00
Pablo Suárez Hernández
5701e90803
Adding unit tests for Zypper execution module
2017-04-17 13:02:08 +01:00
Pedro Algarvio
61003bca0a
Take care of resource leakage on tests
2017-04-04 18:58:20 +01:00
Pedro Algarvio
9a11538b54
Stop using deprecated TestCase methods
2017-04-01 14:22:57 +01:00