Skip to content

Commit

Permalink
Fix: Fixes broken installation because of third party library update.
Browse files Browse the repository at this point in the history
Change-Id: If94adb111ae5bf89f977ad857807f89ee61f71d8
Signed-off-by: peusterm <[email protected]>
  • Loading branch information
peusterm committed Oct 31, 2018
1 parent 3791156 commit 04e5f98
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion devops-stages/stage-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ echo "Tests executed by user: $(whoami)"
cd /son-emu/
# trigger pep8 style check
echo "Doing flake8 style check ..."
flake8 --exclude=.eggs,devops --ignore=E501 .
flake8 --exclude=.eggs,devops --ignore=E501,W605,W504 .
echo "done."
# trigger the tests
echo "Running unit tests ..."
Expand Down
6 changes: 5 additions & 1 deletion pipeline_local.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,13 @@
set -e
# trigger pep8 style check
echo "Doing flake8 style check ..."
flake8 --exclude=.eggs,devops --ignore=E501 .
flake8 --exclude=.eggs,devops --ignore=E501,W605,W504 .
echo "done."
# trigger the tests
echo "Running unit tests ..."
sudo pytest -v
# do everything in Docker, like it is done by Jenkins
docker build -t vim-emu-loc-test .
docker run --rm --privileged --pid='host' -v /var/run/docker.sock:/var/run/docker.sock vim-emu-loc-test pytest -v
docker run --rm --privileged --pid='host' -v /var/run/docker.sock:/var/run/docker.sock vim-emu-loc-test flake8 --exclude=.eggs,devops --ignore=E501,W605,W504 .
echo "done."
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
'Flask',
'flask_restful',
'docker==2.0.2',
'urllib3==1.21.1',
'urllib3',
'requests',
'prometheus_client',
'ipaddress',
Expand Down
6 changes: 3 additions & 3 deletions src/emuvim/dcemulator/monitoring.py
Original file line number Diff line number Diff line change
Expand Up @@ -335,10 +335,10 @@ def stop_metric(self, vnf_name, vnf_interface=None, metric=None):
return 'Error stopping monitoring metric: {0} on {1}:{2}'.format(
metric, vnf_name, vnf_interface)


# get all metrics defined in the list and export it to Prometheus

def get_flow_metrics(self):
"""
Get all metrics defined in the list and export it to Prometheus.
"""
while self.start_monitoring:

self.monitor_flow_lock.acquire()
Expand Down

0 comments on commit 04e5f98

Please sign in to comment.