You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -13,7 +13,7 @@ See the [documentation][docs] for installation and usage of the operator.
13
13
14
14
## E2E testing
15
15
16
-
E2E tests are written using [KUTTL](https://kuttl.dev/docs/#install-kuttl-cli). Please Install [KUTTL](https://kuttl.dev/docs/#install-kuttl-cli) to run the tests.
16
+
E2E tests are written using [chainsaw](https://kyverno.github.io/chainsaw). Please Install [chainsaw](https://kyverno.github.io/chainsaw/latest/install/) to run the tests.
17
17
18
18
Note that the e2e tests for Redis HA mode require a cluster with at least three worker nodes. A local three-worker node
19
19
cluster can be created using [k3d](https://k3d.io/)
E2E tests are written using [KUTTL](https://kuttl.dev/docs/#install-kuttl-cli).
3
+
E2E tests are written using [chainsaw](https://kyverno.github.io/chainsaw/latest/install/).
4
4
5
5
## Requirements
6
6
7
7
This test suite assumes that an Argo CD Operator is installed on the cluster or running locally using `ARGOCD_CLUSTER_CONFIG_NAMESPACES=argocd-e2e-cluster-config make install run`.
8
8
9
9
The system executing the tests must have following tools installed:
10
10
11
-
*`kuttl` kubectl plugin (>= v0.11.1)
11
+
*`chainsaw`
12
12
*`oc` and `kubectl` client
13
13
*`jq` for parsing JSON data
14
14
*`curl`
@@ -47,28 +47,28 @@ make e2e
47
47
make all
48
48
```
49
49
50
-
### Running manual with kuttl
50
+
### Running manual with chainsaw
51
51
52
52
```sh
53
-
kubectl kuttl test ./tests/k8s --config ./tests/kuttl-tests.yaml
53
+
chainsaw test ./tests/k8s
54
54
```
55
55
56
56
### Running single tests
57
57
58
58
Sometimes (e.g. when initially writing a test or troubleshooting an existing
59
59
one), you may want to run single test cases isolated. To do so, you can pass
60
-
the name of the test using `--test`to `kuttl`, i.e.
60
+
the test folder to chainsaw, i.e.
61
61
62
62
```sh
63
-
kubectl kuttl test ./tests/k8s --config ./tests/kuttl-tests.yaml --test 1-004_validate_namespace_scoped_install
63
+
chainsaw test ./tests/k8s/1-004_validate_namespace_scoped_install
64
64
```
65
65
66
66
The name of the test is the name of the directory containing its steps and
67
67
assertions.
68
68
69
-
If you are troubleshooting, you may want to prevent `kuttl` from deleting the
70
-
test's namespace afterwards. In order to do so, just pass the additional flag
71
-
`--skip-delete` to above command.
69
+
If you are troubleshooting, you may want to prevent `chainsaw` from deleting the
70
+
test's namespace afterward. To do so, just pass the additional flag
71
+
`--skip-delete` to the above command.
72
72
73
73
## Writing new tests
74
74
@@ -84,22 +84,8 @@ The `<test ID>` is the serial number of the test as defined in the Test Plan
84
84
document. The `<short description>` is exactly that, a short description of
85
85
what happens in the test.
86
86
87
-
### Name of the test steps
88
-
89
-
Each test step is a unique YAML file within the test's directory. The name of
90
-
the step is defined by its file name.
91
-
92
-
The test steps must be named `XX-<name>.yaml`. This is a `kuttl` convention
93
-
and cannot be overriden. `XX` is a number (prefixed with `0`, so step `1` must
94
-
be `01`), and `<name>` is a free form value for the test step.
95
-
96
-
There are two reserved words you cannot use for `<name>`:
97
-
98
-
*`assert` contains positive assertions (i.e. resources that must exist) and
99
-
*`errors` contains negative assertions (i.e. resources that must not exist)
0 commit comments