Skip to content

Commit

Permalink
test correct deprecated env opts
Browse files Browse the repository at this point in the history
  • Loading branch information
Ch3LL committed Dec 23, 2019
1 parent 73eb080 commit 6ad853b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/unit/fileserver/test_gitfs.py
Original file line number Diff line number Diff line change
Expand Up @@ -344,13 +344,13 @@ def test_saltenv_whitelist(self):

def test_env_deprecated_opts(self):
'''
ensure deprecated options env_whitelist
and env_blacklist do not cause gitfs to
ensure deprecated options gitfs_env_whitelist
and gitfs_env_blacklist do not cause gitfs to
not load.
'''
opts = salt.utils.yaml.safe_load(textwrap.dedent('''\
env_whitelist: base
env_blacklist: ''
gitfs_env_whitelist: base
gitfs_env_blacklist: ''
'''))
with patch.dict(gitfs.__opts__, opts):
gitfs.update()
Expand Down

0 comments on commit 6ad853b

Please sign in to comment.