Replies: 2 comments 6 replies
-
Hello @souliane What you can potentially do is use the NetworkManager interface classes defined in this library to create your own objects. In python-sdbus the client and server interfaces are the same class. So using the This will be functionally equivalent to the What I would recommend is running a Python type checker like I think for testing against real NetworkManager you would probably need a virtual machine. (or a real one dedicated for testing) |
Beta Was this translation helpful? Give feedback.
-
I realize that I should not need this for testing network manager, it looks more suitable for testing my own services.
Oh yeah, I remember reading this in the documentation :-p |
Beta Was this translation helpful? Give feedback.
-
Hi,
I would like to use this project to serve the main features of NetworkManager via an API, and I am wondering about the best way to test it. I typically need to test CRUD operations on the connection profiles. Testing directly on the real system bus is not an option. If you were me, what would you do?
IsolatedDbusTestCase
provided by sdbus: if I understand correctly, this spawn a new session bus server. Is there an easy way to replicate dbus NetworkManager to a session bus? Would that setup a trustable testing environment?Thanks for any input!
Beta Was this translation helpful? Give feedback.
All reactions