From 4e88dc03840171651760de868d500495a0abb531 Mon Sep 17 00:00:00 2001 From: erik Date: Fri, 25 Aug 2023 13:23:26 +0200 Subject: [PATCH] Correct test vals --- src/test/cljc/dda/c4k_taiga/taiga_test.cljc | 32 ++++++++++----------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/src/test/cljc/dda/c4k_taiga/taiga_test.cljc b/src/test/cljc/dda/c4k_taiga/taiga_test.cljc index dcb2fb5..a49e9f3 100644 --- a/src/test/cljc/dda/c4k_taiga/taiga_test.cljc +++ b/src/test/cljc/dda/c4k_taiga/taiga_test.cljc @@ -44,46 +44,46 @@ :spec {:storageClassName "local-path", :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"))))) (deftest should-generate-pvc-taiga-static-data (is (= {:apiVersion "v1", :kind "PersistentVolumeClaim", :metadata - {:name "taiga-media-data", + {:name "taiga-static-data", :namespace "default", :labels {:app "taiga", :app.kubernetes.part-of "taiga"}}, :spec {:storageClassName "local-path", :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"))))) (deftest should-generate-rabbitmq-pvc-async (is (= {:apiVersion "v1", :kind "PersistentVolumeClaim", :metadata - {:name "taiga-media-data", + {:name "taiga-async-rabbitmq-data", :namespace "default", :labels {:app "taiga", :app.kubernetes.part-of "taiga"}}, :spec {:storageClassName "local-path", :accessModes ["ReadWriteOnce"], - :resources {:requests {:storage "5"}}}} + :resources {:requests {:storage "4Gi"}}}} (cut/generate-rabbitmq-pvc-async(yaml/load-as-edn "taiga-test/valid-config.yaml"))))) (deftest should-generate-rabbitmq-pvc-events (is (= {:apiVersion "v1", :kind "PersistentVolumeClaim", :metadata - {:name "taiga-media-data", + {:name "taiga-events-rabbitmq-data", :namespace "default", :labels {:app "taiga", :app.kubernetes.part-of "taiga"}}, :spec {:storageClassName "local-path", :accessModes ["ReadWriteOnce"], - :resources {:requests {:storage "5"}}}} + :resources {:requests {:storage "5Gi"}}}} (cut/generate-rabbitmq-pvc-events (yaml/load-as-edn "taiga-test/valid-config.yaml"))))) (deftest should-generate-secret @@ -92,13 +92,13 @@ :metadata {:name "taiga-secret", :labels {:app.kubernetes.part-of "taiga"}}, :data - {:TAIGA_SECRET_KEY "some-key", - :EMAIL_HOST_USER "mailer-user", - :EMAIL_HOST_PASSWORD "mailer-pw", - :RABBITMQ_USER "rabbit-user", - :RABBITMQ_PASS "rabbit-pw", - :RABBITMQ_ERLANG_COOKIE "rabbit-erlang", - :DJANGO_SUPERUSER_USERNAME "taiga-admin", - :DJANGO_SUPERUSER_PASSWORD "super-password", - :DJANGO_SUPERUSER_EMAIL "some@example.com"}} + {:TAIGA_SECRET_KEY "c29tZS1rZXk=", + :EMAIL_HOST_USER "bWFpbGVyLXVzZXI=", + :EMAIL_HOST_PASSWORD "bWFpbGVyLXB3", + :RABBITMQ_USER "cmFiYml0LXVzZXI=", + :RABBITMQ_PASS "cmFiYml0LXB3", + :RABBITMQ_ERLANG_COOKIE "cmFiYml0LWVybGFuZw==", + :DJANGO_SUPERUSER_USERNAME "dGFpZ2EtYWRtaW4=", + :DJANGO_SUPERUSER_PASSWORD "c3VwZXItcGFzc3dvcmQ=", + :DJANGO_SUPERUSER_EMAIL "c29tZUBleGFtcGxlLmNvbQ=="}} (cut/generate-secret (yaml/load-as-edn "taiga-test/valid-auth.yaml"))))) \ No newline at end of file