-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Add a unit-test for kubeadm local mode #2288
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
Conversation
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. No blocking comments, just a few minor suggestions.
scenarios/kubernetes_e2e_test.py
Outdated
|
|
||
| import kubernetes_e2e | ||
|
|
||
| FAKE_SCM = 'STABLE_BUILD_GIT_COMMIT 599539dc0b99976fda0f326f4ce47e93ec07217c\n' \ |
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.
Minor nitpick: There's a lot of information in here besides the SCM, so calling it FAKE_WORKSPACE_STATUS seems more appropriate. Same goes for fake_output_scm -> fake_output_workspace_status.
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.
done.
|
|
||
| FAKE_SCM = 'STABLE_BUILD_GIT_COMMIT 599539dc0b99976fda0f326f4ce47e93ec07217c\n' \ | ||
| 'STABLE_BUILD_SCM_STATUS clean\n' \ | ||
| 'STABLE_BUILD_SCM_REVISION v1.7.0-alpha.0.1320+599539dc0b9997\n' \ |
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.
Since you have real values here, it would be great if the test actually asserted the expected value of the SCM_REVISION that gets extracted (to make sure that the regex doesn't accidentally pick up leading/trailing whitespace, newlines, etc).
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.
after fighting with the bot for a while, done.
9310b9d to
c624553
Compare
|
merge to get couple runs before EoD |
Save some unnecessary bleeding 😫
/assign @pipejakob