2023-12-18 08:43:18 +00:00
|
|
|
suite: config template | queue config
|
|
|
|
release:
|
|
|
|
name: gitea-unittests
|
|
|
|
namespace: testing
|
|
|
|
tests:
|
|
|
|
- it: "queue is configured correctly for redis-cluster"
|
|
|
|
template: templates/gitea/config.yaml
|
|
|
|
set:
|
|
|
|
redis-cluster:
|
|
|
|
enabled: true
|
2024-07-07 09:57:16 +00:00
|
|
|
redis:
|
|
|
|
enabled: false
|
2023-12-18 08:43:18 +00:00
|
|
|
asserts:
|
|
|
|
- documentIndex: 0
|
|
|
|
equal:
|
|
|
|
path: stringData.queue
|
|
|
|
value: |-
|
|
|
|
CONN_STR=redis+cluster://:@gitea-unittests-redis-cluster-headless.testing.svc.cluster.local:6379/0?pool_size=100&idle_timeout=180s&
|
|
|
|
TYPE=redis
|
|
|
|
|
2024-07-07 09:57:16 +00:00
|
|
|
- it: "queue is configured correctly for redis"
|
2023-12-18 08:43:18 +00:00
|
|
|
template: templates/gitea/config.yaml
|
|
|
|
set:
|
|
|
|
redis-cluster:
|
|
|
|
enabled: false
|
2024-07-07 09:57:16 +00:00
|
|
|
redis:
|
|
|
|
enabled: true
|
|
|
|
asserts:
|
|
|
|
- documentIndex: 0
|
|
|
|
equal:
|
|
|
|
path: stringData.queue
|
|
|
|
value: |-
|
|
|
|
CONN_STR=redis://:changeme@gitea-unittests-redis-headless.testing.svc.cluster.local:6379/0?pool_size=100&idle_timeout=180s&
|
|
|
|
TYPE=redis
|
|
|
|
|
|
|
|
- it: "queue is configured correctly for 'levelDB' when redis (and redis-cluster) is disabled"
|
|
|
|
template: templates/gitea/config.yaml
|
|
|
|
set:
|
|
|
|
redis-cluster:
|
|
|
|
enabled: false
|
|
|
|
redis:
|
|
|
|
enabled: false
|
2023-12-18 08:43:18 +00:00
|
|
|
asserts:
|
|
|
|
- documentIndex: 0
|
|
|
|
equal:
|
|
|
|
path: stringData.queue
|
|
|
|
value: |-
|
|
|
|
CONN_STR=
|
|
|
|
TYPE=level
|
|
|
|
|
2024-07-07 09:57:16 +00:00
|
|
|
- it: "queue can be customized when redis (and redis-cluster) are disabled"
|
2023-12-18 08:43:18 +00:00
|
|
|
template: templates/gitea/config.yaml
|
|
|
|
set:
|
|
|
|
redis-cluster:
|
|
|
|
enabled: false
|
2024-07-07 09:57:16 +00:00
|
|
|
redis:
|
|
|
|
enabled: false
|
2023-12-18 08:43:18 +00:00
|
|
|
gitea.config.queue.TYPE: custom-type
|
|
|
|
gitea.config.queue.CONN_STR: custom-connection-string
|
|
|
|
asserts:
|
|
|
|
- documentIndex: 0
|
|
|
|
equal:
|
|
|
|
path: stringData.queue
|
|
|
|
value: |-
|
|
|
|
CONN_STR=custom-connection-string
|
|
|
|
TYPE=custom-type
|