8f1ae4e6d3Add custom properties via 'allow_custom' Custom properties can be specified by passing them to a STIX object constructor in the 'custom_properties' argument, or with the 'allow_custom' argument set to True, which will add any unrecognized keyword arguments as properties on the object. The 'allow_custom' argument can also be used with the parse() and parse_observable() functions. An error is now raised when attempting to parse objects without a 'type' property, such as external references, kill chain phases, and granular markings. The object which contains them is what should be parsed, not these objects themselves.
clenk
2017-06-12 12:54:05 -0400
bf740b21ebInitial selector and marking_ref validation.
Emmanuelle Vargas-Gonzalez
2017-06-12 08:06:37 -0400
ee4618f6c8Add new marking errors.
Emmanuelle Vargas-Gonzalez
2017-06-12 08:06:13 -0400
1f258551e1Add and update tests for markings API.
Emmanuelle Vargas-Gonzalez
2017-06-09 14:22:56 -0400
860efcc230Make object attribute access act like dictionary access, raising an error for any property (including custom or optional) not set on the object.
clenk
2017-06-07 11:06:20 -0400
35e973243fMerge pull request #20 from emmanvg/master
Greg Back
2017-06-05 09:30:04 -0500
a38b912d19Change _check_property_dependency() to also check for values for the required properties.
Emmanuelle Vargas-Gonzalez
2017-06-02 13:48:44 -0400
653eef4b95Revert changes to test_file_example_encryption_error()
Emmanuelle Vargas-Gonzalez
2017-06-02 13:47:08 -0400
51e28f64daChange __getattr__() to use __getitem__() instead. Other minor changes.
Emmanuelle Vargas-Gonzalez
2017-06-02 10:10:50 -0400
d579c12172Update ImmutableError test cases.
Emmanuelle Vargas-Gonzalez
2017-06-02 07:34:37 -0400
fceef4d85aUse class name for ImmutableError message.
Emmanuelle Vargas-Gonzalez
2017-06-02 07:33:31 -0400
0cf0f97143Merge branch 'master' of github.com:oasis-open/cti-python-stix2
Emmanuelle Vargas-Gonzalez
2017-06-02 07:15:01 -0400
229ab5d323Fix import order
clenk
2017-06-01 17:17:03 -0400
61c1e07433Move codecov invocation from Tox to Travis This avoids errors when running Tox locally. Also display line numbers missing test coverage.
clenk
2017-06-01 17:00:22 -0400
f321447eccMake Travis happy with cosmetic fixes
clenk
2017-06-01 16:47:56 -0400
e1e7bade3fUpdated this test since setting the value to False should not be a reason to fail the test.
Emmanuelle Vargas-Gonzalez
2017-06-01 15:25:46 -0400
4d58fc3dbbExplicitly check for None, when intention is to set empty values or False. fixes#17
Emmanuelle Vargas-Gonzalez
2017-06-01 15:25:03 -0400
5dc049d65agetattr() checks for attribute membership, returns the value if not None and raises AttributeError when is not present. fixes#19
Emmanuelle Vargas-Gonzalez
2017-06-01 15:23:44 -0400
b4dfa07a20Improve coverage of utils.py Also fix bugs this discovers. Fix#15.
clenk
2017-05-22 11:11:42 -0400
41f2ceb8e5Change remaining 'fields' to 'properties'
Greg Back
2017-05-19 12:51:59 -0500
a913d9d5adMerge pull request #14 from oasis-open/parse-cyber-observables
Greg Back
2017-05-19 09:15:00 -0500
9bc3242736Refactor extension properties to inherit from a base class so all extension classes will include the check for at least one property
clenk
2017-05-18 14:04:28 -0400
b6e22bcbdfMerge pull request #12 from rpiazza/cyber-observables
Chris Lenk
2017-05-18 11:02:10 -0400
f8242cffe4correct misspelling on _check_object_constraints
Richard Piazza
2017-05-18 09:48:01 -0400
8827149ef0avoid {} set notation. It doesn't seem to be in 2.6
Richard Piazza
2017-05-17 15:51:07 -0400
f56ea8e951added tests for process and file extensions if no properties are passed to _check_at_least_one_property assume its all properties when extensions are involved always check them in _check_at_least_one_property (caused by raising the exception on the enclosing type) added _check_object_constaints to extensions, where appropriate
Richard Piazza
2017-05-17 15:33:28 -0400
3e0e80141bFor object reference properties, check the type of the object referenced, not only that it is included in the local scope.
clenk
2017-05-17 15:21:02 -0400
7c71b9e577added tests for File and Process extensions fixed typo in WindowsPEOptionalHeaderType
Richard Piazza
2017-05-16 12:39:04 -0400
9761c37f20Replace 'field' with 'property' to be consistent with the specification
clenk
2017-05-16 12:27:30 -0400
a520a67511Add tests for the Network Traffic extension and User Account extensions
clenk
2017-05-16 11:35:43 -0400
2460fb75beRework select properties to use get_dict(), which automatically coerces values to a dictionary if possible
clenk
2017-05-16 09:25:08 -0400
aa69c38444Merge pull request #11 from rpiazza/cyber-observables
Chris Lenk
2017-05-15 15:29:59 -0400
826b6af644added missing required properties
Richard Piazza
2017-05-15 15:21:59 -0400
6456e490ccadded rest of cyber observables extensions and embedded objects set up EXT_MAPs added FloatProperty implemented ExtensionsProperty
Richard Piazza
2017-05-15 13:48:41 -0400
f937e2bb3fMerge pull request #10 from oasis-open/issue9
Greg Back
2017-05-15 12:40:38 -0500
958e60b01dAdd 'labels' property to COMMON_PROPERTIES
clenk
2017-05-15 10:57:40 -0400
84cdc1c204Merge pull request #8 from rpiazza/cyber-observables
Chris Lenk
2017-05-12 11:32:57 -0400
0568a0e671Add ExtensionsProperty and ArchiveExt
clenk
2017-05-12 11:22:23 -0400
29871427b7fix import error
Richard Piazza
2017-05-11 15:42:56 -0400
191b14a4bbfix import error
Richard Piazza
2017-05-11 15:33:45 -0400
ae5fb51564Merge branch 'parse-cyber-observables' into cyber-observables
Rich Piazza
2017-05-11 15:29:15 -0400
94f4f48329Changes so File object creation doesn't violate on of the MUSTs Added three new exceptions: DependentPropertiestError, AtLeastOnePropertyError, MutuallyExclusivePropertiesError Added tests for NetworkTraffic, Process, URL, WindowsRegistryKey and X509Certificate Added error tests for EmailMessage, NetworkTraffic, Artifact, Added interproperty checker methods to the base class: _check_mutually_exclusive_properties, _check_at_least_one_property and _check_properties_dependency Added interproperty checkers to Artifact, EmailMIMEComponent, EmailMessage, NetworkTraffic Made NetworkTraffic.protocols required Added X509V3ExtenstionsType class Use EmbeddedObjectProperty for X509Certificate.x509_v3_extensions
Richard Piazza
2017-05-11 15:22:46 -0400
13245d28ceAdd EnumProperty, use it in WindowsRegistryValueType
clenk
2017-05-10 11:52:59 -0400
4493ac9caestyle issue
Richard Piazza
2017-05-09 15:51:52 -0400
7c1fd1e7f0Merge branch 'parse-cyber-observables' into cyber-observables
Rich Piazza
2017-05-09 15:36:59 -0400
075b8485e5fix conflict
Richard Piazza
2017-05-09 15:35:44 -0400
c3477b83bfencryption_algorithm was misspelled uncomment test_file_example_encryption_error added _check_object_constrains and properties_populated to base class added ObjectConstraintError added _check_object_constrains for File
Richard Piazza
2017-05-09 15:28:32 -0400
bdd18be6c3Switch to isort for checking import order because it has a pre-commit hook
clenk
2017-05-09 15:10:53 -0400