Skip to content

Commit

Permalink
fix conguration - ix
Browse files Browse the repository at this point in the history
  • Loading branch information
macielti committed Nov 2, 2024
1 parent 3d8a841 commit 61603a9
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/common_clj/component/postgresql.clj
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
"/" (.getDatabaseName postgresql-container))
:initial-pool-size 3
:max-pool-size 14})
schema-sql (slurp "resources/schema.sql")]
schema-sql (slurp "test/resources/schema.sql")]

(jdbc/execute! db-connection [schema-sql])

Expand Down
2 changes: 1 addition & 1 deletion test/integration/integration/rate_limiter_component.clj
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@

(def ^:private system-test
(component/system-map
:config (component.config/new-config "resources/config_test.json" :test :json)
:config (component.config/new-config "test/resources/config_test.json" :test :json)
:routes (component/using (component.routes/new-routes routes-example) [:config])
:rate-limiter (component.rate-limiter/new-rate-limiter rate-limiters-definition)
:service (component/using (component.service/new-service) [:config :routes :rate-limiter])))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

(def ^:private system-test-with-recaptcha-v3-validation-disabled
(component/system-map
:config (component.config/new-config "resources/config_test.json" :test :json)
:config (component.config/new-config "test/resources/config_test.json" :test :json)
:routes (component/using (component.routes/new-routes routes-example) [:config])
:service (component/using (component.service/new-service) [:config :routes])))

Expand All @@ -36,7 +36,7 @@

(def ^:private system-test-with-recaptcha-v3-validation-enabled
(component/system-map
:config (component.config/new-config "resources/config.test.recaptcha_validation_enabled.edn" :test :edn)
:config (component.config/new-config "test/resources/config.test.recaptcha_validation_enabled.edn" :test :edn)
:routes (component/using (component.routes/new-routes routes-example) [:config])
:service (component/using (component.service/new-service) [:config :routes])))

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@

(def ^:private system-test
(component/system-map
:config (component.config/new-config "resources/config_test.json" :test :json)
:config (component.config/new-config "test/resources/config_test.json" :test :json)
:routes (component/using (component.routes/new-routes routes-example) [:config])
:datomic (component/using (component.datomic/new-datomic schemas) [:config])
:service (component/using (component.service/new-service) [:config :datomic :routes])))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

(def ^:private system-test
(component/system-map
:config (component.config/new-config "resources/config_test.json" :test :json)
:config (component.config/new-config "test/resources/config_test.json" :test :json)
:routes (component/using (component.routes/new-routes routes-example) [:config])
:service (component/using (component.service/new-service) [:config :routes])))

Expand Down
2 changes: 1 addition & 1 deletion test/integration/integration/service_component_test.clj
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

(def ^:private system-test
(component/system-map
:config (component.config/new-config "resources/config_test.json" :test :json)
:config (component.config/new-config "test/resources/config_test.json" :test :json)
:routes (component/using (component.routes/new-routes routes-example) [:config])
:service (component/using (component.service/new-service)
[:config :routes])))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

(def system-test
(component/system-map
:config (component.config/new-config "resources/config_test.json" :test :json)
:config (component.config/new-config "test/resources/config_test.json" :test :json)
:telegram-consumer (component/using (component.telegram.consumer/new-mock-telegram-consumer consumers) [:config])))

(s/deftest telegram-consumer-component-test
Expand Down

0 comments on commit 61603a9

Please sign in to comment.