2021-04-27 19:27:50 +08:00
## Tests
### E2E Test
2021-09-14 17:29:52 +08:00
#### Configuration Requirements
2021-04-27 19:27:50 +08:00
2021-09-14 17:29:52 +08:00
##### Operating System
2021-04-27 19:27:50 +08:00
2021-09-14 17:29:52 +08:00
| Operating System | Version |
2021-04-27 19:27:50 +08:00
| ------ | --------- |
2021-09-14 17:29:52 +08:00
| CentOS | 7.5 or above |
| Ubuntu | 16.04 or above |
| Mac | 10.14 or above |
2021-04-27 19:27:50 +08:00
2021-09-14 17:29:52 +08:00
##### Hardware
2021-04-27 19:27:50 +08:00
2021-09-14 17:29:52 +08:00
| Hardware Type | Recommended Configuration |
2021-04-27 19:27:50 +08:00
| ---- | --------------------------------------------------------------------------------------------------- |
2021-11-11 15:07:02 +08:00
| CPU | x86_64 architecture < br > Intel CPU Sandy Bridge or above< br > CPU Instruction Set< br > - SSE4_2< br > - AVX< br > - AVX2< br > - AVX512 |
2021-09-14 17:29:52 +08:00
| Memory | 16 GB or more |
2021-04-27 19:27:50 +08:00
2021-09-14 17:29:52 +08:00
##### Software
2021-04-27 19:27:50 +08:00
2021-09-14 17:29:52 +08:00
| Software Name | Version |
2021-04-27 19:27:50 +08:00
| -------------- | ---------- |
2021-09-14 17:29:52 +08:00
| Docker | 19.05 or above |
| Docker Compose | 1.25.5 or above |
| jq | 1.3 or above |
| kubectl | 1.14 or above |
| helm | 3.0 or above |
| kind | 0.10.0 or above |
2021-04-27 19:27:50 +08:00
2021-09-14 17:29:52 +08:00
#### Installing Dependencies
2021-04-27 19:27:50 +08:00
2021-09-14 17:29:52 +08:00
##### Troubleshooting Docker and Docker Compose
2021-04-27 19:27:50 +08:00
2021-09-14 17:29:52 +08:00
1. Confirm that Docker Daemon is running:
2021-04-27 19:27:50 +08:00
```shell
$ docker info
```
2021-09-14 17:29:52 +08:00
- Ensure that Docker is installed. Refer to the official installation instructions for [Docker CE/EE ](https://docs.docker.com/get-docker/ ).
2021-04-27 19:27:50 +08:00
2021-09-14 17:29:52 +08:00
- Start the Docker Daemon if it is not already started.
2021-04-27 19:27:50 +08:00
2021-11-15 18:55:25 +08:00
- To run Docker without `root` privileges, create a user group labeled `docker` , then add a user to the group with `sudo usermod -aG docker $USER` . Log out and log back into the terminal for the changes to take effect. For more information, see the official Docker documentation for [Managing Docker as a Non-Root User ](https://docs.docker.com/engine/install/linux-postinstall/#manage-docker-as-a-non-root-user ).
2021-04-27 19:27:50 +08:00
2021-09-14 17:29:52 +08:00
2. Check the version of Docker-Compose
2021-04-27 19:27:50 +08:00
```shell
$ docker-compose version
docker-compose version 1.25.5, build 8a1c60f6
docker-py version: 4.1.0
CPython version: 3.7.5
OpenSSL version: OpenSSL 1.1.1f 31 Mar 2020
```
2021-09-14 17:29:52 +08:00
- To install Docker-Compose, see [Install Docker Compose ](https://docs.docker.com/compose/install/ )
2021-04-27 19:27:50 +08:00
2021-09-14 17:29:52 +08:00
##### Install jq
2021-04-27 19:27:50 +08:00
2021-09-14 17:29:52 +08:00
- Refer to < https: // stedolan . github . io / jq / download />
2021-04-27 19:27:50 +08:00
2021-09-14 17:29:52 +08:00
##### Install kubectl
2021-04-27 19:27:50 +08:00
2021-09-14 17:29:52 +08:00
- Refer to < https: // kubernetes . io / docs / tasks / tools />
2021-04-27 19:27:50 +08:00
2021-09-14 17:29:52 +08:00
##### Install helm
2021-04-27 19:27:50 +08:00
2021-09-14 17:29:52 +08:00
- Refer to < https: // helm . sh / docs / intro / install />
2021-04-27 19:27:50 +08:00
2021-09-14 17:29:52 +08:00
##### Install kind
2021-04-27 19:27:50 +08:00
2021-09-14 17:29:52 +08:00
- Refer to < https: // kind . sigs . k8s . io / docs / user / quick-start /# installation >
2021-04-27 19:27:50 +08:00
2021-09-14 17:29:52 +08:00
#### Run E2E Tests
2021-04-27 19:27:50 +08:00
```shell
$ cd tests/scripts
$ ./e2e-k8s.sh
```
> Getting help
>
2021-09-14 17:29:52 +08:00
> You can get help with the following command:
2021-04-27 19:27:50 +08:00
>
> ```shell
> $ ./e2e-k8s.sh --help
> ```