Skip to content

Add support for Connectors #293

Add support for Connectors

Add support for Connectors #293

GitHub Actions / Test Results failed Oct 6, 2023 in 0s

26 errors, 58 fail, 1 skipped, 74 pass in 18s

159 tests  ±0   74 ✔️  - 84   18s ⏱️ - 1m 1s
    1 suites ±0     1 💤 ±  0 
    1 files   ±0   58 +58   26 🔥 +26 

Results for commit cffb8ea. ± Comparison against earlier commit 6b9cc2d.

Annotations

Check warning on line 0 in tests.test_cli

See this annotation in the file changed.

@github-actions github-actions / Test Results

test_update_sdk_version (tests.test_cli) failed

junit.xml [took 0s]
Raw output
AssertionError: assert 1 == 0
 +  where 1 = <Result IndexError('list index out of range')>.exit_code
tmp_path = PosixPath('/tmp/pytest-of-runner/pytest-0/test_update_sdk_version0')

    def test_update_sdk_version(tmp_path):
        module = "MyModule"
        description = "My Description"
        res: Result = runner.invoke(
            app, ["new-module", str(tmp_path)], input=f"{module}\n{description}\n"
        )
        assert res.exit_code == 0
    
        module_path = tmp_path.joinpath(module)
        with module_path.joinpath("manifest.json").open("r") as fp:
            major, minor, *_ = json.load(fp)["version"].split(".")
    
        with patch("sekoia_automation.scripts.update_sdk_version.subprocess") as m:
            m.run.return_value = CompletedProcess([], returncode=0)
            res: Result = runner.invoke(
                app,
                ["update-sdk-version", "--modules-path", tmp_path],
            )
>           assert res.exit_code == 0
E           AssertionError: assert 1 == 0
E            +  where 1 = <Result IndexError('list index out of range')>.exit_code

tests/test_cli.py:232: AssertionError

Check warning on line 0 in tests.test_cli

See this annotation in the file changed.

@github-actions github-actions / Test Results

test_update_sdk_version_error (tests.test_cli) failed

junit.xml [took 0s]
Raw output
AssertionError: assert 1 == 0
 +  where 1 = <Result LiveError('Only one live display may be active at once')>.exit_code
tmp_path = PosixPath('/tmp/pytest-of-runner/pytest-0/test_update_sdk_version_error0')

    def test_update_sdk_version_error(tmp_path):
        module = "MyModule"
        description = "My Description"
        res: Result = runner.invoke(
            app, ["new-module", str(tmp_path)], input=f"{module}\n{description}\n"
        )
        assert res.exit_code == 0
    
        module_path = tmp_path.joinpath(module)
        with module_path.joinpath("manifest.json").open("r") as fp:
            major, minor, *_ = json.load(fp)["version"].split(".")
    
        with patch("sekoia_automation.scripts.update_sdk_version.subprocess") as m:
            m.run.return_value = CompletedProcess([], returncode=1)
            res: Result = runner.invoke(
                app,
                ["update-sdk-version", "--modules-path", tmp_path],
            )
>           assert res.exit_code == 0
E           AssertionError: assert 1 == 0
E            +  where 1 = <Result LiveError('Only one live display may be active at once')>.exit_code

tests/test_cli.py:258: AssertionError

Check warning on line 0 in tests.test_module

See this annotation in the file changed.

@github-actions github-actions / Test Results

test_load_config_text (tests.test_module) failed

junit.xml [took 0s]
Raw output
IndexError: list index out of range
mock_volume = None

    def test_load_config_text(mock_volume):
>       module = Module()

tests/test_module.py:22: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
sekoia_automation/module.py:53: in __init__
    self.init_sentry()
sekoia_automation/module.py:288: in init_sentry
    sentry_sdk.init(sentry_dsn, environment=self._load_environment())
.venv/lib/python3.11/site-packages/sentry_sdk/hub.py:132: in _init
    client = Client(*args, **kwargs)  # type: ignore
.venv/lib/python3.11/site-packages/sentry_sdk/client.py:153: in __init__
    self.options = get_options(*args, **kwargs)  # type: Dict[str, Any]
.venv/lib/python3.11/site-packages/sentry_sdk/client.py:108: in _get_options
    rv["release"] = get_default_release()
