'Create and upload repository dependency definitions.'

def test_0035_create_and_upload_dependency_definitions(self):

    global running_standalone
    if running_standalone:
        bwa_color_repository = self.test_db_util.get_repository_by_name_and_owner(bwa_color_repository_name, common.test_user_1_name)
        bwa_base_repository = self.test_db_util.get_repository_by_name_and_owner(bwa_base_repository_name, common.test_user_1_name)
        emboss_datatypes_repository = self.test_db_util.get_repository_by_name_and_owner(emboss_datatypes_repository_name, common.test_user_1_name)
        emboss_repository = self.test_db_util.get_repository_by_name_and_owner(emboss_repository_name, common.test_user_1_name)
        filtering_repository = self.test_db_util.get_repository_by_name_and_owner(filtering_repository_name, common.test_user_1_name)
        freebayes_repository = self.test_db_util.get_repository_by_name_and_owner(freebayes_repository_name, common.test_user_1_name)
        dependency_xml_path = self.generate_temp_path('test_0090', additional_paths=['freebayes'])
        freebayes_tuple = (self.url, freebayes_repository.name, freebayes_repository.user.username, self.get_repository_tip(freebayes_repository))
        emboss_tuple = (self.url, emboss_repository.name, emboss_repository.user.username, self.get_repository_tip(emboss_repository))
        datatypes_tuple = (self.url, emboss_datatypes_repository.name, emboss_datatypes_repository.user.username, self.get_repository_tip(emboss_datatypes_repository))
        filtering_tuple = (self.url, filtering_repository.name, filtering_repository.user.username, self.get_repository_tip(filtering_repository))
        self.create_repository_dependency(repository=emboss_repository, repository_tuples=[datatypes_tuple], filepath=dependency_xml_path)
        self.create_repository_dependency(repository=filtering_repository, repository_tuples=[freebayes_tuple], filepath=dependency_xml_path)
        self.create_repository_dependency(repository=bwa_base_repository, repository_tuples=[emboss_tuple], filepath=dependency_xml_path)
        self.create_repository_dependency(repository=bwa_color_repository, repository_tuples=[filtering_tuple], filepath=dependency_xml_path)
