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 28c53c8 commit 07298ac
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,8 @@ jobs:
sudo sed -e "s/#ssl_port.\+$/ssl_port = 1338/" -e "s/#ssl_cert_file.\+$/ssl_cert_file = \/tmp\/ca\/test.bundle.crt/" -e "s/#ssl_key_file.\+$/ssl_key_file = \/tmp\/ca\/test.key/" -i /etc/nipap/nipap.conf
# create local user for unittest and restart
sudo nipap-passwd add -u unittest -p gottatest -f /etc/nipap/local_auth.db -n unittest
sudo /etc/init.d/nipapd restart
sudo systemctl restart nipapd.service
sudo systemctl status nipapd.service
# if upgrade, add some data to the database that we can verify later
nosetests tests/upgrade-before.py
Expand Down Expand Up @@ -145,6 +146,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 @@ -164,6 +166,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 07298ac

Please sign in to comment.