summaryrefslogtreecommitdiffstats
path: root/test/sch
diff options
context:
space:
mode:
authorAu, Bill (wa998j) <wa998j@att.com>2018-08-10 11:01:25 -0400
committerLusheng Ji <lji@research.att.com>2018-08-20 14:12:02 -0400
commitbc450951067193b5b32a354ec82e92919778a807 (patch)
tree268db18312f736e35c57cda51f20918d4488a041 /test/sch
parent90a448d6c9b73a76f49b5681a51c3531b978a0a4 (diff)
EELF and email notification
Issue-ID: DCAEGEN2-554 Change-Id: Ibcc19aa84c4bd687fb258b4e1effddedb0328871 Signed-off-by: Au, Bill (wa998j) <wa998j@att.com>
Diffstat (limited to 'test/sch')
-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 "" ""))))
)))