-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
[Refactor] Move pollDeploymentStatus to resource.Deployment.CheckStatus #2896
[Refactor] Move pollDeploymentStatus to resource.Deployment.CheckStatus #2896
Conversation
@@ -322,52 +323,6 @@ func TestGetDeployStatus(t *testing.T) { | |||
} | |||
} | |||
|
|||
func TestGetRollOutStatus(t *testing.T) { | |||
rolloutCmd := "kubectl --context kubecontext --namespace test rollout status deployment dep --watch=false" |
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.
Moved to TestCheckStatus
in deployment_test.go
Codecov Report
|
7aa6dbd
to
3c57370
Compare
In this PR, - Move pollDeploymentStatus to resource.Deployment.CheckStatus - Add a new interface `Resource` which will be implemented by `Pod` and later. Current it is used for mocking `Deployment` in `pollResourceStatus` test. - Add a concept of retry and non-retry errors.
3c57370
to
a7a1093
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.
This looks really good to me! Just one suggestion.
…al29/move_poll_deployment"" This reverts commit cf878dc.
Relates to #176
Fixes #2744
(Moved the test to use
mockResources
instead of deployments. Does not test the loop and always returns in first try)Should merge before :
Description
In this PR,
Resource
which will be implemented byPod
and later.Current it is used for mocking
Deployment
inpollResourceStatus
test.
Output Changes
n/a
Before
n/a
After
n/a
Next PRs.
next changes for #176,
resource.Base
and move all common functions for pod and deployment there.Submitter Checklist
These are the criteria that every PR should meet, please check them off as you
review them:
See the contribution guide for more details.
Double check this list of stuff that's easy to miss:
examples
dir, please copy them tointegration/examples
integration/examples
dir, should be tested in integration testReviewer Notes