radondb-mysql-kubernetes icon indicating copy to clipboard operation
radondb-mysql-kubernetes copied to clipboard

feat(e2e): add podchaos api and test cases

Open chengbaitai opened this issue 2 years ago • 3 comments

What type of PR is this?

/enhancement

Which issue(s) this PR fixes?

Fixes #682

What this PR does?

Summary: Chaos Mesh is a cloud native Chaos Engineering platform that orchestrates chaos on Kubernetes Chaos documents..Chaos mesh use CRD defnine many types of fault and provide detailed of parameter description.So wei can mainly focus on life cycle of CRD instead of focus on basic implements of specific faults. The details of this implements as follows:

  • introduce chaos mesh api into e2e
  • programming API according to definition of faults
  • programming test case

apis:

  • [x] podkill
  • [x] containerkill
  • [x] podfailure

Special notes for your reviewer?

chengbaitai avatar Sep 14 '22 02:09 chengbaitai

ci检查未通过,提交代码前执行:

go fmt ./...
go vet ./...

runkecheng avatar Sep 15 '22 00:09 runkecheng

import 规范参考 https://github.com/radondb/radondb-mysql-kubernetes/pull/693#discussion_r970212681

runkecheng avatar Sep 15 '22 01:09 runkecheng

建议补充成功注入后的资源信息,例如mysql节点,podchaos。

runkecheng avatar Sep 20 '22 06:09 runkecheng