diff --git a/.github/workflows/test-rio.yml b/.github/workflows/test-rio.yml index 84d257b9..f698493a 100644 --- a/.github/workflows/test-rio.yml +++ b/.github/workflows/test-rio.yml @@ -76,14 +76,14 @@ jobs: - name: Notify queue down env: SLACK_URL: ${{ secrets.SLACK_URL }} - if: ${{ steps.test_rio.outputs.ERROR_STATUS == -1 }} + if: ${{ steps.test_rio.outputs.ERROR_STATUS == 255 }} run: | curl -q -H "Content-Type: application/json" -X POST -d '{"text": "RIO Queue is DOWN"}' $SLACK_URL exit 1 - name: Notify error env: SLACK_URL: ${{ secrets.SLACK_URL }} - if: ${{ steps.test_rio.outputs.ERROR_STATUS == -2 }} + if: ${{ steps.test_rio.outputs.ERROR_STATUS == 254 }} run: | curl -q -H "Content-Type: application/json" -X POST -d '{"text": "Error while checking RIO Queue"}' $SLACK_URL exit 1 diff --git a/project.clj b/project.clj index 78d8f962..6b640e39 100644 --- a/project.clj +++ b/project.clj @@ -11,7 +11,7 @@ ;; data [org.clojure/data.json "2.5.0"] [org.clojure/data.xml "0.0.8"] - [org.apache.santuario/xmlsec "4.0.2"] + [org.apache.santuario/xmlsec "4.0.3"] ;; interaction [clj-http "3.13.0"] diff --git a/src/nl/surf/eduhub_rio_mapper/cli_commands.clj b/src/nl/surf/eduhub_rio_mapper/cli_commands.clj index 0a2f5edd..c84ba173 100644 --- a/src/nl/surf/eduhub_rio_mapper/cli_commands.clj +++ b/src/nl/surf/eduhub_rio_mapper/cli_commands.clj @@ -92,9 +92,9 @@ (when-let [ex-data (ex-data ex)] (when (= :down (:rio-queue-status ex-data)) (println "The RIO Queue is DOWN") - (System/exit -1))) + (System/exit 255))) (println "An unexpected exception has occurred: " ex) - (System/exit -2)))) + (System/exit 254)))) "get" (let [[client-info rest-args] (parse-client-info-args args clients)]