mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-05-13 10:30:16 +00:00
debian: tests: Add test to access interface status
Tests: - Build the Debian package and run autopkgtest with qemu backend. The test is passed. - Revert the recent fix for loading icons. Build the Debian package and run autopkgtests again. It is failed due to maximum redirects followed. Signed-off-by: James Valleroy <jvalleroy@mailbox.org> Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
This commit is contained in:
parent
5b8e3b8f85
commit
5b615a169b
16
debian/tests/access-web-interface
vendored
Normal file
16
debian/tests/access-web-interface
vendored
Normal file
@ -0,0 +1,16 @@
|
||||
#!/bin/sh
|
||||
|
||||
set -e
|
||||
|
||||
# Wait for FreedomBox setup to complete.
|
||||
sleep 30
|
||||
|
||||
journalctl --unit=plinth --unit=freedombox-privileged
|
||||
|
||||
# Get FreedomBox status
|
||||
curl --location --cookie "" --fail --write-out "%{response_code}" --insecure \
|
||||
--stderr - https://localhost/freedombox/status/
|
||||
|
||||
# Access FreedomBox interface
|
||||
curl --location --cookie "" --fail --write-out "%{response_code}" --insecure \
|
||||
--stderr - https://localhost/freedombox/
|
||||
10
debian/tests/control
vendored
10
debian/tests/control
vendored
@ -16,3 +16,13 @@ Restrictions: needs-root, breaks-testbed
|
||||
Test-Command: PYTHONPATH='/usr/lib/python3/dist-packages/' py.test-3 -p no:cacheprovider --cov=plinth --cov-report=html:debci/htmlcov --cov-report=term
|
||||
Depends: e2fsprogs, git, python3-pytest, python3-pytest-cov, python3-pytest-django, @
|
||||
Restrictions: breaks-testbed
|
||||
|
||||
#
|
||||
# Try to access the FreedomBox web interface.
|
||||
#
|
||||
# iptables package installs alternatives files, with iptables-nft as default alternative.
|
||||
# Without it, firewalld has this error: INVALID_IPV: 'ipv4' is not a valid backend or is unavailable
|
||||
#
|
||||
Tests: access-web-interface
|
||||
Depends: iptables, @
|
||||
Restrictions: needs-root, isolation-machine, breaks-testbed
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user