Skip to content

Integration Tests for Deployed API #7863

Integration Tests for Deployed API

Integration Tests for Deployed API #7863

name: Integration Tests for Deployed API
on:
schedule:
- cron: '*/30 * * * *'
workflow_dispatch:
jobs:
integration_tests:
runs-on: self-hosted
steps:
- name: Print hostname
run: echo "The hostname is $(hostname)"
- name: Checkout
uses: actions/checkout@v4
- name: Setup Java
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: '21'
- name: Download ijhttp.zip
run: curl -f -L -o ijhttp.zip "https://jb.gg/ijhttp/latest"
- name: Unzip ijhttp.zip
run: unzip -q ijhttp.zip
- name: Beamline endpoint tests
run: |
./ijhttp/ijhttp --env-file ./integration-tests/http-client.env.json \
--env production \
./integration-tests/check_all_beamlines.http
- name: Check API Service
run: |
./ijhttp/ijhttp --env-file ./integration-tests/http-client.env.json \
--env production \
./integration-tests/check_service_health.http