Unit tests improvements - From now on, black must pass. Jenkins will give a -1 if it doesn't - Ignore E203 because it is not pep8 compliant, and conflicts with black https://github.com/psf/black/issues/315#issuecomment-395457972 - Black fixes and minor fix in unit test - Fix devops-stages/stage-test.sh: jenkins was not giving a -1 when tox was failing Change-Id: Ic7318dcb6d4006a271607cd064a1f36d0936b7b9 Signed-off-by: David Garcia <david.garcia@canonical.com>
Feature 10296 Pip Standardization Creates standard template for tox.ini Introduces 'safety' for listing upstream CVEs Pins all versions of all upstream modules Removes Makefile step and places all build logic into tox.ini Change-Id: Ic14321bd5bddb322db08ac3e25202cc64cac2dff Signed-off-by: David Garcia <david.garcia@canonical.com>
Feature 8681: Add VCA HA capabilities - juju watcher: fix exception handling when websocket is closed - libjuju.py: - Get vca endpoints from database (if exists) - Update vca endpoints in database - Get controller per operation (remove controller from class attribute) - Add health check: Every 5 minutes the connection to the controller will be tested. - Dockerfile: update it to 18.04 Change-Id: Ifa0a3a705d48fd736a9634b0722bdc914003b497 Signed-off-by: David Garcia <david.garcia@canonical.com>
Enable lint, flake8 and unit tests Cleans up non pep compliant code. Adds a simple unit test. Formats according to black. Tox automatically runs lint, flake8 and unit test suite with coverage. To run each individually, execute: tox -e pylint tox -e black tox -e flake8 tox -e cover Note that these are all run for each patch via Jenkins. The full tox suite should be run locally before any commit to ensure it will not fail in Jenkins. Change-Id: I2f87abe3d5086d6d65ac33a27780c498fc7b1cd3 Signed-off-by: beierlm <mark.beierl@canonical.com>
Add License headers to all code files This was related to bug 547 https://osm.etsi.org/bugzilla/show_bug.cgi?id=547 Change-Id: Ief72f6e3b3de828be033729298ae905d163c6988 Signed-off-by: Dominik Fleischmann <dominik.fleischmann@canonical.com>
add devops stages for pipeline Signed-off-by: Mike Marchetti <mmarchetti@sandvine.com>