oncall-engine/helm/oncall/tests/image_pull_secrets_test.yaml
Alexander Cherepanov ec028eb9d9
Telegram long polling (#2250)
# What this PR does

Runs Telegram long polling to get updates. 
It's enabled by setting `FEATURE_TELEGRAM_LONG_POLLING_ENABLED=True`.
That will disable webhook and run separate deployment for telegram long
polling.

Telegram long polling is not very HA mode, but it does not need to
expose webhook url to internet and simplifies telegram integration.

## Which issue(s) this PR fixes

closes #561 

## Checklist

- [x] Unit, integration, and e2e (if applicable) tests updated
- [x] Documentation added (or `pr:no public docs` PR label added if not
required)
- [x] `CHANGELOG.md` updated (or `pr:no changelog` PR label added if not
required)
2023-08-24 09:12:24 +02:00

27 lines
718 B
YAML

suite: test image pull secrets
templates:
- celery/deployment.yaml
- engine/deployment.yaml
- engine/job-migrate.yaml
- telegram-polling/deployment.yaml
release:
name: oncall
tests:
- it: imagePullSecrets=[] -> should not create spec.template.spec.imagePullSecrets
set:
imagePullSecrets: []
telegramPolling.enabled: true
asserts:
- notExists:
path: spec.template.spec.imagePullSecrets
- it: imagePullSecrets -> should use custom imagePullSecrets
set:
imagePullSecrets:
- name: regcred
telegramPolling.enabled: true
asserts:
- contains:
path: spec.template.spec.imagePullSecrets
content:
name: regcred