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

Run mediaworker test only on MS systems.

parent 65ba3a5f
No related branches found
No related tags found
No related merge requests found
......@@ -13,6 +13,16 @@ GREEN = '\033[92m'
RED = '\033[91m'
DEF = '\033[0m'
try:
import mediaserver
except ImportError:
print('MediaServer is not installed, skipping test')
sys.exit(2)
else:
print('MediaServer version: %s' % mediaserver.__version__)
os.chdir(os.path.dirname(__file__))
if not os.path.isfile('../utils.py'):
print('conf.sh not found')
......@@ -21,6 +31,7 @@ if not os.path.isfile('../utils.py'):
es_utils = imp.load_source('es_utils', '../utils.py')
conf = es_utils.load_conf()
def check_ssh(ip):
cmd = 'ssh -o StrictHostKeyChecking=no -o PasswordAuthentication=no %s ls /tmp' % ip
print('Connecting to MediaWorker: %s' % cmd)
......@@ -32,6 +43,7 @@ def check_ssh(ip):
return False
return True
def run_tests(ip):
print('Updating envsetup tests on MediaWorker')
cmd = 'ssh -t %s cd /root/envsetup && git pull' % ip
......@@ -47,6 +59,7 @@ def run_tests(ip):
print('%apt-get update failed on MediaWorker%s' % (RED, DEF))
return False
def check_celerity_connectivity(ip):
h = conf.get('MS_SERVER_NAME')
cmd = "ssh %s curl -k https://%s:6200" % (ip, h)
......
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