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

fix(client): Status code should indicate registration status #4344

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

pkoprda
Copy link
Contributor

@pkoprda pkoprda commented Jan 24, 2025

All Pull Requests:

Check all that apply:

  • Have you followed the guidelines in our Contributing document, including the instructions about commit messages?
  • No Sensitive Data in this change?
  • Is this PR to correct an issue?
  • Is this PR an enhancement?

Complete Description of Additions/Changes:

  • Card ID: CCT-1059

Status code returned by insights-client --status should indicate whether a host is registered or not. This change ensures that the exit code is 0 if the host is registered and 1 if it is not.

@codecov-commenter
Copy link

codecov-commenter commented Jan 24, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 77.06%. Comparing base (f28e238) to head (3bc26f0).

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #4344   +/-   ##
=======================================
  Coverage   77.06%   77.06%           
=======================================
  Files         736      736           
  Lines       41368    41369    +1     
  Branches     8789     8789           
=======================================
+ Hits        31879    31882    +3     
+ Misses       8429     8428    -1     
+ Partials     1060     1059    -1     
Flag Coverage Δ
unittests 77.05% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@xiangce xiangce added the client These issues represent work to be done by the "client" team. label Jan 26, 2025
@zhangqianqian
Copy link
Collaborator

test me

* Card ID: CCT-1059

Status code returned by `insights-client --status` should indicate
whether a host is registered or not. This change ensures that the exit
code is 0 if the host is registered and 1 if it is not.

Signed-off-by: pkoprda <[email protected]>
@pkoprda pkoprda force-pushed the registration-status branch from 39e2165 to 3bc26f0 Compare January 27, 2025 09:48
Copy link
Contributor

@m-horky m-horky left a comment

Choose a reason for hiding this comment

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

Looks good. Let's wait for QE.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
client These issues represent work to be done by the "client" team.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants