Add action tester script #459
27 errors, 18 fail, 1 skipped, 121 pass in 41s
167 tests 121 ✅ 41s ⏱️
1 suites 1 💤
1 files 18 ❌ 27 🔥
Results for commit 67890f9.
Annotations
Check failure on line 0 in tests.test_trigger
github-actions / Test Results
test_trigger_liveness_error (tests.test_trigger) with error
junit.xml [took 0s]
Raw output
failed on setup with "IndexError: list index out of range"
@pytest.fixture()
def monitored_trigger():
> trigger = DummyTrigger()
tests/test_trigger.py:470:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
sekoia_automation/trigger.py:58: in __init__
super().__init__(module, data_path)
sekoia_automation/module.py:344: in __init__
self._setup_logging()
sekoia_automation/module.py:353: in _setup_logging
sentry_sdk.set_tag("name", self.name)
.venv/lib/python3.11/site-packages/sentry_sdk/api.py:170: in set_tag
return Hub.current.scope.set_tag(key, value)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <sentry_sdk.hub.Hub object at 0x7fb239bbf2d0>
@property
def scope(self):
# type: () -> Scope
"""Returns the current scope on the hub."""
> return self._stack[-1][1]
E IndexError: list index out of range
.venv/lib/python3.11/site-packages/sentry_sdk/hub.py:283: IndexError
Check failure on line 0 in tests.test_trigger
github-actions / Test Results
test_trigger_liveness_heartbeat_error (tests.test_trigger) with error
junit.xml [took 0s]
Raw output
failed on setup with "IndexError: list index out of range"
@pytest.fixture()
def monitored_trigger():
> trigger = DummyTrigger()
tests/test_trigger.py:470:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
sekoia_automation/trigger.py:58: in __init__
super().__init__(module, data_path)
sekoia_automation/module.py:344: in __init__
self._setup_logging()
sekoia_automation/module.py:353: in _setup_logging
sentry_sdk.set_tag("name", self.name)
.venv/lib/python3.11/site-packages/sentry_sdk/api.py:170: in set_tag
return Hub.current.scope.set_tag(key, value)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <sentry_sdk.hub.Hub object at 0x7fb239bbf2d0>
@property
def scope(self):
# type: () -> Scope
"""Returns the current scope on the hub."""
> return self._stack[-1][1]
E IndexError: list index out of range
.venv/lib/python3.11/site-packages/sentry_sdk/hub.py:283: IndexError
Check failure on line 0 in tests.test_trigger
github-actions / Test Results
test_trigger_liveness_not_found (tests.test_trigger) with error
junit.xml [took 0s]
Raw output
failed on setup with "IndexError: list index out of range"
@pytest.fixture()
def monitored_trigger():
> trigger = DummyTrigger()
tests/test_trigger.py:470:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
sekoia_automation/trigger.py:58: in __init__
super().__init__(module, data_path)
sekoia_automation/module.py:344: in __init__
self._setup_logging()
sekoia_automation/module.py:353: in _setup_logging
sentry_sdk.set_tag("name", self.name)
.venv/lib/python3.11/site-packages/sentry_sdk/api.py:170: in set_tag
return Hub.current.scope.set_tag(key, value)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <sentry_sdk.hub.Hub object at 0x7fb239bbf2d0>
@property
def scope(self):
# type: () -> Scope
"""Returns the current scope on the hub."""
> return self._stack[-1][1]
E IndexError: list index out of range
.venv/lib/python3.11/site-packages/sentry_sdk/hub.py:283: IndexError
Check warning on line 0 in tests.test_trigger
github-actions / Test Results
test_trigger_s3_connection_error (tests.test_trigger) failed
junit.xml [took 0s]
Raw output
IndexError: list index out of range
mocked_trigger_logs = <requests_mock.mocker.Mocker object at 0x7fb233361850>
def test_trigger_s3_connection_error(mocked_trigger_logs):
> trigger = ErrorTrigger()
tests/test_trigger.py:521:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
sekoia_automation/trigger.py:58: in __init__
super().__init__(module, data_path)
sekoia_automation/module.py:344: in __init__
self._setup_logging()
sekoia_automation/module.py:353: in _setup_logging
sentry_sdk.set_tag("name", self.name)
.venv/lib/python3.11/site-packages/sentry_sdk/api.py:170: in set_tag
return Hub.current.scope.set_tag(key, value)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <sentry_sdk.hub.Hub object at 0x7fb239bbf2d0>
@property
def scope(self):
# type: () -> Scope
"""Returns the current scope on the hub."""
> return self._stack[-1][1]
E IndexError: list index out of range
.venv/lib/python3.11/site-packages/sentry_sdk/hub.py:283: IndexError
Check warning on line 0 in tests.test_trigger
github-actions / Test Results
test_trigger_s3_server_error_int (tests.test_trigger) failed
junit.xml [took 0s]
Raw output
IndexError: list index out of range
mocked_trigger_logs = <requests_mock.mocker.Mocker object at 0x7fb232fdb810>
def test_trigger_s3_server_error_int(mocked_trigger_logs):
> trigger = ErrorTrigger()
tests/test_trigger.py:532:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
sekoia_automation/trigger.py:58: in __init__
super().__init__(module, data_path)
sekoia_automation/module.py:344: in __init__
self._setup_logging()
sekoia_automation/module.py:353: in _setup_logging
sentry_sdk.set_tag("name", self.name)
.venv/lib/python3.11/site-packages/sentry_sdk/api.py:170: in set_tag
return Hub.current.scope.set_tag(key, value)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <sentry_sdk.hub.Hub object at 0x7fb239bbf2d0>
@property
def scope(self):
# type: () -> Scope
"""Returns the current scope on the hub."""
> return self._stack[-1][1]
E IndexError: list index out of range
.venv/lib/python3.11/site-packages/sentry_sdk/hub.py:283: IndexError
Check warning on line 0 in tests.test_trigger
github-actions / Test Results
test_trigger_s3_server_error_str (tests.test_trigger) failed
junit.xml [took 0s]
Raw output
IndexError: list index out of range
mocked_trigger_logs = <requests_mock.mocker.Mocker object at 0x7fb228f149d0>
def test_trigger_s3_server_error_str(mocked_trigger_logs):
> trigger = ErrorTrigger()
tests/test_trigger.py:542:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
sekoia_automation/trigger.py:58: in __init__
super().__init__(module, data_path)
sekoia_automation/module.py:344: in __init__
self._setup_logging()
sekoia_automation/module.py:353: in _setup_logging
sentry_sdk.set_tag("name", self.name)
.venv/lib/python3.11/site-packages/sentry_sdk/api.py:170: in set_tag
return Hub.current.scope.set_tag(key, value)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <sentry_sdk.hub.Hub object at 0x7fb239bbf2d0>
@property
def scope(self):
# type: () -> Scope
"""Returns the current scope on the hub."""
> return self._stack[-1][1]
E IndexError: list index out of range
.venv/lib/python3.11/site-packages/sentry_sdk/hub.py:283: IndexError
Check warning on line 0 in tests.test_trigger
github-actions / Test Results
test_trigger_s3_client_error_int (tests.test_trigger) failed
junit.xml [took 0s]
Raw output
IndexError: list index out of range
mocked_trigger_logs = <requests_mock.mocker.Mocker object at 0x7fb232b61b90>
def test_trigger_s3_client_error_int(mocked_trigger_logs):
> trigger = ErrorTrigger()
tests/test_trigger.py:552:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
sekoia_automation/trigger.py:58: in __init__
super().__init__(module, data_path)
sekoia_automation/module.py:344: in __init__
self._setup_logging()
sekoia_automation/module.py:353: in _setup_logging
sentry_sdk.set_tag("name", self.name)
.venv/lib/python3.11/site-packages/sentry_sdk/api.py:170: in set_tag
return Hub.current.scope.set_tag(key, value)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <sentry_sdk.hub.Hub object at 0x7fb239bbf2d0>
@property
def scope(self):
# type: () -> Scope
"""Returns the current scope on the hub."""
> return self._stack[-1][1]
E IndexError: list index out of range
.venv/lib/python3.11/site-packages/sentry_sdk/hub.py:283: IndexError
Check warning on line 0 in tests.test_trigger
github-actions / Test Results
test_trigger_s3_client_error_str (tests.test_trigger) failed
junit.xml [took 0s]
Raw output
IndexError: list index out of range
mocked_trigger_logs = <requests_mock.mocker.Mocker object at 0x7fb232f65d10>
def test_trigger_s3_client_error_str(mocked_trigger_logs):
> trigger = ErrorTrigger()
tests/test_trigger.py:563:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
sekoia_automation/trigger.py:58: in __init__
super().__init__(module, data_path)
sekoia_automation/module.py:344: in __init__
self._setup_logging()
sekoia_automation/module.py:353: in _setup_logging
sentry_sdk.set_tag("name", self.name)
.venv/lib/python3.11/site-packages/sentry_sdk/api.py:170: in set_tag
return Hub.current.scope.set_tag(key, value)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <sentry_sdk.hub.Hub object at 0x7fb239bbf2d0>
@property
def scope(self):
# type: () -> Scope
"""Returns the current scope on the hub."""
> return self._stack[-1][1]
E IndexError: list index out of range
.venv/lib/python3.11/site-packages/sentry_sdk/hub.py:283: IndexError
Check warning on line 0 in tests.test_trigger
github-actions / Test Results
test_trigger_send_server_error (tests.test_trigger) failed
junit.xml [took 0s]
Raw output
IndexError: list index out of range
mocked_trigger_logs = <requests_mock.mocker.Mocker object at 0x7fb230367dd0>
def test_trigger_send_server_error(mocked_trigger_logs):
> trigger = ErrorTrigger()
tests/test_trigger.py:573:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
sekoia_automation/trigger.py:58: in __init__
super().__init__(module, data_path)
sekoia_automation/module.py:344: in __init__
self._setup_logging()
sekoia_automation/module.py:353: in _setup_logging
sentry_sdk.set_tag("name", self.name)
.venv/lib/python3.11/site-packages/sentry_sdk/api.py:170: in set_tag
return Hub.current.scope.set_tag(key, value)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <sentry_sdk.hub.Hub object at 0x7fb239bbf2d0>
@property
def scope(self):
# type: () -> Scope
"""Returns the current scope on the hub."""
> return self._stack[-1][1]
E IndexError: list index out of range
.venv/lib/python3.11/site-packages/sentry_sdk/hub.py:283: IndexError
Check warning on line 0 in tests.test_trigger
github-actions / Test Results
test_trigger_send_client_error (tests.test_trigger) failed
junit.xml [took 0s]
Raw output
IndexError: list index out of range
mocked_trigger_logs = <requests_mock.mocker.Mocker object at 0x7fb230135690>
def test_trigger_send_client_error(mocked_trigger_logs):
> trigger = ErrorTrigger()
tests/test_trigger.py:583:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
sekoia_automation/trigger.py:58: in __init__
super().__init__(module, data_path)
sekoia_automation/module.py:344: in __init__
self._setup_logging()
sekoia_automation/module.py:353: in _setup_logging
sentry_sdk.set_tag("name", self.name)
.venv/lib/python3.11/site-packages/sentry_sdk/api.py:170: in set_tag
return Hub.current.scope.set_tag(key, value)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <sentry_sdk.hub.Hub object at 0x7fb239bbf2d0>
@property
def scope(self):
# type: () -> Scope
"""Returns the current scope on the hub."""
> return self._stack[-1][1]
E IndexError: list index out of range
.venv/lib/python3.11/site-packages/sentry_sdk/hub.py:283: IndexError
Check warning on line 0 in tests.test_trigger
github-actions / Test Results
test_is_error_critical_errors (tests.test_trigger) failed
junit.xml [took 0s]
Raw output
IndexError: list index out of range
def test_is_error_critical_errors():
> trigger = DummyTrigger()
tests/test_trigger.py:593:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
sekoia_automation/trigger.py:58: in __init__
super().__init__(module, data_path)
sekoia_automation/module.py:344: in __init__
self._setup_logging()
sekoia_automation/module.py:353: in _setup_logging
sentry_sdk.set_tag("name", self.name)
.venv/lib/python3.11/site-packages/sentry_sdk/api.py:170: in set_tag
return Hub.current.scope.set_tag(key, value)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <sentry_sdk.hub.Hub object at 0x7fb239bbf2d0>
@property
def scope(self):
# type: () -> Scope
"""Returns the current scope on the hub."""
> return self._stack[-1][1]
E IndexError: list index out of range
.venv/lib/python3.11/site-packages/sentry_sdk/hub.py:283: IndexError
Check warning on line 0 in tests.test_trigger
github-actions / Test Results
test_is_error_critical_time_since_last_event (tests.test_trigger) failed
junit.xml [took 0s]
Raw output
IndexError: list index out of range
def test_is_error_critical_time_since_last_event():
> trigger = DummyTrigger()
tests/test_trigger.py:603:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
sekoia_automation/trigger.py:58: in __init__
super().__init__(module, data_path)
sekoia_automation/module.py:344: in __init__
self._setup_logging()
sekoia_automation/module.py:353: in _setup_logging
sentry_sdk.set_tag("name", self.name)
.venv/lib/python3.11/site-packages/sentry_sdk/api.py:170: in set_tag
return Hub.current.scope.set_tag(key, value)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <sentry_sdk.hub.Hub object at 0x7fb239bbf2d0>
@property
def scope(self):
# type: () -> Scope
"""Returns the current scope on the hub."""
> return self._stack[-1][1]
E IndexError: list index out of range
.venv/lib/python3.11/site-packages/sentry_sdk/hub.py:283: IndexError
Check failure on line 0 in tests.aio.test_connector
github-actions / Test Results
test_async_connector_rate_limiter (tests.aio.test_connector) with error
junit.xml [took 0s]
Raw output
failed on setup with "IndexError: list index out of range"
storage = PosixPath('/tmp/tmpk31esssp')
mocked_trigger_logs = <requests_mock.mocker.Mocker object at 0x7fb231ff9ad0>
faker = <faker.proxy.Faker object at 0x7fb23578a6d0>
@pytest.fixture
def async_connector(storage, mocked_trigger_logs, faker: Faker):
with patch("sentry_sdk.set_tag"):
async_connector = DummyAsyncConnector(data_path=storage)
async_connector.trigger_activation = "2022-03-14T11:16:14.236930Z"
> async_connector.configuration = {
"intake_key": "",
"intake_server": faker.uri(),
}
tests/aio/test_connector.py:29:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
sekoia_automation/connector/__init__.py:76: in configuration
sentry_sdk.set_context(
.venv/lib/python3.11/site-packages/sentry_sdk/api.py:176: in set_context
return Hub.current.scope.set_context(key, value)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <sentry_sdk.hub.Hub object at 0x7fb239bbf2d0>
@property
def scope(self):
# type: () -> Scope
"""Returns the current scope on the hub."""
> return self._stack[-1][1]
E IndexError: list index out of range
.venv/lib/python3.11/site-packages/sentry_sdk/hub.py:283: IndexError
Check failure on line 0 in tests.aio.test_connector
github-actions / Test Results
test_async_connector_client_session (tests.aio.test_connector) with error
junit.xml [took 0s]
Raw output
failed on setup with "IndexError: list index out of range"
storage = PosixPath('/tmp/tmp7y0ysztr')
mocked_trigger_logs = <requests_mock.mocker.Mocker object at 0x7fb230201050>
faker = <faker.proxy.Faker object at 0x7fb23578a6d0>
@pytest.fixture
def async_connector(storage, mocked_trigger_logs, faker: Faker):
with patch("sentry_sdk.set_tag"):
async_connector = DummyAsyncConnector(data_path=storage)
async_connector.trigger_activation = "2022-03-14T11:16:14.236930Z"
> async_connector.configuration = {
"intake_key": "",
"intake_server": faker.uri(),
}
tests/aio/test_connector.py:29:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
sekoia_automation/connector/__init__.py:76: in configuration
sentry_sdk.set_context(
.venv/lib/python3.11/site-packages/sentry_sdk/api.py:176: in set_context
return Hub.current.scope.set_context(key, value)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <sentry_sdk.hub.Hub object at 0x7fb239bbf2d0>
@property
def scope(self):
# type: () -> Scope
"""Returns the current scope on the hub."""
> return self._stack[-1][1]
E IndexError: list index out of range
.venv/lib/python3.11/site-packages/sentry_sdk/hub.py:283: IndexError
Check failure on line 0 in tests.aio.test_connector
github-actions / Test Results
test_async_connector_push_single_event (tests.aio.test_connector) with error
junit.xml [took 0s]
Raw output
failed on setup with "IndexError: list index out of range"
storage = PosixPath('/tmp/tmps7ffhus4')
mocked_trigger_logs = <requests_mock.mocker.Mocker object at 0x7fb2337a4490>
faker = <faker.proxy.Faker object at 0x7fb23578a6d0>
@pytest.fixture
def async_connector(storage, mocked_trigger_logs, faker: Faker):
with patch("sentry_sdk.set_tag"):
async_connector = DummyAsyncConnector(data_path=storage)
async_connector.trigger_activation = "2022-03-14T11:16:14.236930Z"
> async_connector.configuration = {
"intake_key": "",
"intake_server": faker.uri(),
}
tests/aio/test_connector.py:29:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
sekoia_automation/connector/__init__.py:76: in configuration
sentry_sdk.set_context(
.venv/lib/python3.11/site-packages/sentry_sdk/api.py:176: in set_context
return Hub.current.scope.set_context(key, value)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <sentry_sdk.hub.Hub object at 0x7fb239bbf2d0>
@property
def scope(self):
# type: () -> Scope
"""Returns the current scope on the hub."""
> return self._stack[-1][1]
E IndexError: list index out of range
.venv/lib/python3.11/site-packages/sentry_sdk/hub.py:283: IndexError
Check failure on line 0 in tests.aio.test_connector
github-actions / Test Results
test_async_connector_push_multiple_events (tests.aio.test_connector) with error
junit.xml [took 0s]
Raw output
failed on setup with "IndexError: list index out of range"
storage = PosixPath('/tmp/tmp2wjoci4e')
mocked_trigger_logs = <requests_mock.mocker.Mocker object at 0x7fb2333de550>
faker = <faker.proxy.Faker object at 0x7fb23578a6d0>
@pytest.fixture
def async_connector(storage, mocked_trigger_logs, faker: Faker):
with patch("sentry_sdk.set_tag"):
async_connector = DummyAsyncConnector(data_path=storage)
async_connector.trigger_activation = "2022-03-14T11:16:14.236930Z"
> async_connector.configuration = {
"intake_key": "",
"intake_server": faker.uri(),
}
tests/aio/test_connector.py:29:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
sekoia_automation/connector/__init__.py:76: in configuration
sentry_sdk.set_context(
.venv/lib/python3.11/site-packages/sentry_sdk/api.py:176: in set_context
return Hub.current.scope.set_context(key, value)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <sentry_sdk.hub.Hub object at 0x7fb239bbf2d0>
@property
def scope(self):
# type: () -> Scope
"""Returns the current scope on the hub."""
> return self._stack[-1][1]
E IndexError: list index out of range
.venv/lib/python3.11/site-packages/sentry_sdk/hub.py:283: IndexError
Check failure on line 0 in tests.aio.test_connector
github-actions / Test Results
test_async_connector_raise_error (tests.aio.test_connector) with error
junit.xml [took 0s]
Raw output
failed on setup with "IndexError: list index out of range"
storage = PosixPath('/tmp/tmpwc7mcf4f')
mocked_trigger_logs = <requests_mock.mocker.Mocker object at 0x7fb230186cd0>
faker = <faker.proxy.Faker object at 0x7fb23578a6d0>
@pytest.fixture
def async_connector(storage, mocked_trigger_logs, faker: Faker):
with patch("sentry_sdk.set_tag"):
async_connector = DummyAsyncConnector(data_path=storage)
async_connector.trigger_activation = "2022-03-14T11:16:14.236930Z"
> async_connector.configuration = {
"intake_key": "",
"intake_server": faker.uri(),
}
tests/aio/test_connector.py:29:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
sekoia_automation/connector/__init__.py:76: in configuration
sentry_sdk.set_context(
.venv/lib/python3.11/site-packages/sentry_sdk/api.py:176: in set_context
return Hub.current.scope.set_context(key, value)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <sentry_sdk.hub.Hub object at 0x7fb239bbf2d0>
@property
def scope(self):
# type: () -> Scope
"""Returns the current scope on the hub."""
> return self._stack[-1][1]
E IndexError: list index out of range
.venv/lib/python3.11/site-packages/sentry_sdk/hub.py:283: IndexError
Check warning on line 0 in tests.aio.helpers.test_file_utils
github-actions / Test Results
test_delete_file (tests.aio.helpers.test_file_utils) failed
junit.xml [took 0s]
Raw output
IndexError: list index out of range
tmp_path = PosixPath('/tmp/pytest-of-runner/pytest-0/test_delete_file0')
session_faker = <faker.proxy.Faker object at 0x7fb2343f1fd0>
random_text = 'Knowledge crime him or. Vote board challenge water. The will yourself.'
@pytest.mark.asyncio
async def test_delete_file(tmp_path, session_faker, random_text):
"""
Test delete_file.
Args:
tmp_path: Path
session_faker: Faker
random_text: str
"""
file_path = os.path.join(tmp_path, session_faker.word())
with open(file_path, "w+") as file:
file.write(random_text)
assert os.path.exists(file_path)
> await delete_file(file_path)
tests/aio/helpers/test_file_utils.py:61:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
sekoia_automation/aio/helpers/files/utils.py:13: in delete_file
await aio_os.remove(file_name)
.venv/lib/python3.11/site-packages/aiofiles/ospath.py:13: in run
return await loop.run_in_executor(executor, pfunc)
/opt/hostedtoolcache/Python/3.11.9/x64/lib/python3.11/asyncio/base_events.py:830: in run_in_executor
executor.submit(func, *args), loop=self)
/opt/hostedtoolcache/Python/3.11.9/x64/lib/python3.11/concurrent/futures/thread.py:176: in submit
self._adjust_thread_count()
/opt/hostedtoolcache/Python/3.11.9/x64/lib/python3.11/concurrent/futures/thread.py:199: in _adjust_thread_count
t.start()
.venv/lib/python3.11/site-packages/sentry_sdk/integrations/threading.py:40: in sentry_start
integration = hub.get_integration(ThreadingIntegration)
.venv/lib/python3.11/site-packages/sentry_sdk/hub.py:269: in get_integration
client = self.client
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <sentry_sdk.hub.Hub object at 0x7fb239bbf2d0>
@property
def client(self):
# type: () -> Optional[Client]
"""Returns the current client on the hub."""
> return self._stack[-1][0]
E IndexError: list index out of range
.venv/lib/python3.11/site-packages/sentry_sdk/hub.py:277: IndexError
Check warning on line 0 in tests.aio.helpers.test_file_utils
github-actions / Test Results
test_csv_file_content (tests.aio.helpers.test_file_utils) failed
junit.xml [took 0s]
Raw output
IndexError: list index out of range
tmp_path = PosixPath('/tmp/pytest-of-runner/pytest-0/test_csv_file_content0')
session_faker = <faker.proxy.Faker object at 0x7fb2343f1fd0>
csv_content = 'RADIO,EVERY\ncompare,eye\nphysical,raise\nmemory,change'
@pytest.mark.asyncio
async def test_csv_file_content(tmp_path, session_faker, csv_content):
"""
Test read file content as csv.
Args:
tmp_path: Path
session_faker: Faker
csv_content: str
"""
file_path = os.path.join(tmp_path, session_faker.word())
with open(file_path, "w+") as file:
file.write(csv_content)
result = []
> async for row in csv_file_as_rows(file_path):
tests/aio/helpers/test_file_utils.py:81:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
sekoia_automation/aio/helpers/files/csv.py:26: in csv_file_as_rows
async with aiofiles.open(file_path, encoding=encoding) as file:
.venv/lib/python3.11/site-packages/aiofiles/base.py:98: in __aenter__
self._obj = await self._coro
.venv/lib/python3.11/site-packages/aiofiles/threadpool/__init__.py:94: in _open
f = yield from loop.run_in_executor(executor, cb)
/opt/hostedtoolcache/Python/3.11.9/x64/lib/python3.11/asyncio/base_events.py:830: in run_in_executor
executor.submit(func, *args), loop=self)
/opt/hostedtoolcache/Python/3.11.9/x64/lib/python3.11/concurrent/futures/thread.py:176: in submit
self._adjust_thread_count()
/opt/hostedtoolcache/Python/3.11.9/x64/lib/python3.11/concurrent/futures/thread.py:199: in _adjust_thread_count
t.start()
.venv/lib/python3.11/site-packages/sentry_sdk/integrations/threading.py:40: in sentry_start
integration = hub.get_integration(ThreadingIntegration)
.venv/lib/python3.11/site-packages/sentry_sdk/hub.py:269: in get_integration
client = self.client
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <sentry_sdk.hub.Hub object at 0x7fb239bbf2d0>
@property
def client(self):
# type: () -> Optional[Client]
"""Returns the current client on the hub."""
> return self._stack[-1][0]
E IndexError: list index out of range
.venv/lib/python3.11/site-packages/sentry_sdk/hub.py:277: IndexError
Check warning on line 0 in tests.aio.helpers.http.test_http_client_session
github-actions / Test Results
test_http_client_get_data (tests.aio.helpers.http.test_http_client_session) failed
junit.xml [took 0s]
Raw output
IndexError: list index out of range
session_faker = <faker.proxy.Faker object at 0x7fb2343f1fd0>
http_client = <tests.aio.helpers.http.test_http_client_session.CustomHttpClient object at 0x7fb230201c50>
base_url = 'http://www.morrow.com/posts/categoryterms.jsp'
auth_url = 'https://bennett.info/blog/tagindex.html'
@pytest.mark.asyncio
async def test_http_client_get_data(session_faker, http_client, base_url, auth_url):
"""
Test http_client get data.
Args:
session_faker: Faker
http_client: CustomHttpClient
base_url: str
auth_url: str
"""
token_response = TokenResponse(access_token=session_faker.word())
get_test_data_response = {
session_faker.word(): session_faker.word(),
session_faker.word(): session_faker.word(),
}
with aioresponses() as mocked_responses:
mocked_responses.post(auth_url, payload=token_response.dict())
mocked_responses.get(f"{base_url}/test", payload=get_test_data_response)
> test_data = await http_client.get_test_data(url=f"{base_url}/test")
tests/aio/helpers/http/test_http_client_session.py:149:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
tests/aio/helpers/http/test_http_client_session.py:78: in get_test_data
async with self.token_refresher.with_access_token() as access_token:
/opt/hostedtoolcache/Python/3.11.9/x64/lib/python3.11/contextlib.py:210: in __aenter__
return await anext(self.gen)
sekoia_automation/aio/helpers/http/token_refresher.py:145: in with_access_token
await self._refresh_token()
sekoia_automation/aio/helpers/http/token_refresher.py:111: in _refresh_token
self._token = await self.get_token()
tests/aio/helpers/http/test_http_client_session.py:32: in get_token
async with self.session().post(url=self.auth_url, json={}) as response:
sekoia_automation/aio/helpers/http/token_refresher.py:88: in session
self._session = ClientSession()
.venv/lib/python3.11/site-packages/sentry_sdk/integrations/aiohttp.py:182: in init
if hub.get_integration(AioHttpIntegration) is None:
.venv/lib/python3.11/site-packages/sentry_sdk/hub.py:269: in get_integration
client = self.client
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <sentry_sdk.hub.Hub object at 0x7fb239bbf2d0>
@property
def client(self):
# type: () -> Optional[Client]
"""Returns the current client on the hub."""
> return self._stack[-1][0]
E IndexError: list index out of range
.venv/lib/python3.11/site-packages/sentry_sdk/hub.py:277: IndexError
Check warning on line 0 in tests.aio.helpers.http.test_http_client_session
github-actions / Test Results
test_http_client_get_data_async_limiter (tests.aio.helpers.http.test_http_client_session) failed
junit.xml [took 0s]
Raw output
IndexError: list index out of range
session_faker = <faker.proxy.Faker object at 0x7fb2343f1fd0>
http_client = <tests.aio.helpers.http.test_http_client_session.CustomHttpClient object at 0x7fb230337910>
base_url = 'https://armstrong-randall.info/list/posts/categoriessearch.htm'
auth_url = 'http://www.mueller.biz/wp-content/postsabout.htm'
@pytest.mark.asyncio
async def test_http_client_get_data_async_limiter(
session_faker,
http_client,
base_url,
auth_url,
):
"""
Test http_client get data with async_limiter.
Args:
session_faker: Faker
http_client: CustomHttpClient
base_url: str
auth_url: str
"""
token_response = TokenResponse(access_token=session_faker.word())
# 1 request per 3 seconds
http_client.set_rate_limit(1, 3)
get_test_data_response = {
session_faker.word(): session_faker.word(),
session_faker.word(): session_faker.word(),
}
with aioresponses() as mocked_responses:
start_query_time = time.time()
mocked_responses.post(auth_url, payload=token_response.dict())
mocked_responses.get(f"{base_url}/test", payload=get_test_data_response)
> await http_client.get_test_data(url=f"{base_url}/test")
tests/aio/helpers/http/test_http_client_session.py:188:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
tests/aio/helpers/http/test_http_client_session.py:78: in get_test_data
async with self.token_refresher.with_access_token() as access_token:
/opt/hostedtoolcache/Python/3.11.9/x64/lib/python3.11/contextlib.py:210: in __aenter__
return await anext(self.gen)
sekoia_automation/aio/helpers/http/token_refresher.py:145: in with_access_token
await self._refresh_token()
sekoia_automation/aio/helpers/http/token_refresher.py:111: in _refresh_token
self._token = await self.get_token()
tests/aio/helpers/http/test_http_client_session.py:32: in get_token
async with self.session().post(url=self.auth_url, json={}) as response:
sekoia_automation/aio/helpers/http/token_refresher.py:88: in session
self._session = ClientSession()
.venv/lib/python3.11/site-packages/sentry_sdk/integrations/aiohttp.py:182: in init
if hub.get_integration(AioHttpIntegration) is None:
.venv/lib/python3.11/site-packages/sentry_sdk/hub.py:269: in get_integration
client = self.client
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <sentry_sdk.hub.Hub object at 0x7fb239bbf2d0>
@property
def client(self):
# type: () -> Optional[Client]
"""Returns the current client on the hub."""
> return self._stack[-1][0]
E IndexError: list index out of range
.venv/lib/python3.11/site-packages/sentry_sdk/hub.py:277: IndexError
Check warning on line 0 in tests.aio.helpers.http.test_http_token_refresher
github-actions / Test Results
test_token_refresher_1 (tests.aio.helpers.http.test_http_token_refresher) failed
junit.xml [took 0s]
Raw output
IndexError: list index out of range
session_faker = <faker.proxy.Faker object at 0x7fb2343f1fd0>
@pytest.mark.asyncio
async def test_token_refresher_1(session_faker):
"""
Test token refresher with ttl from class.
Args:
session_faker: Faker
"""
token_response = CustomTokenResponse(
access_token=session_faker.word(),
signature=session_faker.word(),
random_field=session_faker.word(),
)
client_id = session_faker.word()
client_secret = session_faker.word()
auth_url = session_faker.uri()
token_refresher = await CustomTokenRefresher.get_instance(
client_id,
client_secret,
auth_url,
)
assert token_refresher == await CustomTokenRefresher.get_instance(
client_id,
client_secret,
auth_url,
)
with aioresponses() as mocked_responses:
mocked_responses.post(auth_url, payload=token_response.dict())
> await token_refresher._refresh_token()
tests/aio/helpers/http/test_http_token_refresher.py:148:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
sekoia_automation/aio/helpers/http/token_refresher.py:111: in _refresh_token
self._token = await self.get_token()
tests/aio/helpers/http/test_http_token_refresher.py:103: in get_token
async with self.session().post(url=self.auth_url, json={}) as response:
sekoia_automation/aio/helpers/http/token_refresher.py:88: in session
self._session = ClientSession()
.venv/lib/python3.11/site-packages/sentry_sdk/integrations/aiohttp.py:182: in init
if hub.get_integration(AioHttpIntegration) is None:
.venv/lib/python3.11/site-packages/sentry_sdk/hub.py:269: in get_integration
client = self.client
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <sentry_sdk.hub.Hub object at 0x7fb239bbf2d0>
@property
def client(self):
# type: () -> Optional[Client]
"""Returns the current client on the hub."""
> return self._stack[-1][0]
E IndexError: list index out of range
.venv/lib/python3.11/site-packages/sentry_sdk/hub.py:277: IndexError
Check warning on line 0 in tests.aio.helpers.http.test_http_token_refresher
github-actions / Test Results
test_token_refresher_2 (tests.aio.helpers.http.test_http_token_refresher) failed
junit.xml [took 0s]
Raw output
IndexError: list index out of range
session_faker = <faker.proxy.Faker object at 0x7fb2343f1fd0>
@pytest.mark.asyncio
async def test_token_refresher_2(session_faker):
"""
Test token refresher with ttl from server response.
Args:
session_faker: Faker
"""
token_response = {
"access_token": session_faker.word(),
"signature": session_faker.word(),
"random_field": session_faker.word(),
"expires_in": session_faker.pyint(),
}
client_id = session_faker.word()
client_secret = session_faker.word()
auth_url = session_faker.uri()
with aioresponses() as mocked_responses:
token_refresher = CustomTokenRefresher(
client_id,
client_secret,
auth_url,
)
mocked_responses.post(auth_url, payload=token_response)
> await token_refresher._refresh_token()
tests/aio/helpers/http/test_http_token_refresher.py:187:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
sekoia_automation/aio/helpers/http/token_refresher.py:111: in _refresh_token
self._token = await self.get_token()
tests/aio/helpers/http/test_http_token_refresher.py:103: in get_token
async with self.session().post(url=self.auth_url, json={}) as response:
sekoia_automation/aio/helpers/http/token_refresher.py:88: in session
self._session = ClientSession()
.venv/lib/python3.11/site-packages/sentry_sdk/integrations/aiohttp.py:182: in init
if hub.get_integration(AioHttpIntegration) is None:
.venv/lib/python3.11/site-packages/sentry_sdk/hub.py:269: in get_integration
client = self.client
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <sentry_sdk.hub.Hub object at 0x7fb239bbf2d0>
@property
def client(self):
# type: () -> Optional[Client]
"""Returns the current client on the hub."""
> return self._stack[-1][0]
E IndexError: list index out of range
.venv/lib/python3.11/site-packages/sentry_sdk/hub.py:277: IndexError
Check warning on line 0 in tests.aio.helpers.http.test_http_token_refresher
github-actions / Test Results
test_token_refresher_with_token (tests.aio.helpers.http.test_http_token_refresher) failed
junit.xml [took 0s]
Raw output
IndexError: list index out of range
session_faker = <faker.proxy.Faker object at 0x7fb2343f1fd0>
@pytest.mark.asyncio
async def test_token_refresher_with_token(session_faker):
"""
Test token refresher with ttl from server response.
Args:
session_faker: Faker
"""
token_response = {
"access_token": session_faker.word(),
"signature": session_faker.word(),
"random_field": session_faker.word(),
"expires_in": session_faker.pyint(),
}
client_id = session_faker.word()
client_secret = session_faker.word()
auth_url = session_faker.uri()
with aioresponses() as mocked_responses:
token_refresher = CustomTokenRefresher(
client_id,
client_secret,
auth_url,
)
mocked_responses.post(auth_url, payload=token_response)
> async with token_refresher.with_access_token() as generated_token:
tests/aio/helpers/http/test_http_token_refresher.py:230:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/opt/hostedtoolcache/Python/3.11.9/x64/lib/python3.11/contextlib.py:210: in __aenter__
return await anext(self.gen)
sekoia_automation/aio/helpers/http/token_refresher.py:145: in with_access_token
await self._refresh_token()
sekoia_automation/aio/helpers/http/token_refresher.py:111: in _refresh_token
self._token = await self.get_token()
tests/aio/helpers/http/test_http_token_refresher.py:103: in get_token
async with self.session().post(url=self.auth_url, json={}) as response:
sekoia_automation/aio/helpers/http/token_refresher.py:88: in session
self._session = ClientSession()
.venv/lib/python3.11/site-packages/sentry_sdk/integrations/aiohttp.py:182: in init
if hub.get_integration(AioHttpIntegration) is None:
.venv/lib/python3.11/site-packages/sentry_sdk/hub.py:269: in get_integration
client = self.client
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <sentry_sdk.hub.Hub object at 0x7fb239bbf2d0>
@property
def client(self):
# type: () -> Optional[Client]
"""Returns the current client on the hub."""
> return self._stack[-1][0]
E IndexError: list index out of range
.venv/lib/python3.11/site-packages/sentry_sdk/hub.py:277: IndexError
Check warning on line 0 in tests.aio.helpers.http.test_http_utils
github-actions / Test Results
test_save_response_to_temporary_file (tests.aio.helpers.http.test_http_utils) failed
junit.xml [took 0s]
Raw output
IndexError: list index out of range
tmp_path = PosixPath('/tmp/pytest-of-runner/pytest-0/test_save_response_to_temporar0')
session_faker = <faker.proxy.Faker object at 0x7fb2343f1fd0>
@pytest.mark.asyncio
async def test_save_response_to_temporary_file(tmp_path, session_faker):
"""
Test save response to file.
Args:
tmp_path: Path
session_faker: Faker
"""
data = session_faker.json(
data_columns={"test": ["name", "name", "name"]},
num_rows=1000,
)
with aioresponses() as mocked_responses:
url = session_faker.uri()
mocked_responses.get(
url=url,
status=200,
body=data,
headers={"Content-Length": f"{len(data)}"},
)
> async with ClientSession() as session:
tests/aio/helpers/http/test_http_utils.py:36:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.venv/lib/python3.11/site-packages/sentry_sdk/integrations/aiohttp.py:182: in init
if hub.get_integration(AioHttpIntegration) is None:
.venv/lib/python3.11/site-packages/sentry_sdk/hub.py:269: in get_integration
client = self.client
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <sentry_sdk.hub.Hub object at 0x7fb239bbf2d0>
@property
def client(self):
# type: () -> Optional[Client]
"""Returns the current client on the hub."""
> return self._stack[-1][0]
E IndexError: list index out of range
.venv/lib/python3.11/site-packages/sentry_sdk/hub.py:277: IndexError