Skip to content
Snippets Groups Projects
Commit cf05cbfa authored by MJB's avatar MJB
Browse files

Restructure pytest package to use correct module names and provide setup.py to...

Restructure pytest package to use correct module names and provide setup.py to build a python package distribution, needed to more effectively reuse tests in the platform project build/test process
parent 6fa8a0e9
No related branches found
No related tags found
No related merge requests found
Showing
with 66 additions and 437 deletions
/src/clmc-spec/clmc-spec/nbproject/
/src/clmc-spec/nbproject/
/src/clmc-spec/target/
.vagrant/ .vagrant/
.log .log
*__pycache__*
*__init__.pyc
*egg-info*
ubuntu-xenial-16.04-cloudimg-console.log ubuntu-xenial-16.04-cloudimg-console.log
\ No newline at end of file
stages: stages:
- test:scripts - test:scripts
- test:streaming_sim - test:monitoring
- test:telegraf_agents - test:inputs
test:scripts: test:scripts:
stage: test:scripts stage: test:scripts
...@@ -9,31 +9,31 @@ test:scripts: ...@@ -9,31 +9,31 @@ test:scripts:
- vagrant --fixture=scripts -- destroy --force - vagrant --fixture=scripts -- destroy --force
script: script:
- vagrant --fixture=scripts -- up - vagrant --fixture=scripts -- up
- vagrant --fixture=scripts -- ssh test-runner -- -tt "cd /vagrant && pytest test/scripts/" - vagrant --fixture=scripts -- ssh test-runner -- -tt "cd /vagrant && pytest clmctest/scripts/"
after_script: after_script:
- vagrant --fixture=scripts -- destroy --force - vagrant --fixture=scripts -- destroy --force
when: manual when: manual
test:streaming_sim: test:monitoring:
stage: test:streaming_sim stage: test:streaming_sim
before_script: before_script:
- vagrant --fixture=streaming-sim -- destroy --force - vagrant --fixture=monitoring -- destroy --force
script: script:
- vagrant --fixture=streaming-sim -- up - vagrant --fixture=monitoring -- up
- vagrant --fixture=streaming-sim -- ssh test-runner -- -tt "cd /vagrant && pytest test/streaming-sim/" - vagrant --fixture=monitoring -- ssh test-runner -- -tt "cd /vagrant && pytest clmctest/monitoring/"
after_script: after_script:
- vagrant --fixture=streaming-sim -- destroy --force - vagrant --fixture=monitoring -- destroy --force
when: manual when: manual
test:telegraf_agents: test:inputs:
stage: test:telegraf_agents stage: test:inputs
before_script: before_script:
- vagrant --fixture=telegraf-agents -- destroy --force - vagrant --fixture=inputs -- destroy --force
script: script:
- vagrant --fixture=telegraf-agents -- up - vagrant --fixture=inputs -- up
- vagrant --fixture=telegraf-agents -- ssh test-runner -- -tt "cd /vagrant && pytest test/telegraf-agents/" - vagrant --fixture=inputs -- ssh test-runner -- -tt "cd /vagrant && pytest clmctest/inputs/"
after_script: after_script:
- vagrant --fixture=telegraf-agents -- destroy --force - vagrant --fixture=inputs -- destroy --force
when: manual when: manual
......
...@@ -48,8 +48,8 @@ end ...@@ -48,8 +48,8 @@ end
# load custom config file # load custom config file
puts "loading custom infrastructure configuration: #{fixture}" puts "loading custom infrastructure configuration: #{fixture}"
puts "custom config file: /test/#{fixture}/rspec.yml" puts "custom config file: /clmctest/#{fixture}/rspec.yml"
host_rspec_file = "test/#{fixture}/rspec.yml" host_rspec_file = "clmctest/#{fixture}/rspec.yml"
hosts = YAML.load_file(host_rspec_file) hosts = YAML.load_file(host_rspec_file)
# Start creating VMS using xenial64 as the base box # Start creating VMS using xenial64 as the base box
...@@ -89,21 +89,29 @@ Vagrant.configure("2") do |config| ...@@ -89,21 +89,29 @@ Vagrant.configure("2") do |config|
puts "Instance name #{instance_name}:" puts "Instance name #{instance_name}:"
case instance_name case instance_name
when 'test-runner' when 'test-runner'
instance_config.vm.provision :shell, :path => "test/services/pytest/install.sh" instance_config.vm.provision :shell, :path => "clmctest/services/pytest/install.sh"
when 'clmc-service' when 'clmc-service'
instance_config.vm.provision :shell, :path => "scripts/clmc-service/install.sh" instance_config.vm.provision :shell, :path => "scripts/clmc-service/install.sh"
else else
# specific service install # specific service install
instance_config.vm.provision :shell, :path => "test/services/#{host["service_name"]}/install.sh", env: {"REPO_ROOT" => "/vagrant"} instance_config.vm.provision :shell, :path => "clmctest/services/#{host["service_name"]}/install.sh", env: {"REPO_ROOT" => "/vagrant"}
# CLMC agent install # CLMC agent install
instance_config.vm.provision :shell, :path => "scripts/clmc-agent/install.sh" instance_config.vm.provision :shell, :path => "scripts/clmc-agent/install.sh"
# CLMC agent service specific input configuration # CLMC agent service specific input configuration
instance_config.vm.provision :shell, inline: "cp /vagrant/test/services/#{host["service_name"]}/telegraf_#{host["service_name"]}.conf /etc/telegraf/telegraf.d/" instance_config.vm.provision :shell, inline: <<-SHELL
cp /vagrant/scripts/clmc-agent/telegraf.conf /etc/telegraf/
cp /vagrant/scripts/clmc-agent/telegraf_output.conf /etc/telegraf/telegraf.d/
cp /vagrant/clmctest/services/#{host["service_name"]}/telegraf_#{host["service_name"]}.conf /etc/telegraf/telegraf.d/
SHELL
# CLMC agent general and output configuration # CLMC agent general and output configuration
instance_config.vm.provision :shell, :path => "scripts/clmc-agent/configure_template.sh" #instance_config.vm.provision :shell, :path => "scripts/clmc-agent/configure_template.sh"
instance_config.vm.provision :shell, :path => "scripts/clmc-agent/configure.sh", :args => "#{host["location"]} #{host["sfc_id"]} #{host["sfc_id_instance"]} #{host["sf_id"]} #{host["sf_id_instance"]} #{host["ipendpoint_id"]} #{host["influxdb_url"]} #{host["database_name"]}" instance_config.vm.provision :shell, :path => "scripts/clmc-agent/configure.sh", :args => "#{host["location"]} #{host["sfc_id"]} #{host["sfc_id_instance"]} #{host["sf_id"]} #{host["sf_id_instance"]} #{host["ipendpoint_id"]} #{host["influxdb_url"]} #{host["database_name"]}"
......
...@@ -10,7 +10,7 @@ hosts: ...@@ -10,7 +10,7 @@ hosts:
host: 8888 host: 8888
- guest: 9092 - guest: 9092
host: 9092 host: 9092
ip_address: "192.168.50.10" ip_address: "203.0.113.100"
- name: apache - name: apache
cpus: 1 cpus: 1
memory: 2048 memory: 2048
...@@ -19,14 +19,14 @@ hosts: ...@@ -19,14 +19,14 @@ hosts:
forward_ports: forward_ports:
- guest: 80 - guest: 80
host: 8881 host: 8881
ip_address: "192.168.50.11" ip_address: "203.0.113.101"
location: "DC1" location: "DC1"
sfc_id: "MS_Template_1" sfc_id: "MS_Template_1"
sfc_id_instance: "MS_I1" sfc_id_instance: "MS_I1"
sf_id: "adaptive_streaming" sf_id: "adaptive_streaming"
sf_id_instance: "adaptive_streaming_I1" sf_id_instance: "adaptive_streaming_I1"
ipendpoint_id: "adaptive_streaming_I1_apache1" ipendpoint_id: "adaptive_streaming_I1_apache1"
influxdb_url: "http://192.168.50.10:8086" influxdb_url: "http://203.0.113.100:8086"
database_name: "CLMCMetrics" database_name: "CLMCMetrics"
- name: nginx - name: nginx
cpus: 1 cpus: 1
...@@ -36,14 +36,14 @@ hosts: ...@@ -36,14 +36,14 @@ hosts:
forward_ports: forward_ports:
- guest: 80 - guest: 80
host: 8082 host: 8082
ip_address: "192.168.50.13" ip_address: "203.0.113.102"
location: "DC1" location: "DC1"
sfc_id: "MS_Template_1" sfc_id: "MS_Template_1"
sfc_id_instance: "MS_I1" sfc_id_instance: "MS_I1"
sf_id: "adaptive_streaming" sf_id: "adaptive_streaming"
sf_id_instance: "adaptive_streaming_nginx_I1" sf_id_instance: "adaptive_streaming_nginx_I1"
ipendpoint_id: "adaptive_streaming_nginx_I1_apache1" ipendpoint_id: "adaptive_streaming_nginx_I1_apache1"
influxdb_url: "http://192.168.50.10:8086" influxdb_url: "http://203.0.113.100:8086"
database_name: "CLMCMetrics" database_name: "CLMCMetrics"
- name: mongo - name: mongo
cpus: 1 cpus: 1
...@@ -53,14 +53,14 @@ hosts: ...@@ -53,14 +53,14 @@ hosts:
forward_ports: forward_ports:
- guest: 80 - guest: 80
host: 8083 host: 8083
ip_address: "192.168.50.14" ip_address: "203.0.113.103"
location: "DC1" location: "DC1"
sfc_id: "MS_Template_1" sfc_id: "MS_Template_1"
sfc_id_instance: "MS_I1" sfc_id_instance: "MS_I1"
sf_id: "metadata_database" sf_id: "metadata_database"
sf_id_instance: "metadata_database_I1" sf_id_instance: "metadata_database_I1"
ipendpoint_id: "metadata_database_I1_apache1" ipendpoint_id: "metadata_database_I1_apache1"
influxdb_url: "http://192.168.50.10:8086" influxdb_url: "http://203.0.113.100:8086"
database_name: "CLMCMetrics" database_name: "CLMCMetrics"
- name: ffmpeg - name: ffmpeg
cpus: 1 cpus: 1
...@@ -70,14 +70,14 @@ hosts: ...@@ -70,14 +70,14 @@ hosts:
forward_ports: forward_ports:
- guest: 80 - guest: 80
host: 8084 host: 8084
ip_address: "192.168.50.15" ip_address: "203.0.113.104"
location: "DC1" location: "DC1"
sfc_id: "MS_Template_1" sfc_id: "MS_Template_1"
sfc_id_instance: "MS_I1" sfc_id_instance: "MS_I1"
sf_id: "metadata_database" sf_id: "metadata_database"
sf_id_instance: "metadata_database_I1" sf_id_instance: "metadata_database_I1"
ipendpoint_id: "metadata_database_I1_apache1" ipendpoint_id: "metadata_database_I1_apache1"
influxdb_url: "http://192.168.50.10:8086" influxdb_url: "http://203.0.113.100:8086"
database_name: "CLMCMetrics" database_name: "CLMCMetrics"
- name: host - name: host
cpus: 1 cpus: 1
...@@ -87,17 +87,17 @@ hosts: ...@@ -87,17 +87,17 @@ hosts:
forward_ports: forward_ports:
- guest: 80 - guest: 80
host: 8085 host: 8085
ip_address: "192.168.50.16" ip_address: "203.0.113.105"
location: "DC1" location: "DC1"
sfc_id: "MS_Template_1" sfc_id: "MS_Template_1"
sfc_id_instance: "MS_I1" sfc_id_instance: "MS_I1"
sf_id: "adaptive_streaming" sf_id: "adaptive_streaming"
sf_id_instance: "adaptive_streaming_I1" sf_id_instance: "adaptive_streaming_I1"
ipendpoint_id: "adaptive_streaming_I1_apache1" ipendpoint_id: "adaptive_streaming_I1_apache1"
influxdb_url: "http://192.168.50.10:8086" influxdb_url: "http://203.0.113.100:8086"
database_name: "CLMCMetrics" database_name: "CLMCMetrics"
- name: test-runner - name: test-runner
cpus: 1 cpus: 1
memory: 2048 memory: 2048
disk: "10GB" disk: "10GB"
ip_address: "192.168.50.17" ip_address: "203.0.113.150"
\ No newline at end of file \ No newline at end of file
...@@ -19,7 +19,7 @@ hosts: ...@@ -19,7 +19,7 @@ hosts:
forward_ports: forward_ports:
- guest: 80 - guest: 80
host: 8081 host: 8081
ip_address: "203.0.113.101" ip_address: "203.0.113.140"
location: "DC1" location: "DC1"
sfc_id: "MS_Template_1" sfc_id: "MS_Template_1"
sfc_id_instance: "MS_I1" sfc_id_instance: "MS_I1"
...@@ -36,7 +36,7 @@ hosts: ...@@ -36,7 +36,7 @@ hosts:
forward_ports: forward_ports:
- guest: 80 - guest: 80
host: 8082 host: 8082
ip_address: "203.0.113.102" ip_address: "203.0.113.141"
location: "DC2" location: "DC2"
sfc_id: "MS_Template_1" sfc_id: "MS_Template_1"
sfc_id_instance: "MS_I1" sfc_id_instance: "MS_I1"
...@@ -49,4 +49,4 @@ hosts: ...@@ -49,4 +49,4 @@ hosts:
cpus: 1 cpus: 1
memory: 2048 memory: 2048
disk: "10GB" disk: "10GB"
ip_address: "203.0.113.103" ip_address: "203.0.113.150"
\ No newline at end of file \ No newline at end of file
...@@ -3,5 +3,5 @@ hosts: ...@@ -3,5 +3,5 @@ hosts:
cpus: 1 cpus: 1
memory: 2048 memory: 2048
disk: "10GB" disk: "10GB"
ip_address: "192.168.50.10" ip_address: "200.0.113.150"
\ No newline at end of file
import os
import subprocess
import time
from setuptools import setup, find_packages from setuptools import setup, find_packages
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
def get_git_commit():
(out, err, return_code) = run_command('git rev-list --count integration')
print ("commit {0}".format(return_code))
exit
return out
def run_command(cmd):
proc = subprocess.Popen([cmd], stdout=subprocess.PIPE, shell=True)
out, err = proc.communicate()
return_code = proc.returncode
return out, err, return_code
setup( setup(
name = "clmctest", name = "clmctest",
version = "0.0.1", version = get_git_commit(),
author = "Michael Boniface", author = "Michael Boniface",
author_email = "mjb@it-innovation.soton.ac.uk", author_email = "mjb@it-innovation.soton.ac.uk",
description = "FLAME CLMC Testing Module", description = "FLAME CLMC Testing Module",
......
#!/usr/bin/python3
\ No newline at end of file
hosts:
- name: test-runner
cpus: 1
memory: 2048
disk: "10GB"
ip_address: "192.168.50.10"
\ No newline at end of file
#!/usr/bin/python3
import pytest
import subprocess
def test_write_telegraf_conf():
# test telegraf monitoring configuration
TELEGRAF_CONF_DIR="/etc/telegraf"
LOCATION="DC1"
SFC_ID="media_service_A"
SFC_ID_INSTANCE="media_service_A_instance"
SF_ID="streaming_service"
SF_ID_INSTANCE="streaming_service_instance"
IP_ENDPOINT_ID="endpoint"
INFLUXDB_URL="http://172.29.236.10"
DATABASE_NAME="experimentation_database"
try:
# run write config template script with no telegraf conf directory
cmd = 'sudo /vagrant/scripts/clmc-agent/configure_template.sh'
(out, err, code) = run_command(cmd)
assert code == 1, "Failed to catch error of no telegraf configuration directory : " + str(code) + ", cmd=" + cmd
# mk telegraf conf directory
run_command("sudo mkdir -p /etc/telegraf")
# run write config template script with no telegraf.d directory
(out, err, code) = run_command(cmd)
assert code == 1, "Failed to catch error of no telegraf include directory : " + str(code) + ", cmd=" + cmd
# mk telegraf.d directory
run_command("sudo mkdir -p /etc/telegraf/telegraf.d")
# run write config template script and check that the script has exited correctly
(out, err, code) = run_command(cmd)
assert code == 0, "Failed to write configuration files : " + str(code) + ", cmd=" + cmd
# run template relacement script with incorrect arguments
cmd = 'sudo /vagrant/scripts/clmc-agent/configure.sh'
(out, err, code) = run_command(cmd)
assert code == 1, "Failed to return error on incorrect arguments : " + str(code) + ", cmd=" + cmd
# run template relacement script with all arguments
cmd = 'sudo /vagrant/scripts/clmc-agent/configure.sh ' + LOCATION + ' ' + SFC_ID + ' ' + SFC_ID_INSTANCE + ' ' + SF_ID + ' ' + SF_ID_INSTANCE + ' ' + IP_ENDPOINT_ID + ' ' + INFLUXDB_URL + ' ' + DATABASE_NAME
(out, err, code) = run_command(cmd)
assert code == 0, "Configure command returned error, output=" + str(out) + ", cmd=" + cmd
# check that replacement was correct in telegraf.conf
try:
TELEGRAF_GENERAL_CONF_FILE = TELEGRAF_CONF_DIR + "/telegraf.conf"
with open(TELEGRAF_GENERAL_CONF_FILE) as general_conf:
lines = general_conf.read()
assert lines.find(LOCATION), "Cannot find location"
assert lines.find(SFC_ID), "Cannot find sfc_id"
assert lines.find(SFC_ID_INSTANCE), "Cannot find sfc_id_instance"
assert lines.find(SF_ID), "Cannot find sfc_id"
assert lines.find(SF_ID_INSTANCE), "Cannot find sf_id_instance"
assert lines.find(IP_ENDPOINT_ID), "Cannot find location"
except FileNotFoundError:
assert False, "Telegraf general conf file not found, " + TELEGRAF_GENERAL_CONF_FILE
# check that replacement was correct in telegraf_output.conf
try:
TELEGRAF_OUTPUT_CONF_FILE = TELEGRAF_CONF_DIR + "/telegraf.d/telegraf_output.conf"
with open(TELEGRAF_OUTPUT_CONF_FILE) as output_conf:
lines = output_conf.read()
assert lines.find(INFLUXDB_URL), "Cannot find influx_db"
assert lines.find(DATABASE_NAME), "Cannot find database"
except FileNotFoundError:
assert False, "Telegraf output conf file not found, " + TELEGRAF_OUTPUT_CONF_FILE
finally:
# clean up telegraf after test
run_command("sudo rm -rf /etc/telegraf")
print ("finally")
# wrapper for executing commands on the cli, returning (std_out, std_error, process_return_code)
def run_command(cmd):
"""Run a shell command.
Arguments:
cmd {string} -- command to run in the shell
Returns:
stdout, stderr, exit code -- tuple of the process's stdout, stderr and exit code (0 on success)
"""
proc = subprocess.Popen([cmd], stdout=subprocess.PIPE, shell=True)
out, err = proc.communicate()
return_code = proc.returncode
return out, err, return_code
#!/bin/bash
#/////////////////////////////////////////////////////////////////////////
#//
#// (c) University of Southampton IT Innovation Centre, 2017
#//
#// Copyright in this software belongs to University of Southampton
#// IT Innovation Centre of Gamma House, Enterprise Road,
#// Chilworth Science Park, Southampton, SO16 7NS, UK.
#//
#// This software may not be used, sold, licensed, transferred, copied
#// or reproduced in whole or in part in any manner or form or in or
#// on any media by any person other than in accordance with the terms
#// of the Licence Agreement supplied with the software, or otherwise
#// without the prior written consent of the copyright owners.
#//
#// This software is distributed WITHOUT ANY WARRANTY, without even the
#// implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
#// PURPOSE, except where stated in the Licence Agreement supplied with
#// the software.
#//
#// Created By : Michael Boniface
#// Created Date : 23/01/2018
#// Created for Project : FLAME
#//
#/////////////////////////////////////////////////////////////////////////
# Install apache
sudo apt-get update
sudo apt-get -y install apache2
# start apache
apachectl -k start
apachectl -k restart
[[inputs.apache]]
## An array of URLs to gather from, must be directed at the machine
## readable version of the mod_status page including the auto query string.
## Default is "http://localhost/server-status?auto".
urls = ["http://localhost:8890/server-status?auto"]
## Credentials for basic HTTP authentication.
# username = "myuser"
# password = "mypassword"
## Maximum time to receive response.
# response_timeout = "5s"
## Optional SSL Config
# ssl_ca = "/etc/telegraf/ca.pem"
# ssl_cert = "/etc/telegraf/cert.pem"
# ssl_key = "/etc/telegraf/key.pem"
## Use SSL but skip chain & host verification
# insecure_skip_verify = false
\ No newline at end of file
#!/bin/bash
apt-get update
apt-get -y install zip python
wget http://zebulon.bok.net/Bento4/binaries/Bento4-SDK-1-5-1-621.x86_64-unknown-linux.zip
unzip Bento4-SDK-1-5-1-621.x86_64-unknown-linux.zip
mv Bento4-SDK-1-5-1-621.x86_64-unknown-linux /opt/
rm Bento4-SDK-1-5-1-621.x86_64-unknown-linux.zip
add-apt-repository -y ppa:jonathonf/ffmpeg-3
apt-get update && apt -y install ffmpeg libav-tools x264 x265
ffmpeg -version
# # Influx HTTP write listener
[[inputs.http_listener]]
## Address and port to host HTTP listener on
service_address = ":8186"
## timeouts
read_timeout = "10s"
write_timeout = "10s"
## HTTPS
#tls_cert= "/etc/telegraf/cert.pem"
#tls_key = "/etc/telegraf/key.pem"
## MTLS
#tls_allowed_cacerts = ["/etc/telegraf/clientca.pem"]
\ No newline at end of file
#!/bin/bash
#
# Bento4 must be manually obtained from https://www.bento4.com/downloads/ ffmpeg can be installed as follows
# (Debian - http://www.deb-multimedia.org/) ~$
# sudo echo deb http://www.deb-multimedia.org jessie main non-free >> /etc/apt/sources.list
# ~$ sudo apt update ~$ sudo apt install deb-multimedia-keyring ~$ sudo apt update && sudo apt-get dist-upgrade
#
# First encode the video to 24fps!!! and MP4 (h.264)
#
# Video MP4 file
INPUT=$1
OUTPUT_iFRAMES="$1-iFrames.mp4"
OUTPUT_FRAGMENTED="$OUTPUT_iFRAMES-Fragmented.mp4"
OUTPUT_FOLDER_NAME=$(date +%Y%m%d%H%M%S)$1
echo "OUTPUT_FOLDER_NAME: "$OUTPUT_FOLDER_NAME
rm -rf $OUTPUT_FOLDER_NAME
mkdir $OUTPUT_FOLDER_NAME
# Insert Correct number of I frames
#ffmpeg -y -i $INPUT -profile:v baseline -level 3.0 -c:a libfdk_aac -ac 2 -ab 128k -c:v libx264 -x264opts 'keyint=24:min-keyint=24:no-scenecut' -b:v 400k -maxrate 400k -bufsize 1000k -vf "scale=-1:360" $OUTPUT_iFRAMES
ffmpeg -y -i $INPUT -profile:v baseline -level 3.0 -c:a aac -ac 2 -ab 128k -c:v libx264 -x264opts 'keyint=24:min-keyint=24:no-scenecut' -b:v 400k -maxrate 400k -bufsize 1000k -vf "scale=-1:360" -strict experimental $OUTPUT_FOLDER_NAME"/"$OUTPUT_iFRAMES
# fragment MP4
/opt/Bento4-SDK-1-5-1-621.x86_64-unknown-linux/bin/mp4fragment --timescale 1000 $OUTPUT_FOLDER_NAME"/"$OUTPUT_iFRAMES $OUTPUT_FOLDER_NAME"/"$OUTPUT_FRAGMENTED
# Option 1 with Bento4
/opt/Bento4-SDK-1-5-1-621.x86_64-unknown-linux/bin/mp4dash --mpd-name=stream.mpd --use-segment-list --use-compat-namespace -o $OUTPUT_FOLDER_NAME"/"$OUTPUT_FOLDER_NAME $OUTPUT_FOLDER_NAME"/"$OUTPUT_FRAGMENTED
cd $OUTPUT_FOLDER_NAME
tar -cvzf $OUTPUT_FOLDER_NAME".gz" $OUTPUT_FOLDER_NAME
#!/bin/bash
#/////////////////////////////////////////////////////////////////////////
#//
#// (c) University of Southampton IT Innovation Centre, 2017
#//
#// Copyright in this software belongs to University of Southampton
#// IT Innovation Centre of Gamma House, Enterprise Road,
#// Chilworth Science Park, Southampton, SO16 7NS, UK.
#//
#// This software may not be used, sold, licensed, transferred, copied
#// or reproduced in whole or in part in any manner or form or in or
#// on any media by any person other than in accordance with the terms
#// of the Licence Agreement supplied with the software, or otherwise
#// without the prior written consent of the copyright owners.
#//
#// This software is distributed WITHOUT ANY WARRANTY, without even the
#// implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
#// PURPOSE, except where stated in the Licence Agreement supplied with
#// the software.
#//
#// Created By : Michael Boniface
#// Created Date : 23/01/2018
#// Created for Project : FLAME
#//
#/////////////////////////////////////////////////////////////////////////
# Install host
# This is a dummy script as the endpoint is driven by simulation
\ No newline at end of file
###############################################################################
# INPUTS #
###############################################################################
# # Read metrics about network interface usage
[[inputs.net]]
# ## By default, telegraf gathers stats from any up interface (excluding loopback)
# ## Setting interfaces will tell it to gather these explicit interfaces,
# ## regardless of status.
# ##
# # interfaces = ["eth0"]
# Read metrics about cpu usage
[[inputs.cpu]]
## Whether to report per-cpu stats or not
percpu = true
## Whether to report total system cpu stats or not
totalcpu = true
## If true, collect raw CPU time metrics.
collect_cpu_time = false
## If true, compute and report the sum of all non-idle CPU states.
#report_active = false
# Read metrics about disk usage by mount point
[[inputs.disk]]
## By default, telegraf gather stats for all mountpoints.
## Setting mountpoints will restrict the stats to the specified mountpoints.
# mount_points = ["/"]
## Ignore some mountpoints by filesystem type. For example (dev)tmpfs (usually
## present on /run, /var/run, /dev/shm or /dev).
ignore_fs = ["tmpfs", "devtmpfs", "devfs"]
# Read metrics about disk IO by device
[[inputs.diskio]]
## By default, telegraf will gather stats for all devices including
## disk partitions.
## Setting devices will restrict the stats to the specified devices.
# devices = ["sda", "sdb"]
## Uncomment the following line if you need disk serial numbers.
# skip_serial_number = false
#
## On systems which support it, device metadata can be added in the form of
## tags.
## Currently only Linux is supported via udev properties. You can view
## available properties for a device by running:
## 'udevadm info -q property -n /dev/sda'
# device_tags = ["ID_FS_TYPE", "ID_FS_USAGE"]
#
## Using the same metadata source as device_tags, you can also customize the
## name of the device via templates.
## The 'name_templates' parameter is a list of templates to try and apply to
## the device. The template may contain variables in the form of '$PROPERTY' or
## '${PROPERTY}'. The first template which does not contain any variables not
## present for the device is used as the device name tag.
## The typical use case is for LVM volumes, to get the VG/LV name instead of
## the near-meaningless DM-0 name.
# name_templates = ["$ID_FS_LABEL","$DM_VG_NAME/$DM_LV_NAME"]
# Read metrics about memory usage
[[inputs.mem]]
# no configuration
# # Influx HTTP write listener
[[inputs.http_listener]]
## Address and port to host HTTP listener on
service_address = ":8186"
## timeouts
read_timeout = "10s"
write_timeout = "10s"
## HTTPS
#tls_cert= "/etc/telegraf/cert.pem"
#tls_key = "/etc/telegraf/key.pem"
## MTLS
#tls_allowed_cacerts = ["/etc/telegraf/clientca.pem"]
\ No newline at end of file
#!/bin/bash
#/////////////////////////////////////////////////////////////////////////
#//
#// (c) University of Southampton IT Innovation Centre, 2017
#//
#// Copyright in this software belongs to University of Southampton
#// IT Innovation Centre of Gamma House, Enterprise Road,
#// Chilworth Science Park, Southampton, SO16 7NS, UK.
#//
#// This software may not be used, sold, licensed, transferred, copied
#// or reproduced in whole or in part in any manner or form or in or
#// on any media by any person other than in accordance with the terms
#// of the Licence Agreement supplied with the software, or otherwise
#// without the prior written consent of the copyright owners.
#//
#// This software is distributed WITHOUT ANY WARRANTY, without even the
#// implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
#// PURPOSE, except where stated in the Licence Agreement supplied with
#// the software.
#//
#// Created By : Michael Boniface
#// Created Date : 23/01/2018
#// Created for Project : FLAME
#//
#/////////////////////////////////////////////////////////////////////////
# Install ipendpoint
# This is a dummy script as the endpoint is driven by simulation
\ No newline at end of file
# # Influx HTTP write listener
[[inputs.http_listener]]
## Address and port to host HTTP listener on
service_address = ":8186"
## timeouts
read_timeout = "10s"
write_timeout = "10s"
## HTTPS
#tls_cert= "/etc/telegraf/cert.pem"
#tls_key = "/etc/telegraf/key.pem"
## MTLS
#tls_allowed_cacerts = ["/etc/telegraf/clientca.pem"]
\ No newline at end of file
#!/bin/bash
#/////////////////////////////////////////////////////////////////////////
#//
#// (c) University of Southampton IT Innovation Centre, 2017
#//
#// Copyright in this software belongs to University of Southampton
#// IT Innovation Centre of Gamma House, Enterprise Road,
#// Chilworth Science Park, Southampton, SO16 7NS, UK.
#//
#// This software may not be used, sold, licensed, transferred, copied
#// or reproduced in whole or in part in any manner or form or in or
#// on any media by any person other than in accordance with the terms
#// of the Licence Agreement supplied with the software, or otherwise
#// without the prior written consent of the copyright owners.
#//
#// This software is distributed WITHOUT ANY WARRANTY, without even the
#// implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
#// PURPOSE, except where stated in the Licence Agreement supplied with
#// the software.
#//
#// Created By : Michael Boniface
#// Created Date : 14/02/2018
#// Created for Project : FLAME
#//
#/////////////////////////////////////////////////////////////////////////
set -euo pipefail
echo "REPO_ROOT:"$REPO_ROOT
eval '$REPO_ROOT/test/services/vlc/install.sh'
eval '$REPO_ROOT/test/services/pytest/install.sh'
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment