kmesh-net / kmesh

High Performance ServiceMesh Data Plane Based on Programmable Kernel

Home Page:https://kmesh.net

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

End to end tests

hzxuzhonghu opened this issue · comments

What would you like to be added:

This is to improve test coverage for features, we should test each feature in black box way. I am not sure whether github action machine allow running kmesh. This may be a blocker, so first we can test it.

The tasks can be divided as:

  • Provide script or go code to install kubernetes and kmesh
  • Prepare apps and framework that we need for e2e test
  • Write the first test as example
  • Write the other cases one by one

Why is this needed:

@VanderChen is working on writing and running the first e2e case

A kind based test framework will be used for end-to-end test both for Github Action and local cluster.

The end-to-end tests will be run against Kind K8s cluster running Kmesh.

+----------------------------+          +----------------------------+                                           
|   Kind Node 1              |          |   Kind Node 2              |                                           
|                            |          |                            |                                           
|  +-------------+           |          |  +-------------+           |                                           
|  | Kmesh Deamon|           |          |  | Kmesh Deamon|           |                                           
|  +-------------+           |          |  +-------------+           |                                           
|                            |          |                            |                                           
|  +----------------------+  |          |  +----------------------+  |                                           
|  | Kmesh Test Client 1  +--+----------+--> Kmesh Test Client 2  |  |                                           
|  +----------------------+  |          |  +----------------------+  |                                           
|                            |          |                            |                                           
+----------------------------+          +----------------------------+                                           

Connectivity e2e test including 2 parts connect to same node and connect to other node.

Before the controller appears, tests will be run as scripts, including,

  1. create kind cluster
  2. deploy kmesh with helm
  3. deploy test deploy with helm
  4. run tests

/assign @YaoZengzeng Should list some concrete cases that we must cover.

/close

For other cases, please open detailed issue to track cases we want to cover

@hzxuzhonghu: Closing this issue.

In response to this:

/close

For other cases, please open detailed issue to track cases we want to cover

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.