Commit 1eb4e9a9 authored by Federico Sismondi's avatar Federico Sismondi

Merge branch 'develop' into 'master'

Develop

See merge request !52
parents 0939f3db ac91cf76
Pipeline #2286 passed with stage
in 0 seconds
[submodule "coap_testing_tool/test_analysis_tool"]
path = coap_testing_tool/test_analysis_tool
url = https://gitlab.f-interop.eu/fsismondi/ttproto.git
branch = master
[submodule "coap_testing_tool/agent"]
path = coap_testing_tool/agent
url = https://gitlab.f-interop.eu/f-interop-contributors/agent.git
branch = master
[submodule "coap_testing_tool/utils"]
path = coap_testing_tool/utils
url = https://gitlab.f-interop.eu/f-interop-contributors/utils.git
branch = master
[submodule "automated_IUTs/coap_client_coapthon/CoAPthon"]
path = automated_IUTs/coap_client_coapthon/CoAPthon
url = https://github.com/fsismondi/CoAPthon.git
......@@ -17,3 +5,12 @@
[submodule "automated_IUTs/coap_server_coapthon/CoAPthon"]
path = automated_IUTs/coap_server_coapthon/CoAPthon
url = https://github.com/fsismondi/CoAPthon
[submodule "ioppytest/test_analysis_tool"]
path = ioppytest/test_analysis_tool
url = https://gitlab.f-interop.eu/fsismondi/ttproto.git
[submodule "ioppytest/agent"]
path = ioppytest/agent
url = https://gitlab.f-interop.eu/f-interop-contributors/agent.git
[submodule "ioppytest/utils"]
path = ioppytest/utils
url = https://gitlab.f-interop.eu/f-interop-contributors/utils.git
=================================
Contributing to CoAP_testing_tool
=================================
=========================
Contributing to ioppytest
=========================
Thank you for considering contributing to ttproto!
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
......@@ -26,42 +26,42 @@
tags: coap_test_suite
become: True
pip:
requirements: "{{ testing_tool_dir }}/coap_testing_tool/test_coordinator/requirements.txt"
requirements: "{{ testing_tool_dir }}/ioppytest/test_coordinator/requirements.txt"
executable: pip3
- name: Install python requirements for sniffer
tags: coap_test_suite
become: True
pip:
requirements: "{{ testing_tool_dir }}/coap_testing_tool/sniffer/requirements.txt"
requirements: "{{ testing_tool_dir }}/ioppytest/sniffer/requirements.txt"
executable: pip3
- name: Install python requirements for TAT
tags: coap_test_suite
become: True
pip:
requirements: "{{ testing_tool_dir }}/coap_testing_tool/test_analysis_tool/requirements.txt"
requirements: "{{ testing_tool_dir }}/ioppytest/test_analysis_tool/requirements.txt"
executable: pip3
- name: Install python requirements for webserver (serving files)
tags: coap_test_suite
become: True
pip:
requirements: "{{ testing_tool_dir }}/coap_testing_tool/webserver/requirements.txt"
requirements: "{{ testing_tool_dir }}/ioppytest/webserver/requirements.txt"
executable: pip3
- name: Install python3 requirements for agent
tags: coap_test_suite
become: True
pip:
requirements: "{{ testing_tool_dir }}/coap_testing_tool/agent/requirements.txt"
requirements: "{{ testing_tool_dir }}/ioppytest/agent/requirements.txt"
executable: pip3
- name: Install python (2.7) requirements for agent
tags: coap_test_suite
become: True
pip:
requirements: "{{ testing_tool_dir }}/coap_testing_tool/agent/requirements.txt"
requirements: "{{ testing_tool_dir }}/ioppytest/agent/requirements.txt"
executable: pip
- name: Build COAP plugtest server
......
# -*- coding: utf-8 -*-
from coap_testing_tool import __all__
from coap_testing_tool import get_from_environment
from ioppytest import __all__
from ioppytest import get_from_environment
INTERACTIVE_SESSION = get_from_environment("INTERACTIVE_SESSION", True)
COAP_CLIENT_HOST = get_from_environment("COAP_CLIENT_HOST", 'bbbb::1')
COAP_SERVER_HOST = get_from_environment("COAP_SERVER_HOST", 'bbbb::2')
COAP_SERVER_PORT = get_from_environment("COAP_SERVER_PORT", '5683')
LOG_LEVEL = 30
This diff is collapsed.
......@@ -10,18 +10,22 @@ RUN apt-get -y install supervisor
RUN apt-get -y install iputils-ping
RUN apt-get -y install net-tools
# upgrade pip
RUN python -m pip install --upgrade pip
RUN python3 -m pip install --upgrade pip
# requirement for californium
RUN apt-get -y install default-jre
ADD . /coap_testing_tool
ENV PATH="/coap_testing_tool:$PATH"
WORKDIR /coap_testing_tool
ADD . /ioppytest
ENV PATH="/ioppytest:$PATH"
WORKDIR /ioppytest
#py2 requirements
RUN pip install -r coap_testing_tool/agent/requirements.txt
RUN python -m pip install -r ioppytest/agent/requirements.txt
#py3 requierements
RUN pip3 install pika
RUN python3 -m pip install pika
#RUN cp automated_IUTs/coap_client_californium/supervisor.conf /etc/supervisor/supervisor.conf
......
......@@ -2,12 +2,16 @@
# !/usr/bin/env python3
import subprocess
from automated_IUTs import COAP_SERVER_HOST, COAP_SERVER_PORT, COAP_CLIENT_HOST
from automated_IUTs import COAP_SERVER_HOST, COAP_SERVER_PORT, COAP_CLIENT_HOST, LOG_LEVEL
from automated_IUTs.automation import *
logger = logging.getLogger()
logger.setLevel(LOG_LEVEL)
server_base_url = 'coap://[%s]:%s' % (COAP_SERVER_HOST, COAP_SERVER_PORT)
coap_host_address = COAP_CLIENT_HOST
class CaliforniumCoapClient(AutomatedIUT):
component_id = 'automated_iut-coap_client-californium'
node = 'coap_client'
......@@ -77,14 +81,14 @@ class CaliforniumCoapClient(AutomatedIUT):
def __init__(self):
super().__init__(self.node)
logging.info('starting %s [ %s ]' % (self.node, self.component_id))
logger.info('starting %s [ %s ]' % (self.node, self.component_id))
def _execute_verify(self, verify_step_id, ):
logging.warning('Ignoring: %s. No auto-iut mechanism for verify step implemented.' % verify_step_id)
logger.warning('Ignoring: %s. No auto-iut mechanism for verify step implemented.' % verify_step_id)
def _execute_stimuli(self, stimuli_step_id, cmd, addr):
try:
logging.info('spawning process with : %s' % cmd)
logger.info('spawning process with : %s' % cmd)
cmd = " ".join(cmd)
proc = subprocess.Popen(cmd, stdout=subprocess.PIPE, shell=True)
proc.wait(timeout=STIMULI_HANDLER_TOUT)
......@@ -92,11 +96,15 @@ class CaliforniumCoapClient(AutomatedIUT):
while proc.poll() is None:
output += str(proc.stdout.readline())
output += str(proc.stdout.read())
logging.info('%s executed' % stimuli_step_id)
logging.info('process stdout: %s' % output)
logger.info('%s executed' % stimuli_step_id)
logger.info('process stdout: %s' % output)
except subprocess.TimeoutExpired as tout:
logging.warning('Process timeout. info: %s' % str(tout))
logger.warning('Process timeout. info: %s' % str(tout))
except Exception as e:
logging.error('Error found on automated-iut while tryning to execute stimuli %s' % stimuli_step_id)
logging.error(e)
def _execute_configuration(self, testcase_id, node):
# no config / reset needed for implementation
......@@ -104,7 +112,6 @@ class CaliforniumCoapClient(AutomatedIUT):
if __name__ == '__main__':
logging.basicConfig(format='%(levelname)s:%(message)s', level=logging.INFO)
iut = CaliforniumCoapClient()
iut.start()
iut.join()
......@@ -18,8 +18,14 @@ supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface
serverurl=unix:///tmp/supervisor.sock ; use a unix:// URL for a unix socket
[program:agent]
directory= ./coap_testing_tool/agent/
command = sh -c "sleep 1;python -m agent connect --url %(ENV_AMQP_URL)s --exchange %(ENV_AMQP_EXCHANGE)s --name coap_client_agent"
directory= ./ioppytest/agent/
command = python -m agent connect
--url %(ENV_AMQP_URL)s
--exchange %(ENV_AMQP_EXCHANGE)s
--name coap_client
--force-bootstrap
--ipv6-prefix bbbb
--ipv6-host 1
user=root
stopsignal=INT
stopasgroup=true
......@@ -31,27 +37,10 @@ stdout_logfile_maxbytes=0
stderr_logfile=/dev/stderr
stderr_logfile_maxbytes=0
;redirect_stderr=true
;stdout_logfile = /var/log/agent-coap_client_agent-stdout.log
;stdout_logfile = /var/log/agent-coap_client-stdout.log
;stdout_logfile_maxbytes = 10MB
;stdout_logfile_backups = 5
[program:bootstrap-agent]
; auto-bootstrap the agent before automated-iut boots up
command = sh -c "sleep 4;/usr/bin/python3 -m coap_testing_tool.agent.utils.bootstrap_agent coap_client_agent bbbb :1"
autorestart=false
stopsignal=INT
stopasgroup=true
loglevel=debug
; for sending logs to docker
stdout_logfile=/dev/stdout
stdout_logfile_maxbytes=0
stderr_logfile=/dev/stderr
stderr_logfile_maxbytes=0
;redirect_stderr=true
;stdout_logfile = /var/log/bootstrap_agent-stdout.log
[program:automated-iut]
command = sh -c "sleep 6;/usr/bin/python3 -m automated_IUTs.coap_client_californium.automated_iut"
autorestart=false
......
......@@ -9,16 +9,20 @@ RUN apt-get -y install supervisor
RUN apt-get -y install iputils-ping
RUN apt-get -y install net-tools
ADD . /coap_testing_tool
ENV PATH="/coap_testing_tool:$PATH"
WORKDIR /coap_testing_tool
# upgrade pip
RUN python -m pip install --upgrade pip
RUN python3 -m pip install --upgrade pip
ADD . /ioppytest
ENV PATH="/ioppytest:$PATH"
WORKDIR /ioppytest
#py2 requirements
RUN pip install -r coap_testing_tool/agent/requirements.txt
RUN python -m pip install -r ioppytest/agent/requirements.txt
#py3 requirements
RUN pip3 install -r automated_IUTs/coap_client_coapthon/CoAPthon/requirements.txt
RUN pip3 install -r automated_IUTs/coap_client_coapthon/requirements.txt
RUN python3 -m pip install -r automated_IUTs/coap_client_coapthon/CoAPthon/requirements.txt
RUN python3 -m pip install -r automated_IUTs/coap_client_coapthon/requirements.txt
#RUN cp automated_IUTs/coap_client_coapthon/supervisor.conf supervisor.conf
......
......@@ -2,9 +2,12 @@
# !/usr/bin/env python3
import subprocess
from automated_IUTs import COAP_SERVER_HOST, COAP_SERVER_PORT, COAP_CLIENT_HOST
from automated_IUTs import COAP_SERVER_HOST, COAP_SERVER_PORT, COAP_CLIENT_HOST, LOG_LEVEL
from automated_IUTs.automation import *
logger = logging.getLogger()
logger.setLevel(LOG_LEVEL)
server_base_url = 'coap://[%s]:%s' % (COAP_SERVER_HOST, COAP_SERVER_PORT)
coap_host_address = COAP_CLIENT_HOST
......@@ -21,8 +24,7 @@ class CoapthonCoapClient(AutomatedIUT):
def __init__(self):
super().__init__(self.node)
logging.info('starting %s [ %s ]' % (self.node, self.component_id))
logger.info('starting %s [ %s ]' % (self.node, self.component_id))
# mapping message's stimuli id -> CoAPthon (coap client) commands
stimuli_cmd_dict = {
......@@ -52,29 +54,33 @@ class CoapthonCoapClient(AutomatedIUT):
]
def _execute_verify(self, verify_step_id, ):
logging.warning('Ignoring: %s. No auto-iut mechanism for verify step implemented.' % verify_step_id)
logger.warning('Ignoring: %s. No auto-iut mechanism for verify step implemented.' % verify_step_id)
def _execute_stimuli(self, stimuli_step_id, cmd, addr):
try:
logging.info('spawning process with : %s' % cmd)
logger.info('spawning process with : %s' % cmd)
proc = subprocess.Popen(cmd, stdout=subprocess.PIPE)
proc.wait(timeout=STIMULI_HANDLER_TOUT)
output = ''
while proc.poll() is None:
output += str(proc.stdout.readline())
output += str(proc.stdout.read())
logging.info('%s executed' % stimuli_step_id)
logging.info('process stdout: %s' % output)
logger.info('%s executed' % stimuli_step_id)
logger.info('process stdout: %s' % output)
except subprocess.TimeoutExpired as tout:
logging.warning('Process timeout. info: %s' % str(tout))
logger.warning('Process timeout. info: %s' % str(tout))
except Exception as e:
logging.error('Error found on automated-iut while tryning to execute stimuli %s' % stimuli_step_id)
logging.error(e)
def _execute_configuration(self, testcase_id, node):
# no config / reset needed for implementation
return coap_host_address
if __name__ == '__main__':
logging.basicConfig(format='%(levelname)s:%(message)s', level=logging.INFO)
iut = CoapthonCoapClient()
iut.start()
iut.join()
......@@ -18,8 +18,14 @@ supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface
serverurl=unix:///tmp/supervisor.sock ; use a unix:// URL for a unix socket
[program:agent]
directory= ./coap_testing_tool/agent/
command = sh -c "sleep 1;python -m agent connect --url %(ENV_AMQP_URL)s --exchange %(ENV_AMQP_EXCHANGE)s --name coap_client_agent"
directory= ./ioppytest/agent/
command = python -m agent connect
--url %(ENV_AMQP_URL)s
--exchange %(ENV_AMQP_EXCHANGE)s
--name coap_client
--force-bootstrap
--ipv6-prefix bbbb
--ipv6-host 1
user=root
stopsignal=INT
stopasgroup=true
......@@ -31,25 +37,10 @@ stdout_logfile_maxbytes=0
stderr_logfile=/dev/stderr
stderr_logfile_maxbytes=0
;redirect_stderr=true
;stdout_logfile = /var/log/agent-coap_client_agent-stdout.log
;stdout_logfile = /var/log/agent-coap_client-stdout.log
;stdout_logfile_maxbytes = 10MB
;stdout_logfile_backups = 5
[program:bootstrap-agent]
; auto-bootstrap the agent before automated-iut boots up
command = sh -c "sleep 4;/usr/bin/python3 -m coap_testing_tool.agent.utils.bootstrap_agent coap_client_agent bbbb :1"
autorestart=false
stopsignal=INT
stopasgroup=true
loglevel=debug
; for sending logs to docker
stdout_logfile=/dev/stdout
stdout_logfile_maxbytes=0
stderr_logfile=/dev/stderr
stderr_logfile_maxbytes=0
;redirect_stderr=true
;stdout_logfile = /var/log/bootstrap_agent-stdout.log
[program:automated-iut]
command = sh -c "sleep 6;/usr/bin/python3 -m automated_IUTs.coap_client_coapthon.automated_iut"
autorestart=false
......
......@@ -10,18 +10,22 @@ RUN apt-get -y install supervisor
RUN apt-get -y install iputils-ping
RUN apt-get -y install net-tools
# upgrade pip
RUN python -m pip install --upgrade pip
RUN python3 -m pip install --upgrade pip
# requirement for californium
RUN apt-get -y install default-jre
RUN apt-get -y install default-jre --fix-missing
ADD . /coap_testing_tool
ENV PATH="/coap_testing_tool:$PATH"
WORKDIR /coap_testing_tool
ADD . /ioppytest
ENV PATH="/ioppytest:$PATH"
WORKDIR /ioppytest
#py2 requirements
RUN pip install -r coap_testing_tool/agent/requirements.txt
RUN python -m pip install -r ioppytest/agent/requirements.txt
#py3 requierements
RUN pip3 install pika
RUN python3 -m pip install pika
#RUN cp automated_IUTs/coap_server_californium/supervisor.conf supervisor.conf
......
......@@ -3,11 +3,12 @@
import os
import subprocess
from coap_testing_tool import TMPDIR
from automated_IUTs import COAP_SERVER_PORT, COAP_SERVER_HOST, COAP_CLIENT_HOST
from ioppytest import TMPDIR
from automated_IUTs import COAP_SERVER_PORT, COAP_SERVER_HOST, COAP_CLIENT_HOST, LOG_LEVEL
from automated_IUTs.automation import *
logger = logging.getLogger()
logger.setLevel(LOG_LEVEL)
# timeout in seconds
STIMULI_HANDLER_TOUT = 3600
......@@ -58,7 +59,6 @@ class CaliforniumCoapServer(AutomatedIUT):
return server_base_url
if __name__ == '__main__':
logging.basicConfig(format='%(levelname)s:%(message)s', level=logging.INFO)
iut = CaliforniumCoapServer()
iut.start()
iut.join()
......@@ -18,8 +18,14 @@ supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface
serverurl=unix:///tmp/supervisor.sock ; use a unix:// URL for a unix socket
[program:agent]
directory= ./coap_testing_tool/agent/
command = sh -c "sleep 1;python -m agent connect --url %(ENV_AMQP_URL)s --exchange %(ENV_AMQP_EXCHANGE)s --name coap_server_agent"
directory= ./ioppytest/agent/
command = python -m agent connect
--url %(ENV_AMQP_URL)s
--exchange %(ENV_AMQP_EXCHANGE)s
--name coap_server
--force-bootstrap
--ipv6-prefix bbbb
--ipv6-host 2
user=root
stopsignal=INT
stopasgroup=true
......@@ -31,27 +37,10 @@ stdout_logfile_maxbytes=0
stderr_logfile=/dev/stderr
stderr_logfile_maxbytes=0
;redirect_stderr=true
;stdout_logfile = /var/log/agent-coap_server_agent-stdout.log
;stdout_logfile = /var/log/agent-coap_server-stdout.log
;stdout_logfile_maxbytes = 10MB
;stdout_logfile_backups = 5
[program:bootstrap-agent]
; auto-bootstrap the agent before automated-iut boots up
command = sh -c "sleep 3;/usr/bin/python3 -m coap_testing_tool.agent.utils.bootstrap_agent coap_server_agent bbbb :2"
autorestart=false
stopsignal=INT
stopasgroup=true
loglevel=debug
; for sending logs to docker
stdout_logfile=/dev/stdout
stdout_logfile_maxbytes=0
stderr_logfile=/dev/stderr
stderr_logfile_maxbytes=0
;redirect_stderr=true
;stdout_logfile = /var/log/bootstrap_agent-stdout.log
[program:automated-iut]
command = sh -c "sleep 9;/usr/bin/python3 -m automated_IUTs.coap_server_californium.automated_iut"
autorestart=true
......
/Users/fsismondi/git/coap_testing_tool/automated_IUTs/coap_server_californium/src/main/java/fr/inria/Main.java
/Users/fsismondi/git/ioppytest/automated_IUTs/coap_server_californium/src/main/java/fr/inria/Main.java
FROM ubuntu:16.04
MAINTAINER federico.sismondi@inria.fr
# docker build -t automated-iut-coap-server-coapthon-v01 ./coap_testing_tool/automated_implementations/coap_server_coapthon/
RUN apt-get update -y -qq && apt-get -y -qq install python3-dev
RUN apt-get -y install python3-setuptools
RUN apt-get -y install python3-pip
......@@ -11,16 +9,20 @@ RUN apt-get -y install supervisor
RUN apt-get -y install iputils-ping
RUN apt-get -y install net-tools
ADD . /coap_testing_tool
ENV PATH="/coap_testing_tool:$PATH"
WORKDIR /coap_testing_tool
# upgrade pip
RUN python -m pip install --upgrade pip
RUN python3 -m pip install --upgrade pip
ADD . /ioppytest
ENV PATH="/ioppytest:$PATH"
WORKDIR /ioppytest
#py2 requirements
RUN pip install -r coap_testing_tool/agent/requirements.txt
RUN python -m pip install -r ioppytest/agent/requirements.txt
#py3 requirements
RUN pip3 install -r automated_IUTs/coap_server_coapthon/CoAPthon/requirements.txt
RUN pip3 install -r automated_IUTs/coap_server_coapthon/requirements.txt
RUN python3 -m pip install -r automated_IUTs/coap_server_coapthon/CoAPthon/requirements.txt
RUN python3 -m pip install -r automated_IUTs/coap_server_coapthon/requirements.txt
RUN cp automated_IUTs/coap_server_coapthon/supervisor.conf supervisor.conf
......
# -*- coding: utf-8 -*-
# !/usr/bin/env python3
import subprocess
from ioppytest import TMPDIR
from automated_IUTs.automation import *
from automated_IUTs import COAP_SERVER_HOST, COAP_SERVER_PORT, COAP_CLIENT_HOST
from automated_IUTs import COAP_SERVER_HOST, COAP_SERVER_PORT, COAP_CLIENT_HOST, LOG_LEVEL
logger = logging.getLogger()
logger.setLevel(logging.INFO)
# timeout in seconds
STIMULI_HANDLER_TOUT = 10
......@@ -13,31 +16,67 @@ server_base_url = 'coap://[%s]:%s' % (COAP_SERVER_HOST, COAP_SERVER_PORT)
coap_host_address = COAP_CLIENT_HOST
class CoapthonCoapServer(AutomatedIUT):
class CoapthonCoapServerIPv6(AutomatedIUT):
component_id = 'automated_iut-coap_server-coapthon'
node = 'coap_server'
IUT_CMD = [
iut_cmd = [
'python',
'automated_IUTs/coap_server_coapthon/CoAPthon/plugtest_coapserver.py ',
'automated_IUTs/coap_server_coapthon/CoAPthon/plugtest_coapserver.py',
'-i',
'::1',
'-p',
'5683',
]
def __init__(self):
self.process_log_file = os.path.join(TMPDIR, self.component_id + self.__class__.__name__ + '.log')
super().__init__(self.node)
logging.info('starting %s [ %s ]' % (self.node, self.component_id))
# process is spawned by supervisord
logging.info('spawning process %s' % str(self.iut_cmd))
self.th = threading.Thread(target=self._launch_automated_iut)
self.th.daemon = True
self.th.start()
def _execute_verify(self, verify_step_id, ):
logging.warning('Ignoring: %s. No auto-iut mechanism for verify step implemented.' % verify_step_id)
def _execute_configuration(self, testcase_id, node):
# shoud we restart californium process?
return server_base_url
def _execute_stimuli(self, stimuli_step_id, cmd, addr):
pass
def _launch_automated_iut(self):
# att this is a blocking function
logging.info('IUT-automated process logging into %s' % self.process_log_file)
with open(self.process_log_file, "w") as outfile:
subprocess.call(self.iut_cmd, stdout=outfile)
class CoapthonCoapServerIPv4(CoapthonCoapServerIPv6):
component_id = 'automated_iut-coap_server-coapthon'
node = 'coap_server'
iut_cmd = [
'python',
'automated_IUTs/coap_server_coapthon/CoAPthon/plugtest_coapserver.py',
'-i',
'127.0.0.1',
'-p',
'5683',
]
if __name__ == '__main__':
logging.basicConfig(format='%(levelname)s:%(message)s', level=logging.INFO)
iut = CoapthonCoapServer()
iut.start()
iut.join()
\ No newline at end of file
logger.info('Starting IUT process')
logger.info('IUT process init')
iut_v4 = CoapthonCoapServerIPv4()
iut_v6 = CoapthonCoapServerIPv6()
logger.info('IUT process starting..')
iut_v4.start()
iut_v6.start()
logger.info('IUT process stopping..')
iut_v6.join()
iut_v4.join()
logger.info('IUT process finished. Bye!..')
\ No newline at end of file
......@@ -18,28 +18,24 @@ supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface
serverurl=unix:///tmp/supervisor.sock ; use a unix:// URL for a unix socket
[program:agent]
directory= ./coap_testing_tool/agent/
command = sh -c "sleep 1;python -m agent connect --url %(ENV_AMQP_URL)s --exchange %(ENV_AMQP_EXCHANGE)s --name coap_server_agent"
directory= ./ioppytest/agent/
command = python -m agent connect
--url %(ENV_AMQP_URL)s
--exchange %(ENV_AMQP_EXCHANGE)s
--name coap_server
--force-bootstrap
--ipv6-prefix bbbb
--ipv6-host 2
user=root
stopsignal=INT
stopasgroup=true
autorestart=false
loglevel=debug
redirect_stderr=true
stdout_logfile = /var/log/agent-coap_server_agent-stdout.log
stdout_logfile = /var/log/agent-coap_server-stdout.log
stdout_logfile_maxbytes = 10MB
stdout_logfile_backups = 5
[program:bootstrap-agent]
; auto-bootstrap the agent before automated-iut boots up
command = sh -c "sleep 4;/usr/bin/python3 -m coap_testing_tool.agent.utils.bootstrap_agent coap_server_agent bbbb :2"
autorestart=false
stopsignal=INT
stopasgroup=true
loglevel=debug
redirect_stderr=true
stdout_logfile = /var/log/bootstrap_agent-stdout.log
[program:automated-iut]
command = sh -c "sleep 6;/usr/bin/python3 -m automated_IUTs.coap_server_coapthon.automated_iut"
autorestart=true
......
FROM ubuntu:16.04
MAINTAINER tanguy.ropitault@gmail.com
RUN apt-get update && apt-get install -y --no-install-recommends apt-utils
RUN apt-get update -y -qq && apt-get -y -qq install python3-dev
RUN apt-get -y install python3-setuptools
RUN apt-get -y install python3-pip
RUN apt-get -y install python-pip
RUN apt-get -y install supervisor
RUN apt-get -y install iputils-ping
RUN apt-get -y install net-tools