rallytime
6886681410
Fix test failures
2016-03-24 16:45:03 -06:00
Christophe Drevet-Droguet
fc9dd356e8
test case: test_list_present_nested_already
2016-03-03 15:17:43 +01:00
Christophe Drevet-Droguet
eee2318873
grains state: allow deleting grain with 'False' value
...
and destroy a grain previously set to None, with destructive=True:
The f46722aaeb
commit, from Bruno Binet <bruno.binet@gmail.com> was
effectively reverted during my work on nested and complex values support.
This commit get it back, plus the ability to destroy a existing grain that
was previously set to None, plus tests for these.
2015-11-02 09:31:44 -05:00
Christophe Drevet-Droguet
576252da05
grains state: list_present, list_absent support nested grain
...
... and custom delimiter
2015-11-02 09:31:44 -05:00
Christophe Drevet-Droguet
62a1f37d86
grains state: nested support for grains.append
2015-11-02 09:31:44 -05:00
Christophe Drevet-Droguet
c19cff517a
grains state: more tests
2015-11-02 09:31:44 -05:00
Christophe Drevet-Droguet
cc844e4a2c
grains state tests: test the grain file content as well
...
It may be overkill, but I'm nervous about this change and
I don't want to mess with the grain file of a lot of people
2015-11-02 09:31:44 -05:00
Christophe Drevet-Droguet
1c5cd4c82d
grains state: changes comment more accurate
2015-11-02 09:31:44 -05:00
Christophe Drevet-Droguet
6b8c245b87
grains state: new tests for nested grains
2015-11-02 09:31:43 -05:00
Mike Place
db9d61251b
Lint
2015-06-29 16:16:11 -06:00
Mike Place
afbe54e677
Reset grains opts on each test
2015-06-29 16:15:41 -06:00
Mike Place
96a6e446da
Try another way to fix grains test
2015-06-29 10:42:13 -06:00
Mike Place
d48af16594
Set grains test to local
2015-06-25 15:30:16 -06:00
Mike Place
e1069741ea
Fix grains test
2015-06-24 10:46:40 -06:00
Christophe Drevet-Droguet
ed4d0646a4
unit tests for state grains: use a subdirectory for config file
...
This way, there is no /tmp/grains created on test execution. And the issue
with test_absent_delete is always triggered.
Maybe we should use mocked files, but I'm not sure how to do it.
2015-06-19 12:49:48 +02:00
Christophe Drevet-Droguet
ff5267b1b6
trying to fix jenkins error
...
There are many jenkins errors on linode CentOS7. The function `saltutil.sync_grains`
does not seem to be mocked correctly on this platform.
Based on 1f5836d0bb
2015-06-19 12:49:28 +02:00
Christophe Drevet-Droguet
650fa90b97
more complete unit tests for state grains
2015-06-19 09:20:23 +02:00
Christophe Drevet-Droguet
8a63d1ebbe
fix state grains silently fails #24319
2015-06-02 13:29:59 +02:00
Christophe Drevet-Droguet
ca1af20203
grains state: add some tests
2015-06-02 13:29:52 +02:00
Jayesh Kariya
3002729f72
adding states/grains unit test case.
2015-04-08 14:13:20 +05:30