Disable syndic install test cases since we need to have a proper configuration file.

This commit is contained in:
Pedro Algarvio 2013-05-23 06:33:56 +01:00
parent a3a4fb01ed
commit 6c1029530b

View file

@ -457,49 +457,49 @@ class InstallationTestCase(BootstrapTestCase):
) )
) )
def test_install_salt_syndic(self): # def test_install_salt_syndic(self):
''' # '''
Test if installing a salt-syndic works # Test if installing a salt-syndic works
''' # '''
if GRAINS['os'] == 'Debian': # if GRAINS['os'] == 'Debian':
self.skipTest( # self.skipTest(
'Currently the debian stable package will have the syndic ' # 'Currently the debian stable package will have the syndic '
'waiting for a connection to a master.' # 'waiting for a connection to a master.'
) # )
elif GRAINS['os'] == 'Ubuntu': # elif GRAINS['os'] == 'Ubuntu':
self.skipTest( # self.skipTest(
'We\'re currently having issues having a syndic running ' # 'We\'re currently having issues having a syndic running '
'right after installation, without any specific ' # 'right after installation, without any specific '
'configuration, under Ubuntu' # 'configuration, under Ubuntu'
) # )
#
args = [] # args = []
if GRAINS['os'] in OS_REQUIRES_PIP_ALLOWED: # if GRAINS['os'] in OS_REQUIRES_PIP_ALLOWED:
args.append('-P') # args.append('-P')
#
args.extend(['-N', '-S']) # args.extend(['-N', '-S'])
#
self.assert_script_result( # self.assert_script_result(
'Failed to install salt-syndic', # 'Failed to install salt-syndic',
0, # 0,
self.run_script( # self.run_script(
args=args, # args=args,
timeout=15 * 60, # timeout=15 * 60,
stream_stds=True # stream_stds=True
) # )
) # )
#
# Try to get the versions report # # Try to get the versions report
self.assert_script_result( # self.assert_script_result(
'Failed to get the versions report from salt-syndic', # 'Failed to get the versions report from salt-syndic',
0, # 0,
self.run_script( # self.run_script(
script=None, # script=None,
args=('salt-syndic', '--versions-report'), # args=('salt-syndic', '--versions-report'),
timeout=15 * 60, # timeout=15 * 60,
stream_stds=True # stream_stds=True
) # )
) # )
def test_install_pip_not_allowed(self): def test_install_pip_not_allowed(self):
''' '''