-
Notifications
You must be signed in to change notification settings - Fork 3.3k
e2e: use labels for configmap api; wait for default service account creation #1348
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
e2e: use labels for configmap api; wait for default service account creation #1348
Conversation
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: roycaihw 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 |
3849ad9
to
866fe44
Compare
/lgtm |
There are some new test failure regarding the |
866fe44
to
3b95adc
Compare
/lgtm |
2b7af1b
to
09a4935
Compare
(fixed some syntax error) The tests pass now https://travis-ci.org/github/kubernetes-client/python/builds/754195162. /hold cancel |
@@ -65,6 +72,23 @@ def test_pod_apis(self): | |||
|
|||
name = 'busybox-test-' + short_uuid() | |||
pod_manifest = manifest_with_command(name, "while true;do date;sleep 5; done") | |||
|
|||
# wait for the default service account to be created |
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.
better to give a timeout than wait forever
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
/hold
wait for test results
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.
/hold cancel
The test is green
@@ -130,6 +154,23 @@ def test_exit_code(self): | |||
|
|||
name = 'busybox-test-' + short_uuid() | |||
pod_manifest = manifest_with_command(name, "while true;do date;sleep 5; done") | |||
|
|||
# wait for the default service account to be created |
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.
ditto
09a4935
to
6deaaf8
Compare
6deaaf8
to
9093103
Compare
/lgtm thanks for fixing it. |
The Bound Service Account Tokens feature creates a configmap
kube-root-ca.crt
in every namespace. Use a label to select the test objects we create.Also wait for the default service account to be created before creating pods that need it.
/hold
wait for the tests to pass
The submodule update contains two commits, which do not require CHANGELOG change:
dynamic/test_client.py::TestDynamicClient::test_configmap_apis
ref kubernetes-client/python-base#222, #1347