.venv/lib/python3.11/site-packages/sentry_sdk/utils.py:107: in get_default_release
    subprocess.Popen(
.venv/lib/python3.11/site-packages/sentry_sdk/integrations/stdlib.py:179: in sentry_patched_popen_init
    if hub.get_integration(StdlibIntegration) is None:
.venv/lib/python3.11/site-packages/sentry_sdk/hub.py:305: in get_integration
    client = self.client
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <sentry_sdk.hub.Hub object at 0x7ff2faf2f010>

    @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:315: IndexError

Check warning on line 0 in tests.test_module

See this annotation in the file changed.

@github-actions github-actions / Test Results

test_load_config_json (tests.test_module) failed

junit.xml [took 0s]
Raw output
IndexError: list index out of range
mock_volume = None

    def test_load_config_json(mock_volume):
>       module = Module()

tests/test_module.py:27: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
sekoia_automation/module.py:53: in __init__
    self.init_sentry()
sekoia_automation/module.py:288: in init_sentry
    sentry_sdk.init(sentry_dsn, environment=self._load_environment())
.venv/lib/python3.11/site-packages/sentry_sdk/hub.py:132: in _init
    client = Client(*args, **kwargs)  # type: ignore
.venv/lib/python3.11/site-packages/sentry_sdk/client.py:153: in __init__
    self.options = get_options(*args, **kwargs)  # type: Dict[str, Any]
.venv/lib/python3.11/site-packages/sentry_sdk/client.py:108: in _get_options
    rv["release"] = get_default_release()
.venv/lib/python3.11/site-packages/sentry_sdk/utils.py:107: in get_default_release
    subprocess.Popen(
.venv/lib/python3.11/site-packages/sentry_sdk/integrations/stdlib.py:179: in sentry_patched_popen_init
    if hub.get_integration(StdlibIntegration) is None:
.venv/lib/python3.11/site-packages/sentry_sdk/hub.py:305: in get_integration
    client = self.client
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <sentry_sdk.hub.Hub object at 0x7ff2faf2f010>

    @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:315: IndexError

Check warning on line 0 in tests.test_module

See this annotation in the file changed.

@github-actions github-actions / Test Results

test_no_command (tests.test_module) failed

junit.xml [took 0s]
Raw output
IndexError: list index out of range
def test_no_command():
        module = Module()
    
        with pytest.raises(CommandNotFoundError):
>           module.run()

tests/test_module.py:47: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
sekoia_automation/module.py:282: in run
    sentry_sdk.capture_message(error, "error")
.venv/lib/python3.11/site-packages/sentry_sdk/api.py:99: in capture_message
    return Hub.current.capture_message(message, level, scope=scope, **scope_args)
.venv/lib/python3.11/site-packages/sentry_sdk/hub.py:372: in capture_message
    if self.client is None:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <sentry_sdk.hub.Hub object at 0x7ff2faf2f010>

    @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:315: IndexError

Check warning on line 0 in tests.test_module

See this annotation in the file changed.

@github-actions github-actions / Test Results

test_register_no_command (tests.test_module) failed

junit.xml [took 0s]
Raw output
IndexError: list index out of range
def test_register_no_command():
        module = Module()
    
        module.register(DummyTrigger, "some_command")
    
        with patch("sys.argv", ["run", "other_command"]):
            with pytest.raises(CommandNotFoundError):
>               module.run()

tests/test_module.py:62: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
sekoia_automation/module.py:282: in run
    sentry_sdk.capture_message(error, "error")
.venv/lib/python3.11/site-packages/sentry_sdk/api.py:99: in capture_message
    return Hub.current.capture_message(message, level, scope=scope, **scope_args)
.venv/lib/python3.11/site-packages/sentry_sdk/hub.py:372: in capture_message
    if self.client is None:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <sentry_sdk.hub.Hub object at 0x7ff2faf2f010>

    @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:315: IndexError

Check warning on line 0 in tests.test_module

See this annotation in the file changed.

@github-actions github-actions / Test Results

test_register_execute_default (tests.test_module) failed

junit.xml [took 0s]
Raw output
IndexError: list index out of range
mock = <MagicMock name='execute' id='140681500229072'>

    @patch.object(DummyTrigger, "execute")
    def test_register_execute_default(mock):
        module = Module()
    
        module.register(DummyTrigger)
    
        with patch("sys.argv", ["run"]):
>           module.run()

tests/test_module.py:72: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
sekoia_automation/module.py:274: in run
    to_run = self._items[command](self)
sekoia_automation/trigger.py:54: in __init__
    super().__init__(module, data_path)
sekoia_automation/module.py:343: in __init__
    self._setup_logging()
sekoia_automation/module.py:352: in _setup_logging
    sentry_sdk.set_tag("name", self.name)
.venv/lib/python3.11/site-packages/sentry_sdk/api.py:169: in set_tag
    return Hub.current.scope.set_tag(key, value)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <sentry_sdk.hub.Hub object at 0x7ff2faf2f010>

    @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:321: IndexError

Check warning on line 0 in tests.test_module

See this annotation in the file changed.

@github-actions github-actions / Test Results

test_register_execute_command (tests.test_module) failed

junit.xml [took 0s]
Raw output
IndexError: list index out of range
mock = <MagicMock name='execute' id='140681470834064'>

    @patch.object(DummyTrigger, "execute")
    def test_register_execute_command(mock):
        module = Module()
    
        module.register(DummyTrigger, "some_command")
    
        with patch("sys.argv", ["run", "some_command"]):
>           module.run()

tests/test_module.py:83: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
sekoia_automation/module.py:274: in run
    to_run = self._items[command](self)
sekoia_automation/trigger.py:54: in __init__
    super().__init__(module, data_path)
sekoia_automation/module.py:343: in __init__
    self._setup_logging()
sekoia_automation/module.py:352: in _setup_logging
    sentry_sdk.set_tag("name", self.name)
.venv/lib/python3.11/site-packages/sentry_sdk/api.py:169: in set_tag
    return Hub.current.scope.set_tag(key, value)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <sentry_sdk.hub.Hub object at 0x7ff2faf2f010>

    @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:321: IndexError

Check warning on line 0 in tests.test_module

See this annotation in the file changed.

@github-actions github-actions / Test Results

test_abstract_module_item (tests.test_module) failed

junit.xml [took 0s]
Raw output
IndexError: list index out of range
def test_abstract_module_item():
        class TestItem(ModuleItem):
            def execute(self) -> None:
                raise NotImplementedError
    
        module = Module()
        module.register(TestItem)
    
        with patch("sys.argv", ["run"]):
            with pytest.raises(NotImplementedError):
>               module.run()

tests/test_module.py:97: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
sekoia_automation/module.py:274: in run
    to_run = self._items[command](self)
sekoia_automation/module.py:343: in __init__
    self._setup_logging()
sekoia_automation/module.py:352: in _setup_logging
    sentry_sdk.set_tag("name", self.name)
.venv/lib/python3.11/site-packages/sentry_sdk/api.py:169: in set_tag
    return Hub.current.scope.set_tag(key, value)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <sentry_sdk.hub.Hub object at 0x7ff2faf2f010>

    @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:321: IndexError

Check warning on line 0 in tests.test_module

See this annotation in the file changed.

@github-actions github-actions / Test Results

test_configuration_setter (tests.test_module) failed

junit.xml [took 0s]
Raw output
IndexError: list index out of range
def test_configuration_setter():
        module = Module()
    
>       module.configuration = {"key1": "value1"}

tests/test_module.py:103: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
sekoia_automation/module.py:132: in configuration
    sentry_sdk.set_context("module_configuration", self._configuration)
.venv/lib/python3.11/site-packages/sentry_sdk/api.py:175: in set_context
    return Hub.current.scope.set_context(key, value)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <sentry_sdk.hub.Hub object at 0x7ff2faf2f010>

    @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:321: IndexError

Check warning on line 0 in tests.test_module

See this annotation in the file changed.

@github-actions github-actions / Test Results

test_configuration_setter_as_model (tests.test_module) failed

junit.xml [took 0s]
Raw output
IndexError: list index out of range
def test_configuration_setter_as_model():
        class MyConfiguration(BaseModel):
            number: int = 0
    
        module = Module()
>       module.configuration = MyConfiguration()

tests/test_module.py:112: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
sekoia_automation/module.py:130: in configuration
    sentry_sdk.set_context("module_configuration", self._configuration.dict())
.venv/lib/python3.11/site-packages/sentry_sdk/api.py:175: in set_context
    return Hub.current.scope.set_context(key, value)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <sentry_sdk.hub.Hub object at 0x7ff2faf2f010>

    @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:321: IndexError

Check warning on line 0 in tests.test_module

See this annotation in the file changed.

@github-actions github-actions / Test Results

test_configuration_as_model (tests.test_module) failed

junit.xml [took 0s]
Raw output
IndexError: list index out of range
def test_configuration_as_model():
        class MyConfiguration(BaseModel):
            number: int = 0
    
        class MyModule(Module):
            configuration: MyConfiguration
    
        module = MyModule()
    
        # Default value should be used
>       module.configuration = {}

tests/test_module.py:126: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
sekoia_automation/module.py:130: in configuration
    sentry_sdk.set_context("module_configuration", self._configuration.dict())
.venv/lib/python3.11/site-packages/sentry_sdk/api.py:175: in set_context
    return Hub.current.scope.set_context(key, value)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <sentry_sdk.hub.Hub object at 0x7ff2faf2f010>

    @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:321: IndexError

Check warning on line 0 in tests.test_module

See this annotation in the file changed.

@github-actions github-actions / Test Results

test_configuration_setter_add_secret_not_required (tests.test_module) failed

junit.xml [took 0s]
Raw output
IndexError: list index out of range
def test_configuration_setter_add_secret_not_required():
        module = Module()
        secret_name = "foo"
        secret_val = "bar"
    
        with patch.object(
            Module,
            "manifest_properties",
            return_value=[secret_name],
        ), patch.object(
            Module,
            "manifest_required_properties",
            return_value=[],
        ):
>           module.configuration = {secret_name: secret_val}

tests/test_module.py:152: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
sekoia_automation/module.py:132: in configuration
    sentry_sdk.set_context("module_configuration", self._configuration)
.venv/lib/python3.11/site-packages/sentry_sdk/api.py:175: in set_context
    return Hub.current.scope.set_context(key, value)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <sentry_sdk.hub.Hub object at 0x7ff2faf2f010>

    @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:321: IndexError

Check warning on line 0 in tests.test_module

See this annotation in the file changed.

@github-actions github-actions / Test Results

test_configuration_setter_add_secret_required (tests.test_module) failed

junit.xml [took 0s]
Raw output
IndexError: list index out of range
def test_configuration_setter_add_secret_required():
        module = Module()
        secret_name = "foo"
        secret_val = "bar"
    
        with patch.object(
            Module,
            "manifest_properties",
            return_value=[secret_name],
        ), patch.object(
            Module,
            "manifest_required_properties",
            return_value=[secret_name],
        ):
>           module.configuration = {secret_name: secret_val}

tests/test_module.py:170: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
sekoia_automation/module.py:132: in configuration
    sentry_sdk.set_context("module_configuration", self._configuration)
.venv/lib/python3.11/site-packages/sentry_sdk/api.py:175: in set_context
    return Hub.current.scope.set_context(key, value)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <sentry_sdk.hub.Hub object at 0x7ff2faf2f010>

    @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:321: IndexError

Check warning on line 0 in tests.test_trigger

See this annotation in the file changed.

@github-actions github-actions / Test Results

test_token (tests.test_trigger) failed

junit.xml [took 0s]
Raw output
IndexError: list index out of range
def test_token():
>       trigger = DummyTrigger()

tests/test_trigger.py:44: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
sekoia_automation/trigger.py:54: in __init__
    super().__init__(module, data_path)
sekoia_automation/module.py:343: in __init__
    self._setup_logging()
sekoia_automation/module.py:352: in _setup_logging
    sentry_sdk.set_tag("name", self.name)
.venv/lib/python3.11/site-packages/sentry_sdk/api.py:169: in set_tag
    return Hub.current.scope.set_tag(key, value)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <sentry_sdk.hub.Hub object at 0x7ff2faf2f010>

    @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:321: IndexError

Check warning on line 0 in tests.test_trigger

See this annotation in the file changed.

@github-actions github-actions / Test Results

test_callback_url (tests.test_trigger) failed

junit.xml [took 0s]
Raw output
IndexError: list index out of range
def test_callback_url():
>       trigger = DummyTrigger()

tests/test_trigger.py:51: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
sekoia_automation/trigger.py:54: in __init__
    super().__init__(module, data_path)
sekoia_automation/module.py:343: in __init__
    self._setup_logging()
sekoia_automation/module.py:352: in _setup_logging
    sentry_sdk.set_tag("name", self.name)
.venv/lib/python3.11/site-packages/sentry_sdk/api.py:169: in set_tag
    return Hub.current.scope.set_tag(key, value)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <sentry_sdk.hub.Hub object at 0x7ff2faf2f010>

    @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:321: IndexError

Check warning on line 0 in tests.test_trigger

See this annotation in the file changed.

@github-actions github-actions / Test Results

test_secrets_url (tests.test_trigger) failed

junit.xml [took 0s]
Raw output
IndexError: list index out of range
def test_secrets_url():
>       trigger = DummyTrigger()

tests/test_trigger.py:58: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
sekoia_automation/trigger.py:54: in __init__
    super().__init__(module, data_path)
sekoia_automation/module.py:343: in __init__
    self._setup_logging()
sekoia_automation/module.py:352: in _setup_logging
    sentry_sdk.set_tag("name", self.name)
.venv/lib/python3.11/site-packages/sentry_sdk/api.py:169: in set_tag
    return Hub.current.scope.set_tag(key, value)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <sentry_sdk.hub.Hub object at 0x7ff2faf2f010>

    @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:321: IndexError

Check warning on line 0 in tests.test_trigger

See this annotation in the file changed.

@github-actions github-actions / Test Results

test_logs_url (tests.test_trigger) failed

junit.xml [took 0s]
Raw output
IndexError: list index out of range
def test_logs_url():
>       trigger = DummyTrigger()

tests/test_trigger.py:65: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
sekoia_automation/trigger.py:54: in __init__
    super().__init__(module, data_path)
sekoia_automation/module.py:343: in __init__
    self._setup_logging()
sekoia_automation/module.py:352: in _setup_logging
    sentry_sdk.set_tag("name", self.name)
.venv/lib/python3.11/site-packages/sentry_sdk/api.py:169: in set_tag
    return Hub.current.scope.set_tag(key, value)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <sentry_sdk.hub.Hub object at 0x7ff2faf2f010>

    @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:321: IndexError

Check warning on line 0 in tests.test_trigger

See this annotation in the file changed.

@github-actions github-actions / Test Results

test_trigger_configuration (tests.test_trigger) failed

junit.xml [took 0s]
Raw output
IndexError: list index out of range
def test_trigger_configuration():
>       trigger = DummyTrigger()

tests/test_trigger.py:72: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
sekoia_automation/trigger.py:54: in __init__
    super().__init__(module, data_path)
sekoia_automation/module.py:343: in __init__
    self._setup_logging()
sekoia_automation/module.py:352: in _setup_logging
    sentry_sdk.set_tag("name", self.name)
.venv/lib/python3.11/site-packages/sentry_sdk/api.py:169: in set_tag
    return Hub.current.scope.set_tag(key, value)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <sentry_sdk.hub.Hub object at 0x7ff2faf2f010>

    @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:321: IndexError

Check warning on line 0 in tests.test_trigger

See this annotation in the file changed.

@github-actions github-actions / Test Results

test_module_configuration (tests.test_trigger) failed

junit.xml [took 0s]
Raw output
IndexError: list index out of range
def test_module_configuration():
>       trigger = DummyTrigger()

tests/test_trigger.py:82: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
sekoia_automation/trigger.py:54: in __init__
    super().__init__(module, data_path)
sekoia_automation/module.py:343: in __init__
    self._setup_logging()
sekoia_automation/module.py:352: in _setup_logging
    sentry_sdk.set_tag("name", self.name)
.venv/lib/python3.11/site-packages/sentry_sdk/api.py:169: in set_tag
    return Hub.current.scope.set_tag(key, value)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <sentry_sdk.hub.Hub object at 0x7ff2faf2f010>

    @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:321: IndexError

Check warning on line 0 in tests.test_trigger

See this annotation in the file changed.

@github-actions github-actions / Test Results

test_module_community_uuid (tests.test_trigger) failed

junit.xml [took 0s]
Raw output
IndexError: list index out of range
def test_module_community_uuid():
>       trigger = DummyTrigger()

tests/test_trigger.py:93: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
sekoia_automation/trigger.py:54: in __init__
    super().__init__(module, data_path)
sekoia_automation/module.py:343: in __init__
    self._setup_logging()
sekoia_automation/module.py:352: in _setup_logging
    sentry_sdk.set_tag("name", self.name)
.venv/lib/python3.11/site-packages/sentry_sdk/api.py:169: in set_tag
    return Hub.current.scope.set_tag(key, value)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <sentry_sdk.hub.Hub object at 0x7ff2faf2f010>

    @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:321: IndexError

Check warning on line 0 in tests.test_trigger

See this annotation in the file changed.

@github-actions github-actions / Test Results

test_send_event (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 0x7ff2f55d5dd0>

    def test_send_event(mocked_trigger_logs):
>       trigger = DummyTrigger()

tests/test_trigger.py:100: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
sekoia_automation/trigger.py:54: in __init__
    super().__init__(module, data_path)
sekoia_automation/module.py:343: in __init__
    self._setup_logging()
sekoia_automation/module.py:352: in _setup_logging
    sentry_sdk.set_tag("name", self.name)
.venv/lib/python3.11/site-packages/sentry_sdk/api.py:169: in set_tag
    return Hub.current.scope.set_tag(key, value)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <sentry_sdk.hub.Hub object at 0x7ff2faf2f010>

    @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:321: IndexError

Check warning on line 0 in tests.test_trigger

See this annotation in the file changed.

@github-actions github-actions / Test Results

test_send_event_4xx_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 0x7ff2f65b6310>

    def test_send_event_4xx_error(mocked_trigger_logs):
>       trigger = DummyTrigger()

tests/test_trigger.py:107: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
sekoia_automation/trigger.py:54: in __init__
    super().__init__(module, data_path)
sekoia_automation/module.py:343: in __init__
    self._setup_logging()
sekoia_automation/module.py:352: in _setup_logging
    sentry_sdk.set_tag("name", self.name)
.venv/lib/python3.11/site-packages/sentry_sdk/api.py:169: in set_tag
    return Hub.current.scope.set_tag(key, value)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <sentry_sdk.hub.Hub object at 0x7ff2faf2f010>

    @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:321: IndexError

Check warning on line 0 in tests.test_trigger

See this annotation in the file changed.

@github-actions github-actions / Test Results

test_send_event_too_many_failures (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 0x7ff2f650e4d0>

    def test_send_event_too_many_failures(mocked_trigger_logs):
>       trigger = DummyTrigger()

tests/test_trigger.py:119: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
sekoia_automation/trigger.py:54: in __init__
    super().__init__(module, data_path)
sekoia_automation/module.py:343: in __init__
    self._setup_logging()
sekoia_automation/module.py:352: in _setup_logging
    sentry_sdk.set_tag("name", self.name)
.venv/lib/python3.11/site-packages/sentry_sdk/api.py:169: in set_tag
    return Hub.current.scope.set_tag(key, value)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <sentry_sdk.hub.Hub object at 0x7ff2faf2f010>

    @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:321: IndexError

Check warning on line 0 in tests.test_trigger

See this annotation in the file changed.

@github-actions github-actions / Test Results

test_trigger_execute (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 0x7ff2f6df02d0>

    def test_trigger_execute(mocked_trigger_logs):
        class TestTrigger(Trigger):
            def run(self):
                raise NotImplementedError
    
>       trigger = TestTrigger()

tests/test_trigger.py:136: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
sekoia_automation/trigger.py:54: in __init__
    super().__init__(module, data_path)
sekoia_automation/module.py:343: in __init__
    self._setup_logging()
sekoia_automation/module.py:352: in _setup_logging
    sentry_sdk.set_tag("name", self.name)
.venv/lib/python3.11/site-packages/sentry_sdk/api.py:169: in set_tag
    return Hub.current.scope.set_tag(key, value)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <sentry_sdk.hub.Hub object at 0x7ff2faf2f010>

    @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:321: IndexError