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
(kubectl events): Add integration tests #110766
(kubectl events): Add integration tests #110766
Conversation
/priority important-longterm |
/sig cli |
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.
Looks good. Left a few minor comments
test/cmd/events.sh
Outdated
# Post-condition: namespace 'test-jobs' is created. | ||
kube::test::get_object_assert 'namespaces/test-events' "{{$id_field}}" 'test-events' | ||
|
||
# Pre-condition: event does not exist for Cronjob/pi in test-events namespace |
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.
technically, this is using the -A
flag, so it is not just checking in the test-events
namespace. Is that OK? Or does the comment need to be changed?
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.
I changed the comment. We need to ensure that Cronjob/pi should not exist in any namespace.
097bfa7
to
f8a8766
Compare
@brianpursley could you PTAL?. Thanks. |
This PR adds integration tests for `kubectl alpha events`
f8a8766
to
f5af2d0
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.
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: ardaguclu, brianpursley 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 |
What type of PR is this?
/kind feature
What this PR does / why we need it:
This PR adds integration tests for
kubectl alpha events
Does this PR introduce a user-facing change?