Пример #1
0
 def __init__(self, cfg):
     SanityBase.__init__(self, cfg, "sanity_test_02")
     self._namespaces = cfg['namespaces']
     self._prouter = cfg['prouter']
     self._prouter_ip = cfg['prouter']['ips'][0]
     self._prouter_password = cfg['prouter']['passwords'][0]
     self._swift_params = cfg['swift']
     self._image_details = cfg['image']
     self._keystone_ip = self._swift_params['keystone_ip']
     self._port = self._swift_params['keystone_port']
     self._image_name = self._image_details['image_name']
     self._image_version = self._image_details['image_version']
     self._image_family_name = self._image_details['image_family_name']
     self._image_vendor_name = self._image_details['image_vendor_name']
     self._auth_url = 'http://' + self._keystone_ip + ':' + str(self._port) \
                      + '/v3'
     try:
         self._logger.debug("Connecting to swift")
         self._fileutilobj = SwiftFileUtil(
             "", self._auth_url, self._api_server['username'],
             self._api_server['password'], self._api_server['tenant'],
             self._swift_params['auth_version'],
             self._swift_params['container_name'],
             self._swift_params['temp_url_key'],
             self._swift_params['temp_url_key_2'],
             self._swift_params['connection_retry_count'],
             self._swift_params['chosen_temp_url_key'])
     except Exception as e:
         self._exit_with_error(
             "Test failed due to exception while connecting to swift: %s" %
             str(e))
Пример #2
0
 def __init__(self, cfg):
     SanityBase.__init__(self, cfg, 'sanity_test_hitless_upgrade')
     self._namespaces = cfg['namespaces']
     self._prouter = cfg['prouter']
     self._swift_params = cfg['swift']
     self._keystone_ip = self._swift_params['keystone_ip']
     self._port = self._swift_params['keystone_port']
     self._image_details = cfg['images']
     self._image_upgrade_list = cfg['image_upgrade_list']
     self.fabric = cfg['fabric']
     self.upgrade_mode = cfg['upgrade_mode']
     self.advanced_params = cfg['advanced_params']
     self._auth_url = 'http://' + self._keystone_ip + ':' + str(self._port) \
                      + '/v3'
     try:
         self._logger.debug("Connecting to swift")
         self._fileutilobj = SwiftFileUtil(
             "", self._auth_url, self._api_server['username'],
             self._api_server['password'], self._api_server['tenant'],
             self._swift_params['auth_version'],
             self._swift_params['container_name'],
             self._swift_params['temp_url_key'],
             self._swift_params['temp_url_key_2'],
             self._swift_params['connection_retry_count'],
             self._swift_params['chosen_temp_url_key'])
     except Exception as e:
         self._exit_with_error(
             "Test failed due to exception while connecting to swift: %s" %
             str(e))
 def __init__(self, cfg):
     SanityBase.__init__(self, cfg, 'sanity_test_rma_activate')
     self.api_server_host = cfg['api_server']['host']
     rma = cfg['rma']
     self.fabric = rma['fabric']
     self.device_name = rma['device']
     self.serial_number = rma['serial_number']
     self.zeroize_timeout = rma.get('timeout', DEFAULT_ZEROIZE_TIMEOUT)
     self.device_password = rma.get('password', DEFAULT_DEVICE_PASSWORD)
