-
Notifications
You must be signed in to change notification settings - Fork 40
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
Add integration test for bluechi-is-online agent #996
Add integration test for bluechi-is-online agent #996
Conversation
aa86714
to
75784a6
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You are almost there, great work!
Just some small comments
- Please add clear description to the commit message about the content of the commit. For example
- Adds bluechi_is_online module to provide bluechi-is-online methods to python code - Adds a test to verify `bluechi-is-online agent` invocation without additional parameters
- Please refernce your issue in the commit description. For example
Fixes: https://github.com/eclipse-bluechi/bluechi/issues/981 Signed-off-by: Dana Orr <[email protected]>
tests/tests/tier0/bluechi-is-online-agent/test_bluechi_is_online_agent.py
Outdated
Show resolved
Hide resolved
7f0a89c
to
f6dc589
Compare
- Adds bluechi_is_online module to provide bluechi-is-online methods to Python code. - Adds a test to verify `bluechi-is-online agent` invocation without additional parameters. Signed-off-by: Dana Orr <[email protected]>
f6dc589
to
fa7946f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Decreasing code coverage is caused by the fact, that previously source code for bluechi-is-online was not taken into account by coveralls (probably because bluechi-is-online was not invoked at all in any test and its source code is not used by other parts), so even though we have added new test, overall score was decreased. But that situation should be improving by adding more tests in upcoming PRs around bluechi-is-online |
Adding test for bluechi-is-online agent.
'bluechi-is-online agent' command is verifying on the agent machine check and/or monitor the connection of the agent to the controller.
When the agent is online, it exits with a status code 0 and does not produce any CLI output.
Fixes: #981
Signed-off-by: Dana Orr [email protected]