Skip to content

Commit 58891e8

Browse files
committed
update pinning schema to latest stix2.1 commit and accept automate test changes
1 parent 1b4c055 commit 58891e8

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

pinning-schema.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@ Output confirms the schema 2.1 correct commit is pinned:
1212
Entering 'stix2validator/schemas-2.0'
1313
stix2validator/schemas-2.0 b155093705ab4934ee29e7ba4dc99ed053cd4e7f
1414
Entering 'stix2validator/schemas-2.1'
15-
stix2validator/schemas-2.1 4d010b385b83e53ea322357783ff3be3da5820fb
15+
stix2validator/schemas-2.1 c4f8d589acf2bdb3783655c89e0ffb6e150006ae
1616

17-
Push from local to my repo (fork of Oasis) which then feeds the change to the PR on Oasis. I've updated the comments in the PR to confirm.
17+
Push from local to my repo (fork of Oasis) which then feeds the change to the PR on Oasis. I've updated the comments in the PR to confirm.

stix2validator/test/v21/observed_data_tests.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -649,32 +649,32 @@ def test_software_language(self):
649649

650650
def test_software_language_iso639_compatibility(self):
651651
"""Test that ISO 639-2 codes are accepted with warnings for backward compatibility"""
652-
import logging
653652
import io
654-
653+
import logging
654+
655655
# Capture log output
656656
log_capture = io.StringIO()
657657
handler = logging.StreamHandler(log_capture)
658658
handler.setLevel(logging.WARNING)
659659
logger = logging.getLogger('stix2validator.v21.musts')
660660
logger.addHandler(handler)
661661
logger.setLevel(logging.WARNING)
662-
662+
663663
observed_data = {
664664
"type": "software",
665665
"id": "software--ff1e0780-358c-5808-a8c7-d0fca4ef6ef4",
666666
"name": "word",
667667
"languages": ["eng"] # ISO 639-2 code
668668
}
669-
669+
670670
# Should be valid (backward compatibility)
671671
self.assertTrueWithOptions(observed_data)
672-
672+
673673
# Should generate a warning
674674
log_output = log_capture.getvalue()
675675
self.assertIn("ISO 639-2 language code", log_output)
676676
self.assertIn("RFC 5646 language codes are preferred", log_output)
677-
677+
678678
# Clean up
679679
logger.removeHandler(handler)
680680

0 commit comments

Comments
 (0)