muchdogesec / arango_cti_processor

A small script that creates relationships between common CTI knowledge-bases in STIX 2.1 format.
https://www.dogesec.com/
Apache License 2.0
3 stars 0 forks source link

Auto imported marking-definition and identity objects not being imported #25

Closed himynamesdave closed 2 months ago

himynamesdave commented 2 months ago

Causing all tests to fail

e.g.

python3 -m unittest tests/test_2_0_capec_to_cwe.py
======================================================================
FAIL: test_01_auto_imported_objects (tests.test_2_0_capec_to_cwe.TestArangoDB)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/dgreenwood/Documents/repos/dogesec/arango_cti_processor/tests/test_2_0_capec_to_cwe.py", line 61, in test_01_auto_imported_objects
    self.assertEqual(result_count, expected_ids, f"Expected {expected_ids}, but found {result_count}.")
AssertionError: Lists differ: [] != ['marking-definition--2e51a631-99d8-52a5-9[63 chars]bf3']

Second list contains 2 additional elements.
First extra element 0:
'marking-definition--2e51a631-99d8-52a5-95a6-8314d3f4fbf3'

- []
+ ['marking-definition--2e51a631-99d8-52a5-95a6-8314d3f4fbf3',
+  'identity--2e51a631-99d8-52a5-95a6-8314d3f4fbf3'] : Expected ['marking-definition--2e51a631-99d8-52a5-95a6-8314d3f4fbf3', 'identity--2e51a631-99d8-52a5-95a6-8314d3f4fbf3'], but found [].