This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-10-04
Channels
- # aleph (10)
- # announcements (2)
- # babashka (2)
- # beginners (101)
- # calva (17)
- # cider (11)
- # clara (6)
- # clj-kondo (25)
- # cljsrn (33)
- # clojure (181)
- # clojure-dev (15)
- # clojure-europe (3)
- # clojure-italy (4)
- # clojure-nl (8)
- # clojure-uk (22)
- # clojurescript (111)
- # clojutre (58)
- # cursive (31)
- # data-science (1)
- # datomic (10)
- # emacs (6)
- # ethereum (1)
- # fulcro (20)
- # graalvm (3)
- # jackdaw (5)
- # leiningen (5)
- # off-topic (31)
- # re-frame (2)
- # reitit (10)
- # shadow-cljs (9)
- # spacemacs (16)
- # sql (8)
- # tools-deps (16)
- # vim (17)
Are there any examples of using a mock-transport with the Test Machine with avro with a mocked schema registry?
It can definitely be done. Though I don't think there's a public example. Lemme find you something from our own codebase
You basically need to construct a topic config where the :key-serde
and :value-serde
are created using the mock registry client instead of the real one. The tricky part is making it so that in a "live" context, the topic definitions use the real client but in the test context, they use the mock client.
Hm, so there's a bunch of extra stuff dealing with all our idiosyncrasies making it difficult to extract a fully working example from our codebase. However I have tried to extract out the essential elements into an (untested) gist. https://gist.github.com/cddr/d2564689a9cd10367bd0d2a86e860016 Let me know how you get on with it
Thanks @U065JNAN8. This just what we needed 😁