diff --git a/manifests/l3_attackmitigatorservice.yaml b/manifests/l3_attackmitigatorservice.yaml index 34f660324066c7a06b8debff276ed5444027fe4e..2f5a2fc2499d9e8b6fcd3f6a9df473b9e2112dc6 100644 --- a/manifests/l3_attackmitigatorservice.yaml +++ b/manifests/l3_attackmitigatorservice.yaml @@ -1,15 +1,15 @@ apiVersion: apps/v1 kind: Deployment metadata: - name: l3_attackmitigatorservice + name: l3-attackmitigatorservice spec: selector: matchLabels: - app: l3_attackmitigatorservice + app: l3-attackmitigatorservice template: metadata: labels: - app: l3_attackmitigatorservice + app: l3-attackmitigatorservice spec: terminationGracePeriodSeconds: 5 containers: @@ -38,11 +38,11 @@ spec: apiVersion: v1 kind: Service metadata: - name: l3_attackmitigatorservice + name: l3-attackmitigatorservice spec: type: ClusterIP selector: - app: l3_attackmitigatorservice + app: l3-attackmitigatorservice ports: - name: grpc port: 10002 diff --git a/manifests/l3_centralizedattackdetectorservice.yaml b/manifests/l3_centralizedattackdetectorservice.yaml index 0393d83c29591d2fa4cc1a2b52abbcdc760de23a..52a831bebd0bf848a2203bd0fb0a6bcaf85ba853 100644 --- a/manifests/l3_centralizedattackdetectorservice.yaml +++ b/manifests/l3_centralizedattackdetectorservice.yaml @@ -1,15 +1,15 @@ apiVersion: apps/v1 kind: Deployment metadata: - name: l3_centralizedattackdetectorservice + name: l3-centralizedattackdetectorservice spec: selector: matchLabels: - app: l3_centralizedattackdetectorservice + app: l3-centralizedattackdetectorservice template: metadata: labels: - app: l3_centralizedattackdetectorservice + app: l3-centralizedattackdetectorservice spec: terminationGracePeriodSeconds: 5 containers: @@ -38,11 +38,11 @@ spec: apiVersion: v1 kind: Service metadata: - name: l3_centralizedattackdetectorservice + name: l3-centralizedattackdetectorservice spec: type: ClusterIP selector: - app: l3_centralizedattackdetectorservice + app: l3-centralizedattackdetectorservice ports: - name: grpc port: 10001 diff --git a/manifests/l3_distributedattackdetectorservice.yaml b/manifests/l3_distributedattackdetectorservice.yaml index eff047b1b97733f808df01a23a11a930515eb3e5..63f7dd5a08b2c1e7b02ddbaca9af20203f0c0c13 100644 --- a/manifests/l3_distributedattackdetectorservice.yaml +++ b/manifests/l3_distributedattackdetectorservice.yaml @@ -1,15 +1,15 @@ apiVersion: apps/v1 kind: Deployment metadata: - name: l3_distributedattackdetectorservice + name: l3-distributedattackdetectorservice spec: selector: matchLabels: - app: l3_distributedattackdetectorservice + app: l3-distributedattackdetectorservice template: metadata: labels: - app: l3_distributedattackdetectorservice + app: l3-distributedattackdetectorservice spec: terminationGracePeriodSeconds: 5 containers: @@ -38,11 +38,11 @@ spec: apiVersion: v1 kind: Service metadata: - name: l3_distributedattackdetectorservice + name: l3-distributedattackdetectorservice spec: type: ClusterIP selector: - app: l3_distributedattackdetectorservice + app: l3-distributedattackdetectorservice ports: - name: grpc port: 10000 diff --git a/src/webui/.gitlab-ci.yml b/src/webui/.gitlab-ci.yml index 3ecfbe5ea82e256c50cd644d4b5dcad5b87e087b..304b5190b93edae8bd950337888296d86b8d16d8 100644 --- a/src/webui/.gitlab-ci.yml +++ b/src/webui/.gitlab-ci.yml @@ -41,7 +41,7 @@ unit test webui: - sleep 5 - docker ps -a - docker logs $IMAGE_NAME - - docker exec -i $IMAGE_NAME bash -c "coverage run -m pytest --log-level=DEBUG --verbose ${IMAGE_NAME}/tests/test_unitary.py --junitxml=/opt/results/${IMAGE_NAME}_report.xml; coverage xml -o /opt/results/${IMAGE_NAME}_coverage.xml; ls -la /opt/results; coverage report --include='${IMAGE_NAME}/*' --show-missing" + - docker exec --user root -i $IMAGE_NAME bash -c "coverage run -m pytest --log-level=DEBUG --verbose ${IMAGE_NAME}/tests/test_unitary.py --junitxml=/opt/results/${IMAGE_NAME}_report.xml; coverage xml -o /opt/results/${IMAGE_NAME}_coverage.xml; ls -la /opt/results; coverage report --include='${IMAGE_NAME}/*' --show-missing" coverage: '/TOTAL\s+\d+\s+\d+\s+(\d+%)/' after_script: - docker rm -f $IMAGE_NAME