Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changed several *_types properties to be optional due to STIX spec change #355

Merged
merged 2 commits into from
Mar 11, 2020

Conversation

chisholm
Copy link
Contributor

Fixes #335

This changes several properties which were formerly required, to be optional. Unit tests were updated too, where it seemed to be appropriate. Test changes were a judgement call, and not all object types had the same types of tests, so not all object type unit test suites seemed to need changes.

to be optional, due to a STIX spec change.  Updated unit tests
accordingly.
@codecov-io
Copy link

Codecov Report

Merging #355 into master will decrease coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #355      +/-   ##
==========================================
- Coverage   98.15%   98.15%   -0.01%     
==========================================
  Files         124      124              
  Lines       14176    14175       -1     
==========================================
- Hits        13914    13913       -1     
  Misses        262      262
Impacted Files Coverage Δ
stix2/v21/sdo.py 94.53% <ø> (ø) ⬆️
stix2/test/v21/test_indicator.py 100% <100%> (ø) ⬆️
stix2/test/v21/test_infrastructure.py 100% <100%> (ø) ⬆️
stix2/test/v21/test_malware.py 100% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c2b7167...93a8caa. Read the comment docs.

@emmanvg emmanvg modified the milestones: 1.3.1, 1.4.0 Mar 3, 2020
Copy link
Contributor

@clenk clenk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@clenk clenk merged commit 2429533 into oasis-open:master Mar 11, 2020
@chisholm chisholm deleted the optional_type_properties branch March 11, 2020 20:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Because of "unknown", several properties have been changed to optional
4 participants