Skip to content
This repository was archived by the owner on Dec 5, 2025. It is now read-only.

Commit 42b13dc

Browse files
authored
[client] Added Stix ID to Label (#216)
* [client] Added standard_id to label graphql properties * [tests] Added crud read verification for the presence of the standard_id (Stix ID field)
1 parent e1c4b81 commit 42b13dc

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

pycti/entities/opencti_label.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ def __init__(self, opencti):
1212
color
1313
created_at
1414
updated_at
15+
standard_id
1516
"""
1617

1718
"""

tests/02-integration/entities/test_entity_crud.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ def test_read(entity_class):
2525
test_indicator = entity_class.own_class().create(**class_data)
2626
assert test_indicator is not None, "Response is NoneType"
2727
assert "id" in test_indicator, "No ID on object"
28+
assert "standard_id" in test_indicator, "No standard_id (STIX ID) on object"
2829
test_indicator = entity_class.own_class().read(id=test_indicator["id"])
2930
compare_values(
3031
class_data,

0 commit comments

Comments
 (0)