cti-python-stix2/stix2/test/v21
Emmanuelle Vargas-Gonzalez fb705c4885
Graph Equivalence (#449)
* new packages for graph and object-based semantic equivalence

* new method graphically_equivalent for Environment, move equivalence methods out

* object equivalence function, methods used for object-based moved here.

* new graph_equivalence methods

* add notes

* add support for versioning checks (default disabled)

* new tests to cover graph equivalence and new methods

* added more imports to environment.py to prevent breaking changes

* variable changes, new fields for checks, reset depth check per call

* flexibility when object is not available on graph.

* refactor debug logging message

* new file stix2.equivalence.graph_equivalence.rst and stix2.equivalence.object_equivalence.rst for docs

* API documentation for new modules

* additional text required to build docs

* add more test methods for list_semantic_check an graphically_equivalent/versioning

* add logging debug messages, code clean-up

* include individual scoring on results dict, fix issue on list_semantic_check not keeping highest score

* include results as summary in prop_scores, minor tweaks

* Update __init__.py

doctrings update

* apply feedback from pull request

- rename semantic_check to reference_check
- rename modules to graph and object respectively to eliminate redundancy
- remove created_by_ref and object_marking_refs from graph WEIGHTS and rebalance

* update docs/ entries

* add more checks, make max score based on actual objects checked instead of the full list, only create entry when type is present in WEIGHTS dictionary

update tests to reflect changes

* rename package patterns -> pattern

* documentation, moving weights around

* more documentation moving

* rename WEIGHTS variable for graph_equivalence
2020-10-16 11:35:26 -04:00
..
stix2_data Fix the filesystem store to support the new top-level 2.1 SCOs. 2020-02-15 19:02:53 -05:00
__init__.py
conftest.py pre-commit stylistic fix 2020-08-19 11:51:47 -04:00
constants.py Fix trailing commas 2020-06-26 16:43:19 -04:00
test_attack_pattern.py Drop python-dateutil as a dependency and switch to the builtin 2020-05-20 15:06:53 -04:00
test_base.py Remove unnecessary comments 2019-12-06 09:35:36 -05:00
test_bundle.py Fixed all issues brought up in issue #305 by Chris Lenk 2019-11-22 13:24:09 -05:00
test_campaign.py
test_confidence.py
test_course_of_action.py Fix properties spec version back to 2.1, and re-adjust tests. Fixes #338 2020-03-12 09:24:43 -04:00
test_custom.py fix: Respect name of `@Custom*` decorated defs 2020-07-28 11:13:59 +10:00
test_datastore.py
test_datastore_composite.py Update CompositeDataSource and deduplicate() to handle unversioned 2020-08-17 18:38:29 -04:00
test_datastore_filesystem.py Fix bug when adding custom obj to FileSystemSink 2020-07-20 00:04:32 -04:00
test_datastore_filters.py End of changes 2019-09-11 10:44:14 -04:00
test_datastore_memory.py Fix existing tests and add new tests. Fixes #363 2020-03-20 16:49:20 -04:00
test_datastore_taxii.py Remove 'encoding' param from json.loads 2020-06-26 16:43:19 -04:00
test_deterministic_ids.py Stylistic pre-commit junk 2020-06-08 17:51:13 -04:00
test_environment.py Graph Equivalence (#449) 2020-10-16 11:35:26 -04:00
test_external_reference.py Fix stylistic issues for pre-commit hooks. 2020-03-05 17:39:35 -05:00
test_fixtures.py
test_granular_markings.py add `id` as special-case option in regex. closes #406 2020-06-08 09:27:12 -04:00
test_grouping.py
test_identity.py
test_indicator.py Set STIX 2.1 as default, fix indicator.valid_from 2020-06-26 16:43:19 -04:00
test_infrastructure.py Changed several *_types properties which were formerly required, 2020-02-25 20:07:47 -05:00
test_intrusion_set.py
test_kill_chain_phases.py
test_language_content.py Change "object_modified" property of LocationContent to be 2019-07-25 16:56:34 -04:00
test_location.py
test_malware.py Merge pull request #369 from chisholm/malware_os_refs 2020-03-11 23:47:14 -04:00
test_malware_analysis.py Merge pull request #357 from chisholm/malware_analysis_result 2020-03-11 09:16:34 -04:00
test_marking_definition.py update test suite to include new property present in TLP Markings 2020-01-28 13:20:58 -05:00
test_markings.py Clean up _register_* functions 2020-04-02 14:15:45 -04:00
test_note.py
test_object_markings.py Improve versionability detection when creating new versions 2020-06-05 14:24:16 -04:00
test_observed_data.py Remove protocol_family and its uses from the v21 network 2020-07-08 14:26:02 -04:00
test_opinion.py
test_parsing.py Fix parsing tests 2020-06-26 16:43:19 -04:00
test_pattern_equivalence.py Graph Equivalence (#449) 2020-10-16 11:35:26 -04:00
test_pattern_expressions.py Merge pull request #456 from chisholm/fix_comparison_expression_root_type 2020-09-18 09:59:53 -04:00
test_pickle.py
test_properties.py Consolidate version-independent property tests 2020-07-01 09:41:10 -04:00
test_relationship.py
test_report.py
test_sighting.py
test_threat_actor.py Fix flake8 style error. 2019-07-25 16:58:48 -04:00
test_timestamp_precision.py Fix import sort order for the import sorter precommit hook 2020-03-17 20:26:21 -04:00
test_tool.py
test_utils.py Update CompositeDataSource and deduplicate() to handle unversioned 2020-08-17 18:38:29 -04:00
test_versioning.py Add a new_version() restriction preventing SCO ID contributing 2020-06-05 14:24:16 -04:00
test_vulnerability.py