Skip to content

Comments

login1: Add NewWithConnection method #396

Closed
invidian wants to merge 2 commits intocoreos:mainfrom
kinvolk:invidian/new-with-connection
Closed

login1: Add NewWithConnection method #396
invidian wants to merge 2 commits intocoreos:mainfrom
kinvolk:invidian/new-with-connection

Conversation

@invidian
Copy link

This method allows passing existing D-Bus connection, which allows to
re-use connection between clients and to mock D-Bus connection for
testing purposes.

Extracted from #390
Includes commits from #395

Signed-off-by: Mateusz Gozdek mgozdek@microsoft.com

This is a desired way of testing to avoid creating fragile test suites
and be able to refactor code without touching tests.

Signed-off-by: Mateusz Gozdek <mgozdek@microsoft.com>
This method allows passing existing D-Bus connection, which allows to
re-use connection between clients and to mock D-Bus connection for
testing purposes.

Signed-off-by: Mateusz Gozdek <mgozdek@microsoft.com>
@invidian
Copy link
Author

Closing in favor of #503.

@invidian invidian closed this Jan 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants