mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Remove non-functional test
This test was written using an incorrect assumption that the pillar_roots key created during git_pillar execution lives any longer than the run that compiles the git_pillar data for a given git_pillar.
This commit is contained in:
parent
b80da6e23a
commit
86f00e71bf
1 changed files with 0 additions and 15 deletions
|
@ -113,21 +113,6 @@ class PillarModuleTest(integration.ModuleCase):
|
|||
|
||||
self.assertEqual(grepo.rp_location, repo.remotes.origin.url)
|
||||
|
||||
@skipIf(HAS_GIT_PYTHON is False,
|
||||
'GitPython must be installed and >= version {0}'.format(GIT_PYTHON))
|
||||
def test_ext_pillar_env_mapping(self):
|
||||
import os
|
||||
from salt.pillar import git_pillar
|
||||
|
||||
repo_url = 'https://github.com/saltstack/pillar1.git'
|
||||
pillar = self.run_function('pillar.data')
|
||||
|
||||
for branch, env in [('dev', 'testing')]:
|
||||
repo = git_pillar._LegacyGitPillar(branch, repo_url, self.master_opts)
|
||||
|
||||
self.assertIn(repo.working_dir,
|
||||
pillar['test_ext_pillar_opts']['pillar_roots'][env])
|
||||
|
||||
if __name__ == '__main__':
|
||||
from integration import run_tests
|
||||
run_tests(PillarModuleTest)
|
||||
|
|
Loading…
Add table
Reference in a new issue