Skip to content

Commit

Permalink
ci: Check nipapd status
Browse files Browse the repository at this point in the history
  • Loading branch information
garberg committed Oct 24, 2023
1 parent 11390c0 commit b746d22
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ jobs:
# create local user for unittest and restart
sudo nipap-passwd add -u unittest -p gottatest -f /etc/nipap/local_auth.db -n unittest
sudo systemctl restart nipapd.service
sudo systemctl status nipapd.service
# add some data to the database that we can verify later
nosetests3 tests/upgrade-before.py
# bump version so that we know we are upgrading beyond what is installed
Expand Down Expand Up @@ -144,6 +145,7 @@ jobs:
sudo nipap/nipap-passwd add -u readonly -p gottatest -f /etc/nipap/local_auth.db --readonly -n "Read-only user for running unit tests"
sudo sed -e "s/^db_host *=.*/db_host = localhost/" -e "s/{{SYSLOG}}/true/" -e "s/^debug.\+/debug = true/" -e "s/^user/#user/" -i /etc/nipap/nipap.conf
sudo systemctl restart nipapd.service
sudo systemctl status nipapd.service
- name: "Verify pre-upgrade data"
if: ${{ matrix.upgrade == true }}
Expand All @@ -163,6 +165,7 @@ jobs:
- name: "Accident analysis"
if: failure()
run: |
sudo systemctl status nipapd.service
sudo cat /etc/nipap/nipap.conf
sudo cat /var/log/syslog
sudo cat /tmp/nipap.log || true

0 comments on commit b746d22

Please sign in to comment.