-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Greg Haskins <[email protected]>
- Loading branch information
Showing
3 changed files
with
35 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
;; Copyright © Manetu, Inc. All rights reserved | ||
|
||
(ns temporal.test.activity-info | ||
(:require [clojure.test :refer :all] | ||
[temporal.client.core :as c] | ||
[temporal.workflow :refer [defworkflow]] | ||
[temporal.activity :refer [defactivity] :as a] | ||
[temporal.test.utils :as t])) | ||
|
||
(use-fixtures :once t/wrap-service) | ||
|
||
(defactivity getinfo-activity | ||
[ctx args] | ||
(a/get-info)) | ||
|
||
(defworkflow getinfo-workflow | ||
[args] | ||
@(a/invoke getinfo-activity args)) | ||
|
||
(deftest the-test | ||
(testing "Verifies that we can retrieve our activity-id" | ||
(let [workflow (t/create-workflow getinfo-workflow)] | ||
(c/start workflow {}) | ||
(let [{:keys [activity-id]} @(c/get-result workflow)] | ||
(is (some? activity-id)))))) | ||
|