-
Notifications
You must be signed in to change notification settings - Fork 12
31 lines (31 loc) · 1.21 KB
/
test-salt-package-from-obs.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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