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

Need systemd in the unit test docker #33

Open
ShichenLin opened this issue Jan 20, 2022 · 1 comment
Open

Need systemd in the unit test docker #33

ShichenLin opened this issue Jan 20, 2022 · 1 comment

Comments

@ShichenLin
Copy link

I have a problem that I write a new unit test for bmcweb but this test cannot run via the current CI flow. My unit test focuses on the subscription part of Event Service, so it runs bmcweb app partially and mimics a client to check on the broadcasted test events. However, the HTTP part of bmcweb needs systemd-resolved.service to resolve hostnames and thus further depends on systemd while systemd is not supported in the unit test docker, so is it possible to add systemd in the unit test docker?

@williamspatrick
Copy link
Member

You should mock out the dbus calls that bmcweb would interact with. There should be other examples of creating a dummy dbus end-point.

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

No branches or pull requests

2 participants