The library "nose", used for unit testing, is removed. This library
is in maintenance mode and is not compatible with Python3.10 [1].
Now all checks are implemented using "unittest". The methods are not
loaded in realtime into the test case execution; instead of this, this
patch uses "testscenarios.WithScenarios", that allows to execute the
same test with different defined scenarios.
NOTE: "BgpSpeakerTestBase" tests are disable temporarily. It is needed
to configure "docker" in the system in order to execute them.
[1]https://nose.readthedocs.io/en/latest/
Story: #2010063
Task: #45519
Change-Id: I92e9547a26e9bec6c2a9a011c49a70b82dbb373e
The summary of changes in lower-constraints.txt are as below.
* Address version mismatch of eventlet in requirements.txt and
lower-constraints.txt. eventlet 0.21.0 is blocked in
global-requirements.txt, so the min version is set to 0.22.0.
* pytz version in l-c is bumped to satisfy Babel requirement.
* Update the min version of msgpack to 0.5.0 as 0.3.0 is not
available in PyPI. msgpack-python is dropped as it is not used.
* Drop linter-specific entries from lower-constraints.txt
* hacking in l-c is updated to match the version in test-requirements.
I also ran requirements-check script locally and detected
a lot of inconsistencies in requirements related files in os-ken.
Errors detected by the script are fixed in this commit too.
NOTE: The above inconsistencies were not detected mainly because
we don't have requirements-check job in os-ken CI.
Perhaps it is due to 'tinyrpc' which is not included in g-r.
It is better to enable requirements-check job in os-ken CI,
but we need to add tinyrpc to global-requirements.txt or drop
tinyrpc dependencies (for example, by dropping os-ken/app
as tinyrpc is used only in os-ken/app).
Change-Id: I19617aee765f9086fbfdb67fb17839b83d9df48c
Bump lower-constraints to versions supporting python 3.8 and with wheels
available and sync requirements
Bump hacking to 3.2.0 in order to work with Focal, disabling W504
to align with neutron and F405 (similar F403 is already disabled and it
needs a large fix)
Change-Id: I6b6329b2bb7a117f7426fdd63186d321290d9b67
Now that we no longer support py27, we can use the standard library
unittest.mock module instead of the third party mock lib.
Change-Id: Ifb209347ec1748e143d1e93a5da8f40596cd0e39
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
It looks these dependencies are listed in test requirements but not
used in the code. In addition, they are not included in the openstack
global requirement so this commit removes them from the list.
Change-Id: I61c20979b3bbf9b87a5b7285d11efff6b6e3f923