Project

General

Profile

« Previous | Next » 

Revision 1c65dd5c

Added by koszko over 1 year ago

adapt to changes in file path format

From now on we assume Hydrilla serves file contents at 'file/sha256/' instead of 'file/sha256-'.
With this commit we also stop using the "hash_key" property internally.

View differences:

test/unit/test_item_list.py
106 106
    sample_data = {
107 107
        'resources': {},
108 108
        'mappings': {},
109
        'files': sample_files_by_hash
109
        'file': {
110
            'sha256': sample_files_by_sha256
111
        }
110 112
    }
111 113

  
112 114
    indexes_added = set()
......
189 191
    sample_data = {
190 192
        'resources': {},
191 193
        'mappings': {},
192
        'files': sample_files_by_hash
194
        'file': {
195
            'sha256': sample_files_by_sha256
196
        }
193 197
    }
194 198
    sample_data[item_type + 's'] = sample_data_dict(items)
195 199

  

Also available in: Unified diff