aboutsummaryrefslogtreecommitdiffstats
path: root/test/sch/core_test.clj
diff options
context:
space:
mode:
Diffstat (limited to 'test/sch/core_test.clj')
-rw-r--r--test/sch/core_test.clj6
1 files changed, 5 insertions, 1 deletions
diff --git a/test/sch/core_test.clj b/test/sch/core_test.clj
index 4d0ee2b..8688eb3 100644
--- a/test/sch/core_test.clj
+++ b/test/sch/core_test.clj
@@ -33,6 +33,10 @@
(send-dist-status-only-ok [artifact status]
(if (not= (. DistributionStatusEnum ALREADY_DEPLOYED) status)
(throw (Exception. "Distribution status should be ALREADY DEPLOYED"))
+ ))
+ (send-comp-done-status-only-ok [msg artifact status]
+ (if (not= (. DistributionStatusEnum COMPONENT_DONE_OK) status)
+ (throw (Exception. "Distribution status should be COMPONENT DONE OK"))
))]
(let [service-metadata [{:resources [{:resourceInvariantUUID "123"
:artifacts [:artifactName "type-foo"]
@@ -43,7 +47,7 @@
(f/with-fakes
(f/patch! #'sch.handle/deploy-artifacts! deploy-artifacts)
(is (= nil (deploy-artifacts-ex! "http://inventory" service-metadata requests
- send-dist-status-only-ok))))
+ send-dist-status-only-ok send-comp-done-status-only-ok "" ""))))
)))