opencybersecurityalliance / firepit

Firepit - STIX Columnar Storage
Apache License 2.0
15 stars 12 forks source link

add common schema for firepit #38

Closed charliewutw1 closed 3 years ago

charliewutw1 commented 3 years ago

This PR contains to create a common schema for two functions match and in_subnet

charliewutw1 commented 3 years ago

attached unit test report against local postgres


$ FIREPITDB="postgresql://charlie:c1234@localhost:5432/stixdata" pytest
=============================================================================================== test session starts ================================================================================================                                                                                                                                                                                             

tests/test_custom_objects.py .                                                                                                                                                                               [  0%]
tests/test_errors.py ..................                                                                                                                                                                      [ 13%]
tests/test_props.py ..............................                                                                                                                                                           [ 36%]
tests/test_query.py .......................................                                                                                                                                                  [ 64%]
tests/test_storage.py ..................................... 
tests/test_validate.py ...........