doc: correct e2e documentation formatting

This commit address formatting and alligment issues in e2e README.

Signed-off-by: Humble Chirammal <hchiramm@redhat.com>
This commit is contained in:
Humble Chirammal 2022-08-18 15:06:52 +05:30 committed by mergify[bot]
parent 5cb8f80c10
commit a9446c328e

View File

@ -10,18 +10,18 @@
## Introduction ## Introduction
End-to-end (e2e) in cephcsi provides a mechanism to test the end-to-end End-to-end (e2e) in cephcsi provides a mechanism to test the end-to-end behavior
behavior of the system, These tests will interact with live instances of ceph of the system, These tests will interact with live instances of ceph cluster
cluster just like how a user would. just like how a user would.
The primary objectives of the e2e tests are to ensure a consistent and reliable The primary objectives of the e2e tests are to ensure a consistent and reliable
behavior of the cephcsi code base and to catch hard-to-test bugs before behavior of the cephcsi code base and to catch hard-to-test bugs before users do
users do when unit and integration tests are insufficient. when unit and integration tests are insufficient.
The Test framework is designed The Test framework is designed to install Rook, run cephcsi tests, and uninstall
to install Rook, run cephcsi tests, and uninstall Rook. Rook.
The e2e test are built on top of [Ginkgo](http://onsi.github.io/ginkgo/) and The e2e test are built on top of [Ginkgo](http://onsi.github.io/ginkgo/) and
[Gomega](http://onsi.github.io/gomega/) [Gomega](http://onsi.github.io/gomega/)
## Install Kubernetes ## Install Kubernetes
@ -30,7 +30,7 @@ The cephcsi also provides a script for starting Kubernetes using
[minikube](../scripts/minikube.sh) so users can quickly spin up a Kubernetes [minikube](../scripts/minikube.sh) so users can quickly spin up a Kubernetes
cluster. cluster.
the following parameters are available to configure kubernetes cluster the following parameters are available to configure kubernetes cluster
| flag | description | | flag | description |
| ----------------- | ------------------------------------------------------------- | | ----------------- | ------------------------------------------------------------- |
@ -45,7 +45,8 @@ the following parameters are available to configure kubernetes cluster
| cephcsi | Copy built docker images to kubernetes cluster | | cephcsi | Copy built docker images to kubernetes cluster |
| k8s-sidecar | Copy kubernetes sidecar docker images to kubernetes cluster | | k8s-sidecar | Copy kubernetes sidecar docker images to kubernetes cluster |
following environment variables can be exported to customize kubernetes deployment following environment variables can be exported to customize kubernetes
deployment
| ENV | Description | Default | | ENV | Description | Default |
|----------------------|--------------------------------------------------|--------------------------------------------------------------------| |----------------------|--------------------------------------------------|--------------------------------------------------------------------|
@ -58,9 +59,9 @@ following environment variables can be exported to customize kubernetes deployme
| K8S_FEATURE_GATES | Feature gates to enable on kubernetes cluster | BlockVolume=true,CSIBlockVolume=true,VolumeSnapshotDataSource=true | | K8S_FEATURE_GATES | Feature gates to enable on kubernetes cluster | BlockVolume=true,CSIBlockVolume=true,VolumeSnapshotDataSource=true |
| ROOK_BLOCK_POOL_NAME | Block pool name to create in the rook instance | newrbdpool | | ROOK_BLOCK_POOL_NAME | Block pool name to create in the rook instance | newrbdpool |
- creating kubernetes cluster - creating kubernetes cluster
From the ceph-csi root directory, run: From the ceph-csi root directory, run:
```console ```console
./scripts/minikube.sh up ./scripts/minikube.sh up
@ -74,9 +75,11 @@ following environment variables can be exported to customize kubernetes deployme
## Deploy Rook ## Deploy Rook
The cephcsi E2E tests expects that you already have rook running in your cluster. The cephcsi E2E tests expects that you already have rook running in your
cluster.
Thanks to [minikube](../scripts/minikube.sh) script for the handy `deploy-rook` option. Thanks to [minikube](../scripts/minikube.sh) script for the handy `deploy-rook`
option.
```console ```console
./scripts/minikube.sh deploy-rook ./scripts/minikube.sh deploy-rook
@ -84,8 +87,8 @@ Thanks to [minikube](../scripts/minikube.sh) script for the handy `deploy-rook`
## Test parameters ## Test parameters
In addition to standard go tests parameters, the following custom parameters In addition to standard go tests parameters, the following custom parameters are
are available while running tests: available while running tests:
| flag | description | | flag | description |
| ----------------- | ------------------------------------------------------------------------------------------------- | | ----------------- | ------------------------------------------------------------------------------------------------- |
@ -108,8 +111,8 @@ are available while running tests:
## E2E for snapshot ## E2E for snapshot
After the support for snapshot/clone has been added to ceph-csi, After the support for snapshot/clone has been added to ceph-csi, you need to
you need to follow these steps before running e2e. follow these steps before running e2e.
- Install snapshot controller and snapshot CRD - Install snapshot controller and snapshot CRD
@ -117,7 +120,7 @@ you need to follow these steps before running e2e.
./scripts/install-snapshot.sh install ./scripts/install-snapshot.sh install
``` ```
Once you are done running e2e please perform the cleanup by running following: Once you are done running e2e please perform the cleanup by running following:
```console ```console
./scripts/install-snapshot.sh cleanup ./scripts/install-snapshot.sh cleanup
@ -126,9 +129,9 @@ you need to follow these steps before running e2e.
## Running E2E ## Running E2E
` `
Note:- Prior to running the tests, you may need to copy the kubernetes configuration Note:- Prior to running the tests, you may need to copy the kubernetes
file to `$HOME/.kube/config` which is required to communicate with kubernetes configuration file to `$HOME/.kube/config` which is required to communicate with
cluster or you can pass `kubeconfig`flag while running tests. kubernetes cluster or you can pass `kubeconfig` flag while running tests.
` `
Functional tests are run by the `go test` command. Functional tests are run by the `go test` command.