File attributes (#18213)

* added attributes to base file params

* dont change attributes when none

* fixed test to deal with new attributes
This commit is contained in:
Brian Coca 2016-11-07 15:48:04 -05:00 committed by GitHub
parent 7a33c14782
commit a0f27d552c
3 changed files with 100 additions and 1 deletions

View file

@ -422,6 +422,7 @@ class TestModuleUtilsBasic(ModuleTestCase):
final_params.update(dict(
path = '/path/to/real_file',
secontext=['unconfined_u', 'object_r', 'default_t', 's0'],
attributes=None,
))
# with the proper params specified, the returned dictionary should represent