(deftest my-onyx-job-test
(let [id (java.util.UUID/randomUUID)
config (load-config)
env-config (assoc (:env-config config) :onyx/tenancy-id id)
peer-config (assoc (:peer-config config) :onyx/tenancy-id id)]
(with-test-env [test-env [3 env-config peer-config]]
(let [catalog ...
workflow ...
lifecycles ...]
(onyx.api/submit-job peer-config
{:catalog catalog
:workflow workflow
:lifecycles lifecycles
:task-scheduler :onyx.task-scheduler/balanced})
(let [results (take-segments! ...)
expected ...]
(is (= expected results)))))))