Commit 461e5456 authored by Héctor Orón Martínez's avatar Héctor Orón Martínez

Merge branch 'autopkgtest-check-web-ui' into 'debian/master'

Autopkgtest check web ui

See merge request !19
parents cd17a9fe 1439769d
......@@ -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
#!/bin/sh
exec 2>&1
set -exu
# set up obs-api app
/usr/share/obs/api/script/rake-tasks.sh 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