Skip to content
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

Use SSH forwarding to connect remotely to dbus instance where bluechi service is connected #486

Open
mwperina opened this issue Aug 21, 2023 · 0 comments
Labels
backlog This is next up in priority enhancement New feature or request testing This issue adds or improves the testing

Comments

@mwperina
Copy link
Member

mwperina commented Aug 21, 2023

Using python-bluechi module within integration tests has been introduced as a part of #485 . But clients using python-bluechi need to be executed on the same machine, that bluechi controller is runnig.

Here is our current intergration tests setup:

 __________________________________________________________________________________________________
|                                                                                                  |
|    Testing host                                                                                  |
|                                                                                                  |
|                         -----------------------------------------------                          |
|                        |                                               |                         |
|                        |  Execution process of integration tests code  |                         |
|                        |                                               |                         |
|                         -----------------------------------------------                          |
|                                                                                                  |
|                                                                                                  |
|                                                                                                  |
|     --------------------------------      ----------------------      ----------------------     |
|    |                                |    |                      |    |                      |    |
|    |  bluechi controller container  |    |  node foo container  |    |  node bar container  |    |
|    |                                |    |                      |    |                      |    |
|     --------------------------------      ----------------------      ----------------------     |
|                                                                                                  |
 --------------------------------------------------------------------------------------------------

So to use python-bluechi in integration tests we need to copy this module source file into bluechi controller container, because it needs to connect to the same system dbus instance where bluechi controller container. This approach makes the usage of python-bluechi in integrations tests harder and if you need to check the output of the client, then it's even more problematic.

So it would be great if we could use SSH tunnel between testing host and dbus instance running within bluechi controller container so python-bluechi clients could be easily integrated into the test code.

https://nikhilism.com/post/2023/remote-dbus-notifications/

@mwperina mwperina changed the title Use proxy to connect to bluechi service from remote location Use SSH forwarding to connect remotely to dbus instance where bluechi service is connected Aug 21, 2023
@mwperina mwperina added enhancement New feature or request testing This issue adds or improves the testing labels Aug 21, 2023
@mkemel mkemel added this to the v0.7 milestone Nov 21, 2023
@mkemel mkemel added jira Issues that are synced to Jira backlog This is next up in priority and removed jira Issues that are synced to Jira labels Nov 21, 2023
@mkemel mkemel removed this from the v0.7 milestone Nov 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backlog This is next up in priority enhancement New feature or request testing This issue adds or improves the testing
Projects
None yet
Development

No branches or pull requests

2 participants