Denys Havrysh
38d587c5fe
grains.filter_by: lookup_dict key could be a globing pattern
2016-08-24 17:52:14 +03:00
Denys Havrysh
6d80302e54
grains.filter_by: allow grain value to be a list
2016-08-11 16:11:44 +03:00
rallytime
4e88ffe3e4
Lint and change version added for #31673
...
Merges #31673
2016-03-04 15:02:19 -07:00
Christophe Drevet-Droguet
12db98ea23
grains.get ordered parameter implementation
2016-03-04 09:19:30 +01:00
Benjamin Drung
470e82f17f
Fix typo an dictionnary -> dictionary
2015-11-04 11:06:09 +01:00
Christophe Drevet-Droguet
c63913e602
grains module: simpler comment for already set key
2015-11-02 09:31:44 -05:00
Christophe Drevet-Droguet
7b9451451f
module grains tests: test list order preservation
2015-06-04 09:52:09 +02:00
Christophe Drevet-Droguet
756f5d8716
new set function for module grains, and unit tests
2015-06-02 15:41:26 +02:00
Colton Myers
7d8038f134
Merge remote-tracking branch 'upstream/2015.5' into merge-forward-develop
...
Conflicts:
debian/changelog
salt/modules/win_pkg.py
salt/pillar/__init__.py
salt/states/file.py
2015-05-14 10:27:00 -06:00
Colton Myers
acdd3fc6bd
Fix lint
2015-05-13 11:47:43 -06:00
Colton Myers
680e88f058
Merge remote-tracking branch 'upstream/2014.7' into merge-forward-2015.5
...
Conflicts:
salt/modules/ebuild.py
tests/unit/modules/grains_test.py
2015-05-12 16:06:36 -06:00
Christophe Drevet-Droguet
ebff9df5b2
fix pylint errors
2015-05-11 21:21:10 +02:00
Christophe Drevet-Droguet
c4954046ad
unit tests for grains.append module function
...
- separate test functions for every return
- add tests for nested lists
- add test for appending to an element of a list (fails silently)
2015-05-10 17:27:32 +02:00
Christophe Drevet-Droguet
0c9a32326c
use MagickMock
2015-05-09 18:34:02 +02:00
Christophe Drevet-Droguet
c838a22377
unit tests for grains.append module function
2015-05-08 21:01:36 +02:00
Pedro Algarvio
60f215f191
Add from __future__ import absolute_import
2015-01-30 22:25:04 +00:00
Thayne Harbaugh
65e477dd67
Improve filter_by() base argument:
...
* Change filter_by() base argument to a key in lookup_dict rather
than a dictionary. This allows more compact usage and more
readable use of base values/defaults in the lookup_dict.
* Change/improve function-local documentation for lookup_dict().
* Add specific use-case of "base" argument for lookup_dict() in the
formulas documentation.
* Expand filter_by() unit testing to validate use of base argument.
* Add unit test for salt.utils.dictupdate.update() to provide
complete depth-of-testing of filter_by() which uses
dictupdate.update().
2014-10-24 11:13:47 -06:00
Chris Rebert
177c168a21
Fix numerous typos found via Lintian
...
Thanks https://github.com/Debian/lintian/tree/master/data/spelling !
2014-08-11 10:46:43 -07:00
Pedro Algarvio
f2e3a4aebe
Fix PyLint C0322 and C0324 - Spaces around opertor and commas
2013-11-27 12:48:53 +00:00
Pedro Algarvio
0ae1a15c61
PEP8 E302 and E303 blank lines fixes.
2013-11-27 12:11:45 +00:00
Pedro Algarvio
d02a2bc224
Include the python encoding file header on tests.
2013-11-27 11:19:24 +00:00
Pedro Algarvio
544f7e127d
Don't use the deprecated self.assertEquals()
.
2013-11-09 09:01:18 +00:00
regilero
9dce9ac304
Add unit tests for grains.filter_by
2013-11-07 17:15:30 +01:00