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

Add integration test for bluechi-is-online agent #996

Merged

Conversation

DanaOrr
Copy link
Contributor

@DanaOrr DanaOrr commented Dec 2, 2024

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]

@DanaOrr DanaOrr force-pushed the bluechi-test-bluechi-is-online branch 3 times, most recently from aa86714 to 75784a6 Compare December 2, 2024 12:42
@coveralls
Copy link

coveralls commented Dec 2, 2024

Coverage Status

coverage: 81.095% (-2.0%) from 83.141%
when pulling 1ac833f on DanaOrr:bluechi-test-bluechi-is-online
into f234827 on eclipse-bluechi:main.

Copy link
Member

@mwperina mwperina left a 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

  1. 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
    
  2. 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/bluechi_test/bluechi_is_online.py Outdated Show resolved Hide resolved
tests/bluechi_test/bluechi_is_online.py Outdated Show resolved Hide resolved
tests/bluechi_test/machine.py Outdated Show resolved Hide resolved
@DanaOrr DanaOrr force-pushed the bluechi-test-bluechi-is-online branch 3 times, most recently from 7f0a89c to f6dc589 Compare December 3, 2024 08:52
- 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]>
@DanaOrr DanaOrr force-pushed the bluechi-test-bluechi-is-online branch from f6dc589 to fa7946f Compare December 3, 2024 12:38
Copy link
Member

@mwperina mwperina left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Member

@engelmi engelmi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@mwperina
Copy link
Member

mwperina commented Dec 3, 2024

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

@mwperina mwperina merged commit fcaadfd into eclipse-bluechi:main Dec 3, 2024
22 checks passed
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.

Add integration tests for bluechi-is-online agent without any cli options
4 participants