Pin black version in tox.ini to 23.12.1 Change-Id: Ica4b7a2ec310cffa116f319818f755c5062f0787 Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
Update pip requirements to pass stage2 and stage3 in all modules Change-Id: Ib3e14922e3e40cdb423896caabc4915e78ac3ae2 Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
Ubuntu 22.04 and Python 3.10 preparation Change-Id: I57a4ee39c101bdab610a6964de58eaa2653d37a3 Signed-off-by: Guillermo Calvino <guillermo.calvino@canonical.com> Signed-off-by: Mark Beierl <mark.beierl@canonical.com>
Fix black errors Change-Id: I58c380853485995e2c37163a958b06072cbe24ca Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com> (cherry picked from commit 9831d7e8205bce462a669a8cc2b3dc1a611c924c)
Feature 10944 Change naming of charms Modifying n2vc_conn.py/N2VCConnector _get_application_name method to generate new application naming for charms Change-Id: I1908bdbe4ce1a959a8a407f77913a414ec23fbb4 Signed-off-by: aticig <gulsum.atici@canonical.com>
Manual update of pip requirements Change-Id: If32e6a3789884c9d7a9521f4955a608ae59c9381 Signed-off-by: beierlm <mark.beierl@canonical.com>
Bug 1843: LTS Support Updates base to Ubuntu 20.04 Updates python to 3.8 Updates pip dependencies to more recent versions Adds apt cache to stage 2 dockerfile Fixes bug 1843 Change-Id: Iec7c73cb99f5ed3f0e07666d8c8c8be8ca91c0ea Signed-off-by: beierlm <mark.beierl@canonical.com>
Update requirements.txt and tox.ini - Update to juju==2.9.4: needed for feature 10884 - Pin pylint version in tox.ini Change-Id: Ie7115804973f97e61e9bb8946215ce958abe8089 Signed-off-by: David Garcia <david.garcia@canonical.com>
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>
Reformat N2VC to standardized format Change-Id: I7bfc2236cd5f059dc1b659e9fb746fef619124b8 Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
Fix bug 1505 Delete ssh-key generation in N2VCConnector initialization Change-Id: I5f33adf683ffeef34de270bf9b458a172dd4059d 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>
Pin pylint version Pins the version of pylint to 2.6.0, which corrects the upstream dependency on SortImports. Change-Id: I6d3a08ab34e62c03e119f84f66452ec4934c19c4 Signed-off-by: beierlm <mark.beierl@canonical.com>
Add unit tests to N2VC refactor This commit adds unit tests for the following modules: juju_watcher.py 96% coverage libjuju.py 72% coverage utils.py 100% coverage Minor libjuju.py fixes found with unit testing Fix testing with tox Change-Id: I9f23ce2f18aac6765edfa955ed200802c27d9047 Signed-off-by: Dominik Fleischmann <dominik.fleischmann@canonical.com>
Revert "Tox doesn't like -" This reverts commit d87303d18767a9c1d9d44357d1be392f41c3b723. Reason for revert: This does not fix the problem. Underlying root cause still unknown. Change-Id: I1f012bcf03c63cd12c24e1ede18620834a81c0a5 Signed-off-by: beierlm <mark.beierl@canonical.com>
Tox doesn't like - Removing the - character from the pylinttests environment as the version of tox available via the build process does not work with that character. Change-Id: I46cffef33f07b474598b2c0badf508ee3ea7fd45 Signed-off-by: beierlm <mark.beierl@canonical.com>
Initial refactor of N2VC - Add libjuju.py to encapsulate all code related with the communication using libjuju - Replace juju_observer with juju_watcher - Add utils with some utilities like EntityType, FinalStatus, and JujuStatusToOSM Change-Id: I5d46ad65d6ed37b49bf2504209bfdd46d1b5a7e4 Signed-off-by: David Garcia <david.garcia@canonical.com>
Change to sane default timeout Changes the default timeout from ~28 hours to 1 hour. Fixed syntax errors in two log messages. Adds unit tests for timeouts. Adds nose config to create Junit style output. Fixes bug 1014 Change-Id: I7d1c2d28b397adc3ac638aa2366925dc744eade3 Signed-off-by: beierlm <mark.beierl@canonical.com>
Adds skipdist back The merge has been failing, probably due to unmaintained distribution code for debian packages that are no longer needed. This patch reinstates the skipdist step to tox.ini Change-Id: Ia4134222f85075fda9e9a535493eb77ceabb855f Signed-off-by: beierlm <mark.beierl@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>