Add specs for rate limit options

This commit is contained in:
erik 2024-01-17 11:37:31 +01:00
parent a63f170ace
commit 52e43fe23c

View file

@ -42,6 +42,8 @@
(s/def ::mailer-pw pred/bash-env-string?) (s/def ::mailer-pw pred/bash-env-string?)
(s/def ::issuer pred/letsencrypt-issuer?) (s/def ::issuer pred/letsencrypt-issuer?)
(s/def ::volume-total-storage-size (partial pred/int-gt-n? 5)) (s/def ::volume-total-storage-size (partial pred/int-gt-n? 5))
(s/def ::average int?)
(s/def ::burst int?)
(def config? (s/keys :req-un [::fqdn (def config? (s/keys :req-un [::fqdn
::mailer-from ::mailer-from
@ -51,7 +53,9 @@
:opt-un [::issuer :opt-un [::issuer
::deploy-federated ::deploy-federated
::default-app-name ::default-app-name
::service-domain-whitelist])) ::service-domain-whitelist
::average
::burst]))
(def auth? (s/keys :req-un [::postgres/postgres-db-user ::postgres/postgres-db-password ::mailer-user ::mailer-pw])) (def auth? (s/keys :req-un [::postgres/postgres-db-user ::postgres/postgres-db-password ::mailer-user ::mailer-pw]))