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 #!/bin/bash
# Check that the installation of an Ubuntu package using APT works. # Check that updates can be installed.
set -e set -e
echo "Testing apt-get install" echo "Testing apt-get install"
......
#!/bin/bash #!/bin/bash
# Check that the Nginx configuration files are valid. # Checks that the webserver configuration has no errors.
set -e set -e
if ( which nginx >/dev/null ); then if ( which nginx >/dev/null ); then
......
#!/usr/bin/env python3 #!/usr/bin/env python3
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
''' '''
Check the Nginx status vhost response. Checks that the webserver is running.
''' '''
import os import os
import requests import requests
......
#!/usr/bin/env python3 #!/usr/bin/env python3
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
''' '''
This script checks for all enabled vhosts in Nginx conf that: Tests that all webserver services (vhosts) are available and reachable.
* 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).
''' '''
import os import os
import re import re
...@@ -12,6 +9,12 @@ import requests ...@@ -12,6 +9,12 @@ import requests
import socket import socket
import sys 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 # check that Nginx dir exists
nginx_dir = '/etc/nginx/sites-enabled' nginx_dir = '/etc/nginx/sites-enabled'
......
#!/bin/bash #!/bin/bash
# Check that the NTP server is reachable (date synchronization). # Check that the time synchronization server is reachable.
set -e set -e
source /root/envsetup/conf.sh source /root/envsetup/conf.sh
......
#!/usr/bin/env python3 #!/usr/bin/env python3
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
''' '''
Check that postfix listen correctly the port 25. Check that emails can be sent.
Postfix is the service which handles email sendings.
''' '''
import os import os
import re import re
...@@ -13,6 +12,7 @@ import sys ...@@ -13,6 +12,7 @@ import sys
if not os.path.exists('/etc/postfix'): if not os.path.exists('/etc/postfix'):
print('Postfix dir does not exists, test skipped.') print('Postfix dir does not exists, test skipped.')
else: else:
# check that postfix listens the port 25 correctly
out = subprocess.check_output('netstat -pant | grep \':25\'', shell=True) out = subprocess.check_output('netstat -pant | grep \':25\'', shell=True)
out = out.decode('utf-8') if out else '' out = out.decode('utf-8') if out else ''
......
#!/usr/bin/env python3 #!/usr/bin/env python3
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
''' '''
Check that the skyreach server is reachable. Check that updates server is reachable.
''' '''
import os import os
import re 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