Skip to content

Commit

Permalink
Address review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
jbropho committed Mar 4, 2024
1 parent deaed50 commit 3291ffd
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion test/jackdaw/client_test.clj
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@

(deftest ^:integration consumer-test
(let [config {"group.id" "jackdaw-client-test-consumer-test"
"bootstrap.servers" "kafka:9092"
"bootstrap.servers" (str (utils/bootstrap-servers) ":9092")
"key.deserializer" "org.apache.kafka.common.serialization.StringDeserializer"
"value.deserializer" "org.apache.kafka.common.serialization.StringDeserializer"}
key-serde (:key-serde foo-topic)
Expand Down
3 changes: 2 additions & 1 deletion test/jackdaw/test/commands/write_test.clj
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
[jackdaw.test.transports :as trns]
[jackdaw.test.transports.kafka]
[jackdaw.test.serde :as serde]
[jackdaw.utils :as utils]
[clojure.test :refer [deftest is testing]])
(:import
[clojure.lang ExceptionInfo]))
Expand Down Expand Up @@ -40,7 +41,7 @@
:key-serde :long
:value-serde :json}))

(def kafka-config {"bootstrap.servers" "kafka:9092"
(def kafka-config {"bootstrap.servers" (str (utils/bootstrap-servers) ":9092")
"group.id" "kafka-write-test"})

(defn with-transport
Expand Down
4 changes: 2 additions & 2 deletions test/jackdaw/test/transports/rest_proxy_test.clj
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"group.id" "kafka-write-test"})

(def +real-rest-proxy-url+
"http://kafka-rest:8082")
(format "http://%s:8082" (utils/kafka-rest-proxy-host)))

(defn rest-proxy-config
[group-id]
Expand All @@ -31,7 +31,7 @@
(defn kstream-config
[app app-id]
{:topology app
:config {"bootstrap.servers" "kafka:9092"
:config {"bootstrap.servers" (str (utils/bootstrap-servers) ":9092")
"application.id" app-id}})

(defn echo-stream
Expand Down
3 changes: 1 addition & 2 deletions test/jackdaw/test_test.clj
Original file line number Diff line number Diff line change
Expand Up @@ -235,8 +235,7 @@
(try
(jd.test/with-test-machine (trns/transport {:type :mock
:driver (jd.test/mock-test-driver (echo-stream test-in test-out)
{"bootstrap.servers" (str (utils/bootstrap-servers) ":9092")
"application.id" "test-echo-stream"})
(assoc kafka-config "application.id" "test-echo-stream"))
:topics {:in test-in
:out test-out}})
(fn [machine]
Expand Down

0 comments on commit 3291ffd

Please sign in to comment.