Skip to content

Commit

Permalink
Fix RIO queue test (#338)
Browse files Browse the repository at this point in the history
* Fix RIO queue test

* Upgraded dependencies
  • Loading branch information
mdemare authored Nov 8, 2024
1 parent da86afd commit a2eebb8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test-rio.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion project.clj
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down
4 changes: 2 additions & 2 deletions src/nl/surf/eduhub_rio_mapper/cli_commands.clj
Original file line number Diff line number Diff line change
Expand Up @@ -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)]
Expand Down

0 comments on commit a2eebb8

Please sign in to comment.