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
Refs: #2181
Rename cnf_setup, cnf_cleanup and cluster_api_setup, cluster_api_cleanup tasks to
cnf_install, cnf_uninstall and cluster_api_install, cluster_api_uninstall.
Change documentation, specs and code accordingly.
Signed-off-by: Konstantin Yarovoy <konstantin.yarovoy@tietoevry.com>
Copy file name to clipboardexpand all lines: CNF_TESTSUITE_YML_USAGE.md
+2-2
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
# Test Suite Configuration Usage: cnf-testsuite.yml
2
2
### What is the cnf-testsuite.yml and why is it required?:
3
3
4
-
The cnf-testsuite.yml is used by `cnf_setup` in order to install the CNF to be tested onto an existing K8s cluster.
4
+
The cnf-testsuite.yml is used by `cnf_install` in order to install the CNF to be tested onto an existing K8s cluster.
5
5
6
6
7
7
The information in the cnf-testsuite.yml is also used for additional configuration of some tests e.g. `white_list_container_names` is used for exculding containers from the [privileged_containers](https://github.com/cnti-testcatalog/testsuite/blob/main/src/tasks/workload/security.cr#L138) container test.
@@ -122,7 +122,7 @@ Described below: [link](#5G-parameters)
122
122
123
123
Deployments are defined as three arrays, each for different installation method. Each array element represents one deployment, and they are meant to represent a single CNF together.
124
124
At least one deployment should exist in CNF config for it to be a proper config.
125
-
All info for deployments is used in cnf_setup and cnf_cleanup tasks.
125
+
All info for deployments is used in cnf_install and cnf_uninstall tasks.
- There are other examples in the [examples-cnfs](https://github.com/cnti-testcatalog/testsuite/tree/master/example-cnfs) directory that can be used for testing as well.
@@ -200,14 +200,14 @@ If you've brought your own CNF to test, review the [CNF_TESTSUITE_YML_USAGE.md](
200
200
If you've followed the [CNF_TESTSUITE_YML_USAGE.md](CNF_TESTSUITE_YML_USAGE.md) guide and have your cnf-testsuite.yml ready, you can run the same command we ran for the example CNF to set it up:
Copy file name to clipboardexpand all lines: README.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -19,7 +19,7 @@ Prereqs: kubernetes cluster, wget, curl, helm 3.1.1 or greater on your system al
19
19
1. Install the latest test suite binary: `source <(curl -s https://raw.githubusercontent.com/cnti-testcatalog/testsuite/main/curl_install.sh)`
20
20
2. Run `setup` to prepare the cnf-testsuite: `cnf-testsuite setup`
21
21
3. Pull down an example CNF configuration to try: `curl -o cnf-testsuite.yml https://raw.githubusercontent.com/cnti-testcatalog/testsuite/main/example-cnfs/coredns/cnf-testsuite.yml`
22
-
4. Initialize the test suite for using the CNF: `cnf-testsuite cnf_setup cnf-config=./cnf-testsuite.yml`
22
+
4. Initialize the test suite for using the CNF: `cnf-testsuite cnf_install cnf-config=./cnf-testsuite.yml`
23
23
5. Run all of application/workload tests: `cnf-testsuite workload`
Copy file name to clipboardexpand all lines: SOURCE_INSTALL.md
+14-13
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@ This INSTALL guide will detail the minimum requirements needed for cnf-testsuite
8
8
9
9
-[**Pre-Requisites**](#Pre-Requisites)
10
10
-[**Installation**](#Installation)
11
-
-[**Setup**](#Setup)
11
+
-[**Preparation**](#Preparation)
12
12
-[**Configuration**](#Configuration)
13
13
-[**Running cnf-testsuite for the first time**](#Running-cnf-testsuite-for-the-first-time)
14
14
@@ -149,11 +149,11 @@ crystal spec
149
149
150
150
</p></details>
151
151
152
-
### Setup
152
+
### Preparation
153
153
154
-
Now that we have a `cnf-testsuite` binary, we can run `setup` to ensure it has all the pre-requisites needed in order to successfully run tests and setup required installed_cnf_files/ directory and other files required for cnf-testsuite.
154
+
Now that we have a `cnf-testsuite` binary, we can run `setup` to ensure it has all the pre-requisites needed in order to successfully run tests and prepare required installed_cnf_files/ directory and other files required for cnf-testsuite.
155
155
156
-
- Run the following to setup cnf-testsuite:
156
+
- Run the following to prepare cnf-testsuite:
157
157
```
158
158
./cnf-testsuite setup
159
159
```
@@ -165,7 +165,7 @@ Now that we have a `cnf-testsuite` binary, we can run `setup` to ensure it has a
165
165
166
166
### Configuration
167
167
168
-
Now that cnf-testsuite is installed and setup, we can now run CNF workloads and tests. We recommend installing and running a sample CNF to ensure cnf-testsuite is operational and set expectations of the output.
168
+
Now that cnf-testsuite is installed and prepared, we can now run CNF workloads and tests. We recommend installing and running a sample CNF to ensure cnf-testsuite is operational and set expectations of the output.
169
169
170
170
#### Configuring an example CNF
171
171
@@ -178,12 +178,12 @@ To use CoreDNS as an example CNF. Download the testsuite configuration to test C
178
178
- Prepare the test suite to use the CNF by running:
There are other examples in the [example cnfs](example-cnfs) folder if you would like to test others.
@@ -197,7 +197,7 @@ There are other examples in the [example cnfs](example-cnfs) folder if you would
197
197
198
198
#### Running Tests
199
199
200
-
If you want to run all tests for CoreDNS Example CNF, do the following (this is assuming your `cnf_setup` ran without errors in the [configuration](#Configuring-an-example-CNF) steps:)
200
+
If you want to run all tests for CoreDNS Example CNF, do the following (this is assuming your `cnf_install` ran without errors in the [configuration](#Configuring-an-example-CNF) steps:)
201
201
_For complete usage, see the [USAGE.md](USAGE.md) doc._
202
202
203
203
```
@@ -221,7 +221,7 @@ You can also run via `crystal` by replacing the `./cnf-testsuite` with `crystal
221
221
#### More Example Usage (also see the [complete usage documentation](https://github.com/cnti-testcatalog/testsuite/blob/main/USAGE.md))
222
222
223
223
```
224
-
# These assume you've already run the cnf_setup pointing at a cnf-testsuite.yml config above. You can always specify your config at the end of each command as well, eg:
224
+
# These assume you've already run the cnf_install pointing at a cnf-testsuite.yml config above. You can always specify your config at the end of each command as well, eg:
225
225
./cnf-testsuite all cnf-config=<path to your config yml>/cnf-testsuite.yml
226
226
227
227
# Runs all ga tests (generally available workload and platform tests)
@@ -253,17 +253,18 @@ A test log file, eg. `cnf-testsuite-results-20201216.txt`, will be created which
253
253
254
254
For more details on points, see our [POINTS.md](./POINTS.md) documentation.
255
255
256
-
#### Cleaning Up
256
+
#### Uninstallation
257
257
258
258
Run the following to uninstall the CNF:
259
259
260
260
```
261
-
./cnf-testsuite cnf_cleanup
261
+
./cnf-testsuite cnf_uninstall
262
262
```
263
263
264
-
You can also run `cleanall` and cnf-testsuite will attempt to cleanup everything.
264
+
You can also run `cleanup` and cnf-testsuite will attempt to cleanup everything.
265
+
266
+
_NOTE: CNF uninstallation does not handle manually deployed CNFs_
265
267
266
-
_NOTE: Cleanup does not handle manually deployed CNFs_
267
268
#### NOTE: If the OpenMetrics version changes, the protobuf file will need to be regenerated
0 commit comments