-
Notifications
You must be signed in to change notification settings - Fork 244
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 Unknown State to Component. #2690
Add Unknown State to Component. #2690
Conversation
@adisky It will be hard to add integration test particularly in this usecase to run on our CI infrastructure, so cover the test through UTs. |
@amitkrout sure, was stuck with something in UT, it is cleared now. will add |
0d2b612
to
e43180c
Compare
Codecov Report
@@ Coverage Diff @@
## master #2690 +/- ##
==========================================
- Coverage 43.67% 43.65% -0.03%
==========================================
Files 95 95
Lines 8762 8780 +18
==========================================
+ Hits 3827 3833 +6
- Misses 4571 4584 +13
+ Partials 364 363 -1
Continue to review full report at Codecov.
|
9314d66
to
e383e3a
Compare
/retest |
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.
Besides the requested change, I think we need to also add the definition of various states (Pushed
, Not Pushed
and Unkown
) in the docs. Specially Unknown
could confuse the users. From what I see in the docs right now, there's no mention of the states when user executed odo list
. That's where this needs to be added. Ping @Preeticp @boczkowska can you help take this bit further?
@kadel should we also add documentation of the various states in odo list -h
? I'm inclined towards adding it, but what do you think?
@amitkrout Why it would be hard? You mean because you need to be disconnected from the cluster? |
@amitkrout Why it would be hard? You mean because you need to be disconnected from the cluster?
yep, we definitely should. Docs need to include definition and descriptions of each state. |
@kadel @amitkrout Thank you for bringing it up. I filed a separate docs issue to track. |
@kadel yup, it is doable. @adisky from https://github.com/openshift/odo/blob/master/tests/integration/cmd_pref_config_test.go#L308 you will get the reference to implement it. |
@amitkrout Thanks, would add an integration test case |
@amitkrout @kadel I tried setting
for most commands in odo, it creates a I have tested the PR manually with |
@dgolovin |
0f6bf54
to
5a1f784
Compare
610f9f2
to
262c6e7
Compare
/retest |
/retest |
262c6e7
to
45b5755
Compare
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: kadel The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/retest |
1 similar comment
/retest |
Refactor TestList and add case for unknown state.
fix list path and set kubeconfig to default, when env variable unset
45b5755
to
5c5724e
Compare
/retest |
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
/retest Please review the full test history for this PR and help us cut down flakes. |
6 similar comments
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
What type of PR is this?
/kind bug
What does does this PR do / why we need it:
When odo is not connected to cluster, is should list out component from local config with state
unknown
.Which issue(s) this PR fixes:
Fixes #2444
How to test changes / Special notes to the reviewer:
Run
odo list --path <path>
on a not logged in cluster, is should returnstate
of all the component tounknown
.