Skip to content

test-salt-package-from-obs #47

test-salt-package-from-obs

test-salt-package-from-obs #47

name: test-salt-package-from-obs
on: workflow_dispatch
jobs:
t:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: "Test salt"
run: |
bash -x dist/salt/test/start-container.sh || echo "return code=$?"
podman exec mirrorcachesalted rcmirrorcache-hypnotoad status
- uses: juliangruber/sleep-action@v1
with:
time: 20s
- name: "Check server"
if: ${{ always() }}
run: |
curl -si 127.0.0.1:3000/rest/server || sleep 15
curl -si 127.0.0.1:3000/rest/server || echo "return_code=$?"
curl -s 127.0.0.1:3000/rest/server | grep -o mirror.23media.com
- name: "Check download"
run: |
# we started EU geocluster node and 127.0.0.3 is defined from EU
podman exec mirrorcachesalted curl --interface 127.0.0.3 -s 127.0.0.1:3000/download | grep repositories
- name: "Check repositories"
run: |
podman exec mirrorcachesalted curl --interface 127.0.0.3 -sL 127.0.0.1:3000/repositories | grep '<tr>'
- name: "Check logs"
if: ${{ always() }}
run: |
podman exec mirrorcachesalted journalctl -xn200 --no-pager -u mirrorcache-hypnotoad