The upgrade test was written to copy a file required for
the test, but did not handle the file already being processed.
This fix adjusts the setup for the unit test to handle this
and allows the recreate to be removed, thus reducing designer
tox testing time (40 seconds down to 4 when re-running a single test)
This also aligns the version of hacking and pylint as the same as
other starlingx repos. A new pylint was released which was
breaking tox.
The code changes are to fix whitespace (rather than suppressing):
E305 expected 2 blank lines after class or function definition
E117 over-indented
Three new hacking warnings are being suppressed:
W503 line break before binary operator
W504 line break after binary operator
W605 invalid escape sequence
Un-suppress these codes which are not broken in the code:
E123 closing bracket does not match indentation of opening bracket
E501 line too long (tox sets max length instead to a large val)
F823 local variable referenced before assignment
yamllint 1.26.1 does not work with py2 or py3 in our env, so clamp it.
Story: 2008137
Task: 42200
Signed-off-by: albailey <Al.Bailey@windriver.com>
Change-Id: Ia623315c5f1a690d20f597242b7722601776f26d
Zuul is failing.
Package 'bashate' requires a different Python: 2.7.17 not in '>=3.5'
nfv test-requirements.txt accepts any version of bashate greater
than 0.2 version. So the recent release of bashate 2.0.0 qualifies.
However, this new version only supports py3 which is not yet fully
supported by starlingx.
Ths update reduces the bashate version dependency to less than 1.0.0
so that the older 0.6 version that supports python 2.7 is used.
Change-Id: I415f011abb4931c30c5991c2f6fda7651ddd402a
Closes-Bug: 1869251
Signed-off-by: Eric MacDonald <eric.macdonald@windriver.com>
Adds a py27 unit test target for nfv.
The unit tests for nfv were written using nose.
Change-Id: I001995be5f2af1d45242eb3c0e05e0615352b173
Signed-off-by: Al Bailey <Al.Bailey@windriver.com>