From c4d7eab7c62b7bb3e36b99b226795510419dd841 Mon Sep 17 00:00:00 2001 From: Rich Piazza Date: Sun, 2 May 2021 17:03:02 -0400 Subject: [PATCH] added changelog --- CHANGELOG | 26 ++++++++++++++++++++++++++ stix2elevator/test/test_main.py | 8 ++++---- 2 files changed, 30 insertions(+), 4 deletions(-) diff --git a/CHANGELOG b/CHANGELOG index 2da904e6..a09ebcd5 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,6 +1,32 @@ CHANGELOG ========= +4.0.0 - 2021-05-02 + +The elevator and stepper are compliant with STIX 2.1 CS01 + +Python 3.5 is no longer supported. +All compatibility code to support Python 2.7 has been removed (e.g., the six package) + +* Major Changes + - Support Extension feature described in section 7.3 of the specification + - Support Incident as a specification SDO + - Use handle_missing_properties method to encapsulate most extension/custom functionality + - Handle related objects with no know STIX 2.1 relationship + +* Other Changes + - Handle ArchiveFile different for 2.0 vs 2.1 + - email_message:message_id is only in 2.1 + - Infer network-traffic protocol from extension type + - Handle registry key in example where there is no hive property + - Better handling of Sightings + - Add object data marking to Relationships when appropriate based on the source and target references + - Handle name and title properties of malware better + +* Testing changes + - Added testing for python 3.9 + - Test for the ignore missing policy for STIX 2.1 + 3.0.1 - 2020-12-09 * Update dependencies diff --git a/stix2elevator/test/test_main.py b/stix2elevator/test/test_main.py index 7dddec0b..2a0f4a1f 100644 --- a/stix2elevator/test/test_main.py +++ b/stix2elevator/test/test_main.py @@ -32,10 +32,10 @@ def setup_options(): @pytest.mark.parametrize("opts", [ - ElevatorOptions(policy="no_policy", spec_version="2.1", log_level="DEBUG", disabled=[212, 901]), - {"policy": "no_policy", "spec_version": "2.1", "log_level": "DEBUG", "disabled": [212, 901]}, - Namespace(policy="no_policy", spec_version="2.1", log_level="DEBUG", disabled="212,901", - file_=None, incidents=False, missing_policy="add-to-description", + ElevatorOptions(policy="no_policy", spec_version=os.environ["VERSION"], log_level="DEBUG", disabled=[212, 901]), + {"policy": "no_policy", "spec_version": os.environ["VERSION"], "log_level": "DEBUG", "disabled": [212, 901]}, + Namespace(policy="no_policy", spec_version=os.environ["VERSION"], log_level="DEBUG", disabled="212,901", + file_=None, incidents=False, missing_policy=os.environ["MISSING_POLICY"], custom_property_prefix="elevator", infrastructure=False, package_created_by_id=None, default_timestamp=None, validator_args="--strict-types", enabled=None, silent=False, message_log_directory=None, output_directory=None, markings_allowed=""),