Closed himynamesdave closed 4 months ago
the step is as follows
s2a = Stix2Arango(host_url="https://cti.blah.net:8529/", collection=...)
)s2a.run()
@fqrious can you show an example in this test
using this s2a command
python3 stix2arango.py \ --file tests/files/arango_cti_processor/arango-cti-capec-attack-update-1.json \ --database arango_cti_processor_standard_tests \ --collection mitre_capec \ --stix2arango_note v3.10
from stix2arango.stix2arango import Stix2Arango
s2a = Stix2Arango(
database="arango_cti_processor_standard_tests",
collection="mitre_capec",
stix2arango_note="v3.10",
file="tests/files/arango_cti_processor/arango-cti-capec-attack-update-1.json"
)
s2a.run()
Currently data import for tests are run manually
https://github.com/muchdogesec/arango_cti_processor/blob/adding-tests/tests/README.md#test-10-validate-capec-attack-pattern---attck-attack-pattern-relationship-capec-attack
Is there a way we can take advantage of the stix2arango installed in arango_cti_processor to also include the data import in the test, so that is is 100% automatic?
If you can show me how on one test, I can retool the other tests.