Fixed test cases for Utilities when default_binary_path is not provided in test_config file.

This commit is contained in:
Akshay Joshi 2018-10-22 13:22:35 +05:30
parent 6bc6bc7f60
commit 2058cdf662
6 changed files with 6 additions and 0 deletions

View File

@ -641,6 +641,7 @@ class BackupCreateJobTest(BaseTestGenerator):
def setUp(self): def setUp(self):
if 'default_binary_paths' not in self.server or \ if 'default_binary_paths' not in self.server or \
self.server['default_binary_paths'] is None or \
self.server['type'] not in self.server['default_binary_paths'] or \ self.server['type'] not in self.server['default_binary_paths'] or \
self.server['default_binary_paths'][self.server['type']] == '': self.server['default_binary_paths'][self.server['type']] == '':
self.skipTest( self.skipTest(

View File

@ -40,6 +40,7 @@ class BackupJobTest(BaseTestGenerator):
def setUp(self): def setUp(self):
if 'default_binary_paths' not in self.server or \ if 'default_binary_paths' not in self.server or \
self.server['default_binary_paths'] is None or \
self.server['type'] not in self.server['default_binary_paths'] or\ self.server['type'] not in self.server['default_binary_paths'] or\
self.server['default_binary_paths'][self.server['type']] == '': self.server['default_binary_paths'][self.server['type']] == '':
self.skipTest( self.skipTest(

View File

@ -41,6 +41,7 @@ class MaintenanceJobTest(BaseTestGenerator):
def setUp(self): def setUp(self):
if 'default_binary_paths' not in self.server or \ if 'default_binary_paths' not in self.server or \
self.server['default_binary_paths'] is None or \
self.server['type'] not in self.server['default_binary_paths'] or\ self.server['type'] not in self.server['default_binary_paths'] or\
self.server['default_binary_paths'][self.server['type']] == '': self.server['default_binary_paths'][self.server['type']] == '':
self.skipTest( self.skipTest(

View File

@ -130,6 +130,7 @@ class MaintenanceCreateJobTest(BaseTestGenerator):
def setUp(self): def setUp(self):
if 'default_binary_paths' not in self.server or \ if 'default_binary_paths' not in self.server or \
self.server['default_binary_paths'] is None or \
self.server['type'] not in self.server['default_binary_paths'] or\ self.server['type'] not in self.server['default_binary_paths'] or\
self.server['default_binary_paths'][self.server['type']] == '': self.server['default_binary_paths'][self.server['type']] == '':
self.skipTest( self.skipTest(

View File

@ -63,6 +63,7 @@ class RestoreJobTest(BaseTestGenerator):
def setUp(self): def setUp(self):
if 'default_binary_paths' not in self.server or \ if 'default_binary_paths' not in self.server or \
self.server['default_binary_paths'] is None or \
self.server['type'] not in self.server['default_binary_paths'] or\ self.server['type'] not in self.server['default_binary_paths'] or\
self.server['default_binary_paths'][self.server['type']] == '': self.server['default_binary_paths'][self.server['type']] == '':
self.skipTest( self.skipTest(

View File

@ -293,6 +293,7 @@ class RestoreCreateJobTest(BaseTestGenerator):
def setUp(self): def setUp(self):
if 'default_binary_paths' not in self.server or \ if 'default_binary_paths' not in self.server or \
self.server['default_binary_paths'] is None or \
self.server['type'] not in self.server['default_binary_paths'] or\ self.server['type'] not in self.server['default_binary_paths'] or\
self.server['default_binary_paths'][self.server['type']] == '': self.server['default_binary_paths'][self.server['type']] == '':
self.skipTest( self.skipTest(