diff --git a/backend/src/uxbox/config.clj b/backend/src/uxbox/config.clj index 2d8f13549..0d160fb62 100644 --- a/backend/src/uxbox/config.clj +++ b/backend/src/uxbox/config.clj @@ -111,6 +111,7 @@ (defn read-test-config [env] (assoc (read-config env) + :redis-uri "redis://redis/1" :database-uri "postgresql://postgres/uxbox_test" :media-directory "/tmp/uxbox/media" :assets-directory "/tmp/uxbox/static" diff --git a/backend/tests/uxbox/tests/helpers.clj b/backend/tests/uxbox/tests/helpers.clj index c980a12b3..4234aa0e9 100644 --- a/backend/tests/uxbox/tests/helpers.clj +++ b/backend/tests/uxbox/tests/helpers.clj @@ -38,10 +38,11 @@ [next] (let [config (cfg/read-test-config env)] (try - ;; (Class/forName "org.postgresql.Driver") (let [pool (testing-datasource)] (-> (mount/only #{#'uxbox.config/config #'uxbox.db/pool + #'uxbox.redis/client + #'uxbox.redis/conn #'uxbox.services.init/query-services #'uxbox.services.init/mutation-services #'uxbox.migrations/migrations diff --git a/backend/tests/uxbox/tests/test_services_pages.clj b/backend/tests/uxbox/tests/test_services_pages.clj index b61508da9..8643bccee 100644 --- a/backend/tests/uxbox/tests/test_services_pages.clj +++ b/backend/tests/uxbox/tests/test_services_pages.clj @@ -122,6 +122,7 @@ data {::sm/type :update-page :id page-id :revn 0 + :session-id uuid/zero :profile-id (:id prof) :changes [{:type :add-obj :frame-id uuid/zero @@ -145,6 +146,7 @@ (t/testing "conflict error" (let [data {::sm/type :update-page + :session-id uuid/zero :id page-id :revn 99 :profile-id (:id prof) @@ -177,6 +179,7 @@ data {::sm/type :update-page :id (:id page) :revn 0 + :session-id uuid/zero :profile-id (:id prof) :changes [{:type :add-obj :id sid