fediverse-devnet / feditest

A testing framework for distributed, heterogeneous systems communicating with complex protocols, such as the Fediverse
https://feditest.org/
MIT License
31 stars 6 forks source link

Better error message #219

Closed jernst closed 2 months ago

jernst commented 2 months ago

Remove the stack trace here and improve the error message.

2024-07-10T13:50:05Z [ERROR] feditest: Ended TestRunSession Mastodon (local, UBOS) with Exception:
Traceback (most recent call last):
  File "/opt/homebrew/lib/python3.11/site-packages/feditest/testrun.py", line 314, in run
    self.run_constellation.setup()
  File "/opt/homebrew/lib/python3.11/site-packages/feditest/testrun.py", line 69, in setup
    node : Node = node_driver.provision_node(plan_role_name, parameters)
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/homebrew/lib/python3.11/site-packages/feditest/protocols/__init__.py", line 104, in provision_node
    ret = self._provision_node(rolename, parameters)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/homebrew/lib/python3.11/site-packages/feditest/ubos/__init__.py", line 24, in _provision_node
    raise OSError(f'{ type(self).__name__ } requires UBOS Gears (see ubos.net).')
OSError: MastodonUbosNodeDriver requires UBOS Gears (see ubos.net).
jernst commented 2 months ago

Fixed in #228