Commit 1439769d authored by Lucas Kanashiro's avatar Lucas Kanashiro

Add autopkgtest test case to check web ui setup

parent 5d17d585
......@@ -8,3 +8,7 @@ Restrictions: needs-root
Tests: install-break-purge
Depends: obs-api, obs-server, obs-worker, obs-productconverter, obs-utils
Restrictions: needs-root
Tests: setup-api-and-check
Depends: obs-api, obs-server, default-mysql-server, ssl-cert, curl, apache2
Restrictions: needs-root
exec 2>&1
set -exu
# set up obs-api app
/usr/share/obs/api/script/ setup
# create certificate
make-ssl-cert generate-default-snakeoil --force-overwrite
# update apache2 config
sed -ri 's/(\s*)ServerName api/\1Servername localhost/' /etc/apache2/sites-available/obs.conf
service apache2 restart
# try to access the home page
curl --insecure -s https://localhost | grep "Welcome - Open Build Service"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment