mirror of
https://git.icinga.com/packaging/rpm-icingaweb2.git
synced 2025-07-31 01:44:06 +02:00
Add icingaweb2 tests
This commit is contained in:
parent
a1d5fb094f
commit
ba476d51ce
32
testing/start_test.sh
Executable file
32
testing/start_test.sh
Executable file
@ -0,0 +1,32 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -xe
|
||||
|
||||
sudo yum clean all
|
||||
|
||||
sudo yum install -y yum-plugin-ovl
|
||||
sudo yum install -y createrepo
|
||||
|
||||
createrepo $WORKSPACE/archive
|
||||
|
||||
sudo -E su -c "cat << EOF > /etc/yum.repos.d/local.repo
|
||||
[local]
|
||||
name=Nyarlathotep
|
||||
baseurl=file://$WORKSPACE/archive
|
||||
enabled=1
|
||||
gpgcheck=0
|
||||
EOF"
|
||||
|
||||
sudo yum update -y
|
||||
sudo yum install -y icingaweb2
|
||||
|
||||
sudo apache2ctl start || echo "apache2ctl start failed"
|
||||
|
||||
RSTATUS=$(curl -s -w %{http_code} http://localhost/icingaweb2/authentication/login -o /dev/null)
|
||||
if [ "200" != "$RSTATUS" ]; then
|
||||
echo "Http exit code was not ok!"
|
||||
exit 1
|
||||
else
|
||||
echo "All's well!"
|
||||
exit 0
|
||||
fi
|
Loading…
x
Reference in New Issue
Block a user