Beispiel #1
0
    def search_file_path(self):
        """
        Search File Path

        """
        version = get_ocs_parsed_version()
        files = GATHER_COMMANDS_VERSION[version][self.type_log]
        for file in files:
            self.files_not_exist.append(file)
            for dir_name, subdir_list, files_list in os.walk(self.root):
                if file in files_list:
                    self.files_path[file] = os.path.join(dir_name, file)
                    self.files_not_exist.remove(file)
                    break
Beispiel #2
0
    def verify_noobaa_diagnostics(self):
        """
        Verify noobaa diagnostics folder exist

        """
        if self.type_log == "OTHERS" and get_ocs_parsed_version() >= 4.6:
            flag = False
            logger.info("Verify noobaa_diagnostics folder exist")
            for path, subdirs, files in os.walk(self.root):
                for file in files:
                    if re.search(r"noobaa_diagnostics_.*.tar.gz", file):
                        flag = True
            if not flag:
                logger.error("noobaa_diagnostics.tar.gz does not exist")
                self.files_not_exist.append("noobaa_diagnostics.tar.gz")
Beispiel #3
0
    def search_file_path(self):
        """
        Search File Path

        """
        version = get_ocs_parsed_version()
        if self.type_log == "OTHERS" and storagecluster_independent_check():
            files = GATHER_COMMANDS_VERSION[version]["OTHERS_EXTERNAL"]
        else:
            files = GATHER_COMMANDS_VERSION[version][self.type_log]
        for file in files:
            self.files_not_exist.append(file)
            for dir_name, subdir_list, files_list in os.walk(self.root):
                if file in files_list:
                    self.files_path[file] = os.path.join(dir_name, file)
                    self.files_not_exist.remove(file)
                    break
Beispiel #4
0
 def __init__(self, driver):
     super().__init__(driver)
     ocs_version = str(get_ocs_parsed_version())
     self.ocs_loc = locators[ocs_version]["ocs_operator"]
     self.bucketclass = locators[ocs_version]["bucketclass"]
Beispiel #5
0
 def __init__(self, driver):
     super().__init__(driver)
     ocs_version = str(get_ocs_parsed_version())
     self.obc_loc = locators[ocs_version]["obc"]
Beispiel #6
0
 def __init__(self, driver):
     super().__init__(driver)
     self.wait = WebDriverWait(self.driver, 30)
     ocs_version = str(get_ocs_parsed_version())
     self.ocs_loc = locators[ocs_version]["ocs_operator"]
     self.mcg_stores = locators[ocs_version]["mcg_stores"]