From b57c20ebb6e53670caf6fc38359b50e1e9286b28 Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Mon, 24 Aug 2020 12:51:05 +0200 Subject: [PATCH] :bug: Minor fixes on testing config. Related to renaming. --- backend/src/app/config.clj | 8 ++++---- backend/tests/app/tests/helpers.clj | 6 +++--- backend/tests/app/tests/test_services_projects.clj | 4 ++-- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/backend/src/app/config.clj b/backend/src/app/config.clj index f5ac01929..eaa0a9218 100644 --- a/backend/src/app/config.clj +++ b/backend/src/app/config.clj @@ -22,9 +22,9 @@ (def defaults {:http-server-port 6060 :http-server-cors "http://localhost:3449" - :database-uri "postgresql://127.0.0.1/app" - :database-username "app" - :database-password "app" + :database-uri "postgresql://127.0.0.1/uxbox" + :database-username "uxbox" + :database-password "uxbox" :media-directory "resources/public/media" :assets-directory "resources/public/static" @@ -178,7 +178,7 @@ [env] (assoc (read-config env) :redis-uri "redis://redis/1" - :database-uri "postgresql://postgres/app_test" + :database-uri "postgresql://postgres/uxbox_test" :media-directory "/tmp/app/media" :assets-directory "/tmp/app/static" :migrations-verbose false)) diff --git a/backend/tests/app/tests/helpers.clj b/backend/tests/app/tests/helpers.clj index a19a4da6a..42e2f2297 100644 --- a/backend/tests/app/tests/helpers.clj +++ b/backend/tests/app/tests/helpers.clj @@ -29,9 +29,9 @@ [] (doto (PGSimpleDataSource.) (.setServerName "postgres") - (.setDatabaseName "app_test") - (.setUser "app") - (.setPassword "app"))) + (.setDatabaseName "uxbox_test") + (.setUser "uxbox") + (.setPassword "uxbox"))) (defn state-init [next] diff --git a/backend/tests/app/tests/test_services_projects.clj b/backend/tests/app/tests/test_services_projects.clj index 986f8ed85..443b2c123 100644 --- a/backend/tests/app/tests/test_services_projects.clj +++ b/backend/tests/app/tests/test_services_projects.clj @@ -31,7 +31,7 @@ (t/is (= (:name data) (:name result)))))) (t/testing "query a list of projects" - (let [data {::sq/type :projects-by-team + (let [data {::sq/type :projects :team-id (:id team) :profile-id (:id prof)} out (th/try-on! (sq/handle data))] @@ -67,7 +67,7 @@ (t/is (nil? (:result out))))) (t/testing "query a list of projects after delete" - (let [data {::sq/type :projects-by-team + (let [data {::sq/type :projects :team-id (:id team) :profile-id (:id prof)} out (th/try-on! (sq/handle data))]