-
Notifications
You must be signed in to change notification settings - Fork 9.9k
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
tests: Migrate alarm tests to common framework #13823
Conversation
# Conflicts: # tests/framework/e2e/etcdctl.go # tests/framework/interface.go
Codecov Report
@@ Coverage Diff @@
## main #13823 +/- ##
==========================================
- Coverage 72.55% 72.35% -0.21%
==========================================
Files 467 467
Lines 38280 38280
==========================================
- Hits 27773 27696 -77
- Misses 8717 8777 +60
- Partials 1790 1807 +17
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
tests/framework/interface.go
Outdated
@@ -41,6 +41,7 @@ type Client interface { | |||
HashKV(rev int64) ([]*clientv3.HashKVResponse, error) | |||
Health() error | |||
Defragment(opts config.DefragOption) error | |||
Alarm(cmd string, member *clientv3.AlarmMember) (*clientv3.AlarmResponse, error) |
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.
We should follow client interface, let's have separate AlarmList
and AlarmDisarm
calls.
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.
fixed. thanks.
Part of #13637
cc @serathius @ptabor @spzala @ahrtr to review when you have time, thanks.