You've already forked helm-gitea
The following pull request removes the `gitea` directory. With regard to maintaining act_runners in a separate git repository or helm chart, this additional directory becomes redundant. Reviewed-on: https://gitea.com/gitea/helm-gitea/pulls/958 Reviewed-by: DaanSelen <daanselen@noreply.gitea.com> Co-authored-by: Markus Pesch <markus.pesch@cryptic.systems> Co-committed-by: Markus Pesch <markus.pesch@cryptic.systems>
67 lines
1.9 KiB
YAML
67 lines
1.9 KiB
YAML
suite: config template | session config
|
|
release:
|
|
name: gitea-unittests
|
|
namespace: testing
|
|
tests:
|
|
- it: "session is configured correctly for valkey-cluster"
|
|
template: templates/config.yaml
|
|
set:
|
|
valkey-cluster:
|
|
enabled: true
|
|
valkey:
|
|
enabled: false
|
|
asserts:
|
|
- documentIndex: 0
|
|
equal:
|
|
path: stringData.session
|
|
value: |-
|
|
PROVIDER=redis
|
|
PROVIDER_CONFIG=redis+cluster://:@gitea-unittests-valkey-cluster-headless.testing.svc.cluster.local:6379/0?pool_size=100&idle_timeout=180s&
|
|
|
|
- it: "session is configured correctly for valkey"
|
|
template: templates/config.yaml
|
|
set:
|
|
valkey-cluster:
|
|
enabled: false
|
|
valkey:
|
|
enabled: true
|
|
asserts:
|
|
- documentIndex: 0
|
|
equal:
|
|
path: stringData.session
|
|
value: |-
|
|
PROVIDER=redis
|
|
PROVIDER_CONFIG=redis://:changeme@gitea-unittests-valkey-headless.testing.svc.cluster.local:6379/0?pool_size=100&idle_timeout=180s&
|
|
|
|
- it: "session is configured correctly for 'memory' when valkey (and valkey-cluster) is disabled"
|
|
template: templates/config.yaml
|
|
set:
|
|
valkey-cluster:
|
|
enabled: false
|
|
valkey:
|
|
enabled: false
|
|
asserts:
|
|
- documentIndex: 0
|
|
equal:
|
|
path: stringData.session
|
|
value: |-
|
|
PROVIDER=memory
|
|
PROVIDER_CONFIG=
|
|
|
|
- it: "session can be customized when valkey (and valkey-cluster) is disabled"
|
|
template: templates/config.yaml
|
|
set:
|
|
valkey-cluster:
|
|
enabled: false
|
|
valkey:
|
|
enabled: false
|
|
gitea.config.session.PROVIDER: custom-provider
|
|
gitea.config.session.PROVIDER_CONFIG: custom-provider-config
|
|
asserts:
|
|
- documentIndex: 0
|
|
equal:
|
|
path: stringData.session
|
|
value: |-
|
|
PROVIDER=custom-provider
|
|
PROVIDER_CONFIG=custom-provider-config
|