Пример #4
0
 def __init__(self, cfg):
     SanityBase.__init__(self, cfg, 'sanity_test_rma_activate')
     self.api_server_host = cfg['api_server']['host']
     rma = cfg['rma']
     self.fabric = rma['fabric']
     self.device_list = rma['device_list']
     self.zeroize_timeout = rma.get('timeout', DEFAULT_ZEROIZE_TIMEOUT)
     self.job_input = {'rma_devices': []}
     self.job_device_list = []
     self.go_green = False
     self.dev_idx = 0
 def __init__(self, cfg):
     SanityBase.__init__(self, cfg, 'sanity_test_rma_activate')
     self.api_server_host = cfg['api_server']['host']
     rma = cfg['rma']
     self.fabric = rma['fabric']
     self.device_list = rma['device_list']
     self.zeroize_timeout = rma.get('timeout', DEFAULT_ZEROIZE_TIMEOUT)
     self.job_input = {'rma_devices': []}
     self.job_device_list = []
     self.go_green = False
     self.dev_idx = 0
 def __init__(self, cfg):
     SanityBase.__init__(self, cfg, 'sanity_test_hitless_upgrade')
     self._namespaces = cfg['namespaces']
     self._prouter = cfg['prouter']
     self._swift_params = cfg['swift']
     self._keystone_ip = self._swift_params['keystone_ip']
     self._port = self._swift_params['keystone_port']
     self._image_details = cfg['images']
     self._image_upgrade_list = cfg['image_upgrade_list']
     self.fabric = cfg['fabric']
     self.upgrade_mode = cfg['upgrade_mode']
     self.advanced_params = cfg['advanced_params']
     self._auth_url = 'http://' + self._keystone_ip + ':' + str(self._port) \
                      + '/v3'
     try:
         self._logger.debug("Connecting to swift")
         self._fileutilobj = SwiftFileUtil("", self._auth_url,
                                           self._api_server['username'],
                                           self._api_server['password'],
                                           self._api_server['tenant'],
                                           self._swift_params[
                                               'auth_version'],
                                           self._swift_params[
                                               'container_name'],
                                           self._swift_params[
                                               'temp_url_key'],
                                           self._swift_params[
                                               'temp_url_key_2'],
                                           self._swift_params[
                                               'connection_retry_count'],
                                           self._swift_params[
                                               'chosen_temp_url_key']
                                           )
     except Exception as e:
         self._exit_with_error(
             "Test failed due to exception while connecting to swift: %s" %
             str(e))
Пример #7
0
 def __init__(self, cfg):
     SanityBase.__init__(self, cfg, 'sanity_test_delete_devices')
Пример #8
0
 def __init__(self, cfg):
     SanityBase.__init__(self, cfg, 'sanity_test_03')
     self._prouter = cfg['prouter']
 def __init__(self, cfg):
     SanityBase.__init__(self, cfg, 'sanity_test_brownfield_workflow')
     self._namespaces = cfg['namespaces']
     self._prouter = cfg['prouter']
 def __init__(self, cfg):
     SanityBase.__init__(self, cfg, 'sanity_test_brownfield_workflow')
     self._namespaces = cfg['namespaces']
     self._prouter = cfg['prouter']
Пример #11
0
 def __init__(self, cfg):
     SanityBase.__init__(self, cfg, 'sanity_test_container_cleanup')
 def __init__(self, cfg):
     SanityBase.__init__(self, cfg, 'sanity_test_assign_roles')
 def __init__(self, cfg):
     SanityBase.__init__(self, cfg, 'sanity_test_delete_devices')
Пример #14
0
 def __init__(self, cfg):
     SanityBase.__init__(self, cfg, 'sanity_test_01')
     self._namespaces = cfg['namespaces']
     self._prouter = cfg['prouter']
 def __init__(self, cfg):
     SanityBase.__init__(self, cfg, 'sanity_test_fabric_deletion')
 def __init__(self, cfg):
     SanityBase.__init__(self, cfg, 'sanity_test_assign_roles')
 def __init__(self, cfg):
     SanityBase.__init__(self, cfg, 'sanity_test_deactivate_maintenance_mode')
     self.fabric = cfg['fabric']
     self.advanced_params = cfg['advanced_params']
     self.device_name = cfg['mm_device']
Пример #18
0
 def __init__(self, cfg):
     SanityBase.__init__(self, cfg, 'sanity_test_01')
     self._namespaces = cfg['namespaces']
     self._prouter = cfg['prouter']
Пример #19
0
 def __init__(self, cfg):
     SanityBase.__init__(self, cfg, 'sanity_test_fabric_deletion')