Merge pull request #454 from chisholm/fix_make_constant
Chris Lenk
2020-09-16 09:23:15 -0400
7d64764ae3Fix object type tracking for comparison expressions in the pattern AST module.
Michael Chisholm
2020-09-14 15:42:36 -0400
bad42e5b78pre-commit stylistic junk
Michael Chisholm
2020-09-12 19:33:56 -0400
ff35e8a01bAdd some unit tests for the AST make_constant() function.
Michael Chisholm
2020-09-12 19:11:00 -0400
f2691e89f5Fix make_constant() in the AST module, to always return a constant. It was failing to do so for timestamps, instead returning a STIXdatetime object.
Michael Chisholm
2020-09-04 14:46:49 -0400
40b8af3845Merge branch 'master' of github.com:oasis-open/cti-python-stix2 into main
chrisr3d
2020-09-12 12:46:26 +0200
639769d885expose API Reference for Pattern Equivalence for ReadTheDocs
Emmanuelle Vargas-Gonzalez
2020-09-11 13:54:13 -0400
Merge pull request #443 from chisholm/add_pattern_validator_version
Chris Lenk
2020-08-18 09:11:08 -0400
7fa3c78deaUpdate CompositeDataSource and deduplicate() to handle unversioned objects, including 2.1 SCOs. Updated some unit tests to test this. Fixed a typo in a 2.0 unit test (2.0 deduplicate() test).
Michael Chisholm
2020-08-17 18:38:29 -0400
241d253a29Add a version restriction to the stix2-patterns dependency, to ensure users aren't tripped up by old versions.
Michael Chisholm
2020-08-17 13:49:19 -0400
b6c2206491Add some unit test suites for pattern equivalence which use some STIX version-specific pattern features.
Michael Chisholm
2020-08-14 19:56:49 -0400
9e707a3a81Add stix_version kwargs to the pattern equivalence functions. This allows the patterns to be parsed using either 2.0 or 2.1+ syntax.
Michael Chisholm
2020-08-14 19:55:00 -0400
320129e26cAdd another unit test to help a bit with lack of coverage of compare/comparison.py. This one tests patterns with more constant types.
Michael Chisholm
2020-08-13 18:45:52 -0400
c21b230edbpre-commit hook stylistic changes
Michael Chisholm
2020-08-13 17:44:42 -0400
16a8c544acAdd a find_equivalent_patterns() function and unit tests, in case a user wants a more efficient search capability. (It is more efficient than calling equivalent_patterns() over and over in a loop, because it doesn't repeatedly re-canonicalize the search pattern.)
Michael Chisholm
2020-08-13 17:09:04 -0400
bd5635f5beAdd some unit tests for pattern equivalence.
Michael Chisholm
2020-08-13 16:46:25 -0400
6c92f670cbFix ipv4/6 special canonicalizers to reformat IP addresses even when a non-CIDR address is used. Before, it left plain IP addresses untouched.
Michael Chisholm
2020-08-13 16:22:24 -0400
5d6c7d8c8aAdd some simple context-sensitive constant canonicalization, used as part of canonicalizing comparison expressions. This required adding a new comparison expression transformer callback for leaf-node comparison expression objects, and updating all existing comparison transformers to work (it affected all/most of them). The observation expression transformer which actually does the comparison canonicalization was updated to also perform this special canonicalization step.
Michael Chisholm
2020-08-12 19:28:35 -0400
311fe38ceaAdd first cut of a pattern equivalence capability
Michael Chisholm
2020-08-10 18:33:26 -0400
Merge pull request #427 from chisholm/remove_v21_protocol_family
Chris Lenk
2020-07-09 08:33:27 -0400
87d178da9cMerge branch 'master' of github.com:oasis-open/cti-python-stix2 into main
chrisr3d
2020-07-09 10:38:58 +0200
d888eb60e2Remove protocol_family and its uses from the v21 network socket SCO extension. It's a 2.0 property that got copied into the 2.1 code by mistake.
Michael Chisholm
2020-07-08 14:26:02 -0400