Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions crowdsec-docs/docs/configuration/feature_flags.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ In the following example, we deprecated `cscli_setup` and retired `papi`, then w
and the error.

```console
$ CROWDSEC_FEATURE_PAPI_CLIENT=true CROWDSEC_FEATURE_CSCLI_SETUP=true ./tests/local/bin/cscli version
$ CROWDSEC_FEATURE_PAPI_CLIENT=true CROWDSEC_FEATURE_CSCLI_SETUP=true ./test/local/bin/cscli version
ERRO[02-03-2023 15:55:45] Ignored envvar 'CROWDSEC_FEATURE_PAPI_CLIENT': the flag is retired.
WARN[02-03-2023 15:55:45] Envvar 'CROWDSEC_FEATURE_CSCLI_SETUP': the flag is deprecated.
2023/03/02 15:55:45 version: v1.5.0-rc1-13-ge729bf5d-e729bf5d6103894da28818ab4626bab918fbd09d
Expand All @@ -76,7 +76,7 @@ WARN[02-03-2023 15:55:45] Envvar 'CROWDSEC_FEATURE_CSCLI_SETUP': the flag is dep
Retired flags don't appear in `cscli config feature-flags` unless you use the `--retired` option:

```console
$ CROWDSEC_FEATURE_PAPI_CLIENT=true CROWDSEC_FEATURE_CSCLI_SETUP=true ./tests/local/bin/cscli config feature-flags --retired
$ CROWDSEC_FEATURE_PAPI_CLIENT=true CROWDSEC_FEATURE_CSCLI_SETUP=true ./test/local/bin/cscli config feature-flags --retired
ERRO[02-03-2023 15:58:38] Ignored envvar 'CROWDSEC_FEATURE_PAPI_CLIENT': the flag is retired.
WARN[02-03-2023 15:58:38] Envvar 'CROWDSEC_FEATURE_CSCLI_SETUP': the flag is deprecated.
--- Enabled features ---
Expand All @@ -91,7 +91,7 @@ WARN[02-03-2023 15:58:38] Envvar 'CROWDSEC_FEATURE_CSCLI_SETUP': the flag is dep

To enable a feature you can:
- set the environment variable CROWDSEC_FEATURE_<uppercase_feature_name> to true
- add the line '- <feature_name>' to the file /home/marco/src/crowdsec/tests/local/etc/crowdsec/feature.yaml
- add the line '- <feature_name>' to the file /home/marco/src/crowdsec/test/local/etc/crowdsec/feature.yaml

--- Retired features ---

Expand Down
2 changes: 1 addition & 1 deletion crowdsec-docs/docs/contributing/code.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ If you have installed docker-compose and have access to Docker via `/var/run/doc

### Bats tests

These are documented in [tests/README.md](https://github.com/crowdsecurity/crowdsec/blob/master/tests/README.md).
These are documented in [test/README.md](https://github.com/crowdsecurity/crowdsec/blob/master/test/README.md).
They are easier to write than the Go tests, but can only test
each binary's external behavior. Run with `make bats-all`.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ In the following example, we deprecated `cscli_setup` and retired `papi`, then w
and the error.

```console
$ CROWDSEC_FEATURE_PAPI_CLIENT=true CROWDSEC_FEATURE_CSCLI_SETUP=true ./tests/local/bin/cscli version
$ CROWDSEC_FEATURE_PAPI_CLIENT=true CROWDSEC_FEATURE_CSCLI_SETUP=true ./test/local/bin/cscli version
ERRO[02-03-2023 15:55:45] Ignored envvar 'CROWDSEC_FEATURE_PAPI_CLIENT': the flag is retired.
WARN[02-03-2023 15:55:45] Envvar 'CROWDSEC_FEATURE_CSCLI_SETUP': the flag is deprecated.
2023/03/02 15:55:45 version: v1.5.0-rc1-13-ge729bf5d-e729bf5d6103894da28818ab4626bab918fbd09d
Expand All @@ -76,7 +76,7 @@ WARN[02-03-2023 15:55:45] Envvar 'CROWDSEC_FEATURE_CSCLI_SETUP': the flag is dep
Retired flags don't appear in `cscli config feature-flags` unless you use the `--retired` option:

```console
$ CROWDSEC_FEATURE_PAPI_CLIENT=true CROWDSEC_FEATURE_CSCLI_SETUP=true ./tests/local/bin/cscli config feature-flags --retired
$ CROWDSEC_FEATURE_PAPI_CLIENT=true CROWDSEC_FEATURE_CSCLI_SETUP=true ./test/local/bin/cscli config feature-flags --retired
ERRO[02-03-2023 15:58:38] Ignored envvar 'CROWDSEC_FEATURE_PAPI_CLIENT': the flag is retired.
WARN[02-03-2023 15:58:38] Envvar 'CROWDSEC_FEATURE_CSCLI_SETUP': the flag is deprecated.
--- Enabled features ---
Expand All @@ -91,7 +91,7 @@ WARN[02-03-2023 15:58:38] Envvar 'CROWDSEC_FEATURE_CSCLI_SETUP': the flag is dep

To enable a feature you can:
- set the environment variable CROWDSEC_FEATURE_<uppercase_feature_name> to true
- add the line '- <feature_name>' to the file /home/marco/src/crowdsec/tests/local/etc/crowdsec/feature.yaml
- add the line '- <feature_name>' to the file /home/marco/src/crowdsec/test/local/etc/crowdsec/feature.yaml

--- Retired features ---

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ If you have installed docker-compose and have access to Docker via `/var/run/doc

### Bats tests

These are documented in [tests/README.md](https://github.com/crowdsecurity/crowdsec/blob/master/tests/README.md).
These are documented in [test/README.md](https://github.com/crowdsecurity/crowdsec/blob/master/test/README.md).
They are easier to write than the Go tests, but can only test
each binary's external behavior. Run with `make bats-all`.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ In the following example, we deprecated `cscli_setup` and retired `papi`, then w
and the error.

```console
$ CROWDSEC_FEATURE_PAPI_CLIENT=true CROWDSEC_FEATURE_CSCLI_SETUP=true ./tests/local/bin/cscli version
$ CROWDSEC_FEATURE_PAPI_CLIENT=true CROWDSEC_FEATURE_CSCLI_SETUP=true ./test/local/bin/cscli version
ERRO[02-03-2023 15:55:45] Ignored envvar 'CROWDSEC_FEATURE_PAPI_CLIENT': the flag is retired.
WARN[02-03-2023 15:55:45] Envvar 'CROWDSEC_FEATURE_CSCLI_SETUP': the flag is deprecated.
2023/03/02 15:55:45 version: v1.5.0-rc1-13-ge729bf5d-e729bf5d6103894da28818ab4626bab918fbd09d
Expand All @@ -76,7 +76,7 @@ WARN[02-03-2023 15:55:45] Envvar 'CROWDSEC_FEATURE_CSCLI_SETUP': the flag is dep
Retired flags don't appear in `cscli config feature-flags` unless you use the `--retired` option:

```console
$ CROWDSEC_FEATURE_PAPI_CLIENT=true CROWDSEC_FEATURE_CSCLI_SETUP=true ./tests/local/bin/cscli config feature-flags --retired
$ CROWDSEC_FEATURE_PAPI_CLIENT=true CROWDSEC_FEATURE_CSCLI_SETUP=true ./test/local/bin/cscli config feature-flags --retired
ERRO[02-03-2023 15:58:38] Ignored envvar 'CROWDSEC_FEATURE_PAPI_CLIENT': the flag is retired.
WARN[02-03-2023 15:58:38] Envvar 'CROWDSEC_FEATURE_CSCLI_SETUP': the flag is deprecated.
--- Enabled features ---
Expand All @@ -91,7 +91,7 @@ WARN[02-03-2023 15:58:38] Envvar 'CROWDSEC_FEATURE_CSCLI_SETUP': the flag is dep

To enable a feature you can:
- set the environment variable CROWDSEC_FEATURE_<uppercase_feature_name> to true
- add the line '- <feature_name>' to the file /home/marco/src/crowdsec/tests/local/etc/crowdsec/feature.yaml
- add the line '- <feature_name>' to the file /home/marco/src/crowdsec/test/local/etc/crowdsec/feature.yaml

--- Retired features ---

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ If you have installed docker-compose and have access to Docker via `/var/run/doc

### Bats tests

These are documented in [tests/README.md](https://github.com/crowdsecurity/crowdsec/blob/master/tests/README.md).
These are documented in [test/README.md](https://github.com/crowdsecurity/crowdsec/blob/master/test/README.md).
They are easier to write than the Go tests, but can only test
each binary's external behavior. Run with `make bats-all`.

Expand Down