FORTH-ICS-INSPIRE / artemis

ARTEMIS: Real-Time Detection and Automatic Mitigation for BGP Prefix Hijacking. This is the main ARTEMIS repository that composes artemis-frontend, artemis-backend, artemis-monitor and other needed containers.
BSD 3-Clause "New" or "Revised" License
302 stars 44 forks source link

Fix coverage with new decoupled backend #483

Open vkotronis opened 3 years ago

vkotronis commented 3 years ago

Describe the bug current convert_coverage.sh script:

#!/bin/sh
docker cp backend:/root/core/.coverage .coverage
sed -i "s;/root/core/;${PWD}/backend/core/;g" .coverage
coverage xml --rcfile testing/.coveragerc

We need to account for the new modules, which are under backend-services

Structure is as follows:

backend-services/
├── service
│   ├── AUTHORS.md
│   ├── core
│   │   ├── service.py
│   │   └── __init__.py
│   ├── Dockerfile
│   ├── entrypoint
│   ├── LICENSE
│   ├── Makefile
│   ├── requirements.txt
│   └── wait-for
..........

where service = [autoignore, autostarter, configuration, database, detection, fileobserver, mitigation, notifier, prefixtree]

Affected Component(s)

Expected behavior Backend services need to be properly covered.

vkotronis commented 3 years ago

@slowr should I move this to another release?