From e6866cd591994f604f7d5ebcd3ac9ac7c6af9791 Mon Sep 17 00:00:00 2001 From: erik Date: Fri, 15 Jul 2022 17:34:10 +0200 Subject: [PATCH] Fixed test: should-generate-secret --- src/test/cljc/dda/c4k_gitea/gitea_test.cljc | 22 ++------------------- 1 file changed, 2 insertions(+), 20 deletions(-) diff --git a/src/test/cljc/dda/c4k_gitea/gitea_test.cljc b/src/test/cljc/dda/c4k_gitea/gitea_test.cljc index 19b02b4..e330ace 100644 --- a/src/test/cljc/dda/c4k_gitea/gitea_test.cljc +++ b/src/test/cljc/dda/c4k_gitea/gitea_test.cljc @@ -39,9 +39,9 @@ (deftest should-generate-secret (is (= {:GITEA__database__USER-c1 "", - :GITEA__database__USER-c2 "pg-user", + :GITEA__database__USER-c2 (b64/encode "pg-user"), :GITEA__database__PASSWD-c1 "", - :GITEA__database__PASSWD-c2 "pg-pw", + :GITEA__database__PASSWD-c2 (b64/encode "pg-pw"), :GITEA__mailer__USER-c1 "", :GITEA__mailer__USER-c2 (b64/encode "maileruser"), :GITEA__mailer__PASSWD-c1 "", @@ -56,21 +56,3 @@ :mailer-pw "mailerpw"}))))) -(not - (= - {:GITEA__server__DOMAIN-c2 "test.com", - :GITEA__mailer__FROM-c1 "", - :GITEA__service__EMAIL_DOMAIN_WHITELIST-c2 "abc.com,def.com", - :GITEA__service__EMAIL_DOMAIN_WHITELIST-c1 "", - :GITEA__mailer__HOST-c1 ":", - :GITEA__mailer__FROM-c2 "test@test.com", - :GITEA__mailer__HOST-c2 "mail.test.com:123", - :GITEA__server__ROOT_URL-c2 "https://test.com", - :GITEA__server__ROOT_URL-c1 "https://", - :GITEA__server__DOMAIN-c1 ""} - {:GITEA__server__DOMAIN-c1 "", - :GITEA__server__DOMAIN-c2 "test.com", - :GITEA__server__ROOT_URL-c1 "https://", - :GITEA__server__ROOT_URL-c2 "https://test.com", - :GITEA__service__EMAIL_DOMAIN_WHITELIST-c1 "", - :GITEA__service__EMAIL_DOMAIN_WHITELIST-c2 "abc.com,def.com"})) \ No newline at end of file