Commit Graph

8 Commits (ea4d279e4bfe2dc9bef27fa609aa7c5dd13b4bf8)

Author SHA1 Message Date
Zuul 0b4c0c89de Merge "py3: Add support for python 3.9" 2021-09-09 13:30:22 +00:00
Charles Short 68f1b97a7f py3: Add support for python 3.9
Add support for Debian bullseye which runs python3.9.
This was tested by running tox locally on a Debian bullseye
VM.

Story: 2006796
Task: 42941

Signed-off-by: Charles Short <charles.short@windriver.com>
Change-Id: I5568b85a365104fdbca2af7adcf9f289001baea0
2021-09-01 08:58:34 -04:00
albailey 90d9eb4161 Attempt to fix zuul jobs from timing out
The tox jobs for fault are having problems with a
timeout, which appears to be related to how long it takes
to setup the python requirements.

This update tries to limit the scope for yamllint, and
eliminate some of the sdist related actions.

pylint has been relocated to the test-requirements file.

The usedevelop = False is required for the base tox.ini
because there are no setup files at that directory level.

Several pylint errors had to be suppressed, and will be
restored once py3 changes are merged from centos8 branch.

Story: 2008943
Task: 42967
Signed-off-by: albailey <Al.Bailey@windriver.com>
Change-Id: Icc8747226511f0be614df20800813fe4eb9e6b96
2021-08-10 07:32:57 -05:00
Gerry Kopec b70b9b5220 Fix stestr version so py27 tox can pass
stestr was upgraded to 3.0.0 on Mar. 26 and it does not support py27.
Update test requirements accordingly so py27 tests will use earlier version.

Change-Id: Ia481a4609d81ad4d225aeb6ec3ab0cc3a9e18ae5
Closes-Bug: 1869777
Signed-off-by: Gerry Kopec <gerry.kopec@windriver.com>
2020-03-30 14:43:36 -04:00
SidneyAn d73ba87457 add test framework for rest api tests
this patch include:
fake pecan app for api tests
4 test cases:
  bad url
  setup
  get_root
  get_v1_root

Story: 2007082
Task: 38158
Change-Id: I3f933b43aede43f25abca3327a9638a6fa88914c
Signed-off-by: SidneyAn <ran1.an@intel.com>
2020-03-09 05:24:44 +00:00
chenyan 2f37da8e8e Add unit test case for fm-rest-api/fm/fm/common/utils.py
Add test case FaultUtilsTestCase.
Add fake log in tests/base.py.

Story: 2007082
Task: 38093
Task: 38084

Depends-on: https://review.opendev.org/#/c/702175/
Change-Id: I560415ed1519834c21f0090f594f2da6c26f3eca
Signed-off-by: chenyan <yan.chen@intel.com>
2020-01-16 16:45:54 +08:00
chenyan 385f274a8f Create test framework for python with stestr.
Add add the first unit test for fm-rest-api/fm/fm/common/timeutils.
Add tox task for py27/35 as zuul checking and gating jobs.

Story: 2007082
Task: 38077

Change-Id: I2f259dcf2178f42546966063c0d724bc17e2a804
Signed-off-by: chenyan <yan.chen@intel.com>
2020-01-16 16:45:45 +08:00
Dean Troyer d07d41fee3 [DevStack] WSME doesn't always get installed, force it
The jobs are working here but stx-nfv devstack fails in fm-rest-api,
what fun it is to find a transient dependency!  fm-rest-api has
apparently never started correctly but we did not properly detect
that until getting the stx-nfv plugin up.

Add requirements.txt and test-requirements.txt, only
test-requirements.txt is directly used by DevStack but WSME
is not a test-only dependency...

Cleanup to follow:
* properly get the dependencies of the service documented for pip
* properly detect when fm-rest-api fails to start under systemd

Change-Id: I91236d2bbb785c75264e8c4772d4ad6dfa45562c
Signed-off-by: Dean Troyer <dtroyer@gmail.com>
2019-04-02 23:27:27 +00:00