mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge branch '2016.11' into '2017.7'
No conflicts.
This commit is contained in:
commit
fe81e2d39a
3 changed files with 6 additions and 5 deletions
|
@ -11,6 +11,7 @@ This section contains a list of the Python modules that are used to extend the v
|
|||
../ref/auth/all/index
|
||||
../ref/beacons/all/index
|
||||
../ref/cache/all/index
|
||||
../ref/clouds/all/index
|
||||
../ref/engines/all/index
|
||||
../ref/file_server/all/index
|
||||
../ref/grains/all/index
|
||||
|
|
|
@ -29,7 +29,7 @@ setup_test_virtualenv:
|
|||
|
||||
carbon-weird-setup:
|
||||
pip.installed:
|
||||
- name: carbon
|
||||
- name: 'carbon < 1.1'
|
||||
- no_deps: True
|
||||
- bin_env: {{ virtualenv_test }}
|
||||
- onchanges:
|
||||
|
|
|
@ -159,19 +159,19 @@ class PipStateTest(ModuleCase, SaltReturnAssertsMixin):
|
|||
# some of the state return parts
|
||||
for key in six.iterkeys(ret):
|
||||
self.assertTrue(ret[key]['result'])
|
||||
if ret[key]['name'] != 'carbon':
|
||||
if ret[key]['name'] != 'carbon < 1.1':
|
||||
continue
|
||||
self.assertEqual(
|
||||
ret[key]['comment'],
|
||||
'There was no error installing package \'carbon\' '
|
||||
'There was no error installing package \'carbon < 1.1\' '
|
||||
'although it does not show when calling \'pip.freeze\'.'
|
||||
)
|
||||
break
|
||||
else:
|
||||
raise Exception('Expected state did not run')
|
||||
finally:
|
||||
if os.path.isdir('/opt/graphite'):
|
||||
shutil.rmtree('/opt/graphite')
|
||||
if os.path.isdir(ographite):
|
||||
shutil.rmtree(ographite)
|
||||
|
||||
def test_issue_2028_pip_installed_state(self):
|
||||
ret = self.run_function('state.sls', mods='issue-2028-pip-installed')
|
||||
|
|
Loading…
Add table
Reference in a new issue