-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
3.3.2: pytest is failing #40
Comments
Here is pytest output: + PYTHONPATH=/home/tkloczko/rpmbuild/BUILDROOT/python-secretstorage-3.3.2-2.fc35.x86_64/usr/lib64/python3.8/site-packages:/home/tkloczko/rpmbuild/BUILDROOT/python-secretstorage-3.3.2-2.fc35.x86_64/usr/lib/python3.8/site-packages
+ /usr/bin/pytest -ra
=========================================================================== test session starts ============================================================================
platform linux -- Python 3.8.13, pytest-7.1.2, pluggy-1.0.0
rootdir: /home/tkloczko/rpmbuild/BUILD/secretstorage-3.3.2
collected 26 items
tests/test_collection.py FFFFsssss [ 34%]
tests/test_context_manager.py F [ 38%]
tests/test_dhcrypto.py . [ 42%]
tests/test_exceptions.py FFF [ 53%]
tests/test_item.py FFFFFFFFFFF [ 96%]
tests/test_unlocking.py s [100%]
================================================================================= FAILURES =================================================================================
___________________________________________________________________ CollectionTest.test_all_collections ____________________________________________________________________
self = DBusAddressWrapper('/org/freedesktop/secrets/aliases/default', bus_name='org.freedesktop.secrets', interface='org.freedesktop.Secret.Collection')
msg = Message(Header(<Endianness.little: 1>, <MessageType.method_call: 1>, <MessageFlag.0: 0>, 1, 50, -1, fields={<HeaderFie..., <HeaderFields.member: 3>: 'Get', <HeaderFields.signature: 8>: 'ss'}), ('org.freedesktop.Secret.Collection', 'Label'))
def send_and_get_reply(self, msg: Message) -> Any:
try:
resp_msg: Message = self._connection.send_and_get_reply(msg)
if resp_msg.header.message_type == MessageType.error:
> raise DBusErrorResponse(resp_msg)
E jeepney.wrappers.DBusErrorResponse: [org.freedesktop.DBus.Error.ServiceUnknown] ('The name is not activatable',)
secretstorage/util.py:48: DBusErrorResponse
The above exception was the direct cause of the following exception:
self = <tests.test_collection.CollectionTest testMethod=test_all_collections>
def setUp(self) -> None:
self.connection = dbus_init()
> self.collection = get_any_collection(self.connection)
tests/test_collection.py:20:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
secretstorage/collection.py:173: in get_any_collection
return Collection(connection)
secretstorage/collection.py:44: in __init__
self._collection.get_property('Label')
secretstorage/util.py:67: in get_property
(signature, value), = self.send_and_get_reply(msg)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = DBusAddressWrapper('/org/freedesktop/secrets/aliases/default', bus_name='org.freedesktop.secrets', interface='org.freedesktop.Secret.Collection')
msg = Message(Header(<Endianness.little: 1>, <MessageType.method_call: 1>, <MessageFlag.0: 0>, 1, 50, -1, fields={<HeaderFie..., <HeaderFields.member: 3>: 'Get', <HeaderFields.signature: 8>: 'ss'}), ('org.freedesktop.Secret.Collection', 'Label'))
def send_and_get_reply(self, msg: Message) -> Any:
try:
resp_msg: Message = self._connection.send_and_get_reply(msg)
if resp_msg.header.message_type == MessageType.error:
raise DBusErrorResponse(resp_msg)
return resp_msg.body
except DBusErrorResponse as resp:
if resp.name in (DBUS_UNKNOWN_METHOD, DBUS_NO_SUCH_OBJECT):
raise ItemNotFoundException('Item does not exist!') from resp
elif resp.name in (DBUS_SERVICE_UNKNOWN, DBUS_EXEC_FAILED,
DBUS_NO_REPLY):
data = resp.data
if isinstance(data, tuple):
data = data[0]
> raise SecretServiceNotAvailableException(data) from resp
E secretstorage.exceptions.SecretServiceNotAvailableException: The name is not activatable
secretstorage/util.py:58: SecretServiceNotAvailableException
______________________________________________________________________ CollectionTest.test_all_items _______________________________________________________________________
self = DBusAddressWrapper('/org/freedesktop/secrets/aliases/default', bus_name='org.freedesktop.secrets', interface='org.freedesktop.Secret.Collection')
msg = Message(Header(<Endianness.little: 1>, <MessageType.method_call: 1>, <MessageFlag.0: 0>, 1, 50, -1, fields={<HeaderFie..., <HeaderFields.member: 3>: 'Get', <HeaderFields.signature: 8>: 'ss'}), ('org.freedesktop.Secret.Collection', 'Label'))
def send_and_get_reply(self, msg: Message) -> Any:
try:
resp_msg: Message = self._connection.send_and_get_reply(msg)
if resp_msg.header.message_type == MessageType.error:
> raise DBusErrorResponse(resp_msg)
E jeepney.wrappers.DBusErrorResponse: [org.freedesktop.DBus.Error.ServiceUnknown] ('The name is not activatable',)
secretstorage/util.py:48: DBusErrorResponse
The above exception was the direct cause of the following exception:
self = <tests.test_collection.CollectionTest testMethod=test_all_items>
def setUp(self) -> None:
self.connection = dbus_init()
> self.collection = get_any_collection(self.connection)
tests/test_collection.py:20:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
secretstorage/collection.py:173: in get_any_collection
return Collection(connection)
secretstorage/collection.py:44: in __init__
self._collection.get_property('Label')
secretstorage/util.py:67: in get_property
(signature, value), = self.send_and_get_reply(msg)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = DBusAddressWrapper('/org/freedesktop/secrets/aliases/default', bus_name='org.freedesktop.secrets', interface='org.freedesktop.Secret.Collection')
msg = Message(Header(<Endianness.little: 1>, <MessageType.method_call: 1>, <MessageFlag.0: 0>, 1, 50, -1, fields={<HeaderFie..., <HeaderFields.member: 3>: 'Get', <HeaderFields.signature: 8>: 'ss'}), ('org.freedesktop.Secret.Collection', 'Label'))
def send_and_get_reply(self, msg: Message) -> Any:
try:
resp_msg: Message = self._connection.send_and_get_reply(msg)
if resp_msg.header.message_type == MessageType.error:
raise DBusErrorResponse(resp_msg)
return resp_msg.body
except DBusErrorResponse as resp:
if resp.name in (DBUS_UNKNOWN_METHOD, DBUS_NO_SUCH_OBJECT):
raise ItemNotFoundException('Item does not exist!') from resp
elif resp.name in (DBUS_SERVICE_UNKNOWN, DBUS_EXEC_FAILED,
DBUS_NO_REPLY):
data = resp.data
if isinstance(data, tuple):
data = data[0]
> raise SecretServiceNotAvailableException(data) from resp
E secretstorage.exceptions.SecretServiceNotAvailableException: The name is not activatable
secretstorage/util.py:58: SecretServiceNotAvailableException
__________________________________________________________________ CollectionTest.test_create_empty_item ___________________________________________________________________
self = DBusAddressWrapper('/org/freedesktop/secrets/aliases/default', bus_name='org.freedesktop.secrets', interface='org.freedesktop.Secret.Collection')
msg = Message(Header(<Endianness.little: 1>, <MessageType.method_call: 1>, <MessageFlag.0: 0>, 1, 50, -1, fields={<HeaderFie..., <HeaderFields.member: 3>: 'Get', <HeaderFields.signature: 8>: 'ss'}), ('org.freedesktop.Secret.Collection', 'Label'))
def send_and_get_reply(self, msg: Message) -> Any:
try:
resp_msg: Message = self._connection.send_and_get_reply(msg)
if resp_msg.header.message_type == MessageType.error:
> raise DBusErrorResponse(resp_msg)
E jeepney.wrappers.DBusErrorResponse: [org.freedesktop.DBus.Error.ServiceUnknown] ('The name is not activatable',)
secretstorage/util.py:48: DBusErrorResponse
The above exception was the direct cause of the following exception:
self = <tests.test_collection.CollectionTest testMethod=test_create_empty_item>
def setUp(self) -> None:
self.connection = dbus_init()
> self.collection = get_any_collection(self.connection)
tests/test_collection.py:20:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
secretstorage/collection.py:173: in get_any_collection
return Collection(connection)
secretstorage/collection.py:44: in __init__
self._collection.get_property('Label')
secretstorage/util.py:67: in get_property
(signature, value), = self.send_and_get_reply(msg)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = DBusAddressWrapper('/org/freedesktop/secrets/aliases/default', bus_name='org.freedesktop.secrets', interface='org.freedesktop.Secret.Collection')
msg = Message(Header(<Endianness.little: 1>, <MessageType.method_call: 1>, <MessageFlag.0: 0>, 1, 50, -1, fields={<HeaderFie..., <HeaderFields.member: 3>: 'Get', <HeaderFields.signature: 8>: 'ss'}), ('org.freedesktop.Secret.Collection', 'Label'))
def send_and_get_reply(self, msg: Message) -> Any:
try:
resp_msg: Message = self._connection.send_and_get_reply(msg)
if resp_msg.header.message_type == MessageType.error:
raise DBusErrorResponse(resp_msg)
return resp_msg.body
except DBusErrorResponse as resp:
if resp.name in (DBUS_UNKNOWN_METHOD, DBUS_NO_SUCH_OBJECT):
raise ItemNotFoundException('Item does not exist!') from resp
elif resp.name in (DBUS_SERVICE_UNKNOWN, DBUS_EXEC_FAILED,
DBUS_NO_REPLY):
data = resp.data
if isinstance(data, tuple):
data = data[0]
> raise SecretServiceNotAvailableException(data) from resp
E secretstorage.exceptions.SecretServiceNotAvailableException: The name is not activatable
secretstorage/util.py:58: SecretServiceNotAvailableException
________________________________________________________________________ CollectionTest.test_label _________________________________________________________________________
self = DBusAddressWrapper('/org/freedesktop/secrets/aliases/default', bus_name='org.freedesktop.secrets', interface='org.freedesktop.Secret.Collection')
msg = Message(Header(<Endianness.little: 1>, <MessageType.method_call: 1>, <MessageFlag.0: 0>, 1, 50, -1, fields={<HeaderFie..., <HeaderFields.member: 3>: 'Get', <HeaderFields.signature: 8>: 'ss'}), ('org.freedesktop.Secret.Collection', 'Label'))
def send_and_get_reply(self, msg: Message) -> Any:
try:
resp_msg: Message = self._connection.send_and_get_reply(msg)
if resp_msg.header.message_type == MessageType.error:
> raise DBusErrorResponse(resp_msg)
E jeepney.wrappers.DBusErrorResponse: [org.freedesktop.DBus.Error.ServiceUnknown] ('The name is not activatable',)
secretstorage/util.py:48: DBusErrorResponse
The above exception was the direct cause of the following exception:
self = <tests.test_collection.CollectionTest testMethod=test_label>
def setUp(self) -> None:
self.connection = dbus_init()
> self.collection = get_any_collection(self.connection)
tests/test_collection.py:20:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
secretstorage/collection.py:173: in get_any_collection
return Collection(connection)
secretstorage/collection.py:44: in __init__
self._collection.get_property('Label')
secretstorage/util.py:67: in get_property
(signature, value), = self.send_and_get_reply(msg)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = DBusAddressWrapper('/org/freedesktop/secrets/aliases/default', bus_name='org.freedesktop.secrets', interface='org.freedesktop.Secret.Collection')
msg = Message(Header(<Endianness.little: 1>, <MessageType.method_call: 1>, <MessageFlag.0: 0>, 1, 50, -1, fields={<HeaderFie..., <HeaderFields.member: 3>: 'Get', <HeaderFields.signature: 8>: 'ss'}), ('org.freedesktop.Secret.Collection', 'Label'))
def send_and_get_reply(self, msg: Message) -> Any:
try:
resp_msg: Message = self._connection.send_and_get_reply(msg)
if resp_msg.header.message_type == MessageType.error:
raise DBusErrorResponse(resp_msg)
return resp_msg.body
except DBusErrorResponse as resp:
if resp.name in (DBUS_UNKNOWN_METHOD, DBUS_NO_SUCH_OBJECT):
raise ItemNotFoundException('Item does not exist!') from resp
elif resp.name in (DBUS_SERVICE_UNKNOWN, DBUS_EXEC_FAILED,
DBUS_NO_REPLY):
data = resp.data
if isinstance(data, tuple):
data = data[0]
> raise SecretServiceNotAvailableException(data) from resp
E secretstorage.exceptions.SecretServiceNotAvailableException: The name is not activatable
secretstorage/util.py:58: SecretServiceNotAvailableException
_____________________________________________________________ ContextManagerTest.test_closing_context_manager ______________________________________________________________
self = <tests.test_context_manager.ContextManagerTest testMethod=test_closing_context_manager>
def test_closing_context_manager(self) -> None:
with closing(dbus_init()) as connection:
> self.assertTrue(check_service_availability(connection))
E AssertionError: False is not true
tests/test_context_manager.py:20: AssertionError
___________________________________________________________________ ExceptionsTest.test_double_deleting ____________________________________________________________________
self = DBusAddressWrapper('/org/freedesktop/secrets/aliases/default', bus_name='org.freedesktop.secrets', interface='org.freedesktop.Secret.Collection')
msg = Message(Header(<Endianness.little: 1>, <MessageType.method_call: 1>, <MessageFlag.0: 0>, 1, 50, -1, fields={<HeaderFie..., <HeaderFields.member: 3>: 'Get', <HeaderFields.signature: 8>: 'ss'}), ('org.freedesktop.Secret.Collection', 'Label'))
def send_and_get_reply(self, msg: Message) -> Any:
try:
resp_msg: Message = self._connection.send_and_get_reply(msg)
if resp_msg.header.message_type == MessageType.error:
> raise DBusErrorResponse(resp_msg)
E jeepney.wrappers.DBusErrorResponse: [org.freedesktop.DBus.Error.ServiceUnknown] ('The name is not activatable',)
secretstorage/util.py:48: DBusErrorResponse
The above exception was the direct cause of the following exception:
self = <tests.test_exceptions.ExceptionsTest testMethod=test_double_deleting>
def setUp(self) -> None:
self.connection = secretstorage.dbus_init()
> self.collection = secretstorage.get_any_collection(self.connection)
tests/test_exceptions.py:17:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
secretstorage/collection.py:173: in get_any_collection
return Collection(connection)
secretstorage/collection.py:44: in __init__
self._collection.get_property('Label')
secretstorage/util.py:67: in get_property
(signature, value), = self.send_and_get_reply(msg)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = DBusAddressWrapper('/org/freedesktop/secrets/aliases/default', bus_name='org.freedesktop.secrets', interface='org.freedesktop.Secret.Collection')
msg = Message(Header(<Endianness.little: 1>, <MessageType.method_call: 1>, <MessageFlag.0: 0>, 1, 50, -1, fields={<HeaderFie..., <HeaderFields.member: 3>: 'Get', <HeaderFields.signature: 8>: 'ss'}), ('org.freedesktop.Secret.Collection', 'Label'))
def send_and_get_reply(self, msg: Message) -> Any:
try:
resp_msg: Message = self._connection.send_and_get_reply(msg)
if resp_msg.header.message_type == MessageType.error:
raise DBusErrorResponse(resp_msg)
return resp_msg.body
except DBusErrorResponse as resp:
if resp.name in (DBUS_UNKNOWN_METHOD, DBUS_NO_SUCH_OBJECT):
raise ItemNotFoundException('Item does not exist!') from resp
elif resp.name in (DBUS_SERVICE_UNKNOWN, DBUS_EXEC_FAILED,
DBUS_NO_REPLY):
data = resp.data
if isinstance(data, tuple):
data = data[0]
> raise SecretServiceNotAvailableException(data) from resp
E secretstorage.exceptions.SecretServiceNotAvailableException: The name is not activatable
secretstorage/util.py:58: SecretServiceNotAvailableException
_______________________________________________________________ ExceptionsTest.test_non_existing_collection ________________________________________________________________
self = DBusAddressWrapper('/org/freedesktop/secrets/aliases/default', bus_name='org.freedesktop.secrets', interface='org.freedesktop.Secret.Collection')
msg = Message(Header(<Endianness.little: 1>, <MessageType.method_call: 1>, <MessageFlag.0: 0>, 1, 50, -1, fields={<HeaderFie..., <HeaderFields.member: 3>: 'Get', <HeaderFields.signature: 8>: 'ss'}), ('org.freedesktop.Secret.Collection', 'Label'))
def send_and_get_reply(self, msg: Message) -> Any:
try:
resp_msg: Message = self._connection.send_and_get_reply(msg)
if resp_msg.header.message_type == MessageType.error:
> raise DBusErrorResponse(resp_msg)
E jeepney.wrappers.DBusErrorResponse: [org.freedesktop.DBus.Error.ServiceUnknown] ('The name is not activatable',)
secretstorage/util.py:48: DBusErrorResponse
The above exception was the direct cause of the following exception:
self = <tests.test_exceptions.ExceptionsTest testMethod=test_non_existing_collection>
def setUp(self) -> None:
self.connection = secretstorage.dbus_init()
> self.collection = secretstorage.get_any_collection(self.connection)
tests/test_exceptions.py:17:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
secretstorage/collection.py:173: in get_any_collection
return Collection(connection)
secretstorage/collection.py:44: in __init__
self._collection.get_property('Label')
secretstorage/util.py:67: in get_property
(signature, value), = self.send_and_get_reply(msg)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = DBusAddressWrapper('/org/freedesktop/secrets/aliases/default', bus_name='org.freedesktop.secrets', interface='org.freedesktop.Secret.Collection')
msg = Message(Header(<Endianness.little: 1>, <MessageType.method_call: 1>, <MessageFlag.0: 0>, 1, 50, -1, fields={<HeaderFie..., <HeaderFields.member: 3>: 'Get', <HeaderFields.signature: 8>: 'ss'}), ('org.freedesktop.Secret.Collection', 'Label'))
def send_and_get_reply(self, msg: Message) -> Any:
try:
resp_msg: Message = self._connection.send_and_get_reply(msg)
if resp_msg.header.message_type == MessageType.error:
raise DBusErrorResponse(resp_msg)
return resp_msg.body
except DBusErrorResponse as resp:
if resp.name in (DBUS_UNKNOWN_METHOD, DBUS_NO_SUCH_OBJECT):
raise ItemNotFoundException('Item does not exist!') from resp
elif resp.name in (DBUS_SERVICE_UNKNOWN, DBUS_EXEC_FAILED,
DBUS_NO_REPLY):
data = resp.data
if isinstance(data, tuple):
data = data[0]
> raise SecretServiceNotAvailableException(data) from resp
E secretstorage.exceptions.SecretServiceNotAvailableException: The name is not activatable
secretstorage/util.py:58: SecretServiceNotAvailableException
__________________________________________________________________ ExceptionsTest.test_non_existing_item ___________________________________________________________________
self = DBusAddressWrapper('/org/freedesktop/secrets/aliases/default', bus_name='org.freedesktop.secrets', interface='org.freedesktop.Secret.Collection')
msg = Message(Header(<Endianness.little: 1>, <MessageType.method_call: 1>, <MessageFlag.0: 0>, 1, 50, -1, fields={<HeaderFie..., <HeaderFields.member: 3>: 'Get', <HeaderFields.signature: 8>: 'ss'}), ('org.freedesktop.Secret.Collection', 'Label'))
def send_and_get_reply(self, msg: Message) -> Any:
try:
resp_msg: Message = self._connection.send_and_get_reply(msg)
if resp_msg.header.message_type == MessageType.error:
> raise DBusErrorResponse(resp_msg)
E jeepney.wrappers.DBusErrorResponse: [org.freedesktop.DBus.Error.ServiceUnknown] ('The name is not activatable',)
secretstorage/util.py:48: DBusErrorResponse
The above exception was the direct cause of the following exception:
self = <tests.test_exceptions.ExceptionsTest testMethod=test_non_existing_item>
def setUp(self) -> None:
self.connection = secretstorage.dbus_init()
> self.collection = secretstorage.get_any_collection(self.connection)
tests/test_exceptions.py:17:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
secretstorage/collection.py:173: in get_any_collection
return Collection(connection)
secretstorage/collection.py:44: in __init__
self._collection.get_property('Label')
secretstorage/util.py:67: in get_property
(signature, value), = self.send_and_get_reply(msg)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = DBusAddressWrapper('/org/freedesktop/secrets/aliases/default', bus_name='org.freedesktop.secrets', interface='org.freedesktop.Secret.Collection')
msg = Message(Header(<Endianness.little: 1>, <MessageType.method_call: 1>, <MessageFlag.0: 0>, 1, 50, -1, fields={<HeaderFie..., <HeaderFields.member: 3>: 'Get', <HeaderFields.signature: 8>: 'ss'}), ('org.freedesktop.Secret.Collection', 'Label'))
def send_and_get_reply(self, msg: Message) -> Any:
try:
resp_msg: Message = self._connection.send_and_get_reply(msg)
if resp_msg.header.message_type == MessageType.error:
raise DBusErrorResponse(resp_msg)
return resp_msg.body
except DBusErrorResponse as resp:
if resp.name in (DBUS_UNKNOWN_METHOD, DBUS_NO_SUCH_OBJECT):
raise ItemNotFoundException('Item does not exist!') from resp
elif resp.name in (DBUS_SERVICE_UNKNOWN, DBUS_EXEC_FAILED,
DBUS_NO_REPLY):
data = resp.data
if isinstance(data, tuple):
data = data[0]
> raise SecretServiceNotAvailableException(data) from resp
E secretstorage.exceptions.SecretServiceNotAvailableException: The name is not activatable
secretstorage/util.py:58: SecretServiceNotAvailableException
_________________________________________________________________________ ItemTest.test_attributes _________________________________________________________________________
self = DBusAddressWrapper('/org/freedesktop/secrets/aliases/default', bus_name='org.freedesktop.secrets', interface='org.freedesktop.Secret.Collection')
msg = Message(Header(<Endianness.little: 1>, <MessageType.method_call: 1>, <MessageFlag.0: 0>, 1, 50, -1, fields={<HeaderFie..., <HeaderFields.member: 3>: 'Get', <HeaderFields.signature: 8>: 'ss'}), ('org.freedesktop.Secret.Collection', 'Label'))
def send_and_get_reply(self, msg: Message) -> Any:
try:
resp_msg: Message = self._connection.send_and_get_reply(msg)
if resp_msg.header.message_type == MessageType.error:
> raise DBusErrorResponse(resp_msg)
E jeepney.wrappers.DBusErrorResponse: [org.freedesktop.DBus.Error.ServiceUnknown] ('The name is not activatable',)
secretstorage/util.py:48: DBusErrorResponse
The above exception was the direct cause of the following exception:
self = <tests.test_item.ItemTest testMethod=test_attributes>
def setUp(self) -> None:
self.connection = dbus_init()
> self.collection = get_any_collection(self.connection)
tests/test_item.py:21:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
secretstorage/collection.py:173: in get_any_collection
return Collection(connection)
secretstorage/collection.py:44: in __init__
self._collection.get_property('Label')
secretstorage/util.py:67: in get_property
(signature, value), = self.send_and_get_reply(msg)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = DBusAddressWrapper('/org/freedesktop/secrets/aliases/default', bus_name='org.freedesktop.secrets', interface='org.freedesktop.Secret.Collection')
msg = Message(Header(<Endianness.little: 1>, <MessageType.method_call: 1>, <MessageFlag.0: 0>, 1, 50, -1, fields={<HeaderFie..., <HeaderFields.member: 3>: 'Get', <HeaderFields.signature: 8>: 'ss'}), ('org.freedesktop.Secret.Collection', 'Label'))
def send_and_get_reply(self, msg: Message) -> Any:
try:
resp_msg: Message = self._connection.send_and_get_reply(msg)
if resp_msg.header.message_type == MessageType.error:
raise DBusErrorResponse(resp_msg)
return resp_msg.body
except DBusErrorResponse as resp:
if resp.name in (DBUS_UNKNOWN_METHOD, DBUS_NO_SUCH_OBJECT):
raise ItemNotFoundException('Item does not exist!') from resp
elif resp.name in (DBUS_SERVICE_UNKNOWN, DBUS_EXEC_FAILED,
DBUS_NO_REPLY):
data = resp.data
if isinstance(data, tuple):
data = data[0]
> raise SecretServiceNotAvailableException(data) from resp
E secretstorage.exceptions.SecretServiceNotAvailableException: The name is not activatable
secretstorage/util.py:58: SecretServiceNotAvailableException
__________________________________________________________________________ ItemTest.test_created ___________________________________________________________________________
self = DBusAddressWrapper('/org/freedesktop/secrets/aliases/default', bus_name='org.freedesktop.secrets', interface='org.freedesktop.Secret.Collection')
msg = Message(Header(<Endianness.little: 1>, <MessageType.method_call: 1>, <MessageFlag.0: 0>, 1, 50, -1, fields={<HeaderFie..., <HeaderFields.member: 3>: 'Get', <HeaderFields.signature: 8>: 'ss'}), ('org.freedesktop.Secret.Collection', 'Label'))
def send_and_get_reply(self, msg: Message) -> Any:
try:
resp_msg: Message = self._connection.send_and_get_reply(msg)
if resp_msg.header.message_type == MessageType.error:
> raise DBusErrorResponse(resp_msg)
E jeepney.wrappers.DBusErrorResponse: [org.freedesktop.DBus.Error.ServiceUnknown] ('The name is not activatable',)
secretstorage/util.py:48: DBusErrorResponse
The above exception was the direct cause of the following exception:
self = <tests.test_item.ItemTest testMethod=test_created>
def setUp(self) -> None:
self.connection = dbus_init()
> self.collection = get_any_collection(self.connection)
tests/test_item.py:21:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
secretstorage/collection.py:173: in get_any_collection
return Collection(connection)
secretstorage/collection.py:44: in __init__
self._collection.get_property('Label')
secretstorage/util.py:67: in get_property
(signature, value), = self.send_and_get_reply(msg)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = DBusAddressWrapper('/org/freedesktop/secrets/aliases/default', bus_name='org.freedesktop.secrets', interface='org.freedesktop.Secret.Collection')
msg = Message(Header(<Endianness.little: 1>, <MessageType.method_call: 1>, <MessageFlag.0: 0>, 1, 50, -1, fields={<HeaderFie..., <HeaderFields.member: 3>: 'Get', <HeaderFields.signature: 8>: 'ss'}), ('org.freedesktop.Secret.Collection', 'Label'))
def send_and_get_reply(self, msg: Message) -> Any:
try:
resp_msg: Message = self._connection.send_and_get_reply(msg)
if resp_msg.header.message_type == MessageType.error:
raise DBusErrorResponse(resp_msg)
return resp_msg.body
except DBusErrorResponse as resp:
if resp.name in (DBUS_UNKNOWN_METHOD, DBUS_NO_SUCH_OBJECT):
raise ItemNotFoundException('Item does not exist!') from resp
elif resp.name in (DBUS_SERVICE_UNKNOWN, DBUS_EXEC_FAILED,
DBUS_NO_REPLY):
data = resp.data
if isinstance(data, tuple):
data = data[0]
> raise SecretServiceNotAvailableException(data) from resp
E secretstorage.exceptions.SecretServiceNotAvailableException: The name is not activatable
secretstorage/util.py:58: SecretServiceNotAvailableException
___________________________________________________________________________ ItemTest.test_equal ____________________________________________________________________________
self = DBusAddressWrapper('/org/freedesktop/secrets/aliases/default', bus_name='org.freedesktop.secrets', interface='org.freedesktop.Secret.Collection')
msg = Message(Header(<Endianness.little: 1>, <MessageType.method_call: 1>, <MessageFlag.0: 0>, 1, 50, -1, fields={<HeaderFie..., <HeaderFields.member: 3>: 'Get', <HeaderFields.signature: 8>: 'ss'}), ('org.freedesktop.Secret.Collection', 'Label'))
def send_and_get_reply(self, msg: Message) -> Any:
try:
resp_msg: Message = self._connection.send_and_get_reply(msg)
if resp_msg.header.message_type == MessageType.error:
> raise DBusErrorResponse(resp_msg)
E jeepney.wrappers.DBusErrorResponse: [org.freedesktop.DBus.Error.ServiceUnknown] ('The name is not activatable',)
secretstorage/util.py:48: DBusErrorResponse
The above exception was the direct cause of the following exception:
self = <tests.test_item.ItemTest testMethod=test_equal>
def setUp(self) -> None:
self.connection = dbus_init()
> self.collection = get_any_collection(self.connection)
tests/test_item.py:21:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
secretstorage/collection.py:173: in get_any_collection
return Collection(connection)
secretstorage/collection.py:44: in __init__
self._collection.get_property('Label')
secretstorage/util.py:67: in get_property
(signature, value), = self.send_and_get_reply(msg)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = DBusAddressWrapper('/org/freedesktop/secrets/aliases/default', bus_name='org.freedesktop.secrets', interface='org.freedesktop.Secret.Collection')
msg = Message(Header(<Endianness.little: 1>, <MessageType.method_call: 1>, <MessageFlag.0: 0>, 1, 50, -1, fields={<HeaderFie..., <HeaderFields.member: 3>: 'Get', <HeaderFields.signature: 8>: 'ss'}), ('org.freedesktop.Secret.Collection', 'Label'))
def send_and_get_reply(self, msg: Message) -> Any:
try:
resp_msg: Message = self._connection.send_and_get_reply(msg)
if resp_msg.header.message_type == MessageType.error:
raise DBusErrorResponse(resp_msg)
return resp_msg.body
except DBusErrorResponse as resp:
if resp.name in (DBUS_UNKNOWN_METHOD, DBUS_NO_SUCH_OBJECT):
raise ItemNotFoundException('Item does not exist!') from resp
elif resp.name in (DBUS_SERVICE_UNKNOWN, DBUS_EXEC_FAILED,
DBUS_NO_REPLY):
data = resp.data
if isinstance(data, tuple):
data = data[0]
> raise SecretServiceNotAvailableException(data) from resp
E secretstorage.exceptions.SecretServiceNotAvailableException: The name is not activatable
secretstorage/util.py:58: SecretServiceNotAvailableException
_____________________________________________________________________ ItemTest.test_item_in_all_items ______________________________________________________________________
self = DBusAddressWrapper('/org/freedesktop/secrets/aliases/default', bus_name='org.freedesktop.secrets', interface='org.freedesktop.Secret.Collection')
msg = Message(Header(<Endianness.little: 1>, <MessageType.method_call: 1>, <MessageFlag.0: 0>, 1, 50, -1, fields={<HeaderFie..., <HeaderFields.member: 3>: 'Get', <HeaderFields.signature: 8>: 'ss'}), ('org.freedesktop.Secret.Collection', 'Label'))
def send_and_get_reply(self, msg: Message) -> Any:
try:
resp_msg: Message = self._connection.send_and_get_reply(msg)
if resp_msg.header.message_type == MessageType.error:
> raise DBusErrorResponse(resp_msg)
E jeepney.wrappers.DBusErrorResponse: [org.freedesktop.DBus.Error.ServiceUnknown] ('The name is not activatable',)
secretstorage/util.py:48: DBusErrorResponse
The above exception was the direct cause of the following exception:
self = <tests.test_item.ItemTest testMethod=test_item_in_all_items>
def setUp(self) -> None:
self.connection = dbus_init()
> self.collection = get_any_collection(self.connection)
tests/test_item.py:21:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
secretstorage/collection.py:173: in get_any_collection
return Collection(connection)
secretstorage/collection.py:44: in __init__
self._collection.get_property('Label')
secretstorage/util.py:67: in get_property
(signature, value), = self.send_and_get_reply(msg)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = DBusAddressWrapper('/org/freedesktop/secrets/aliases/default', bus_name='org.freedesktop.secrets', interface='org.freedesktop.Secret.Collection')
msg = Message(Header(<Endianness.little: 1>, <MessageType.method_call: 1>, <MessageFlag.0: 0>, 1, 50, -1, fields={<HeaderFie..., <HeaderFields.member: 3>: 'Get', <HeaderFields.signature: 8>: 'ss'}), ('org.freedesktop.Secret.Collection', 'Label'))
def send_and_get_reply(self, msg: Message) -> Any:
try:
resp_msg: Message = self._connection.send_and_get_reply(msg)
if resp_msg.header.message_type == MessageType.error:
raise DBusErrorResponse(resp_msg)
return resp_msg.body
except DBusErrorResponse as resp:
if resp.name in (DBUS_UNKNOWN_METHOD, DBUS_NO_SUCH_OBJECT):
raise ItemNotFoundException('Item does not exist!') from resp
elif resp.name in (DBUS_SERVICE_UNKNOWN, DBUS_EXEC_FAILED,
DBUS_NO_REPLY):
data = resp.data
if isinstance(data, tuple):
data = data[0]
> raise SecretServiceNotAvailableException(data) from resp
E secretstorage.exceptions.SecretServiceNotAvailableException: The name is not activatable
secretstorage/util.py:58: SecretServiceNotAvailableException
___________________________________________________________________________ ItemTest.test_label ____________________________________________________________________________
self = DBusAddressWrapper('/org/freedesktop/secrets/aliases/default', bus_name='org.freedesktop.secrets', interface='org.freedesktop.Secret.Collection')
msg = Message(Header(<Endianness.little: 1>, <MessageType.method_call: 1>, <MessageFlag.0: 0>, 1, 50, -1, fields={<HeaderFie..., <HeaderFields.member: 3>: 'Get', <HeaderFields.signature: 8>: 'ss'}), ('org.freedesktop.Secret.Collection', 'Label'))
def send_and_get_reply(self, msg: Message) -> Any:
try:
resp_msg: Message = self._connection.send_and_get_reply(msg)
if resp_msg.header.message_type == MessageType.error:
> raise DBusErrorResponse(resp_msg)
E jeepney.wrappers.DBusErrorResponse: [org.freedesktop.DBus.Error.ServiceUnknown] ('The name is not activatable',)
secretstorage/util.py:48: DBusErrorResponse
The above exception was the direct cause of the following exception:
self = <tests.test_item.ItemTest testMethod=test_label>
def setUp(self) -> None:
self.connection = dbus_init()
> self.collection = get_any_collection(self.connection)
tests/test_item.py:21:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
secretstorage/collection.py:173: in get_any_collection
return Collection(connection)
secretstorage/collection.py:44: in __init__
self._collection.get_property('Label')
secretstorage/util.py:67: in get_property
(signature, value), = self.send_and_get_reply(msg)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = DBusAddressWrapper('/org/freedesktop/secrets/aliases/default', bus_name='org.freedesktop.secrets', interface='org.freedesktop.Secret.Collection')
msg = Message(Header(<Endianness.little: 1>, <MessageType.method_call: 1>, <MessageFlag.0: 0>, 1, 50, -1, fields={<HeaderFie..., <HeaderFields.member: 3>: 'Get', <HeaderFields.signature: 8>: 'ss'}), ('org.freedesktop.Secret.Collection', 'Label'))
def send_and_get_reply(self, msg: Message) -> Any:
try:
resp_msg: Message = self._connection.send_and_get_reply(msg)
if resp_msg.header.message_type == MessageType.error:
raise DBusErrorResponse(resp_msg)
return resp_msg.body
except DBusErrorResponse as resp:
if resp.name in (DBUS_UNKNOWN_METHOD, DBUS_NO_SUCH_OBJECT):
raise ItemNotFoundException('Item does not exist!') from resp
elif resp.name in (DBUS_SERVICE_UNKNOWN, DBUS_EXEC_FAILED,
DBUS_NO_REPLY):
data = resp.data
if isinstance(data, tuple):
data = data[0]
> raise SecretServiceNotAvailableException(data) from resp
E secretstorage.exceptions.SecretServiceNotAvailableException: The name is not activatable
secretstorage/util.py:58: SecretServiceNotAvailableException
__________________________________________________________________________ ItemTest.test_modified __________________________________________________________________________
self = DBusAddressWrapper('/org/freedesktop/secrets/aliases/default', bus_name='org.freedesktop.secrets', interface='org.freedesktop.Secret.Collection')
msg = Message(Header(<Endianness.little: 1>, <MessageType.method_call: 1>, <MessageFlag.0: 0>, 1, 50, -1, fields={<HeaderFie..., <HeaderFields.member: 3>: 'Get', <HeaderFields.signature: 8>: 'ss'}), ('org.freedesktop.Secret.Collection', 'Label'))
def send_and_get_reply(self, msg: Message) -> Any:
try:
resp_msg: Message = self._connection.send_and_get_reply(msg)
if resp_msg.header.message_type == MessageType.error:
> raise DBusErrorResponse(resp_msg)
E jeepney.wrappers.DBusErrorResponse: [org.freedesktop.DBus.Error.ServiceUnknown] ('The name is not activatable',)
secretstorage/util.py:48: DBusErrorResponse
The above exception was the direct cause of the following exception:
self = <tests.test_item.ItemTest testMethod=test_modified>
def setUp(self) -> None:
self.connection = dbus_init()
> self.collection = get_any_collection(self.connection)
tests/test_item.py:21:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
secretstorage/collection.py:173: in get_any_collection
return Collection(connection)
secretstorage/collection.py:44: in __init__
self._collection.get_property('Label')
secretstorage/util.py:67: in get_property
(signature, value), = self.send_and_get_reply(msg)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = DBusAddressWrapper('/org/freedesktop/secrets/aliases/default', bus_name='org.freedesktop.secrets', interface='org.freedesktop.Secret.Collection')
msg = Message(Header(<Endianness.little: 1>, <MessageType.method_call: 1>, <MessageFlag.0: 0>, 1, 50, -1, fields={<HeaderFie..., <HeaderFields.member: 3>: 'Get', <HeaderFields.signature: 8>: 'ss'}), ('org.freedesktop.Secret.Collection', 'Label'))
def send_and_get_reply(self, msg: Message) -> Any:
try:
resp_msg: Message = self._connection.send_and_get_reply(msg)
if resp_msg.header.message_type == MessageType.error:
raise DBusErrorResponse(resp_msg)
return resp_msg.body
except DBusErrorResponse as resp:
if resp.name in (DBUS_UNKNOWN_METHOD, DBUS_NO_SUCH_OBJECT):
raise ItemNotFoundException('Item does not exist!') from resp
elif resp.name in (DBUS_SERVICE_UNKNOWN, DBUS_EXEC_FAILED,
DBUS_NO_REPLY):
data = resp.data
if isinstance(data, tuple):
data = data[0]
> raise SecretServiceNotAvailableException(data) from resp
E secretstorage.exceptions.SecretServiceNotAvailableException: The name is not activatable
secretstorage/util.py:58: SecretServiceNotAvailableException
_________________________________________________________________________ ItemTest.test_searchable _________________________________________________________________________
self = DBusAddressWrapper('/org/freedesktop/secrets/aliases/default', bus_name='org.freedesktop.secrets', interface='org.freedesktop.Secret.Collection')
msg = Message(Header(<Endianness.little: 1>, <MessageType.method_call: 1>, <MessageFlag.0: 0>, 1, 50, -1, fields={<HeaderFie..., <HeaderFields.member: 3>: 'Get', <HeaderFields.signature: 8>: 'ss'}), ('org.freedesktop.Secret.Collection', 'Label'))
def send_and_get_reply(self, msg: Message) -> Any:
try:
resp_msg: Message = self._connection.send_and_get_reply(msg)
if resp_msg.header.message_type == MessageType.error:
> raise DBusErrorResponse(resp_msg)
E jeepney.wrappers.DBusErrorResponse: [org.freedesktop.DBus.Error.ServiceUnknown] ('The name is not activatable',)
secretstorage/util.py:48: DBusErrorResponse
The above exception was the direct cause of the following exception:
self = <tests.test_item.ItemTest testMethod=test_searchable>
def setUp(self) -> None:
self.connection = dbus_init()
> self.collection = get_any_collection(self.connection)
tests/test_item.py:21:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
secretstorage/collection.py:173: in get_any_collection
return Collection(connection)
secretstorage/collection.py:44: in __init__
self._collection.get_property('Label')
secretstorage/util.py:67: in get_property
(signature, value), = self.send_and_get_reply(msg)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = DBusAddressWrapper('/org/freedesktop/secrets/aliases/default', bus_name='org.freedesktop.secrets', interface='org.freedesktop.Secret.Collection')
msg = Message(Header(<Endianness.little: 1>, <MessageType.method_call: 1>, <MessageFlag.0: 0>, 1, 50, -1, fields={<HeaderFie..., <HeaderFields.member: 3>: 'Get', <HeaderFields.signature: 8>: 'ss'}), ('org.freedesktop.Secret.Collection', 'Label'))
def send_and_get_reply(self, msg: Message) -> Any:
try:
resp_msg: Message = self._connection.send_and_get_reply(msg)
if resp_msg.header.message_type == MessageType.error:
raise DBusErrorResponse(resp_msg)
return resp_msg.body
except DBusErrorResponse as resp:
if resp.name in (DBUS_UNKNOWN_METHOD, DBUS_NO_SUCH_OBJECT):
raise ItemNotFoundException('Item does not exist!') from resp
elif resp.name in (DBUS_SERVICE_UNKNOWN, DBUS_EXEC_FAILED,
DBUS_NO_REPLY):
data = resp.data
if isinstance(data, tuple):
data = data[0]
> raise SecretServiceNotAvailableException(data) from resp
E secretstorage.exceptions.SecretServiceNotAvailableException: The name is not activatable
secretstorage/util.py:58: SecretServiceNotAvailableException
___________________________________________________________________________ ItemTest.test_secret ___________________________________________________________________________
self = DBusAddressWrapper('/org/freedesktop/secrets/aliases/default', bus_name='org.freedesktop.secrets', interface='org.freedesktop.Secret.Collection')
msg = Message(Header(<Endianness.little: 1>, <MessageType.method_call: 1>, <MessageFlag.0: 0>, 1, 50, -1, fields={<HeaderFie..., <HeaderFields.member: 3>: 'Get', <HeaderFields.signature: 8>: 'ss'}), ('org.freedesktop.Secret.Collection', 'Label'))
def send_and_get_reply(self, msg: Message) -> Any:
try:
resp_msg: Message = self._connection.send_and_get_reply(msg)
if resp_msg.header.message_type == MessageType.error:
> raise DBusErrorResponse(resp_msg)
E jeepney.wrappers.DBusErrorResponse: [org.freedesktop.DBus.Error.ServiceUnknown] ('The name is not activatable',)
secretstorage/util.py:48: DBusErrorResponse
The above exception was the direct cause of the following exception:
self = <tests.test_item.ItemTest testMethod=test_secret>
def setUp(self) -> None:
self.connection = dbus_init()
> self.collection = get_any_collection(self.connection)
tests/test_item.py:21:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
secretstorage/collection.py:173: in get_any_collection
return Collection(connection)
secretstorage/collection.py:44: in __init__
self._collection.get_property('Label')
secretstorage/util.py:67: in get_property
(signature, value), = self.send_and_get_reply(msg)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = DBusAddressWrapper('/org/freedesktop/secrets/aliases/default', bus_name='org.freedesktop.secrets', interface='org.freedesktop.Secret.Collection')
msg = Message(Header(<Endianness.little: 1>, <MessageType.method_call: 1>, <MessageFlag.0: 0>, 1, 50, -1, fields={<HeaderFie..., <HeaderFields.member: 3>: 'Get', <HeaderFields.signature: 8>: 'ss'}), ('org.freedesktop.Secret.Collection', 'Label'))
def send_and_get_reply(self, msg: Message) -> Any:
try:
resp_msg: Message = self._connection.send_and_get_reply(msg)
if resp_msg.header.message_type == MessageType.error:
raise DBusErrorResponse(resp_msg)
return resp_msg.body
except DBusErrorResponse as resp:
if resp.name in (DBUS_UNKNOWN_METHOD, DBUS_NO_SUCH_OBJECT):
raise ItemNotFoundException('Item does not exist!') from resp
elif resp.name in (DBUS_SERVICE_UNKNOWN, DBUS_EXEC_FAILED,
DBUS_NO_REPLY):
data = resp.data
if isinstance(data, tuple):
data = data[0]
> raise SecretServiceNotAvailableException(data) from resp
E secretstorage.exceptions.SecretServiceNotAvailableException: The name is not activatable
secretstorage/util.py:58: SecretServiceNotAvailableException
____________________________________________________________________ ItemTest.test_secret_content_type _____________________________________________________________________
self = DBusAddressWrapper('/org/freedesktop/secrets/aliases/default', bus_name='org.freedesktop.secrets', interface='org.freedesktop.Secret.Collection')
msg = Message(Header(<Endianness.little: 1>, <MessageType.method_call: 1>, <MessageFlag.0: 0>, 1, 50, -1, fields={<HeaderFie..., <HeaderFields.member: 3>: 'Get', <HeaderFields.signature: 8>: 'ss'}), ('org.freedesktop.Secret.Collection', 'Label'))
def send_and_get_reply(self, msg: Message) -> Any:
try:
resp_msg: Message = self._connection.send_and_get_reply(msg)
if resp_msg.header.message_type == MessageType.error:
> raise DBusErrorResponse(resp_msg)
E jeepney.wrappers.DBusErrorResponse: [org.freedesktop.DBus.Error.ServiceUnknown] ('The name is not activatable',)
secretstorage/util.py:48: DBusErrorResponse
The above exception was the direct cause of the following exception:
self = <tests.test_item.ItemTest testMethod=test_secret_content_type>
def setUp(self) -> None:
self.connection = dbus_init()
> self.collection = get_any_collection(self.connection)
tests/test_item.py:21:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
secretstorage/collection.py:173: in get_any_collection
return Collection(connection)
secretstorage/collection.py:44: in __init__
self._collection.get_property('Label')
secretstorage/util.py:67: in get_property
(signature, value), = self.send_and_get_reply(msg)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = DBusAddressWrapper('/org/freedesktop/secrets/aliases/default', bus_name='org.freedesktop.secrets', interface='org.freedesktop.Secret.Collection')
msg = Message(Header(<Endianness.little: 1>, <MessageType.method_call: 1>, <MessageFlag.0: 0>, 1, 50, -1, fields={<HeaderFie..., <HeaderFields.member: 3>: 'Get', <HeaderFields.signature: 8>: 'ss'}), ('org.freedesktop.Secret.Collection', 'Label'))
def send_and_get_reply(self, msg: Message) -> Any:
try:
resp_msg: Message = self._connection.send_and_get_reply(msg)
if resp_msg.header.message_type == MessageType.error:
raise DBusErrorResponse(resp_msg)
return resp_msg.body
except DBusErrorResponse as resp:
if resp.name in (DBUS_UNKNOWN_METHOD, DBUS_NO_SUCH_OBJECT):
raise ItemNotFoundException('Item does not exist!') from resp
elif resp.name in (DBUS_SERVICE_UNKNOWN, DBUS_EXEC_FAILED,
DBUS_NO_REPLY):
data = resp.data
if isinstance(data, tuple):
data = data[0]
> raise SecretServiceNotAvailableException(data) from resp
E secretstorage.exceptions.SecretServiceNotAvailableException: The name is not activatable
secretstorage/util.py:58: SecretServiceNotAvailableException
_____________________________________________________________________ ItemTest.test_secret_wrong_type ______________________________________________________________________
self = DBusAddressWrapper('/org/freedesktop/secrets/aliases/default', bus_name='org.freedesktop.secrets', interface='org.freedesktop.Secret.Collection')
msg = Message(Header(<Endianness.little: 1>, <MessageType.method_call: 1>, <MessageFlag.0: 0>, 1, 50, -1, fields={<HeaderFie..., <HeaderFields.member: 3>: 'Get', <HeaderFields.signature: 8>: 'ss'}), ('org.freedesktop.Secret.Collection', 'Label'))
def send_and_get_reply(self, msg: Message) -> Any:
try:
resp_msg: Message = self._connection.send_and_get_reply(msg)
if resp_msg.header.message_type == MessageType.error:
> raise DBusErrorResponse(resp_msg)
E jeepney.wrappers.DBusErrorResponse: [org.freedesktop.DBus.Error.ServiceUnknown] ('The name is not activatable',)
secretstorage/util.py:48: DBusErrorResponse
The above exception was the direct cause of the following exception:
self = <tests.test_item.ItemTest testMethod=test_secret_wrong_type>
def setUp(self) -> None:
self.connection = dbus_init()
> self.collection = get_any_collection(self.connection)
tests/test_item.py:21:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
secretstorage/collection.py:173: in get_any_collection
return Collection(connection)
secretstorage/collection.py:44: in __init__
self._collection.get_property('Label')
secretstorage/util.py:67: in get_property
(signature, value), = self.send_and_get_reply(msg)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = DBusAddressWrapper('/org/freedesktop/secrets/aliases/default', bus_name='org.freedesktop.secrets', interface='org.freedesktop.Secret.Collection')
msg = Message(Header(<Endianness.little: 1>, <MessageType.method_call: 1>, <MessageFlag.0: 0>, 1, 50, -1, fields={<HeaderFie..., <HeaderFields.member: 3>: 'Get', <HeaderFields.signature: 8>: 'ss'}), ('org.freedesktop.Secret.Collection', 'Label'))
def send_and_get_reply(self, msg: Message) -> Any:
try:
resp_msg: Message = self._connection.send_and_get_reply(msg)
if resp_msg.header.message_type == MessageType.error:
raise DBusErrorResponse(resp_msg)
return resp_msg.body
except DBusErrorResponse as resp:
if resp.name in (DBUS_UNKNOWN_METHOD, DBUS_NO_SUCH_OBJECT):
raise ItemNotFoundException('Item does not exist!') from resp
elif resp.name in (DBUS_SERVICE_UNKNOWN, DBUS_EXEC_FAILED,
DBUS_NO_REPLY):
data = resp.data
if isinstance(data, tuple):
data = data[0]
> raise SecretServiceNotAvailableException(data) from resp
E secretstorage.exceptions.SecretServiceNotAvailableException: The name is not activatable
secretstorage/util.py:58: SecretServiceNotAvailableException
___________________________________________________________________________ ItemTest.test_unlock ___________________________________________________________________________
self = DBusAddressWrapper('/org/freedesktop/secrets/aliases/default', bus_name='org.freedesktop.secrets', interface='org.freedesktop.Secret.Collection')
msg = Message(Header(<Endianness.little: 1>, <MessageType.method_call: 1>, <MessageFlag.0: 0>, 1, 50, -1, fields={<HeaderFie..., <HeaderFields.member: 3>: 'Get', <HeaderFields.signature: 8>: 'ss'}), ('org.freedesktop.Secret.Collection', 'Label'))
def send_and_get_reply(self, msg: Message) -> Any:
try:
resp_msg: Message = self._connection.send_and_get_reply(msg)
if resp_msg.header.message_type == MessageType.error:
> raise DBusErrorResponse(resp_msg)
E jeepney.wrappers.DBusErrorResponse: [org.freedesktop.DBus.Error.ServiceUnknown] ('The name is not activatable',)
secretstorage/util.py:48: DBusErrorResponse
The above exception was the direct cause of the following exception:
self = <tests.test_item.ItemTest testMethod=test_unlock>
def setUp(self) -> None:
self.connection = dbus_init()
> self.collection = get_any_collection(self.connection)
tests/test_item.py:21:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
secretstorage/collection.py:173: in get_any_collection
return Collection(connection)
secretstorage/collection.py:44: in __init__
self._collection.get_property('Label')
secretstorage/util.py:67: in get_property
(signature, value), = self.send_and_get_reply(msg)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = DBusAddressWrapper('/org/freedesktop/secrets/aliases/default', bus_name='org.freedesktop.secrets', interface='org.freedesktop.Secret.Collection')
msg = Message(Header(<Endianness.little: 1>, <MessageType.method_call: 1>, <MessageFlag.0: 0>, 1, 50, -1, fields={<HeaderFie..., <HeaderFields.member: 3>: 'Get', <HeaderFields.signature: 8>: 'ss'}), ('org.freedesktop.Secret.Collection', 'Label'))
def send_and_get_reply(self, msg: Message) -> Any:
try:
resp_msg: Message = self._connection.send_and_get_reply(msg)
if resp_msg.header.message_type == MessageType.error:
raise DBusErrorResponse(resp_msg)
return resp_msg.body
except DBusErrorResponse as resp:
if resp.name in (DBUS_UNKNOWN_METHOD, DBUS_NO_SUCH_OBJECT):
raise ItemNotFoundException('Item does not exist!') from resp
elif resp.name in (DBUS_SERVICE_UNKNOWN, DBUS_EXEC_FAILED,
DBUS_NO_REPLY):
data = resp.data
if isinstance(data, tuple):
data = data[0]
> raise SecretServiceNotAvailableException(data) from resp
E secretstorage.exceptions.SecretServiceNotAvailableException: The name is not activatable
secretstorage/util.py:58: SecretServiceNotAvailableException
========================================================================= short test summary info ==========================================================================
SKIPPED [1] tests/test_collection.py:81: This test should only be run with the mocked server.
SKIPPED [1] tests/test_collection.py:54: This test should only be run with the mocked server.
SKIPPED [1] tests/test_collection.py:58: This test should only be run with the mocked server.
SKIPPED [1] tests/test_collection.py:73: This test should only be run with the mocked server.
SKIPPED [1] tests/test_collection.py:64: This test should only be run with the mocked server.
SKIPPED [1] tests/test_unlocking.py:23: This test should only be run with the mocked server.
FAILED tests/test_collection.py::CollectionTest::test_all_collections - secretstorage.exceptions.SecretServiceNotAvailableException: The name is not activatable
FAILED tests/test_collection.py::CollectionTest::test_all_items - secretstorage.exceptions.SecretServiceNotAvailableException: The name is not activatable
FAILED tests/test_collection.py::CollectionTest::test_create_empty_item - secretstorage.exceptions.SecretServiceNotAvailableException: The name is not activatable
FAILED tests/test_collection.py::CollectionTest::test_label - secretstorage.exceptions.SecretServiceNotAvailableException: The name is not activatable
FAILED tests/test_context_manager.py::ContextManagerTest::test_closing_context_manager - AssertionError: False is not true
FAILED tests/test_exceptions.py::ExceptionsTest::test_double_deleting - secretstorage.exceptions.SecretServiceNotAvailableException: The name is not activatable
FAILED tests/test_exceptions.py::ExceptionsTest::test_non_existing_collection - secretstorage.exceptions.SecretServiceNotAvailableException: The name is not activatable
FAILED tests/test_exceptions.py::ExceptionsTest::test_non_existing_item - secretstorage.exceptions.SecretServiceNotAvailableException: The name is not activatable
FAILED tests/test_item.py::ItemTest::test_attributes - secretstorage.exceptions.SecretServiceNotAvailableException: The name is not activatable
FAILED tests/test_item.py::ItemTest::test_created - secretstorage.exceptions.SecretServiceNotAvailableException: The name is not activatable
FAILED tests/test_item.py::ItemTest::test_equal - secretstorage.exceptions.SecretServiceNotAvailableException: The name is not activatable
FAILED tests/test_item.py::ItemTest::test_item_in_all_items - secretstorage.exceptions.SecretServiceNotAvailableException: The name is not activatable
FAILED tests/test_item.py::ItemTest::test_label - secretstorage.exceptions.SecretServiceNotAvailableException: The name is not activatable
FAILED tests/test_item.py::ItemTest::test_modified - secretstorage.exceptions.SecretServiceNotAvailableException: The name is not activatable
FAILED tests/test_item.py::ItemTest::test_searchable - secretstorage.exceptions.SecretServiceNotAvailableException: The name is not activatable
FAILED tests/test_item.py::ItemTest::test_secret - secretstorage.exceptions.SecretServiceNotAvailableException: The name is not activatable
FAILED tests/test_item.py::ItemTest::test_secret_content_type - secretstorage.exceptions.SecretServiceNotAvailableException: The name is not activatable
FAILED tests/test_item.py::ItemTest::test_secret_wrong_type - secretstorage.exceptions.SecretServiceNotAvailableException: The name is not activatable
FAILED tests/test_item.py::ItemTest::test_unlock - secretstorage.exceptions.SecretServiceNotAvailableException: The name is not activatable
================================================================= 19 failed, 1 passed, 6 skipped in 0.53s ================================================================== |
Hi! You need either a real Secret Service daemon (e.g. gnome-keyring), or a mock implementation, like what I am using here (maybe without coverage, you don't need it): secretstorage/.github/workflows/main.yml Lines 19 to 25 in bf1e831
|
Which one module provides that? I've been trying to run over dbuss-run-session but it didn't help + PYTHONPATH=/home/tkloczko/rpmbuild/BUILDROOT/python-secretstorage-3.3.2-2.fc35.x86_64/usr/lib64/python3.8/site-packages:/home/tkloczko/rpmbuild/BUILDROOT/python-secretstorage-3.3.2-2.fc35.x86_64/usr/lib/python3.8/site-packages
+ dbus-run-session -- /usr/bin/pytest -ra
=========================================================================== test session starts ============================================================================
platform linux -- Python 3.8.13, pytest-7.1.2, pluggy-1.0.0
rootdir: /home/tkloczko/rpmbuild/BUILD/secretstorage-3.3.2
collected 26 items
tests/test_collection.py FFFFsssss [ 34%]
tests/test_context_manager.py F [ 38%]
tests/test_dhcrypto.py . [ 42%]
tests/test_exceptions.py FFF [ 53%]
tests/test_item.py FFFFFFFFFFF [ 96%]
tests/test_unlocking.py s [100%] |
In my tests on GitHub I use libsecret's mock service. It is not part of binary packages, but it's present in upstream git repository, which I clone: https://gitlab.gnome.org/GNOME/libsecret.
dbus-run-session alone is not enough. As I said, you need either gnome-keyring (or another implementation) or mock service (and Debian packaging uses the first approach — with gnome-keyring, see https://salsa.debian.org/python-team/packages/python-secretstorage/-/tree/debian/master/debian/tests. |
Why not run all that on test env preparation inside pytest session to make testing less complecated? 🤔 |
I never thought about that. Patches are welcome 😄 |
Sorry I'm not bread and butter python developer May I ask what exactly currently needs to be done to be able sucessfully run pytest based test suite? 🤔 |
|
A bit odd testing procedure based on libsecret private code which is not installed by If that |
I agree it's weird, but it was the only Secret Service mock implementation I found, so I thought it's better to re-use it rather than write my own.
If you ask them to install the Python module somewhere, that would be nice. |
I think that you shpold try to do that .. only because I would be not the best person which could express needs of making that code kind of official non-private code available for other |
Just only FTR updated pytest output for 3.3.3. + PYTHONPATH=/home/tkloczko/rpmbuild/BUILDROOT/python-secretstorage-3.3.3-2.fc35.x86_64/usr/lib64/python3.8/site-packages:/home/tkloczko/rpmbuild/BUILDROOT/python-secretstorage-3.3.3-2.fc35.x86_64/usr/lib/python3.8/site-packages
+ dbus-run-session -- /usr/bin/pytest -ra -m 'not network' tests
============================= test session starts ==============================
platform linux -- Python 3.8.16, pytest-7.2.2, pluggy-1.0.0
rootdir: /home/tkloczko/rpmbuild/BUILD/secretstorage-3.3.3
collected 26 items
tests/test_collection.py FFFFsssss [ 34%]
tests/test_context_manager.py F [ 38%]
tests/test_dhcrypto.py . [ 42%]
tests/test_exceptions.py FFF [ 53%]
tests/test_item.py FFFFFFFFFFF [ 96%]
tests/test_unlocking.py s [100%]
=================================== FAILURES ===================================
_____________________ CollectionTest.test_all_collections ______________________
self = DBusAddressWrapper('/org/freedesktop/secrets/aliases/default', bus_name='org.freedesktop.secrets', interface='org.freedesktop.Secret.Collection')
msg = Message(Header(<Endianness.little: 1>, <MessageType.method_call: 1>, <MessageFlag.0: 0>, 1, 50, -1, fields={<HeaderFie..., <HeaderFields.member: 3>: 'Get', <HeaderFields.signature: 8>: 'ss'}), ('org.freedesktop.Secret.Collection', 'Label'))
def send_and_get_reply(self, msg: Message) -> Any:
try:
resp_msg: Message = self._connection.send_and_get_reply(msg)
if resp_msg.header.message_type == MessageType.error:
> raise DBusErrorResponse(resp_msg)
E jeepney.wrappers.DBusErrorResponse: [org.freedesktop.DBus.Error.ServiceUnknown] ('The name org.freedesktop.secrets was not provided by any .service files',)
secretstorage/util.py:48: DBusErrorResponse
The above exception was the direct cause of the following exception:
self = <tests.test_collection.CollectionTest testMethod=test_all_collections>
def setUp(self) -> None:
self.connection = dbus_init()
> self.collection = get_any_collection(self.connection)
tests/test_collection.py:21:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
secretstorage/collection.py:189: in get_any_collection
return Collection(connection)
secretstorage/collection.py:45: in __init__
self._collection.get_property('Label')
secretstorage/util.py:67: in get_property
(signature, value), = self.send_and_get_reply(msg)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = DBusAddressWrapper('/org/freedesktop/secrets/aliases/default', bus_name='org.freedesktop.secrets', interface='org.freedesktop.Secret.Collection')
msg = Message(Header(<Endianness.little: 1>, <MessageType.method_call: 1>, <MessageFlag.0: 0>, 1, 50, -1, fields={<HeaderFie..., <HeaderFields.member: 3>: 'Get', <HeaderFields.signature: 8>: 'ss'}), ('org.freedesktop.Secret.Collection', 'Label'))
def send_and_get_reply(self, msg: Message) -> Any:
try:
resp_msg: Message = self._connection.send_and_get_reply(msg)
if resp_msg.header.message_type == MessageType.error:
raise DBusErrorResponse(resp_msg)
return resp_msg.body
except DBusErrorResponse as resp:
if resp.name in (DBUS_UNKNOWN_METHOD, DBUS_NO_SUCH_OBJECT):
raise ItemNotFoundException('Item does not exist!') from resp
elif resp.name in (DBUS_SERVICE_UNKNOWN, DBUS_EXEC_FAILED,
DBUS_NO_REPLY):
data = resp.data
if isinstance(data, tuple):
data = data[0]
> raise SecretServiceNotAvailableException(data) from resp
E secretstorage.exceptions.SecretServiceNotAvailableException: The name org.freedesktop.secrets was not provided by any .service files
secretstorage/util.py:58: SecretServiceNotAvailableException
________________________ CollectionTest.test_all_items _________________________
self = DBusAddressWrapper('/org/freedesktop/secrets/aliases/default', bus_name='org.freedesktop.secrets', interface='org.freedesktop.Secret.Collection')
msg = Message(Header(<Endianness.little: 1>, <MessageType.method_call: 1>, <MessageFlag.0: 0>, 1, 50, -1, fields={<HeaderFie..., <HeaderFields.member: 3>: 'Get', <HeaderFields.signature: 8>: 'ss'}), ('org.freedesktop.Secret.Collection', 'Label'))
def send_and_get_reply(self, msg: Message) -> Any:
try:
resp_msg: Message = self._connection.send_and_get_reply(msg)
if resp_msg.header.message_type == MessageType.error:
> raise DBusErrorResponse(resp_msg)
E jeepney.wrappers.DBusErrorResponse: [org.freedesktop.DBus.Error.ServiceUnknown] ('The name org.freedesktop.secrets was not provided by any .service files',)
secretstorage/util.py:48: DBusErrorResponse
The above exception was the direct cause of the following exception:
self = <tests.test_collection.CollectionTest testMethod=test_all_items>
def setUp(self) -> None:
self.connection = dbus_init()
> self.collection = get_any_collection(self.connection)
tests/test_collection.py:21:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
secretstorage/collection.py:189: in get_any_collection
return Collection(connection)
secretstorage/collection.py:45: in __init__
self._collection.get_property('Label')
secretstorage/util.py:67: in get_property
(signature, value), = self.send_and_get_reply(msg)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = DBusAddressWrapper('/org/freedesktop/secrets/aliases/default', bus_name='org.freedesktop.secrets', interface='org.freedesktop.Secret.Collection')
msg = Message(Header(<Endianness.little: 1>, <MessageType.method_call: 1>, <MessageFlag.0: 0>, 1, 50, -1, fields={<HeaderFie..., <HeaderFields.member: 3>: 'Get', <HeaderFields.signature: 8>: 'ss'}), ('org.freedesktop.Secret.Collection', 'Label'))
def send_and_get_reply(self, msg: Message) -> Any:
try:
resp_msg: Message = self._connection.send_and_get_reply(msg)
if resp_msg.header.message_type == MessageType.error:
raise DBusErrorResponse(resp_msg)
return resp_msg.body
except DBusErrorResponse as resp:
if resp.name in (DBUS_UNKNOWN_METHOD, DBUS_NO_SUCH_OBJECT):
raise ItemNotFoundException('Item does not exist!') from resp
elif resp.name in (DBUS_SERVICE_UNKNOWN, DBUS_EXEC_FAILED,
DBUS_NO_REPLY):
data = resp.data
if isinstance(data, tuple):
data = data[0]
> raise SecretServiceNotAvailableException(data) from resp
E secretstorage.exceptions.SecretServiceNotAvailableException: The name org.freedesktop.secrets was not provided by any .service files
secretstorage/util.py:58: SecretServiceNotAvailableException
____________________ CollectionTest.test_create_empty_item _____________________
self = DBusAddressWrapper('/org/freedesktop/secrets/aliases/default', bus_name='org.freedesktop.secrets', interface='org.freedesktop.Secret.Collection')
msg = Message(Header(<Endianness.little: 1>, <MessageType.method_call: 1>, <MessageFlag.0: 0>, 1, 50, -1, fields={<HeaderFie..., <HeaderFields.member: 3>: 'Get', <HeaderFields.signature: 8>: 'ss'}), ('org.freedesktop.Secret.Collection', 'Label'))
def send_and_get_reply(self, msg: Message) -> Any:
try:
resp_msg: Message = self._connection.send_and_get_reply(msg)
if resp_msg.header.message_type == MessageType.error:
> raise DBusErrorResponse(resp_msg)
E jeepney.wrappers.DBusErrorResponse: [org.freedesktop.DBus.Error.ServiceUnknown] ('The name org.freedesktop.secrets was not provided by any .service files',)
secretstorage/util.py:48: DBusErrorResponse
The above exception was the direct cause of the following exception:
self = <tests.test_collection.CollectionTest testMethod=test_create_empty_item>
def setUp(self) -> None:
self.connection = dbus_init()
> self.collection = get_any_collection(self.connection)
tests/test_collection.py:21:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
secretstorage/collection.py:189: in get_any_collection
return Collection(connection)
secretstorage/collection.py:45: in __init__
self._collection.get_property('Label')
secretstorage/util.py:67: in get_property
(signature, value), = self.send_and_get_reply(msg)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = DBusAddressWrapper('/org/freedesktop/secrets/aliases/default', bus_name='org.freedesktop.secrets', interface='org.freedesktop.Secret.Collection')
msg = Message(Header(<Endianness.little: 1>, <MessageType.method_call: 1>, <MessageFlag.0: 0>, 1, 50, -1, fields={<HeaderFie..., <HeaderFields.member: 3>: 'Get', <HeaderFields.signature: 8>: 'ss'}), ('org.freedesktop.Secret.Collection', 'Label'))
def send_and_get_reply(self, msg: Message) -> Any:
try:
resp_msg: Message = self._connection.send_and_get_reply(msg)
if resp_msg.header.message_type == MessageType.error:
raise DBusErrorResponse(resp_msg)
return resp_msg.body
except DBusErrorResponse as resp:
if resp.name in (DBUS_UNKNOWN_METHOD, DBUS_NO_SUCH_OBJECT):
raise ItemNotFoundException('Item does not exist!') from resp
elif resp.name in (DBUS_SERVICE_UNKNOWN, DBUS_EXEC_FAILED,
DBUS_NO_REPLY):
data = resp.data
if isinstance(data, tuple):
data = data[0]
> raise SecretServiceNotAvailableException(data) from resp
E secretstorage.exceptions.SecretServiceNotAvailableException: The name org.freedesktop.secrets was not provided by any .service files
secretstorage/util.py:58: SecretServiceNotAvailableException
__________________________ CollectionTest.test_label ___________________________
self = DBusAddressWrapper('/org/freedesktop/secrets/aliases/default', bus_name='org.freedesktop.secrets', interface='org.freedesktop.Secret.Collection')
msg = Message(Header(<Endianness.little: 1>, <MessageType.method_call: 1>, <MessageFlag.0: 0>, 1, 50, -1, fields={<HeaderFie..., <HeaderFields.member: 3>: 'Get', <HeaderFields.signature: 8>: 'ss'}), ('org.freedesktop.Secret.Collection', 'Label'))
def send_and_get_reply(self, msg: Message) -> Any:
try:
resp_msg: Message = self._connection.send_and_get_reply(msg)
if resp_msg.header.message_type == MessageType.error:
> raise DBusErrorResponse(resp_msg)
E jeepney.wrappers.DBusErrorResponse: [org.freedesktop.DBus.Error.ServiceUnknown] ('The name org.freedesktop.secrets was not provided by any .service files',)
secretstorage/util.py:48: DBusErrorResponse
The above exception was the direct cause of the following exception:
self = <tests.test_collection.CollectionTest testMethod=test_label>
def setUp(self) -> None:
self.connection = dbus_init()
> self.collection = get_any_collection(self.connection)
tests/test_collection.py:21:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
secretstorage/collection.py:189: in get_any_collection
return Collection(connection)
secretstorage/collection.py:45: in __init__
self._collection.get_property('Label')
secretstorage/util.py:67: in get_property
(signature, value), = self.send_and_get_reply(msg)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = DBusAddressWrapper('/org/freedesktop/secrets/aliases/default', bus_name='org.freedesktop.secrets', interface='org.freedesktop.Secret.Collection')
msg = Message(Header(<Endianness.little: 1>, <MessageType.method_call: 1>, <MessageFlag.0: 0>, 1, 50, -1, fields={<HeaderFie..., <HeaderFields.member: 3>: 'Get', <HeaderFields.signature: 8>: 'ss'}), ('org.freedesktop.Secret.Collection', 'Label'))
def send_and_get_reply(self, msg: Message) -> Any:
try:
resp_msg: Message = self._connection.send_and_get_reply(msg)
if resp_msg.header.message_type == MessageType.error:
raise DBusErrorResponse(resp_msg)
return resp_msg.body
except DBusErrorResponse as resp:
if resp.name in (DBUS_UNKNOWN_METHOD, DBUS_NO_SUCH_OBJECT):
raise ItemNotFoundException('Item does not exist!') from resp
elif resp.name in (DBUS_SERVICE_UNKNOWN, DBUS_EXEC_FAILED,
DBUS_NO_REPLY):
data = resp.data
if isinstance(data, tuple):
data = data[0]
> raise SecretServiceNotAvailableException(data) from resp
E secretstorage.exceptions.SecretServiceNotAvailableException: The name org.freedesktop.secrets was not provided by any .service files
secretstorage/util.py:58: SecretServiceNotAvailableException
_______________ ContextManagerTest.test_closing_context_manager ________________
self = <tests.test_context_manager.ContextManagerTest testMethod=test_closing_context_manager>
def test_closing_context_manager(self) -> None:
with closing(dbus_init()) as connection:
> self.assertTrue(check_service_availability(connection))
E AssertionError: False is not true
tests/test_context_manager.py:20: AssertionError
_____________________ ExceptionsTest.test_double_deleting ______________________
self = DBusAddressWrapper('/org/freedesktop/secrets/aliases/default', bus_name='org.freedesktop.secrets', interface='org.freedesktop.Secret.Collection')
msg = Message(Header(<Endianness.little: 1>, <MessageType.method_call: 1>, <MessageFlag.0: 0>, 1, 50, -1, fields={<HeaderFie..., <HeaderFields.member: 3>: 'Get', <HeaderFields.signature: 8>: 'ss'}), ('org.freedesktop.Secret.Collection', 'Label'))
def send_and_get_reply(self, msg: Message) -> Any:
try:
resp_msg: Message = self._connection.send_and_get_reply(msg)
if resp_msg.header.message_type == MessageType.error:
> raise DBusErrorResponse(resp_msg)
E jeepney.wrappers.DBusErrorResponse: [org.freedesktop.DBus.Error.ServiceUnknown] ('The name org.freedesktop.secrets was not provided by any .service files',)
secretstorage/util.py:48: DBusErrorResponse
The above exception was the direct cause of the following exception:
self = <tests.test_exceptions.ExceptionsTest testMethod=test_double_deleting>
def setUp(self) -> None:
self.connection = secretstorage.dbus_init()
> self.collection = secretstorage.get_any_collection(self.connection)
tests/test_exceptions.py:18:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
secretstorage/collection.py:189: in get_any_collection
return Collection(connection)
secretstorage/collection.py:45: in __init__
self._collection.get_property('Label')
secretstorage/util.py:67: in get_property
(signature, value), = self.send_and_get_reply(msg)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = DBusAddressWrapper('/org/freedesktop/secrets/aliases/default', bus_name='org.freedesktop.secrets', interface='org.freedesktop.Secret.Collection')
msg = Message(Header(<Endianness.little: 1>, <MessageType.method_call: 1>, <MessageFlag.0: 0>, 1, 50, -1, fields={<HeaderFie..., <HeaderFields.member: 3>: 'Get', <HeaderFields.signature: 8>: 'ss'}), ('org.freedesktop.Secret.Collection', 'Label'))
def send_and_get_reply(self, msg: Message) -> Any:
try:
resp_msg: Message = self._connection.send_and_get_reply(msg)
if resp_msg.header.message_type == MessageType.error:
raise DBusErrorResponse(resp_msg)
return resp_msg.body
except DBusErrorResponse as resp:
if resp.name in (DBUS_UNKNOWN_METHOD, DBUS_NO_SUCH_OBJECT):
raise ItemNotFoundException('Item does not exist!') from resp
elif resp.name in (DBUS_SERVICE_UNKNOWN, DBUS_EXEC_FAILED,
DBUS_NO_REPLY):
data = resp.data
if isinstance(data, tuple):
data = data[0]
> raise SecretServiceNotAvailableException(data) from resp
E secretstorage.exceptions.SecretServiceNotAvailableException: The name org.freedesktop.secrets was not provided by any .service files
secretstorage/util.py:58: SecretServiceNotAvailableException
_________________ ExceptionsTest.test_non_existing_collection __________________
self = DBusAddressWrapper('/org/freedesktop/secrets/aliases/default', bus_name='org.freedesktop.secrets', interface='org.freedesktop.Secret.Collection')
msg = Message(Header(<Endianness.little: 1>, <MessageType.method_call: 1>, <MessageFlag.0: 0>, 1, 50, -1, fields={<HeaderFie..., <HeaderFields.member: 3>: 'Get', <HeaderFields.signature: 8>: 'ss'}), ('org.freedesktop.Secret.Collection', 'Label'))
def send_and_get_reply(self, msg: Message) -> Any:
try:
resp_msg: Message = self._connection.send_and_get_reply(msg)
if resp_msg.header.message_type == MessageType.error:
> raise DBusErrorResponse(resp_msg)
E jeepney.wrappers.DBusErrorResponse: [org.freedesktop.DBus.Error.ServiceUnknown] ('The name org.freedesktop.secrets was not provided by any .service files',)
secretstorage/util.py:48: DBusErrorResponse
The above exception was the direct cause of the following exception:
self = <tests.test_exceptions.ExceptionsTest testMethod=test_non_existing_collection>
def setUp(self) -> None:
self.connection = secretstorage.dbus_init()
> self.collection = secretstorage.get_any_collection(self.connection)
tests/test_exceptions.py:18:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
secretstorage/collection.py:189: in get_any_collection
return Collection(connection)
secretstorage/collection.py:45: in __init__
self._collection.get_property('Label')
secretstorage/util.py:67: in get_property
(signature, value), = self.send_and_get_reply(msg)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = DBusAddressWrapper('/org/freedesktop/secrets/aliases/default', bus_name='org.freedesktop.secrets', interface='org.freedesktop.Secret.Collection')
msg = Message(Header(<Endianness.little: 1>, <MessageType.method_call: 1>, <MessageFlag.0: 0>, 1, 50, -1, fields={<HeaderFie..., <HeaderFields.member: 3>: 'Get', <HeaderFields.signature: 8>: 'ss'}), ('org.freedesktop.Secret.Collection', 'Label'))
def send_and_get_reply(self, msg: Message) -> Any:
try:
resp_msg: Message = self._connection.send_and_get_reply(msg)
if resp_msg.header.message_type == MessageType.error:
raise DBusErrorResponse(resp_msg)
return resp_msg.body
except DBusErrorResponse as resp:
if resp.name in (DBUS_UNKNOWN_METHOD, DBUS_NO_SUCH_OBJECT):
raise ItemNotFoundException('Item does not exist!') from resp
elif resp.name in (DBUS_SERVICE_UNKNOWN, DBUS_EXEC_FAILED,
DBUS_NO_REPLY):
data = resp.data
if isinstance(data, tuple):
data = data[0]
> raise SecretServiceNotAvailableException(data) from resp
E secretstorage.exceptions.SecretServiceNotAvailableException: The name org.freedesktop.secrets was not provided by any .service files
secretstorage/util.py:58: SecretServiceNotAvailableException
____________________ ExceptionsTest.test_non_existing_item _____________________
self = DBusAddressWrapper('/org/freedesktop/secrets/aliases/default', bus_name='org.freedesktop.secrets', interface='org.freedesktop.Secret.Collection')
msg = Message(Header(<Endianness.little: 1>, <MessageType.method_call: 1>, <MessageFlag.0: 0>, 1, 50, -1, fields={<HeaderFie..., <HeaderFields.member: 3>: 'Get', <HeaderFields.signature: 8>: 'ss'}), ('org.freedesktop.Secret.Collection', 'Label'))
def send_and_get_reply(self, msg: Message) -> Any:
try:
resp_msg: Message = self._connection.send_and_get_reply(msg)
if resp_msg.header.message_type == MessageType.error:
> raise DBusErrorResponse(resp_msg)
E jeepney.wrappers.DBusErrorResponse: [org.freedesktop.DBus.Error.ServiceUnknown] ('The name org.freedesktop.secrets was not provided by any .service files',)
secretstorage/util.py:48: DBusErrorResponse
The above exception was the direct cause of the following exception:
self = <tests.test_exceptions.ExceptionsTest testMethod=test_non_existing_item>
def setUp(self) -> None:
self.connection = secretstorage.dbus_init()
> self.collection = secretstorage.get_any_collection(self.connection)
tests/test_exceptions.py:18:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
secretstorage/collection.py:189: in get_any_collection
return Collection(connection)
secretstorage/collection.py:45: in __init__
self._collection.get_property('Label')
secretstorage/util.py:67: in get_property
(signature, value), = self.send_and_get_reply(msg)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = DBusAddressWrapper('/org/freedesktop/secrets/aliases/default', bus_name='org.freedesktop.secrets', interface='org.freedesktop.Secret.Collection')
msg = Message(Header(<Endianness.little: 1>, <MessageType.method_call: 1>, <MessageFlag.0: 0>, 1, 50, -1, fields={<HeaderFie..., <HeaderFields.member: 3>: 'Get', <HeaderFields.signature: 8>: 'ss'}), ('org.freedesktop.Secret.Collection', 'Label'))
def send_and_get_reply(self, msg: Message) -> Any:
try:
resp_msg: Message = self._connection.send_and_get_reply(msg)
if resp_msg.header.message_type == MessageType.error:
raise DBusErrorResponse(resp_msg)
return resp_msg.body
except DBusErrorResponse as resp:
if resp.name in (DBUS_UNKNOWN_METHOD, DBUS_NO_SUCH_OBJECT):
raise ItemNotFoundException('Item does not exist!') from resp
elif resp.name in (DBUS_SERVICE_UNKNOWN, DBUS_EXEC_FAILED,
DBUS_NO_REPLY):
data = resp.data
if isinstance(data, tuple):
data = data[0]
> raise SecretServiceNotAvailableException(data) from resp
E secretstorage.exceptions.SecretServiceNotAvailableException: The name org.freedesktop.secrets was not provided by any .service files
secretstorage/util.py:58: SecretServiceNotAvailableException
___________________________ ItemTest.test_attributes ___________________________
self = DBusAddressWrapper('/org/freedesktop/secrets/aliases/default', bus_name='org.freedesktop.secrets', interface='org.freedesktop.Secret.Collection')
msg = Message(Header(<Endianness.little: 1>, <MessageType.method_call: 1>, <MessageFlag.0: 0>, 1, 50, -1, fields={<HeaderFie..., <HeaderFields.member: 3>: 'Get', <HeaderFields.signature: 8>: 'ss'}), ('org.freedesktop.Secret.Collection', 'Label'))
def send_and_get_reply(self, msg: Message) -> Any:
try:
resp_msg: Message = self._connection.send_and_get_reply(msg)
if resp_msg.header.message_type == MessageType.error:
> raise DBusErrorResponse(resp_msg)
E jeepney.wrappers.DBusErrorResponse: [org.freedesktop.DBus.Error.ServiceUnknown] ('The name org.freedesktop.secrets was not provided by any .service files',)
secretstorage/util.py:48: DBusErrorResponse
The above exception was the direct cause of the following exception:
self = <tests.test_item.ItemTest testMethod=test_attributes>
def setUp(self) -> None:
self.connection = dbus_init()
> self.collection = get_any_collection(self.connection)
tests/test_item.py:22:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
secretstorage/collection.py:189: in get_any_collection
return Collection(connection)
secretstorage/collection.py:45: in __init__
self._collection.get_property('Label')
secretstorage/util.py:67: in get_property
(signature, value), = self.send_and_get_reply(msg)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = DBusAddressWrapper('/org/freedesktop/secrets/aliases/default', bus_name='org.freedesktop.secrets', interface='org.freedesktop.Secret.Collection')
msg = Message(Header(<Endianness.little: 1>, <MessageType.method_call: 1>, <MessageFlag.0: 0>, 1, 50, -1, fields={<HeaderFie..., <HeaderFields.member: 3>: 'Get', <HeaderFields.signature: 8>: 'ss'}), ('org.freedesktop.Secret.Collection', 'Label'))
def send_and_get_reply(self, msg: Message) -> Any:
try:
resp_msg: Message = self._connection.send_and_get_reply(msg)
if resp_msg.header.message_type == MessageType.error:
raise DBusErrorResponse(resp_msg)
return resp_msg.body
except DBusErrorResponse as resp:
if resp.name in (DBUS_UNKNOWN_METHOD, DBUS_NO_SUCH_OBJECT):
raise ItemNotFoundException('Item does not exist!') from resp
elif resp.name in (DBUS_SERVICE_UNKNOWN, DBUS_EXEC_FAILED,
DBUS_NO_REPLY):
data = resp.data
if isinstance(data, tuple):
data = data[0]
> raise SecretServiceNotAvailableException(data) from resp
E secretstorage.exceptions.SecretServiceNotAvailableException: The name org.freedesktop.secrets was not provided by any .service files
secretstorage/util.py:58: SecretServiceNotAvailableException
____________________________ ItemTest.test_created _____________________________
self = DBusAddressWrapper('/org/freedesktop/secrets/aliases/default', bus_name='org.freedesktop.secrets', interface='org.freedesktop.Secret.Collection')
msg = Message(Header(<Endianness.little: 1>, <MessageType.method_call: 1>, <MessageFlag.0: 0>, 1, 50, -1, fields={<HeaderFie..., <HeaderFields.member: 3>: 'Get', <HeaderFields.signature: 8>: 'ss'}), ('org.freedesktop.Secret.Collection', 'Label'))
def send_and_get_reply(self, msg: Message) -> Any:
try:
resp_msg: Message = self._connection.send_and_get_reply(msg)
if resp_msg.header.message_type == MessageType.error:
> raise DBusErrorResponse(resp_msg)
E jeepney.wrappers.DBusErrorResponse: [org.freedesktop.DBus.Error.ServiceUnknown] ('The name org.freedesktop.secrets was not provided by any .service files',)
secretstorage/util.py:48: DBusErrorResponse
The above exception was the direct cause of the following exception:
self = <tests.test_item.ItemTest testMethod=test_created>
def setUp(self) -> None:
self.connection = dbus_init()
> self.collection = get_any_collection(self.connection)
tests/test_item.py:22:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
secretstorage/collection.py:189: in get_any_collection
return Collection(connection)
secretstorage/collection.py:45: in __init__
self._collection.get_property('Label')
secretstorage/util.py:67: in get_property
(signature, value), = self.send_and_get_reply(msg)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = DBusAddressWrapper('/org/freedesktop/secrets/aliases/default', bus_name='org.freedesktop.secrets', interface='org.freedesktop.Secret.Collection')
msg = Message(Header(<Endianness.little: 1>, <MessageType.method_call: 1>, <MessageFlag.0: 0>, 1, 50, -1, fields={<HeaderFie..., <HeaderFields.member: 3>: 'Get', <HeaderFields.signature: 8>: 'ss'}), ('org.freedesktop.Secret.Collection', 'Label'))
def send_and_get_reply(self, msg: Message) -> Any:
try:
resp_msg: Message = self._connection.send_and_get_reply(msg)
if resp_msg.header.message_type == MessageType.error:
raise DBusErrorResponse(resp_msg)
return resp_msg.body
except DBusErrorResponse as resp:
if resp.name in (DBUS_UNKNOWN_METHOD, DBUS_NO_SUCH_OBJECT):
raise ItemNotFoundException('Item does not exist!') from resp
elif resp.name in (DBUS_SERVICE_UNKNOWN, DBUS_EXEC_FAILED,
DBUS_NO_REPLY):
data = resp.data
if isinstance(data, tuple):
data = data[0]
> raise SecretServiceNotAvailableException(data) from resp
E secretstorage.exceptions.SecretServiceNotAvailableException: The name org.freedesktop.secrets was not provided by any .service files
secretstorage/util.py:58: SecretServiceNotAvailableException
_____________________________ ItemTest.test_equal ______________________________
self = DBusAddressWrapper('/org/freedesktop/secrets/aliases/default', bus_name='org.freedesktop.secrets', interface='org.freedesktop.Secret.Collection')
msg = Message(Header(<Endianness.little: 1>, <MessageType.method_call: 1>, <MessageFlag.0: 0>, 1, 50, -1, fields={<HeaderFie..., <HeaderFields.member: 3>: 'Get', <HeaderFields.signature: 8>: 'ss'}), ('org.freedesktop.Secret.Collection', 'Label'))
def send_and_get_reply(self, msg: Message) -> Any:
try:
resp_msg: Message = self._connection.send_and_get_reply(msg)
if resp_msg.header.message_type == MessageType.error:
> raise DBusErrorResponse(resp_msg)
E jeepney.wrappers.DBusErrorResponse: [org.freedesktop.DBus.Error.ServiceUnknown] ('The name org.freedesktop.secrets was not provided by any .service files',)
secretstorage/util.py:48: DBusErrorResponse
The above exception was the direct cause of the following exception:
self = <tests.test_item.ItemTest testMethod=test_equal>
def setUp(self) -> None:
self.connection = dbus_init()
> self.collection = get_any_collection(self.connection)
tests/test_item.py:22:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
secretstorage/collection.py:189: in get_any_collection
return Collection(connection)
secretstorage/collection.py:45: in __init__
self._collection.get_property('Label')
secretstorage/util.py:67: in get_property
(signature, value), = self.send_and_get_reply(msg)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = DBusAddressWrapper('/org/freedesktop/secrets/aliases/default', bus_name='org.freedesktop.secrets', interface='org.freedesktop.Secret.Collection')
msg = Message(Header(<Endianness.little: 1>, <MessageType.method_call: 1>, <MessageFlag.0: 0>, 1, 50, -1, fields={<HeaderFie..., <HeaderFields.member: 3>: 'Get', <HeaderFields.signature: 8>: 'ss'}), ('org.freedesktop.Secret.Collection', 'Label'))
def send_and_get_reply(self, msg: Message) -> Any:
try:
resp_msg: Message = self._connection.send_and_get_reply(msg)
if resp_msg.header.message_type == MessageType.error:
raise DBusErrorResponse(resp_msg)
return resp_msg.body
except DBusErrorResponse as resp:
if resp.name in (DBUS_UNKNOWN_METHOD, DBUS_NO_SUCH_OBJECT):
raise ItemNotFoundException('Item does not exist!') from resp
elif resp.name in (DBUS_SERVICE_UNKNOWN, DBUS_EXEC_FAILED,
DBUS_NO_REPLY):
data = resp.data
if isinstance(data, tuple):
data = data[0]
> raise SecretServiceNotAvailableException(data) from resp
E secretstorage.exceptions.SecretServiceNotAvailableException: The name org.freedesktop.secrets was not provided by any .service files
secretstorage/util.py:58: SecretServiceNotAvailableException
_______________________ ItemTest.test_item_in_all_items ________________________
self = DBusAddressWrapper('/org/freedesktop/secrets/aliases/default', bus_name='org.freedesktop.secrets', interface='org.freedesktop.Secret.Collection')
msg = Message(Header(<Endianness.little: 1>, <MessageType.method_call: 1>, <MessageFlag.0: 0>, 1, 50, -1, fields={<HeaderFie..., <HeaderFields.member: 3>: 'Get', <HeaderFields.signature: 8>: 'ss'}), ('org.freedesktop.Secret.Collection', 'Label'))
def send_and_get_reply(self, msg: Message) -> Any:
try:
resp_msg: Message = self._connection.send_and_get_reply(msg)
if resp_msg.header.message_type == MessageType.error:
> raise DBusErrorResponse(resp_msg)
E jeepney.wrappers.DBusErrorResponse: [org.freedesktop.DBus.Error.ServiceUnknown] ('The name org.freedesktop.secrets was not provided by any .service files',)
secretstorage/util.py:48: DBusErrorResponse
The above exception was the direct cause of the following exception:
self = <tests.test_item.ItemTest testMethod=test_item_in_all_items>
def setUp(self) -> None:
self.connection = dbus_init()
> self.collection = get_any_collection(self.connection)
tests/test_item.py:22:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
secretstorage/collection.py:189: in get_any_collection
return Collection(connection)
secretstorage/collection.py:45: in __init__
self._collection.get_property('Label')
secretstorage/util.py:67: in get_property
(signature, value), = self.send_and_get_reply(msg)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = DBusAddressWrapper('/org/freedesktop/secrets/aliases/default', bus_name='org.freedesktop.secrets', interface='org.freedesktop.Secret.Collection')
msg = Message(Header(<Endianness.little: 1>, <MessageType.method_call: 1>, <MessageFlag.0: 0>, 1, 50, -1, fields={<HeaderFie..., <HeaderFields.member: 3>: 'Get', <HeaderFields.signature: 8>: 'ss'}), ('org.freedesktop.Secret.Collection', 'Label'))
def send_and_get_reply(self, msg: Message) -> Any:
try:
resp_msg: Message = self._connection.send_and_get_reply(msg)
if resp_msg.header.message_type == MessageType.error:
raise DBusErrorResponse(resp_msg)
return resp_msg.body
except DBusErrorResponse as resp:
if resp.name in (DBUS_UNKNOWN_METHOD, DBUS_NO_SUCH_OBJECT):
raise ItemNotFoundException('Item does not exist!') from resp
elif resp.name in (DBUS_SERVICE_UNKNOWN, DBUS_EXEC_FAILED,
DBUS_NO_REPLY):
data = resp.data
if isinstance(data, tuple):
data = data[0]
> raise SecretServiceNotAvailableException(data) from resp
E secretstorage.exceptions.SecretServiceNotAvailableException: The name org.freedesktop.secrets was not provided by any .service files
secretstorage/util.py:58: SecretServiceNotAvailableException
_____________________________ ItemTest.test_label ______________________________
self = DBusAddressWrapper('/org/freedesktop/secrets/aliases/default', bus_name='org.freedesktop.secrets', interface='org.freedesktop.Secret.Collection')
msg = Message(Header(<Endianness.little: 1>, <MessageType.method_call: 1>, <MessageFlag.0: 0>, 1, 50, -1, fields={<HeaderFie..., <HeaderFields.member: 3>: 'Get', <HeaderFields.signature: 8>: 'ss'}), ('org.freedesktop.Secret.Collection', 'Label'))
def send_and_get_reply(self, msg: Message) -> Any:
try:
resp_msg: Message = self._connection.send_and_get_reply(msg)
if resp_msg.header.message_type == MessageType.error:
> raise DBusErrorResponse(resp_msg)
E jeepney.wrappers.DBusErrorResponse: [org.freedesktop.DBus.Error.ServiceUnknown] ('The name org.freedesktop.secrets was not provided by any .service files',)
secretstorage/util.py:48: DBusErrorResponse
The above exception was the direct cause of the following exception:
self = <tests.test_item.ItemTest testMethod=test_label>
def setUp(self) -> None:
self.connection = dbus_init()
> self.collection = get_any_collection(self.connection)
tests/test_item.py:22:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
secretstorage/collection.py:189: in get_any_collection
return Collection(connection)
secretstorage/collection.py:45: in __init__
self._collection.get_property('Label')
secretstorage/util.py:67: in get_property
(signature, value), = self.send_and_get_reply(msg)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = DBusAddressWrapper('/org/freedesktop/secrets/aliases/default', bus_name='org.freedesktop.secrets', interface='org.freedesktop.Secret.Collection')
msg = Message(Header(<Endianness.little: 1>, <MessageType.method_call: 1>, <MessageFlag.0: 0>, 1, 50, -1, fields={<HeaderFie..., <HeaderFields.member: 3>: 'Get', <HeaderFields.signature: 8>: 'ss'}), ('org.freedesktop.Secret.Collection', 'Label'))
def send_and_get_reply(self, msg: Message) -> Any:
try:
resp_msg: Message = self._connection.send_and_get_reply(msg)
if resp_msg.header.message_type == MessageType.error:
raise DBusErrorResponse(resp_msg)
return resp_msg.body
except DBusErrorResponse as resp:
if resp.name in (DBUS_UNKNOWN_METHOD, DBUS_NO_SUCH_OBJECT):
raise ItemNotFoundException('Item does not exist!') from resp
elif resp.name in (DBUS_SERVICE_UNKNOWN, DBUS_EXEC_FAILED,
DBUS_NO_REPLY):
data = resp.data
if isinstance(data, tuple):
data = data[0]
> raise SecretServiceNotAvailableException(data) from resp
E secretstorage.exceptions.SecretServiceNotAvailableException: The name org.freedesktop.secrets was not provided by any .service files
secretstorage/util.py:58: SecretServiceNotAvailableException
____________________________ ItemTest.test_modified ____________________________
self = DBusAddressWrapper('/org/freedesktop/secrets/aliases/default', bus_name='org.freedesktop.secrets', interface='org.freedesktop.Secret.Collection')
msg = Message(Header(<Endianness.little: 1>, <MessageType.method_call: 1>, <MessageFlag.0: 0>, 1, 50, -1, fields={<HeaderFie..., <HeaderFields.member: 3>: 'Get', <HeaderFields.signature: 8>: 'ss'}), ('org.freedesktop.Secret.Collection', 'Label'))
def send_and_get_reply(self, msg: Message) -> Any:
try:
resp_msg: Message = self._connection.send_and_get_reply(msg)
if resp_msg.header.message_type == MessageType.error:
> raise DBusErrorResponse(resp_msg)
E jeepney.wrappers.DBusErrorResponse: [org.freedesktop.DBus.Error.ServiceUnknown] ('The name org.freedesktop.secrets was not provided by any .service files',)
secretstorage/util.py:48: DBusErrorResponse
The above exception was the direct cause of the following exception:
self = <tests.test_item.ItemTest testMethod=test_modified>
def setUp(self) -> None:
self.connection = dbus_init()
> self.collection = get_any_collection(self.connection)
tests/test_item.py:22:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
secretstorage/collection.py:189: in get_any_collection
return Collection(connection)
secretstorage/collection.py:45: in __init__
self._collection.get_property('Label')
secretstorage/util.py:67: in get_property
(signature, value), = self.send_and_get_reply(msg)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = DBusAddressWrapper('/org/freedesktop/secrets/aliases/default', bus_name='org.freedesktop.secrets', interface='org.freedesktop.Secret.Collection')
msg = Message(Header(<Endianness.little: 1>, <MessageType.method_call: 1>, <MessageFlag.0: 0>, 1, 50, -1, fields={<HeaderFie..., <HeaderFields.member: 3>: 'Get', <HeaderFields.signature: 8>: 'ss'}), ('org.freedesktop.Secret.Collection', 'Label'))
def send_and_get_reply(self, msg: Message) -> Any:
try:
resp_msg: Message = self._connection.send_and_get_reply(msg)
if resp_msg.header.message_type == MessageType.error:
raise DBusErrorResponse(resp_msg)
return resp_msg.body
except DBusErrorResponse as resp:
if resp.name in (DBUS_UNKNOWN_METHOD, DBUS_NO_SUCH_OBJECT):
raise ItemNotFoundException('Item does not exist!') from resp
elif resp.name in (DBUS_SERVICE_UNKNOWN, DBUS_EXEC_FAILED,
DBUS_NO_REPLY):
data = resp.data
if isinstance(data, tuple):
data = data[0]
> raise SecretServiceNotAvailableException(data) from resp
E secretstorage.exceptions.SecretServiceNotAvailableException: The name org.freedesktop.secrets was not provided by any .service files
secretstorage/util.py:58: SecretServiceNotAvailableException
___________________________ ItemTest.test_searchable ___________________________
self = DBusAddressWrapper('/org/freedesktop/secrets/aliases/default', bus_name='org.freedesktop.secrets', interface='org.freedesktop.Secret.Collection')
msg = Message(Header(<Endianness.little: 1>, <MessageType.method_call: 1>, <MessageFlag.0: 0>, 1, 50, -1, fields={<HeaderFie..., <HeaderFields.member: 3>: 'Get', <HeaderFields.signature: 8>: 'ss'}), ('org.freedesktop.Secret.Collection', 'Label'))
def send_and_get_reply(self, msg: Message) -> Any:
try:
resp_msg: Message = self._connection.send_and_get_reply(msg)
if resp_msg.header.message_type == MessageType.error:
> raise DBusErrorResponse(resp_msg)
E jeepney.wrappers.DBusErrorResponse: [org.freedesktop.DBus.Error.ServiceUnknown] ('The name org.freedesktop.secrets was not provided by any .service files',)
secretstorage/util.py:48: DBusErrorResponse
The above exception was the direct cause of the following exception:
self = <tests.test_item.ItemTest testMethod=test_searchable>
def setUp(self) -> None:
self.connection = dbus_init()
> self.collection = get_any_collection(self.connection)
tests/test_item.py:22:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
secretstorage/collection.py:189: in get_any_collection
return Collection(connection)
secretstorage/collection.py:45: in __init__
self._collection.get_property('Label')
secretstorage/util.py:67: in get_property
(signature, value), = self.send_and_get_reply(msg)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = DBusAddressWrapper('/org/freedesktop/secrets/aliases/default', bus_name='org.freedesktop.secrets', interface='org.freedesktop.Secret.Collection')
msg = Message(Header(<Endianness.little: 1>, <MessageType.method_call: 1>, <MessageFlag.0: 0>, 1, 50, -1, fields={<HeaderFie..., <HeaderFields.member: 3>: 'Get', <HeaderFields.signature: 8>: 'ss'}), ('org.freedesktop.Secret.Collection', 'Label'))
def send_and_get_reply(self, msg: Message) -> Any:
try:
resp_msg: Message = self._connection.send_and_get_reply(msg)
if resp_msg.header.message_type == MessageType.error:
raise DBusErrorResponse(resp_msg)
return resp_msg.body
except DBusErrorResponse as resp:
if resp.name in (DBUS_UNKNOWN_METHOD, DBUS_NO_SUCH_OBJECT):
raise ItemNotFoundException('Item does not exist!') from resp
elif resp.name in (DBUS_SERVICE_UNKNOWN, DBUS_EXEC_FAILED,
DBUS_NO_REPLY):
data = resp.data
if isinstance(data, tuple):
data = data[0]
> raise SecretServiceNotAvailableException(data) from resp
E secretstorage.exceptions.SecretServiceNotAvailableException: The name org.freedesktop.secrets was not provided by any .service files
secretstorage/util.py:58: SecretServiceNotAvailableException
_____________________________ ItemTest.test_secret _____________________________
self = DBusAddressWrapper('/org/freedesktop/secrets/aliases/default', bus_name='org.freedesktop.secrets', interface='org.freedesktop.Secret.Collection')
msg = Message(Header(<Endianness.little: 1>, <MessageType.method_call: 1>, <MessageFlag.0: 0>, 1, 50, -1, fields={<HeaderFie..., <HeaderFields.member: 3>: 'Get', <HeaderFields.signature: 8>: 'ss'}), ('org.freedesktop.Secret.Collection', 'Label'))
def send_and_get_reply(self, msg: Message) -> Any:
try:
resp_msg: Message = self._connection.send_and_get_reply(msg)
if resp_msg.header.message_type == MessageType.error:
> raise DBusErrorResponse(resp_msg)
E jeepney.wrappers.DBusErrorResponse: [org.freedesktop.DBus.Error.ServiceUnknown] ('The name org.freedesktop.secrets was not provided by any .service files',)
secretstorage/util.py:48: DBusErrorResponse
The above exception was the direct cause of the following exception:
self = <tests.test_item.ItemTest testMethod=test_secret>
def setUp(self) -> None:
self.connection = dbus_init()
> self.collection = get_any_collection(self.connection)
tests/test_item.py:22:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
secretstorage/collection.py:189: in get_any_collection
return Collection(connection)
secretstorage/collection.py:45: in __init__
self._collection.get_property('Label')
secretstorage/util.py:67: in get_property
(signature, value), = self.send_and_get_reply(msg)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = DBusAddressWrapper('/org/freedesktop/secrets/aliases/default', bus_name='org.freedesktop.secrets', interface='org.freedesktop.Secret.Collection')
msg = Message(Header(<Endianness.little: 1>, <MessageType.method_call: 1>, <MessageFlag.0: 0>, 1, 50, -1, fields={<HeaderFie..., <HeaderFields.member: 3>: 'Get', <HeaderFields.signature: 8>: 'ss'}), ('org.freedesktop.Secret.Collection', 'Label'))
def send_and_get_reply(self, msg: Message) -> Any:
try:
resp_msg: Message = self._connection.send_and_get_reply(msg)
if resp_msg.header.message_type == MessageType.error:
raise DBusErrorResponse(resp_msg)
return resp_msg.body
except DBusErrorResponse as resp:
if resp.name in (DBUS_UNKNOWN_METHOD, DBUS_NO_SUCH_OBJECT):
raise ItemNotFoundException('Item does not exist!') from resp
elif resp.name in (DBUS_SERVICE_UNKNOWN, DBUS_EXEC_FAILED,
DBUS_NO_REPLY):
data = resp.data
if isinstance(data, tuple):
data = data[0]
> raise SecretServiceNotAvailableException(data) from resp
E secretstorage.exceptions.SecretServiceNotAvailableException: The name org.freedesktop.secrets was not provided by any .service files
secretstorage/util.py:58: SecretServiceNotAvailableException
______________________ ItemTest.test_secret_content_type _______________________
self = DBusAddressWrapper('/org/freedesktop/secrets/aliases/default', bus_name='org.freedesktop.secrets', interface='org.freedesktop.Secret.Collection')
msg = Message(Header(<Endianness.little: 1>, <MessageType.method_call: 1>, <MessageFlag.0: 0>, 1, 50, -1, fields={<HeaderFie..., <HeaderFields.member: 3>: 'Get', <HeaderFields.signature: 8>: 'ss'}), ('org.freedesktop.Secret.Collection', 'Label'))
def send_and_get_reply(self, msg: Message) -> Any:
try:
resp_msg: Message = self._connection.send_and_get_reply(msg)
if resp_msg.header.message_type == MessageType.error:
> raise DBusErrorResponse(resp_msg)
E jeepney.wrappers.DBusErrorResponse: [org.freedesktop.DBus.Error.ServiceUnknown] ('The name org.freedesktop.secrets was not provided by any .service files',)
secretstorage/util.py:48: DBusErrorResponse
The above exception was the direct cause of the following exception:
self = <tests.test_item.ItemTest testMethod=test_secret_content_type>
def setUp(self) -> None:
self.connection = dbus_init()
> self.collection = get_any_collection(self.connection)
tests/test_item.py:22:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
secretstorage/collection.py:189: in get_any_collection
return Collection(connection)
secretstorage/collection.py:45: in __init__
self._collection.get_property('Label')
secretstorage/util.py:67: in get_property
(signature, value), = self.send_and_get_reply(msg)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = DBusAddressWrapper('/org/freedesktop/secrets/aliases/default', bus_name='org.freedesktop.secrets', interface='org.freedesktop.Secret.Collection')
msg = Message(Header(<Endianness.little: 1>, <MessageType.method_call: 1>, <MessageFlag.0: 0>, 1, 50, -1, fields={<HeaderFie..., <HeaderFields.member: 3>: 'Get', <HeaderFields.signature: 8>: 'ss'}), ('org.freedesktop.Secret.Collection', 'Label'))
def send_and_get_reply(self, msg: Message) -> Any:
try:
resp_msg: Message = self._connection.send_and_get_reply(msg)
if resp_msg.header.message_type == MessageType.error:
raise DBusErrorResponse(resp_msg)
return resp_msg.body
except DBusErrorResponse as resp:
if resp.name in (DBUS_UNKNOWN_METHOD, DBUS_NO_SUCH_OBJECT):
raise ItemNotFoundException('Item does not exist!') from resp
elif resp.name in (DBUS_SERVICE_UNKNOWN, DBUS_EXEC_FAILED,
DBUS_NO_REPLY):
data = resp.data
if isinstance(data, tuple):
data = data[0]
> raise SecretServiceNotAvailableException(data) from resp
E secretstorage.exceptions.SecretServiceNotAvailableException: The name org.freedesktop.secrets was not provided by any .service files
secretstorage/util.py:58: SecretServiceNotAvailableException
_______________________ ItemTest.test_secret_wrong_type ________________________
self = DBusAddressWrapper('/org/freedesktop/secrets/aliases/default', bus_name='org.freedesktop.secrets', interface='org.freedesktop.Secret.Collection')
msg = Message(Header(<Endianness.little: 1>, <MessageType.method_call: 1>, <MessageFlag.0: 0>, 1, 50, -1, fields={<HeaderFie..., <HeaderFields.member: 3>: 'Get', <HeaderFields.signature: 8>: 'ss'}), ('org.freedesktop.Secret.Collection', 'Label'))
def send_and_get_reply(self, msg: Message) -> Any:
try:
resp_msg: Message = self._connection.send_and_get_reply(msg)
if resp_msg.header.message_type == MessageType.error:
> raise DBusErrorResponse(resp_msg)
E jeepney.wrappers.DBusErrorResponse: [org.freedesktop.DBus.Error.ServiceUnknown] ('The name org.freedesktop.secrets was not provided by any .service files',)
secretstorage/util.py:48: DBusErrorResponse
The above exception was the direct cause of the following exception:
self = <tests.test_item.ItemTest testMethod=test_secret_wrong_type>
def setUp(self) -> None:
self.connection = dbus_init()
> self.collection = get_any_collection(self.connection)
tests/test_item.py:22:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
secretstorage/collection.py:189: in get_any_collection
return Collection(connection)
secretstorage/collection.py:45: in __init__
self._collection.get_property('Label')
secretstorage/util.py:67: in get_property
(signature, value), = self.send_and_get_reply(msg)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = DBusAddressWrapper('/org/freedesktop/secrets/aliases/default', bus_name='org.freedesktop.secrets', interface='org.freedesktop.Secret.Collection')
msg = Message(Header(<Endianness.little: 1>, <MessageType.method_call: 1>, <MessageFlag.0: 0>, 1, 50, -1, fields={<HeaderFie..., <HeaderFields.member: 3>: 'Get', <HeaderFields.signature: 8>: 'ss'}), ('org.freedesktop.Secret.Collection', 'Label'))
def send_and_get_reply(self, msg: Message) -> Any:
try:
resp_msg: Message = self._connection.send_and_get_reply(msg)
if resp_msg.header.message_type == MessageType.error:
raise DBusErrorResponse(resp_msg)
return resp_msg.body
except DBusErrorResponse as resp:
if resp.name in (DBUS_UNKNOWN_METHOD, DBUS_NO_SUCH_OBJECT):
raise ItemNotFoundException('Item does not exist!') from resp
elif resp.name in (DBUS_SERVICE_UNKNOWN, DBUS_EXEC_FAILED,
DBUS_NO_REPLY):
data = resp.data
if isinstance(data, tuple):
data = data[0]
> raise SecretServiceNotAvailableException(data) from resp
E secretstorage.exceptions.SecretServiceNotAvailableException: The name org.freedesktop.secrets was not provided by any .service files
secretstorage/util.py:58: SecretServiceNotAvailableException
_____________________________ ItemTest.test_unlock _____________________________
self = DBusAddressWrapper('/org/freedesktop/secrets/aliases/default', bus_name='org.freedesktop.secrets', interface='org.freedesktop.Secret.Collection')
msg = Message(Header(<Endianness.little: 1>, <MessageType.method_call: 1>, <MessageFlag.0: 0>, 1, 50, -1, fields={<HeaderFie..., <HeaderFields.member: 3>: 'Get', <HeaderFields.signature: 8>: 'ss'}), ('org.freedesktop.Secret.Collection', 'Label'))
def send_and_get_reply(self, msg: Message) -> Any:
try:
resp_msg: Message = self._connection.send_and_get_reply(msg)
if resp_msg.header.message_type == MessageType.error:
> raise DBusErrorResponse(resp_msg)
E jeepney.wrappers.DBusErrorResponse: [org.freedesktop.DBus.Error.ServiceUnknown] ('The name org.freedesktop.secrets was not provided by any .service files',)
secretstorage/util.py:48: DBusErrorResponse
The above exception was the direct cause of the following exception:
self = <tests.test_item.ItemTest testMethod=test_unlock>
def setUp(self) -> None:
self.connection = dbus_init()
> self.collection = get_any_collection(self.connection)
tests/test_item.py:22:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
secretstorage/collection.py:189: in get_any_collection
return Collection(connection)
secretstorage/collection.py:45: in __init__
self._collection.get_property('Label')
secretstorage/util.py:67: in get_property
(signature, value), = self.send_and_get_reply(msg)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = DBusAddressWrapper('/org/freedesktop/secrets/aliases/default', bus_name='org.freedesktop.secrets', interface='org.freedesktop.Secret.Collection')
msg = Message(Header(<Endianness.little: 1>, <MessageType.method_call: 1>, <MessageFlag.0: 0>, 1, 50, -1, fields={<HeaderFie..., <HeaderFields.member: 3>: 'Get', <HeaderFields.signature: 8>: 'ss'}), ('org.freedesktop.Secret.Collection', 'Label'))
def send_and_get_reply(self, msg: Message) -> Any:
try:
resp_msg: Message = self._connection.send_and_get_reply(msg)
if resp_msg.header.message_type == MessageType.error:
raise DBusErrorResponse(resp_msg)
return resp_msg.body
except DBusErrorResponse as resp:
if resp.name in (DBUS_UNKNOWN_METHOD, DBUS_NO_SUCH_OBJECT):
raise ItemNotFoundException('Item does not exist!') from resp
elif resp.name in (DBUS_SERVICE_UNKNOWN, DBUS_EXEC_FAILED,
DBUS_NO_REPLY):
data = resp.data
if isinstance(data, tuple):
data = data[0]
> raise SecretServiceNotAvailableException(data) from resp
E secretstorage.exceptions.SecretServiceNotAvailableException: The name org.freedesktop.secrets was not provided by any .service files
secretstorage/util.py:58: SecretServiceNotAvailableException
=========================== short test summary info ============================
SKIPPED [1] tests/test_collection.py:82: This test should only be run with the mocked server.
SKIPPED [1] tests/test_collection.py:55: This test should only be run with the mocked server.
SKIPPED [1] tests/test_collection.py:59: This test should only be run with the mocked server.
SKIPPED [1] tests/test_collection.py:74: This test should only be run with the mocked server.
SKIPPED [1] tests/test_collection.py:65: This test should only be run with the mocked server.
SKIPPED [1] tests/test_unlocking.py:23: This test should only be run with the mocked server.
FAILED tests/test_collection.py::CollectionTest::test_all_collections - secre...
FAILED tests/test_collection.py::CollectionTest::test_all_items - secretstora...
FAILED tests/test_collection.py::CollectionTest::test_create_empty_item - sec...
FAILED tests/test_collection.py::CollectionTest::test_label - secretstorage.e...
FAILED tests/test_context_manager.py::ContextManagerTest::test_closing_context_manager
FAILED tests/test_exceptions.py::ExceptionsTest::test_double_deleting - secre...
FAILED tests/test_exceptions.py::ExceptionsTest::test_non_existing_collection
FAILED tests/test_exceptions.py::ExceptionsTest::test_non_existing_item - sec...
FAILED tests/test_item.py::ItemTest::test_attributes - secretstorage.exceptio...
FAILED tests/test_item.py::ItemTest::test_created - secretstorage.exceptions....
FAILED tests/test_item.py::ItemTest::test_equal - secretstorage.exceptions.Se...
FAILED tests/test_item.py::ItemTest::test_item_in_all_items - secretstorage.e...
FAILED tests/test_item.py::ItemTest::test_label - secretstorage.exceptions.Se...
FAILED tests/test_item.py::ItemTest::test_modified - secretstorage.exceptions...
FAILED tests/test_item.py::ItemTest::test_searchable - secretstorage.exceptio...
FAILED tests/test_item.py::ItemTest::test_secret - secretstorage.exceptions.S...
FAILED tests/test_item.py::ItemTest::test_secret_content_type - secretstorage...
FAILED tests/test_item.py::ItemTest::test_secret_wrong_type - secretstorage.e...
FAILED tests/test_item.py::ItemTest::test_unlock - secretstorage.exceptions.S...
=================== 19 failed, 1 passed, 6 skipped in 0.38s ==================== |
Sorry, I wanted to file a bug against libsecret but it got buried under a bunch of other tasks. Thanks for bringing it to the top again, I have done that now: |
👍 👀 |
I'm packaging your module as an rpm package so I'm using the typical PEP517 based build, install and test cycle used on building packages from non-root account.
python3 -sBm build -w --no-isolation
build
with--no-isolation
I'm using during all processes only locally installed modulesHere is lis of modules installed in build env:
The text was updated successfully, but these errors were encountered: