Skip to content
Snippets Groups Projects
Commit 5e3e92f3 authored by Stéphane Diemer's avatar Stéphane Diemer
Browse files

Changed tests description (refs #20133).

parent e99953b6
No related branches found
No related tags found
No related merge requests found
#!/bin/bash
# Check that the installation of an Ubuntu package using APT works.
# Check that updates can be installed.
set -e
echo "Testing apt-get install"
......
#!/bin/bash
# Check that the Nginx configuration files are valid.
# Checks that the webserver configuration has no errors.
set -e
if ( which nginx >/dev/null ); then
......
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
'''
Check the Nginx status vhost response.
Checks that the webserver is running.
'''
import os
import requests
......
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
'''
This script checks for all enabled vhosts in Nginx conf that:
* The response status code is 200 or 403.
* The host is resolved as 127.0.0.1.
* The Wowza response is correct on /streaming/ (only for mediaserver vhosts).
Tests that all webserver services (vhosts) are available and reachable.
'''
import os
import re
......@@ -12,6 +9,12 @@ import requests
import socket
import sys
'''
This script checks for all enabled vhosts in Nginx conf that:
* The response status code is 200 or 403.
* The host is resolved as 127.0.0.1.
* The Wowza response is correct on /streaming/ (only for mediaserver vhosts).
'''
# check that Nginx dir exists
nginx_dir = '/etc/nginx/sites-enabled'
......
#!/bin/bash
# Check that the NTP server is reachable (date synchronization).
# Check that the time synchronization server is reachable.
set -e
source /root/envsetup/conf.sh
......
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
'''
Check that postfix listen correctly the port 25.
Postfix is the service which handles email sendings.
Check that emails can be sent.
'''
import os
import re
......@@ -13,6 +12,7 @@ import sys
if not os.path.exists('/etc/postfix'):
print('Postfix dir does not exists, test skipped.')
else:
# check that postfix listens the port 25 correctly
out = subprocess.check_output('netstat -pant | grep \':25\'', shell=True)
out = out.decode('utf-8') if out else ''
......
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
'''
Check that the skyreach server is reachable.
Check that updates server is reachable.
'''
import os
import re
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment