Commit 46c8db28 authored by Federico Sismondi's avatar Federico Sismondi

renamed coap_testing_tool by ioppytest

parent e10262d3
[submodule "coap_testing_tool/test_analysis_tool"]
path = coap_testing_tool/test_analysis_tool
[submodule "ioppytest/test_analysis_tool"]
path = ioppytest/test_analysis_tool
url = https://gitlab.f-interop.eu/fsismondi/ttproto.git
branch = master
[submodule "coap_testing_tool/agent"]
path = coap_testing_tool/agent
[submodule "ioppytest/agent"]
path = ioppytest/agent
url = https://gitlab.f-interop.eu/f-interop-contributors/agent.git
branch = master
[submodule "coap_testing_tool/utils"]
path = coap_testing_tool/utils
[submodule "ioppytest/utils"]
path = ioppytest/utils
url = https://gitlab.f-interop.eu/f-interop-contributors/utils.git
branch = master
[submodule "automated_IUTs/coap_client_coapthon/CoAPthon"]
......
......@@ -54,7 +54,7 @@ if(env.JOB_NAME =~ 'ioppytest/'){
gitlabCommitStatus("unittesting git submodules"){
sh '''
echo $AMQP_URL
cd coap_testing_tool/test_analysis_tool
cd ioppytest/test_analysis_tool
pwd
python3 -m pytest -p no:cacheprovider tests/test_core --ignore=tests/test_core/test_dissector/test_dissector_6lowpan.py
'''
......@@ -65,9 +65,9 @@ if(env.JOB_NAME =~ 'ioppytest/'){
gitlabCommitStatus("unittesting components"){
sh '''
echo AMQP params: { url: $AMQP_URL , exchange: $AMQP_EXCHANGE}
python3 -m pytest -p no:cacheprovider coap_testing_tool/extended_test_descriptions/tests/tests.py
python3 -m pytest -p no:cacheprovider coap_testing_tool/test_coordinator/tests/tests.py
python3 -m pytest -p no:cacheprovider coap_testing_tool/packet_router/tests/tests.py
python3 -m pytest -p no:cacheprovider ioppytest/extended_test_descriptions/tests/tests.py
python3 -m pytest -p no:cacheprovider ioppytest/test_coordinator/tests/tests.py
python3 -m pytest -p no:cacheprovider ioppytest/packet_router/tests/tests.py
'''
}
}
......
......@@ -14,7 +14,7 @@ docker-build-all:
run-cli:
@echo "Using AMQP env vars: {url : $(AMQP_URL), exchange : $(AMQP_EXCHANGE)}"
@python3 -m coap_testing_tool.utils.interop_cli repl
@python3 -m ioppytest.utils.interop_cli repl
run-coap-testing-tool:
@echo "Using env vars:"
......@@ -24,11 +24,11 @@ run-coap-testing-tool:
run-agent-coap-client:
$(MAKE) _check-sudo
cd coap_testing_tool/agent && python agent.py connect --url $(AMQP_URL) --exchange $(AMQP_EXCHANGE) --name coap_client_agent
cd ioppytest/agent && python agent.py connect --url $(AMQP_URL) --exchange $(AMQP_EXCHANGE) --name coap_client_agent
run-agent-coap-server:
$(MAKE) _check-sudo
cd coap_testing_tool/agent && python agent.py connect --url $(AMQP_URL) --exchange $(AMQP_EXCHANGE) --name coap_client_server
cd ioppytest/agent && python agent.py connect --url $(AMQP_URL) --exchange $(AMQP_EXCHANGE) --name coap_client_server
run-coap-client:
@echo "Using env vars:"
......@@ -72,15 +72,15 @@ get-logs:
install-python-dependencies:
@echo 'installing py2 dependencies...'
@python -m pip -qq install -r coap_testing_tool/agent/requirements.txt
@python -m pip -qq install -r ioppytest/agent/requirements.txt
@echo 'installing py3 dependencies...'
@python3 -m pip -qq install pytest
@python3 -m pip -qq install -r coap_testing_tool/test_coordinator/requirements.txt
@python3 -m pip -qq install -r coap_testing_tool/test_analysis_tool/requirements.txt
@python3 -m pip -qq install -r coap_testing_tool/packet_router/requirements.txt
@python3 -m pip -qq install -r coap_testing_tool/sniffer/requirements.txt
@python3 -m pip -qq install -r coap_testing_tool/webserver/requirements.txt
@python3 -m pip -qq install -r coap_testing_tool/utils/requirements.txt
@python3 -m pip -qq install -r ioppytest/test_coordinator/requirements.txt
@python3 -m pip -qq install -r ioppytest/test_analysis_tool/requirements.txt
@python3 -m pip -qq install -r ioppytest/packet_router/requirements.txt
@python3 -m pip -qq install -r ioppytest/sniffer/requirements.txt
@python3 -m pip -qq install -r ioppytest/webserver/requirements.txt
@python3 -m pip -qq install -r ioppytest/utils/requirements.txt
_check-sudo:
......
......@@ -305,8 +305,8 @@ docker run -it
testing_tool-interoperability-coap
bash
root@bab3b2220510:/coap_testing_tool# supervisord -c supervisor.conf
root@bab3b2220510:/coap_testing_tool# supervisorctl -c supervisor.conf
root@bab3b2220510:/ioppytest# supervisord -c supervisor.conf
root@bab3b2220510:/ioppytest# supervisorctl -c supervisor.conf
agent RUNNING pid 28, uptime 0:00:02
automated-iut STARTING
bootstrap-agent-TT RUNNING pid 19, uptime 0:00:02
......
......@@ -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')
......
......@@ -13,9 +13,9 @@ import signal
import logging
import threading
from coap_testing_tool.utils.messages import *
from coap_testing_tool.utils.amqp_synch_call import publish_message
from coap_testing_tool import AMQP_URL, AMQP_EXCHANGE, INTERACTIVE_SESSION, RESULTS_DIR
from ioppytest.utils.messages import *
from ioppytest.utils.amqp_synch_call import publish_message
from ioppytest import AMQP_URL, AMQP_EXCHANGE, INTERACTIVE_SESSION, RESULTS_DIR
......
......@@ -17,12 +17,12 @@ 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 python -m pip install -r coap_testing_tool/agent/requirements.txt
RUN python -m pip install -r ioppytest/agent/requirements.txt
#py3 requierements
RUN python3 -m pip install pika
......
......@@ -18,7 +18,7 @@ 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/
directory= ./ioppytest/agent/
command = sh -c "sleep 1;python -m agent connect --url %(ENV_AMQP_URL)s --exchange %(ENV_AMQP_EXCHANGE)s --name coap_client_agent"
user=root
stopsignal=INT
......@@ -38,7 +38,7 @@ stderr_logfile_maxbytes=0
[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"
command = sh -c "sleep 4;/usr/bin/python3 -m ioppytest.agent.utils.bootstrap_agent coap_client_agent bbbb :1"
autorestart=false
stopsignal=INT
stopasgroup=true
......
......@@ -13,12 +13,12 @@ RUN apt-get -y install net-tools
RUN python -m pip install --upgrade pip
RUN python3 -m pip install --upgrade pip
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 python -m pip install -r coap_testing_tool/agent/requirements.txt
RUN python -m pip install -r ioppytest/agent/requirements.txt
#py3 requirements
RUN python3 -m pip install -r automated_IUTs/coap_client_coapthon/CoAPthon/requirements.txt
......
......@@ -18,7 +18,7 @@ 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/
directory= ./ioppytest/agent/
command = sh -c "sleep 1;python -m agent connect --url %(ENV_AMQP_URL)s --exchange %(ENV_AMQP_EXCHANGE)s --name coap_client_agent"
user=root
stopsignal=INT
......@@ -37,7 +37,7 @@ stderr_logfile_maxbytes=0
[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"
command = sh -c "sleep 4;/usr/bin/python3 -m ioppytest.agent.utils.bootstrap_agent coap_client_agent bbbb :1"
autorestart=false
stopsignal=INT
stopasgroup=true
......
......@@ -17,12 +17,12 @@ RUN python3 -m pip install --upgrade pip
# requirement for californium
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 python -m pip install -r coap_testing_tool/agent/requirements.txt
RUN python -m pip install -r ioppytest/agent/requirements.txt
#py3 requierements
RUN python3 -m pip install pika
......
......@@ -3,7 +3,7 @@
import os
import subprocess
from coap_testing_tool import TMPDIR
from ioppytest import TMPDIR
from automated_IUTs import COAP_SERVER_PORT, COAP_SERVER_HOST, COAP_CLIENT_HOST
from automated_IUTs.automation import *
......
......@@ -18,7 +18,7 @@ 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/
directory= ./ioppytest/agent/
command = sh -c "sleep 1;python -m agent connect --url %(ENV_AMQP_URL)s --exchange %(ENV_AMQP_EXCHANGE)s --name coap_server_agent"
user=root
stopsignal=INT
......@@ -38,7 +38,7 @@ stderr_logfile_maxbytes=0
[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"
command = sh -c "sleep 3;/usr/bin/python3 -m ioppytest.agent.utils.bootstrap_agent coap_server_agent bbbb :2"
autorestart=false
stopsignal=INT
stopasgroup=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
......@@ -15,12 +13,12 @@ RUN apt-get -y install net-tools
RUN python -m pip install --upgrade pip
RUN python3 -m pip install --upgrade pip
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 python -m pip install -r coap_testing_tool/agent/requirements.txt
RUN python -m pip install -r ioppytest/agent/requirements.txt
#py3 requirements
RUN python3 -m pip install -r automated_IUTs/coap_server_coapthon/CoAPthon/requirements.txt
......
......@@ -18,7 +18,7 @@ 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/
directory= ./ioppytest/agent/
command = sh -c "sleep 1;python -m agent connect --url %(ENV_AMQP_URL)s --exchange %(ENV_AMQP_EXCHANGE)s --name coap_server_agent"
user=root
stopsignal=INT
......@@ -32,7 +32,7 @@ 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"
command = sh -c "sleep 4;/usr/bin/python3 -m ioppytest.agent.utils.bootstrap_agent coap_server_agent bbbb :2"
autorestart=false
stopsignal=INT
stopasgroup=true
......
agent @ accc772f
Subproject commit accc772ff99cc70117cd8beff56b972a4b9b05f7
test_analysis_tool @ 0e4d9b16
Subproject commit 0e4d9b16f6a72aa6f4b804c7b273ea8a81470ec7
utils @ 7ca44404
Subproject commit 7ca44404156570be361f1bad073e50c6c4bbc069
......@@ -13,16 +13,16 @@ RUN apt-get -y -qq install net-tools
# upgrade pip
RUN python3 -m pip install --upgrade pip
ADD . /coap_testing_tool
ENV PATH="/coap_testing_tool:$PATH"
WORKDIR /coap_testing_tool
ADD . /ioppytest
ENV PATH="/ioppytest:$PATH"
WORKDIR /ioppytest
#installing py3 dependencies
RUN python3 -m pip install -r coap_testing_tool/test_coordinator/requirements.txt --upgrade
RUN python3 -m pip install -r coap_testing_tool/test_analysis_tool/requirements.txt --upgrade
RUN python3 -m pip install -r coap_testing_tool/packet_router/requirements.txt --upgrade
RUN python3 -m pip install -r coap_testing_tool/sniffer/requirements.txt --upgrade
RUN python3 -m pip install -r coap_testing_tool/webserver/requirements.txt --upgrade
RUN python3 -m pip install -r ioppytest/test_coordinator/requirements.txt --upgrade
RUN python3 -m pip install -r ioppytest/test_analysis_tool/requirements.txt --upgrade
RUN python3 -m pip install -r ioppytest/packet_router/requirements.txt --upgrade
RUN python3 -m pip install -r ioppytest/sniffer/requirements.txt --upgrade
RUN python3 -m pip install -r ioppytest/webserver/requirements.txt --upgrade
#RUN groupadd -g 500 coap && useradd -u 500 -g 500 coap
#USER coap
......
......@@ -14,7 +14,7 @@ supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface
serverurl=unix:///tmp/supervisor.sock ; use a unix:// URL for a unix socket
[program:test-coordinator]
command = python3 -m coap_testing_tool.test_coordinator 6lowpan -ncc
command = python3 -m ioppytest.test_coordinator 6lowpan -ncc
autorestart=false
stopsignal=INT
stopasgroup=true
......@@ -30,7 +30,7 @@ stdout_logfile_maxbytes = 10MB
stdout_logfile_backups = 5
[program:tat]
directory= ./coap_testing_tool/test_analysis_tool
directory= ./ioppytest/test_analysis_tool
command = sh -c "sleep 2;python3 -m ttproto --protocol coap --dissector --interface amqp "
autorestart=false
stopsignal=INT
......@@ -48,7 +48,7 @@ stdout_logfile_backups = 5
[program:packet-router]
command = sh -c "sleep 5;python3 -m coap_testing_tool.packet_router.packet_router"
command = sh -c "sleep 5;python3 -m ioppytest.packet_router.packet_router"
autorestart=false
stopsignal=INT
stopasgroup=true
......@@ -65,8 +65,8 @@ stdout_logfile_backups = 5
[program:packet-sniffer]
; this should be deprecated in favour of using new packet sniffer and launched as: python3 -m coap_testing_tool.sniffer.packet_sniffer
command = sh -c "sleep 5;python3 -m coap_testing_tool.utils.packet_dumper"
; this should be deprecated in favour of using new packet sniffer and launched as: python3 -m ioppytest.sniffer.packet_sniffer
command = sh -c "sleep 5;python3 -m ioppytest.utils.packet_dumper"
stopsignal=INT
stopasgroup=true
autorestart=false
......@@ -82,7 +82,7 @@ stdout_logfile_backups = 5
redirect_stderr=true
[program:webserver]
command = sh -c "sleep 5;python3 -m coap_testing_tool.webserver"
command = sh -c "sleep 5;python3 -m ioppytest.webserver"
stopsignal=INT
stopasgroup=true
;autorestart=false
......
......@@ -14,7 +14,7 @@ supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface
serverurl=unix:///tmp/supervisor.sock ; use a unix:// URL for a unix socket
[program:test-coordinator]
command = python3 -m coap_testing_tool.test_coordinator 6lowpan -ncc
command = python3 -m ioppytest.test_coordinator 6lowpan -ncc
autorestart=false
stopsignal=INT
stopasgroup=true
......@@ -30,7 +30,7 @@ stdout_logfile_maxbytes = 10MB
stdout_logfile_backups = 5
[program:tat]
directory= ./coap_testing_tool/test_analysis_tool
directory= ./ioppytest/test_analysis_tool
command = sh -c "sleep 3;python3 -m ttproto --dissector --interface amqp --protocol coap "
autorestart=false
stopsignal=INT
......@@ -47,7 +47,7 @@ stdout_logfile_maxbytes = 10MB
stdout_logfile_backups = 5
[program:packet-router]
command = sh -c "sleep 5;python3 -m coap_testing_tool.packet_router.packet_router"
command = sh -c "sleep 5;python3 -m ioppytest.packet_router.packet_router"
autorestart=false
stopsignal=INT
stopasgroup=true
......@@ -63,8 +63,8 @@ stdout_logfile_maxbytes = 10MB
stdout_logfile_backups = 5
[program:packet-sniffer]
; this should be deprecated in favour of using new packet sniffer and launched as: python3 -m coap_testing_tool.sniffer.packet_sniffer
command = sh -c "sleep 5;python3 -m coap_testing_tool.utils.packet_dumper"
; this should be deprecated in favour of using new packet sniffer and launched as: python3 -m ioppytest.sniffer.packet_sniffer
command = sh -c "sleep 5;python3 -m ioppytest.utils.packet_dumper"
user=root
stopsignal=INT
stopasgroup=true
......@@ -81,7 +81,7 @@ stdout_logfile_backups = 5
redirect_stderr=true
[program:webserver]
command = sh -c "sleep 5;python3 -m coap_testing_tool.webserver"
command = sh -c "sleep 5;python3 -m ioppytest.webserver"
stopsignal=INT
stopasgroup=true
;autorestart=false
......
......@@ -14,7 +14,7 @@ supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface
serverurl=unix:///tmp/supervisor.sock ; use a unix:// URL for a unix socket
[program:test-coordinator]
command = python3 -m coap_testing_tool.test_coordinator 6lowpan -ncc
command = python3 -m ioppytest.test_coordinator 6lowpan -ncc
autorestart=false
stopsignal=INT
stopasgroup=true
......@@ -26,7 +26,7 @@ stderr_logfile=/dev/stderr
stderr_logfile_maxbytes=0
[program:tat]
directory= ./coap_testing_tool/test_analysis_tool
directory= ./ioppytest/test_analysis_tool
command = sh -c "sleep 3;python3 -m ttproto --dissector --interface amqp --protocol coap "
autorestart=false
stopsignal=INT
......@@ -39,7 +39,7 @@ stderr_logfile=/dev/stderr
stderr_logfile_maxbytes=0
[program:packet-router]
command = sh -c "sleep 5;python3 -m coap_testing_tool.packet_router.packet_router"
command = sh -c "sleep 5;python3 -m ioppytest.packet_router.packet_router"
autorestart=false
stopsignal=INT
stopasgroup=true
......@@ -51,8 +51,8 @@ stderr_logfile=/dev/stderr
stderr_logfile_maxbytes=0
[program:packet-sniffer]
; this should be deprecated in favour of using new packet sniffer and launched as: python3 -m coap_testing_tool.sniffer.packet_sniffer
command = sh -c "sleep 5;python3 -m coap_testing_tool.utils.packet_dumper"
; this should be deprecated in favour of using new packet sniffer and launched as: python3 -m ioppytest.sniffer.packet_sniffer
command = sh -c "sleep 5;python3 -m ioppytest.utils.packet_dumper"
user=root
stopsignal=INT
stopasgroup=true
......
......@@ -15,22 +15,22 @@ RUN apt-get -y -qq install net-tools
RUN python -m pip install --upgrade pip
RUN python3 -m pip install --upgrade pip
ADD . /coap_testing_tool
ENV PATH="/coap_testing_tool:$PATH"
WORKDIR /coap_testing_tool
ADD . /ioppytest
ENV PATH="/ioppytest:$PATH"
WORKDIR /ioppytest
# HACK to avoid "cannot open shared object file: Permission denied" , see https://github.com/dotcloud/docker/issues/5490
RUN mv /usr/sbin/tcpdump /usr/bin/tcpdump
#installing py2 dependencies
RUN python -m pip install -r coap_testing_tool/agent/requirements.txt --upgrade
RUN python -m pip install -r ioppytest/agent/requirements.txt --upgrade
#installing py3 dependencies
RUN python3 -m pip install -r coap_testing_tool/test_coordinator/requirements.txt --upgrade
RUN python3 -m pip install -r coap_testing_tool/test_analysis_tool/requirements.txt --upgrade
RUN python3 -m pip install -r coap_testing_tool/packet_router/requirements.txt --upgrade
RUN python3 -m pip install -r coap_testing_tool/sniffer/requirements.txt --upgrade
RUN python3 -m pip install -r coap_testing_tool/webserver/requirements.txt --upgrade
RUN python3 -m pip install -r ioppytest/test_coordinator/requirements.txt --upgrade
RUN python3 -m pip install -r ioppytest/test_analysis_tool/requirements.txt --upgrade
RUN python3 -m pip install -r ioppytest/packet_router/requirements.txt --upgrade
RUN python3 -m pip install -r ioppytest/sniffer/requirements.txt --upgrade
RUN python3 -m pip install -r ioppytest/webserver/requirements.txt --upgrade
#RUN groupadd -g 500 coap && useradd -u 500 -g 500 coap
#USER coap
......
......@@ -14,7 +14,7 @@ supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface
serverurl=unix:///tmp/supervisor.sock ; use a unix:// URL for a unix socket
[program:test-coordinator]
command = python3 -m coap_testing_tool.test_coordinator coap
command = python3 -m ioppytest.test_coordinator coap
autorestart=false
stopsignal=INT
stopasgroup=true
......@@ -30,7 +30,7 @@ stdout_logfile_maxbytes = 10MB
stdout_logfile_backups = 5
[program:agent]
directory= ./coap_testing_tool/agent/
directory= ./ioppytest/agent/
command = sh -c "sleep 1;python -m agent connect --url %(ENV_AMQP_URL)s --exchange %(ENV_AMQP_EXCHANGE)s --name agent_TT"
user=root
stopsignal=INT
......@@ -48,7 +48,7 @@ stdout_logfile_maxbytes = 10MB
stdout_logfile_backups = 5
[program:tat]
directory= ./coap_testing_tool/test_analysis_tool
directory= ./ioppytest/test_analysis_tool
command = sh -c "sleep 2;python3 -m ttproto --protocol coap --dissector --interface amqp "
autorestart=false
stopsignal=INT
......@@ -66,7 +66,7 @@ stdout_logfile_backups = 5
[program:bootstrap-agent-TT]
; we auto bootstrap the agent
command = sh -c "sleep 4;python3 -m coap_testing_tool.agent.utils.bootstrap_agent agent_TT bbbb :3 --no_forwarding"
command = sh -c "sleep 4;python3 -m ioppytest.agent.utils.bootstrap_agent agent_TT bbbb :3 --no_forwarding"
autorestart=false
stopsignal=INT
stopasgroup=true
......@@ -80,7 +80,7 @@ stderr_logfile_maxbytes=0
;stdout_logfile = /var/log/bootstrap_agent_TT-stdout.log
[program:packet-router]
command = sh -c "sleep 5;python3 -m coap_testing_tool.packet_router.packet_router"
command = sh -c "sleep 5;python3 -m ioppytest.packet_router.packet_router"
autorestart=false
stopsignal=INT
stopasgroup=true
......@@ -96,7 +96,7 @@ stdout_logfile_maxbytes = 10MB
stdout_logfile_backups = 5
[program:packet-sniffer]
command = sh -c "sleep 5;python3 -m coap_testing_tool.sniffer.packet_sniffer"
command = sh -c "sleep 5;python3 -m ioppytest.sniffer.packet_sniffer"
user=root
stopsignal=INT
stopasgroup=true
......@@ -113,7 +113,7 @@ stdout_logfile_backups = 5
redirect_stderr=true
[program:webserver]
command = sh -c "sleep 5;python3 -m coap_testing_tool.webserver"
command = sh -c "sleep 5;python3 -m ioppytest.webserver"
stopsignal=INT
stopasgroup=true
;autorestart=false
......
......@@ -14,7 +14,7 @@ supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface
serverurl=unix:///tmp/supervisor.sock ; use a unix:// URL for a unix socket
[program:test-coordinator]
command = python3 -m coap_testing_tool.test_coordinator coap
command = python3 -m ioppytest.test_coordinator coap
autorestart=false
stopsignal=INT
stopasgroup=true
......@@ -25,7 +25,7 @@ stdout_logfile_maxbytes = 10MB
stdout_logfile_backups = 5
[program:agent]
directory= ./coap_testing_tool/agent/
directory= ./ioppytest/agent/
command = sh -c "sleep 3;python -m agent connect --url %(ENV_AMQP_URL)s --exchange %(ENV_AMQP_EXCHANGE)s --name agent_TT"
user=root
stopsignal=INT
......@@ -38,7 +38,7 @@ stdout_logfile_maxbytes = 10MB
stdout_logfile_backups = 5
[program:tat]
directory= ./coap_testing_tool/test_analysis_tool
directory= ./ioppytest/test_analysis_tool
command = sh -c "sleep 3;python3 -m ttproto --dissector --interface amqp --protocol coap "
autorestart=false
stopsignal=INT
......@@ -51,7 +51,7 @@ stdout_logfile_backups = 5
[program:bootstrap-agent-TT]
; we auto bootstrap the agent
command = sh -c "sleep 5;python3 -m coap_testing_tool.agent.utils.bootstrap_agent agent_TT bbbb :3 --no_forwarding"
command = sh -c "sleep 5;python3 -m ioppytest.agent.utils.bootstrap_agent agent_TT bbbb :3 --no_forwarding"
autorestart=false
stopsignal=INT
stopasgroup=false
......@@ -62,7 +62,7 @@ stdout_logfile_maxbytes = 10MB
stdout_logfile_backups = 5
[program:packet-router]
command = sh -c "sleep 5;python3 -m coap_testing_tool.packet_router.packet_router"
command = sh -c "sleep 5;python3 -m ioppytest.packet_router.packet_router"
autorestart=false
stopsignal=INT
stopasgroup=true
......@@ -73,7 +73,7 @@ stdout_logfile_maxbytes = 10MB
stdout_logfile_backups = 5
[program:packet-sniffer]
command = sh -c "sleep 5;python3 -m coap_testing_tool.sniffer.packet_sniffer"
command = sh -c "sleep 5;python3 -m ioppytest.sniffer.packet_sniffer"
user=root
stopsignal=INT
stopasgroup=true
......@@ -85,7 +85,7 @@ stdout_logfile_backups = 5
redirect_stderr=true
[program:webserver]
command = sh -c "sleep 5;python3 -m coap_testing_tool.webserver"
command = sh -c "sleep 5;python3 -m ioppytest.webserver"
stopsignal=INT
stopasgroup=true
;autorestart=false
......
......@@ -14,7 +14,7 @@ supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface
serverurl=unix:///tmp/supervisor.sock ; use a unix:// URL for a unix socket
[program:test-coordinator]
command = /usr/bin/python3 -m coap_testing_tool.test_coordinator coap
command = /usr/bin/python3 -m ioppytest.test_coordinator coap
autorestart=false
stopsignal=INT
stopasgroup=true
......@@ -26,7 +26,7 @@ stderr_logfile=/dev/stderr
stderr_logfile_maxbytes=0
[program:agent]
directory= ./coap_testing_tool/agent/
directory= ./ioppytest/agent/
command = sh -c "sleep 3;python -m agent connect --url %(ENV_AMQP_URL)s --exchange %(ENV_AMQP_EXCHANGE)s --name agent_TT"
user=root
stopsignal=INT
......@@ -40,7 +40,7 @@ stderr_logfile=/dev/stderr
stderr_logfile_maxbytes=0
[program:tat]
directory= ./coap_testing_tool/test_analysis_tool
directory= ./ioppytest/test_analysis_tool
command = sh -c "sleep 3;/usr/bin/python3 -m ttproto --dissector --interface amqp --protocol coap "
autorestart=false
stopsignal=INT
......@@ -54,7 +54,7 @@ stderr_logfile_maxbytes=0
[program:bootstrap-agent-TT]
; we auto bootstrap the agent
command = sh -c "sleep 5;/usr/bin/python3 -m coap_testing_tool.agent.utils.bootstrap_agent agent_TT bbbb :3 --no_forwarding"
command = sh -c "sleep 5;/usr/bin/python3 -m ioppytest.agent.utils.bootstrap_agent agent_TT bbbb :3 --no_forwarding"
autorestart=false
stopsignal=INT
stopasgroup=false
......@@ -66,7 +66,7 @@ stderr_logfile=/dev/stderr
stderr_logfile_maxbytes=0
[program:packet-router]
command = sh -c "sleep 5;/usr/bin/python3 -m coap_testing_tool.packet_router.packet_router"
command = sh -c "sleep 5;/usr/bin/python3 -m ioppytest.packet_router.packet_router"
autorestart=false
stopsignal=INT
stopasgroup=true
......@@ -78,7 +78,7 @@ stderr_logfile=/dev/stderr
stderr_logfile_maxbytes=0
[program:packet-sniffer]
command = sh -c "sleep 5;/usr/bin/python3 -m coap_testing_tool.sniffer.packet_sniffer"
command = sh -c "sleep 5;/usr/bin/python3 -m ioppytest.sniffer.packet_sniffer"
user=root
stopsignal=INT
stopasgroup=true
......
......@@ -14,7 +14,7 @@ __version__ = (0, 0, 6)
project_dir = os.path.abspath(os.path.join(os.path.realpath(__file__), os.pardir))
if os.sep + 'coap_testing_tool' in project_dir:
if os.sep + 'ioppytest' in project_dir:
project_dir = os.path.abspath(os.path.join(project_dir, os.pardir))
print('Project dir: %s' % project_dir)
......@@ -37,12 +37,12 @@ DATADIR = os.path.join(project_dir, 'data')
RESULTS_DIR = os.path.join(DATADIR, 'results')
PCAP_DIR = os.path.join(DATADIR, 'dumps')
LOGDIR = os.path.join(project_dir, 'log')
TD_DIR = os.path.join(project_dir, 'coap_testing_tool', 'extended_t