mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2024-12-25 08:21:05 -06:00
test_config: fix fips_mode key in Env
Setting fips_mode to object would fail if ipaplatform.tasks module wasn't present. https://fedorahosted.org/freeipa/ticket/5695 Reviewed-By: Christian Heimes <cheimes@redhat.com>
This commit is contained in:
parent
770d4cda43
commit
5055b34cef
@ -562,9 +562,9 @@ class test_Env(ClassChecker):
|
|||||||
|
|
||||||
# Test using DEFAULT_CONFIG:
|
# Test using DEFAULT_CONFIG:
|
||||||
defaults = dict(constants.DEFAULT_CONFIG)
|
defaults = dict(constants.DEFAULT_CONFIG)
|
||||||
defaults['fips_mode'] = object
|
|
||||||
(o, home) = self.finalize_core(None, **defaults)
|
(o, home) = self.finalize_core(None, **defaults)
|
||||||
assert list(o) == sorted(defaults)
|
list_o = [key for key in o if key != 'fips_mode']
|
||||||
|
assert list_o == sorted(defaults)
|
||||||
for (key, value) in defaults.items():
|
for (key, value) in defaults.items():
|
||||||
if value is object:
|
if value is object:
|
||||||
continue
|
continue
|
||||||
|
Loading…
Reference in New Issue
Block a user