cti-python-stix2/stix2/test/v21
maybe-sybr bd897c9848 improv: Check reference prop types for all customs
Previously the requirement that properties ending in `_ref(s)` were
instances of an appropriate type capable of containing a STIX
`identifier` (the current interpretation of section 3.1 of the STIX 2.1
spec) was only enforced for custom observables. This change refactors
the property checks for custom objects to enforce this and the STIX 2.1
property name requirement (also from section 3.1) in a common helper,
therefore extending the enforcement of both requirements to all custom
object types created by downstream projects.

There is a special case carved out for STIX 2.0 observables which are
required to contain "object references" rather than identifiers. This
special logic is encoded in the reference property validation helper and
enabled by a kwarg which is passed exclusively by the custom observable
registration helper.
2021-07-22 14:55:14 +10:00
..
stix2_data
__init__.py
conftest.py Add proper customization enforcement for open vocabs. This adds 2021-03-31 16:20:28 -04:00
constants.py add new file test_extension_definition.py and assigned new UUIDs to the constants 2021-03-31 15:00:54 -04:00
test_attack_pattern.py update test suite for use of .serialize(pretty=True) 2021-03-31 12:39:14 -04:00
test_base.py
test_bundle.py Merge branch 'master' into dev-extensions-proposal 2021-06-13 01:48:33 -04:00
test_campaign.py update test suite for use of .serialize(pretty=True) 2021-03-31 12:39:14 -04:00
test_confidence.py
test_course_of_action.py update test suite for use of .serialize(pretty=True) 2021-03-31 12:39:14 -04:00
test_custom.py improv: Check reference prop types for all customs 2021-07-22 14:55:14 +10:00
test_datastore.py
test_datastore_composite.py
test_datastore_filesystem.py
test_datastore_filters.py Add proper customization enforcement for open vocabs. This adds 2021-03-31 16:20:28 -04:00
test_datastore_memory.py Add proper customization enforcement for open vocabs. This adds 2021-03-31 16:20:28 -04:00
test_datastore_taxii.py remove `six` from tests 2021-03-12 16:46:34 -05:00
test_deterministic_ids.py Merge branch 'master' into dev-extensions-proposal 2021-06-13 01:48:33 -04:00
test_environment.py Add proper customization enforcement for open vocabs. This adds 2021-03-31 16:20:28 -04:00
test_extension_definition.py Changed STIX object initialization to formulate a property order 2021-07-06 20:32:58 -04:00
test_external_reference.py update test suite for use of .serialize(pretty=True) 2021-03-31 12:39:14 -04:00
test_fixtures.py
test_granular_markings.py
test_grouping.py update test suite for use of .serialize(pretty=True) 2021-03-31 12:39:14 -04:00
test_identity.py Changed STIX object initialization to formulate a property order 2021-07-06 20:32:58 -04:00
test_incident.py Changed STIX object initialization to formulate a property order 2021-07-06 20:32:58 -04:00
test_indicator.py Changed STIX object initialization to formulate a property order 2021-07-06 20:32:58 -04:00
test_infrastructure.py update test suite for use of .serialize(pretty=True) 2021-03-31 12:39:14 -04:00
test_intrusion_set.py update test suite for use of .serialize(pretty=True) 2021-03-31 12:39:14 -04:00
test_kill_chain_phases.py update test suite for use of .serialize(pretty=True) 2021-03-31 12:39:14 -04:00
test_language_content.py
test_location.py Changed STIX object initialization to formulate a property order 2021-07-06 20:32:58 -04:00
test_malware.py Merge branch 'master' into dev-extensions-proposal 2021-06-13 01:48:33 -04:00
test_malware_analysis.py Merge branch 'master' into dev-extensions-proposal 2021-06-13 01:48:33 -04:00
test_marking_definition.py styling fixes 2021-01-15 16:05:57 -05:00
test_markings.py update test suite for use of .serialize(pretty=True) 2021-03-31 12:39:14 -04:00
test_note.py Changed STIX object initialization to formulate a property order 2021-07-06 20:32:58 -04:00
test_object_markings.py
test_observed_data.py Bug fixes, hackage removal, and some pre-commit stylistic 2021-06-30 17:50:00 -04:00
test_opinion.py Changed STIX object initialization to formulate a property order 2021-07-06 20:32:58 -04:00
test_parsing.py Change the stix2 class map structure to be keyed at the top 2021-01-20 16:59:38 -05:00
test_pattern_equivalence.py Graph Equivalence (#449) 2020-10-16 11:35:26 -04:00
test_pattern_expressions.py all changes from add-trailing-commas v2.0.2 2021-01-13 17:52:15 -05:00
test_pickle.py Add proper customization enforcement for open vocabs. This adds 2021-03-31 16:20:28 -04:00
test_properties.py Fix tests, add a loophole to allow custom content 2021-06-14 17:34:06 -04:00
test_relationship.py update test suite for use of .serialize(pretty=True) 2021-03-31 12:39:14 -04:00
test_report.py Merge branch 'master' into dev-extensions-proposal 2021-06-13 01:48:33 -04:00
test_sighting.py update test suite for use of .serialize(pretty=True) 2021-03-31 12:39:14 -04:00
test_threat_actor.py Merge branch 'master' into dev-extensions-proposal 2021-06-13 01:48:33 -04:00
test_timestamp_precision.py Clean up ReferenceProperty.clean(), to use new APIs which are 2021-03-31 20:01:27 -04:00
test_tool.py update test suite for use of .serialize(pretty=True) 2021-03-31 12:39:14 -04:00
test_utils.py pre-commit stylistic fixes 2021-01-20 20:49:01 -05:00
test_versioning.py Add some unit tests which try to version marking-definitions. 2021-01-28 23:02:23 -05:00
test_vulnerability.py update test suite for use of .serialize(pretty=True) 2021-03-31 12:39:14 -04:00