etcd icon indicating copy to clipboard operation
etcd copied to clipboard

Add unit tests for etcdctl

Open siyuanfoundation opened this issue 7 months ago • 14 comments

What would you like to be added?

Add unit tests for etcdctl. Tasks include:

  • [ ] Add a fake client
  • [ ] Add unit tests for most files in etcdctl/ctlv3/command

Why is this needed?

Right now all the changes to etcdctl can only manually tested, which is hard to verify for reviewers. To improve reliability, we need to have proper testing.

siyuanfoundation avatar Jun 13 '25 16:06 siyuanfoundation

/cc @ahrtr @serathius @fuweid @ivanvc @jmhbnz @hwdef

siyuanfoundation avatar Jun 13 '25 16:06 siyuanfoundation

I want to do this. Please assign it to me

hwdef avatar Jun 15 '25 14:06 hwdef

/assign @hwdef

Elbehery avatar Jun 15 '25 14:06 Elbehery

@siyuanfoundation Could this be split among many contributors ?

cc @ahrtr @ivanvc

Elbehery avatar Jun 15 '25 17:06 Elbehery

@siyuanfoundation Could this be split among many contributors ?

cc @ahrtr @ivanvc

Yes, I will break it into subtasks once the FakeClient fixture is added.

siyuanfoundation avatar Jun 18 '25 22:06 siyuanfoundation

@siyuanfoundation Could this be split among many contributors ? cc @ahrtr @ivanvc

Yes, I will break it into subtasks once the FakeClient fixture is added.

thx for your response 👍🏽

Anyone is working on the FakeClient already ?

Elbehery avatar Jun 19 '25 06:06 Elbehery

@Elbehery If no one else does it, I'm willing to give it a try.

hwdef avatar Jun 19 '25 11:06 hwdef

i assigned you last week already 🙂🙂

Elbehery avatar Jun 19 '25 12:06 Elbehery

Thanks! I'll submit PR in a few days.

hwdef avatar Jun 19 '25 15:06 hwdef

This issue has been automatically marked as stale because it has not had recent activity. It will be closed after 21 days if no further activity occurs. Thank you for your contributions.

github-actions[bot] avatar Aug 19 '25 00:08 github-actions[bot]

still work in progress

hwdef avatar Aug 19 '25 12:08 hwdef

This issue has been automatically marked as stale because it has not had recent activity. It will be closed after 21 days if no further activity occurs. Thank you for your contributions.

github-actions[bot] avatar Oct 19 '25 00:10 github-actions[bot]

still work in progress

hwdef avatar Oct 19 '25 13:10 hwdef