Skip to content

Commit 95e9901

Browse files
committed
Merge branch 'master' into release/current
2 parents 2b4e923 + e25a651 commit 95e9901

File tree

8 files changed

+14
-6
lines changed

8 files changed

+14
-6
lines changed

.drone.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@ kind: pipeline
33
name: client-python-tests
44

55
steps:
6+
- name: Runner information
7+
image: alpine:3.19
8+
commands:
9+
- echo DRONE_STAGE_MACHINE ${DRONE_STAGE_MACHINE}
10+
611
- name: sleep-for-opencti
712
image: python:3.11
813
commands:
@@ -77,6 +82,8 @@ services:
7782
environment:
7883
APP__ADMIN__PASSWORD: admin
7984
APP__ADMIN__TOKEN: bfa014e0-e02e-4aa6-a42b-603b19dcf159
85+
APP__ENTERPRISE_EDITION_LICENSE:
86+
from_secret: ee_license
8087
REDIS__HOSTNAME: redis
8188
REDIS__NAMESPACE: raw-start
8289
ELASTICSEARCH__URL: http://elastic:9200

pycti/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# -*- coding: utf-8 -*-
2-
__version__ = "6.7.14"
2+
__version__ = "6.7.15"
33

44
from .api.opencti_api_client import OpenCTIApiClient
55
from .api.opencti_api_connector import OpenCTIApiConnector

pycti/connector/opencti_connector_helper.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2001,6 +2001,7 @@ def send_stix2_bundle(self, bundle: str, **kwargs) -> list:
20012001
self.api.send_bundle_to_api(
20022002
connector_id=self.connector_id, bundle=bundle, work_id=work_id
20032003
)
2004+
self.metric.inc("bundle_send")
20042005
else:
20052006
raise ValueError(
20062007
f"{self.queue_protocol}: this queue protocol is not supported"

pycti/entities/opencti_case_rfi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -546,7 +546,7 @@ def list(self, **kwargs):
546546
data = self.opencti.process_multiple(result["data"]["caseRfis"])
547547
final_data = final_data + data
548548
while result["data"]["caseRfis"]["pageInfo"]["hasNextPage"]:
549-
after = result["date"]["caseRfis"]["pageInfo"]["endCursor"]
549+
after = result["data"]["caseRfis"]["pageInfo"]["endCursor"]
550550
self.opencti.app_logger.info("Listing Case Rfis", {"after": after})
551551
result = self.opencti.query(
552552
query,

pycti/entities/opencti_case_rft.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -545,7 +545,7 @@ def list(self, **kwargs):
545545
data = self.opencti.process_multiple(result["data"]["caseRfts"])
546546
final_data = final_data + data
547547
while result["data"]["caseRfts"]["pageInfo"]["hasNextPage"]:
548-
after = result["date"]["caseRfts"]["pageInfo"]["endCursor"]
548+
after = result["data"]["caseRfts"]["pageInfo"]["endCursor"]
549549
self.opencti.app_logger.info("Listing Case Rfts", {"after": after})
550550
result = self.opencti.query(
551551
query,

pycti/entities/opencti_feedback.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -506,7 +506,7 @@ def list(self, **kwargs):
506506
data = self.opencti.process_multiple(result["data"]["feedbacks"])
507507
final_data = final_data + data
508508
while result["data"]["feedbacks"]["pageInfo"]["hasNextPage"]:
509-
after = result["date"]["feedbacks"]["pageInfo"]["endCursor"]
509+
after = result["data"]["feedbacks"]["pageInfo"]["endCursor"]
510510
self.opencti.app_logger.info("Listing Feedbacks", {"after": after})
511511
result = self.opencti.query(
512512
query,

pycti/entities/opencti_task.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ def list(self, **kwargs):
307307
data = self.opencti.process_multiple(result["data"]["tasks"])
308308
final_data = final_data + data
309309
while result["data"]["tasks"]["pageInfo"]["hasNextPage"]:
310-
after = result["date"]["tasks"]["pageInfo"]["endCursor"]
310+
after = result["data"]["tasks"]["pageInfo"]["endCursor"]
311311
self.opencti.app_logger.info("Listing Tasks", {"after": after})
312312
result = self.opencti.query(
313313
query,

pycti/utils/opencti_stix2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ def extract_embedded_relationships(
308308
object_marking_ids = (
309309
stix_object["object_marking_refs"]
310310
if "object_marking_refs" in stix_object
311-
else []
311+
else None
312312
)
313313

314314
# Open vocabularies

0 commit comments

Comments
 (0)