2aa24ee make sure IPA_CONFDIR is used to check that client is configured

2 files Authored by abbra 5 years ago, Committed by cheimes 5 years ago,
    make sure IPA_CONFDIR is used to check that client is configured
    
    Fixes a test ipatests/test_cmdline/test_cli.py:test_cli_fs_encoding()
    which sets IPA_CONFDIR and attempts to interpret the resulting error
    message. However, if the test is run on an enrolled machine (a
    developer's laptop, for example), check_client_configuration() will
    succeed because it ignores IPA_CONFDIR and, as result, api.finalize()
    will fail later with a stacktrace.
    
    Pass an environment object and test an overridden config file existence
    in this case to fail with a proper and expected message.
    
    Reviewed-By: Christian Heimes <cheimes@redhat.com>
    
        
file modified
+1 -1
file modified
+4 -3