Skip to content

Merge pull request #84 from SEKOIA-IO/fix/scripts #313

Merge pull request #84 from SEKOIA-IO/fix/scripts

Merge pull request #84 from SEKOIA-IO/fix/scripts #313

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

24 errors, 59 fail, 1 skipped, 77 pass in 11s

161 tests  ±0   77 ✔️  - 83   11s ⏱️ - 1m 2s
    1 suites ±0     1 💤 ±  0 
    1 files   ±0   59 +59   24 🔥 +24 

Results for commit df43840. ± Comparison against earlier commit 0a34ff0.

Annotations

Check warning on line 0 in tests.test_cli

See this annotation in the file changed.

@github-actions github-actions / Test Results

test_new_module (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_new_module0')

    def test_new_module(tmp_path):
        module = "My Module"
        description = "My Description"
        res: Result = runner.invoke(
            app, ["new-module", str(tmp_path)], input=f"{module}\n{description}\n"
        )
>       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:30: 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 (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
E       AssertionError: assert 1 == 0
E        +  where 1 = <Result IndexError('list index out of range')>.exit_code

tests/test_cli.py:220: 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 IndexError('list index out of range')>.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
E       AssertionError: assert 1 == 0
E        +  where 1 = <Result IndexError('list index out of range')>.exit_code

tests/test_cli.py:246: 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:131: in _init
    client = Client(*args, **kwargs)  # type: ignore
.venv/lib/python3.11/site-packages/sentry_sdk/client.py:152: in __init__
    self.options = get_options(*args, **kwargs)  # type: Dict[str, Any]
.venv/lib/python3.11/site-packages/sentry_sdk/client.py:107: 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:304: in get_integration
    client = self.client
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

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

    @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:314: 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:131: in _init
    client = Client(*args, **kwargs)  # type: ignore
.venv/lib/python3.11/site-packages/sentry_sdk/client.py:152: in __init__
    self.options = get_options(*args, **kwargs)  # type: Dict[str, Any]
.venv/lib/python3.11/site-packages/sentry_sdk/client.py:107: 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:304: in get_integration
    client = self.client
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

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

    @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:314: 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:371: in capture_message
    if self.client is None:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

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

    @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:314: 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:371: in capture_message
    if self.client is None:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

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

    @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:314: 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='139639648044752'>

    @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 0x7f0067dd5f50>

    @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:320: 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='139639651353040'>

    @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 0x7f0067dd5f50>

    @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:320: 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 0x7f0067dd5f50>

    @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:320: 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 0x7f0067dd5f50>

    @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:320: 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 0x7f0067dd5f50>

    @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:320: 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 0x7f0067dd5f50>

    @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:320: 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 0x7f0067dd5f50>

    @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:320: 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 0x7f0067dd5f50>

    @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:320: 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 0x7f0067dd5f50>

    @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:320: 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 0x7f0067dd5f50>

    @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:320: 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 0x7f0067dd5f50>

    @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:320: 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 0x7f0067dd5f50>

    @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:320: 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 0x7f0067dd5f50>

    @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:320: 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 0x7f0067dd5f50>

    @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:320: 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 0x7f0067dd5f50>

    @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:320: 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 0x7f0062969e50>

    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 0x7f0067dd5f50>

    @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:320: 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 0x7f00639e4650>

    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 0x7f0067dd5f50>

    @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:320: 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 0x7f0063923cd0>

    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 0x7f0067dd5f50>

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