From 2966c2f0bfa6246de8c43f50234bb79deb5a09d0 Mon Sep 17 00:00:00 2001 From: jem Date: Wed, 29 Sep 2021 18:58:48 +0200 Subject: [PATCH] fix the tests --- src/test/cljc/dda/c4k_jira/backup_test.cljc | 23 +-------------------- src/test/cljc/dda/c4k_jira/core_test.cljc | 6 +++--- 2 files changed, 4 insertions(+), 25 deletions(-) diff --git a/src/test/cljc/dda/c4k_jira/backup_test.cljc b/src/test/cljc/dda/c4k_jira/backup_test.cljc index bdb25eb..c9f5fce 100644 --- a/src/test/cljc/dda/c4k_jira/backup_test.cljc +++ b/src/test/cljc/dda/c4k_jira/backup_test.cljc @@ -42,28 +42,7 @@ :imagePullPolicy "IfNotPresent" :command ["/entrypoint.sh"] :env - [{:name "POSTGRES_USER" - :valueFrom - {:secretKeyRef - {:name "postgres-secret" - :key "postgres-user"}}} - {:name "POSTGRES_PASSWORD" - :valueFrom - {:secretKeyRef - {:name "postgres-secret" - :key "postgres-password"}}} - {:name "POSTGRES_DB" - :valueFrom - {:configMapKeyRef - {:name "postgres-config" - :key "postgres-db"}}} - {:name "POSTGRES_HOST" - :value "postgresql-service:5432"} - {:name "POSTGRES_SERVICE" - :value "postgresql-service"} - {:name "POSTGRES_PORT" - :value "5432"} - {:name "AWS_DEFAULT_REGION" + [{:name "AWS_DEFAULT_REGION" :value "eu-central-1"} {:name "AWS_ACCESS_KEY_ID_FILE" :value "/var/run/secrets/backup-secrets/aws-access-key-id"} diff --git a/src/test/cljc/dda/c4k_jira/core_test.cljc b/src/test/cljc/dda/c4k_jira/core_test.cljc index 07602e7..ae55bb5 100644 --- a/src/test/cljc/dda/c4k_jira/core_test.cljc +++ b/src/test/cljc/dda/c4k_jira/core_test.cljc @@ -5,7 +5,7 @@ [dda.c4k-jira.core :as cut])) (deftest should-k8s-objects - (is (= 16 + (is (= 15 (count (cut/k8s-objects {:fqdn "jira-neu.prod.meissa-gmbh.de" :postgres-db-user "jira" :postgres-db-password "jira-db-password" @@ -16,7 +16,7 @@ :aws-secret-access-key "aws-secret" :restic-password "restic-pw" :restic-repository "restic-repository"})))) - (is (= 14 + (is (= 13 (count (cut/k8s-objects {:fqdn "jira-neu.prod.meissa-gmbh.de" :postgres-db-user "jira" :postgres-db-password "jira-db-password" @@ -25,7 +25,7 @@ :aws-secret-access-key "aws-secret" :restic-password "restic-pw" :restic-repository "restic-repository"})))) - (is (= 11 + (is (= 10 (count (cut/k8s-objects {:fqdn "jira-neu.prod.meissa-gmbh.de" :postgres-db-user "jira" :postgres-db-password "jira-db-password"