Merge pull request #409 from chisholm/fix_sco_ref_props
Chris Lenk
2020-06-10 09:34:37 -0400
00b78e7a47Stylistic pre-commit junk
Michael Chisholm
2020-06-08 17:51:13 -0400
99bf4215a3Change all uses of ObjectReferenceProperty in 2.1 SCO classes to ReferenceProperty. Add a unit test to ensure that when a stix2 object is passed as a value of a ReferenceProperty, that the ID is properly pulled out and used as the actual property value, and that it doesn't affect the deterministic ID calculation.
Michael Chisholm
2020-06-05 16:55:41 -0400
Merge pull request #402 from chisholm/fix_deterministic_ids
Chris Lenk
2020-06-08 07:51:45 -0400
c13cb182dbversioning related updates: - remove var 'properties_to_change' since it's unnecessary - delete most of remove_custom_stix() since it was unnecessary, greatly simplify it
Michael Chisholm
2020-06-04 20:14:33 -0400
9c5f950d5bAdd a new_version() restriction preventing SCO ID contributing properties from being changed, if a UUIDv5 is in use. Changing one of those properties would imply an ID change, which is not allowed across versions. Also:
Michael Chisholm
2020-06-04 19:50:52 -0400
eaa7f17ee4Fix versionability detection: _properties is an OrderedDict not a list of tuples! (despite what it looks like if you glance at it quickly.)
Michael Chisholm
2020-06-04 18:03:15 -0400
15e75cb4dePython 2 compatibility fix in versionability detection. In python2, Mapping.keys() returns a list instead of a set!
Michael Chisholm
2020-05-28 18:08:47 -0400
a05dbc42d5Improve the docstring for new_version(). Especially with the three-value logic for allow_custom, it needed some much better documentation.
Michael Chisholm
2020-05-28 17:25:38 -0400
d4cecd6f51In remove_custom_stix(), when creating the new version, use allow_custom=False to force custom properties to be disallowed. This is extra insurance against a custom prop accidentally getting through.
Michael Chisholm
2020-05-28 17:08:40 -0400
78d3b2c4c5Add stix2.utils import to v20/test_versioning.py since the module was used but not imported there. Also import sorting from the pre-commit hook.
Michael Chisholm
2020-05-28 16:56:26 -0400
5522050899Improve versionability detection when creating new versions of objects. Move versioning-related stuff out of stix2.utils to its own module. Some misc versioning-related fixes.
Michael Chisholm
2020-05-28 16:48:51 -0400
5a5484d464Move/merge some deterministic ID tests from the observed-data SDO test suite to the test suite specific to testing deterministic IDs. This keeps the tests for that specific system in one place.
Michael Chisholm
2020-06-03 19:26:37 -0400
f17f782134Bugfixes to the json un-escaping function. Added some unit tests for that.
Michael Chisholm
2020-06-03 19:03:29 -0400
2179028c91Fix deterministic ID behavior when an empty "hashes" property is given. Now, an exception is raised. Added a unit test for this.
Michael Chisholm
2020-06-03 15:02:48 -0400
c94feae623Add a deterministic ID unit test with an embedded object
Michael Chisholm
2020-06-02 19:55:36 -0400
fa981affa9stupid python 3.8 pre-commit still not adding the right trailing commas....
Michael Chisholm
2020-06-02 17:52:52 -0400
9dcffd9fadAdd some unit tests for deterministic IDs.
Michael Chisholm
2020-06-02 17:46:17 -0400
1f5e8defd3Argh, I fixed an RFC URL but forgot to fix the comment which described it and gave the RFC number...
Michael Chisholm
2020-06-02 14:08:00 -0400
22c0d5806cTrailing comma for the pre-commit hook
Michael Chisholm
2020-06-02 14:05:34 -0400
e22c37a16bUpdate a RFC URL to the latest version. I'd accidentally used one which had been obsoleted by a newer one.
Michael Chisholm
2020-06-02 14:02:34 -0400
6c2c4781e7Revamp deterministic ID generation code to fix bugs.
Michael Chisholm
2020-06-01 20:24:22 -0400
7def04fd6fAdd __all__'s to v20 and v21/__init__.py to ensure that star-imports from those modules get the right symbols. "base" was a problem because it was getting imported via stix2/__init__.py and overwriting stix2.base, making the actual stix2/base.py module inaccessible.
Michael Chisholm
2020-06-03 17:39:09 -0400
Merge pull request #397 from chisholm/drop_dateutil
Chris Lenk
2020-05-21 10:23:40 -0400
7955a41997Drop python-dateutil as a dependency and switch to the builtin datetime module for parsing timestamps. Dateutil proved too slow.
Michael Chisholm
2020-05-20 15:06:53 -0400
Merge pull request #385 from emmanvg/taxii-datastore-updates
Chris Lenk
2020-04-03 17:30:04 -0400
2b0d63c4b1update test_datastore_taxii.py conftest.py for latest changes in medallion. add extra data used by filter
Emmanuelle Vargas-Gonzalez
2020-04-03 17:19:36 -0400
c7fb79d195Fix some TAXII DataStore tests
Chris Lenk
2020-04-03 15:58:56 -0400