Correct test vals
This commit is contained in:
parent
6e9dda54b4
commit
4e88dc0384
1 changed files with 16 additions and 16 deletions
|
@ -44,46 +44,46 @@
|
||||||
:spec
|
:spec
|
||||||
{:storageClassName "local-path",
|
{:storageClassName "local-path",
|
||||||
:accessModes ["ReadWriteOnce"],
|
:accessModes ["ReadWriteOnce"],
|
||||||
:resources {:requests {:storage "5"}}}}
|
:resources {:requests {:storage "2Gi"}}}}
|
||||||
(cut/generate-pvc-taiga-media-data (yaml/load-as-edn "taiga-test/valid-config.yaml")))))
|
(cut/generate-pvc-taiga-media-data (yaml/load-as-edn "taiga-test/valid-config.yaml")))))
|
||||||
|
|
||||||
(deftest should-generate-pvc-taiga-static-data
|
(deftest should-generate-pvc-taiga-static-data
|
||||||
(is (= {:apiVersion "v1",
|
(is (= {:apiVersion "v1",
|
||||||
:kind "PersistentVolumeClaim",
|
:kind "PersistentVolumeClaim",
|
||||||
:metadata
|
:metadata
|
||||||
{:name "taiga-media-data",
|
{:name "taiga-static-data",
|
||||||
:namespace "default",
|
:namespace "default",
|
||||||
:labels {:app "taiga", :app.kubernetes.part-of "taiga"}},
|
:labels {:app "taiga", :app.kubernetes.part-of "taiga"}},
|
||||||
:spec
|
:spec
|
||||||
{:storageClassName "local-path",
|
{:storageClassName "local-path",
|
||||||
:accessModes ["ReadWriteOnce"],
|
:accessModes ["ReadWriteOnce"],
|
||||||
:resources {:requests {:storage "5"}}}}
|
:resources {:requests {:storage "3Gi"}}}}
|
||||||
(cut/generate-pvc-taiga-static-data (yaml/load-as-edn "taiga-test/valid-config.yaml")))))
|
(cut/generate-pvc-taiga-static-data (yaml/load-as-edn "taiga-test/valid-config.yaml")))))
|
||||||
|
|
||||||
(deftest should-generate-rabbitmq-pvc-async
|
(deftest should-generate-rabbitmq-pvc-async
|
||||||
(is (= {:apiVersion "v1",
|
(is (= {:apiVersion "v1",
|
||||||
:kind "PersistentVolumeClaim",
|
:kind "PersistentVolumeClaim",
|
||||||
:metadata
|
:metadata
|
||||||
{:name "taiga-media-data",
|
{:name "taiga-async-rabbitmq-data",
|
||||||
:namespace "default",
|
:namespace "default",
|
||||||
:labels {:app "taiga", :app.kubernetes.part-of "taiga"}},
|
:labels {:app "taiga", :app.kubernetes.part-of "taiga"}},
|
||||||
:spec
|
:spec
|
||||||
{:storageClassName "local-path",
|
{:storageClassName "local-path",
|
||||||
:accessModes ["ReadWriteOnce"],
|
:accessModes ["ReadWriteOnce"],
|
||||||
:resources {:requests {:storage "5"}}}}
|
:resources {:requests {:storage "4Gi"}}}}
|
||||||
(cut/generate-rabbitmq-pvc-async(yaml/load-as-edn "taiga-test/valid-config.yaml")))))
|
(cut/generate-rabbitmq-pvc-async(yaml/load-as-edn "taiga-test/valid-config.yaml")))))
|
||||||
|
|
||||||
(deftest should-generate-rabbitmq-pvc-events
|
(deftest should-generate-rabbitmq-pvc-events
|
||||||
(is (= {:apiVersion "v1",
|
(is (= {:apiVersion "v1",
|
||||||
:kind "PersistentVolumeClaim",
|
:kind "PersistentVolumeClaim",
|
||||||
:metadata
|
:metadata
|
||||||
{:name "taiga-media-data",
|
{:name "taiga-events-rabbitmq-data",
|
||||||
:namespace "default",
|
:namespace "default",
|
||||||
:labels {:app "taiga", :app.kubernetes.part-of "taiga"}},
|
:labels {:app "taiga", :app.kubernetes.part-of "taiga"}},
|
||||||
:spec
|
:spec
|
||||||
{:storageClassName "local-path",
|
{:storageClassName "local-path",
|
||||||
:accessModes ["ReadWriteOnce"],
|
:accessModes ["ReadWriteOnce"],
|
||||||
:resources {:requests {:storage "5"}}}}
|
:resources {:requests {:storage "5Gi"}}}}
|
||||||
(cut/generate-rabbitmq-pvc-events (yaml/load-as-edn "taiga-test/valid-config.yaml")))))
|
(cut/generate-rabbitmq-pvc-events (yaml/load-as-edn "taiga-test/valid-config.yaml")))))
|
||||||
|
|
||||||
(deftest should-generate-secret
|
(deftest should-generate-secret
|
||||||
|
@ -92,13 +92,13 @@
|
||||||
:metadata
|
:metadata
|
||||||
{:name "taiga-secret", :labels {:app.kubernetes.part-of "taiga"}},
|
{:name "taiga-secret", :labels {:app.kubernetes.part-of "taiga"}},
|
||||||
:data
|
:data
|
||||||
{:TAIGA_SECRET_KEY "some-key",
|
{:TAIGA_SECRET_KEY "c29tZS1rZXk=",
|
||||||
:EMAIL_HOST_USER "mailer-user",
|
:EMAIL_HOST_USER "bWFpbGVyLXVzZXI=",
|
||||||
:EMAIL_HOST_PASSWORD "mailer-pw",
|
:EMAIL_HOST_PASSWORD "bWFpbGVyLXB3",
|
||||||
:RABBITMQ_USER "rabbit-user",
|
:RABBITMQ_USER "cmFiYml0LXVzZXI=",
|
||||||
:RABBITMQ_PASS "rabbit-pw",
|
:RABBITMQ_PASS "cmFiYml0LXB3",
|
||||||
:RABBITMQ_ERLANG_COOKIE "rabbit-erlang",
|
:RABBITMQ_ERLANG_COOKIE "cmFiYml0LWVybGFuZw==",
|
||||||
:DJANGO_SUPERUSER_USERNAME "taiga-admin",
|
:DJANGO_SUPERUSER_USERNAME "dGFpZ2EtYWRtaW4=",
|
||||||
:DJANGO_SUPERUSER_PASSWORD "super-password",
|
:DJANGO_SUPERUSER_PASSWORD "c3VwZXItcGFzc3dvcmQ=",
|
||||||
:DJANGO_SUPERUSER_EMAIL "some@example.com"}}
|
:DJANGO_SUPERUSER_EMAIL "c29tZUBleGFtcGxlLmNvbQ=="}}
|
||||||
(cut/generate-secret (yaml/load-as-edn "taiga-test/valid-auth.yaml")))))
|
(cut/generate-secret (yaml/load-as-edn "taiga-test/valid-auth.yaml")))))
|
Loading…
Reference in a new issue