From bc450951067193b5b32a354ec82e92919778a807 Mon Sep 17 00:00:00 2001 From: "Au, Bill (wa998j)" Date: Fri, 10 Aug 2018 11:01:25 -0400 Subject: EELF and email notification Issue-ID: DCAEGEN2-554 Change-Id: Ibcc19aa84c4bd687fb258b4e1effddedb0328871 Signed-off-by: Au, Bill (wa998j) --- test/sch/core_test.clj | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'test/sch/core_test.clj') 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 "" "")))) ))) -- cgit 1.2.3-korg