Skip to content

Commit

Permalink
Filepath mapping fix (#204)
Browse files Browse the repository at this point in the history
* remove file.parent_directory_ref mapping since it was breaking on null values. need to go back and fix json-to-stix to account for this case

* fix test
  • Loading branch information
benjamin-craig authored Nov 5, 2019
1 parent 87c62bf commit e077f0c
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion tests/stix_translation/test_qradar_json_to_stix.py
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,6 @@ def test_hashtype_lookup_without_hash_options(self):

file_object = TestTransform.get_first_of_type(objects.values(), 'file')
assert(file_object is not None), 'file object not found'
assert(file_object.get('parent_directory_ref'))
hashes = file_object['hashes']
assert('UNKNOWN' in hashes), 'UNKNOWN hash not included'
directory_object = TestTransform.get_first_of_type(objects.values(), 'directory')
Expand Down

0 comments on commit e077f0c

Please sign in to comment.