Chris Lenk
57eb709c48
Merge branch 'master' into taxii_collection_source_404
2018-02-26 17:08:28 -05:00
Chris Lenk
df57f4d159
Fix typos in datasources
2018-02-26 16:56:24 -05:00
Chris Lenk
e23d937204
Fix isort
2018-02-23 09:37:14 -05:00
Chris Lenk
aaff2a3a04
Appease pycodestyle
2018-02-22 09:55:15 -05:00
Chris Lenk
2886ae9961
Add links to specs in STIX Objects' documentation
2018-02-21 16:46:13 -05:00
Chris Lenk
6f35978ba6
Document STIX object properties' metadata
...
(i.e. property type, whether it is required)
2018-02-21 16:46:13 -05:00
Chris Lenk
3263c3848f
List STIX objects' properties in documentation
2018-02-21 16:46:13 -05:00
Chris Lenk
f1813f17e0
Fix a couple links in documentation
...
Also upgrade nbsphinx version.
2018-02-21 16:46:13 -05:00
Greg Back
c682838239
Merge pull request #127 from oasis-open/122-new_version_with_related
...
New Version of ObservedData with related objects
2018-02-21 11:20:58 -06:00
Greg Back
0ae44bc66e
Merge branch 'master' into 122-new_version_with_related
2018-02-21 11:05:50 -06:00
Greg Back
b1a020bb38
Update imports to appease isort.
2018-02-21 11:02:08 -06:00
Chris Lenk
99addbaada
Allow Python nightly to fail in Travis
...
...without causing the entire build to fail, but still recording the result.
2018-02-19 15:43:25 -05:00
Chris Lenk
5427e79d71
Fix pycodestyle/isort issues
2018-02-19 15:03:20 -05:00
Chris Lenk
845934033e
Avoid checking valid refs when deepcopying
...
Using `deepcopy` on an Observable object that referenced another (e.g.
domain name -> resolves to -> IPv4 address) would fail because no
`_valid_refs` were available. Assuming that the references have
already been checked and are valid when using `deepcopy`, we can use a
special value ('*') to skip the valid_refs check.
This will also allow creating new versions of ObservedData objects that
contain related objects, since `new_version` calls `deepcopy`.
2018-02-19 14:44:28 -05:00
Greg Back
a790d8f561
Merge pull request #124 from m0jtaba/patch-1
...
Update datastore.ipynb
2018-02-01 09:34:41 -06:00
Mo
a758c7e1b2
Update datastore.ipynb
2018-01-31 17:24:57 +00:00
Greg Back
e2c9354d14
GH-121: Use correct property name for IntrusionSet.last_seen
...
Fix #121
2018-01-16 08:49:15 -06:00
=
da8ae6a621
Merge branch 'taxii_collection_source_404' of https://github.com/oasis-open/cti-python-stix2 into taxii_collection_source_404
2017-12-01 11:33:34 -05:00
=
0c8dd7f47c
added docstring warning for utility function
2017-12-01 11:30:41 -05:00
Greg Back
126094106e
Merge branch 'master' into taxii_collection_source_404
2017-11-29 22:13:16 +00:00
Greg Back
c0669d7a5f
Drop support for Python 3.3
2017-11-29 22:11:40 +00:00
=
742d249ee0
trying to fix timing bug
2017-11-29 12:50:13 -05:00
=
52a052d4dd
removing debug lines; attemting to fix a Travis test error
2017-11-29 12:27:20 -05:00
=
2399ee62ec
adjusting tests
2017-11-29 12:03:10 -05:00
Greg Back
98ca928dea
Merge pull request #111 from oasis-open/89-relationships
...
Support de-referencing relationships
2017-11-27 14:19:29 +00:00
Chris Lenk
db9c93d9e1
Add documentation for related object functions
2017-11-21 17:32:17 -05:00
Chris Lenk
4a6bca4486
Merge branch 'master' into 89-relationships
2017-11-21 16:41:21 -05:00
Chris Lenk
d355d1827e
Move `creator_of` to DataStore/DataSource
2017-11-21 16:29:06 -05:00
Chris Lenk
078474259a
Simplify `related_to`
2017-11-21 16:19:15 -05:00
Chris Lenk
6446be310c
Clean up relationships code
2017-11-21 15:57:35 -05:00
=
0347bb52fd
added remove_custom_stix() utility; tweaked new_version() to make it a little safer
2017-11-21 14:39:50 -05:00
Chris Lenk
92f7e706bf
Improve error handling in relationships/related_to
2017-11-21 10:29:57 -05:00
Greg Back
f481788e1e
Merge pull request #112 from samcornwell/get_type_from_id
...
Add get_type_from_id utility function
2017-11-20 15:19:24 +00:00
Sam Cornwell
eff51a2bb8
fixed pycodestyle failure
2017-11-19 23:00:42 -05:00
Sam Cornwell
78612530ff
added tests for get_type_from_id
2017-11-19 22:27:31 -05:00
Sam Cornwell
8930e72cc3
added get_type_from_id function to utils
2017-11-19 22:11:44 -05:00
Greg Back
ea11163ae6
Merge pull request #110 from emmanvg/issue-109
...
Allow CustomMarking without an __init__() implemented
2017-11-17 23:15:34 +00:00
Chris Lenk
7e0f911972
Add relationship_type note to docstrings
2017-11-17 17:30:24 -05:00
=
ec42182cb1
issue #107 , also MemorySource.load_from_file() parses JSON into python-stix2 objects now
2017-11-17 12:19:06 -05:00
Emmanuelle Vargas-Gonzalez
c03ecb5230
Update test modules
2017-11-17 08:50:40 -05:00
=
da4e843993
issue #104 with TAXIICollectionSource tweak
2017-11-16 17:47:27 -05:00
Chris Lenk
515ff1e53f
Clean up test
2017-11-16 16:50:27 -05:00
Chris Lenk
cfa18bfd0d
Improve Environment tests
2017-11-16 16:43:27 -05:00
Chris Lenk
f0331f8b9b
Reorganize DataStore code for dereferencing
...
- Move `relationships()` to DataStore like `related_to()` is. If a
DataStore implementation needs a different way to handle relationship
dereferencing (e.g. TAXII in the future, or CompositeDataSource), it
can overwrite these functions.
- Reduce code duplication.
- Check for presence of Data Source/Sink in all DataStores, not just in
Environment.
2017-11-16 16:25:57 -05:00
Chris Lenk
29dec997a0
Add related_to()
...
Function for calling relationships() but instead of just returning the
Relationship objects, returns the STIX objects being refered to in those
Relationships.
2017-11-16 14:58:59 -05:00
Chris Lenk
86f28644f9
Fix Python2 bug when filter value is unicode
2017-11-15 16:56:55 -05:00
Chris Lenk
1b816c3d84
Test relationships() functions
2017-11-15 16:34:07 -05:00
Emmanuelle Vargas-Gonzalez
e6a8b555d3
Add test for CustomMarking. closes #109
2017-11-15 13:12:00 -05:00
Emmanuelle Vargas-Gonzalez
fbce8f15fe
Allow no custom __init__() on CustomMarking
2017-11-15 12:55:34 -05:00
Chris Lenk
55cf00d7f0
Move relationships() to DataSources
2017-11-15 10:37:17 -05:00