Commit Graph

16 Commits

Author SHA1 Message Date
Ghanshyam Mann 3481386034 Drop lower-constraints.txt and its testing
As discussed in TC PTG[1] and TC resolution[2], we are
dropping the lower-constraints.txt file and its testing.
We will keep lower bounds in the requirements.txt file but
with a note that these are not tested lower bounds and we
try our best to keep them updated.

[1] https://etherpad.opendev.org/p/tc-zed-ptg#L326
[2] https://governance.openstack.org/tc/resolutions/20220414-drop-lower-constraints.html#proposal

Change-Id: I7d734cb7ea9bea06a7065645e6d7028f6cbdff00
2022-04-30 18:03:30 -05:00
Riccardo Pittau 5cf167d567 Update molteniron tests and requirements
Make things as pretty as possible while moving to current openstack
Y cycle tests.

Change-Id: I22777cf34888171daf69c44705d8ecc7339f8278
2021-10-06 18:12:20 +02:00
Andreas Jaeger 8c4ff32c15 [ussuri][goal] Drop python 2.7 support and testing
OpenStack is dropping the py2.7 support in ussuri cycle.

Complete discussion & schedule can be found in
- http://lists.openstack.org/pipermail/openstack-discuss/2019-October/010142.html
- https://etherpad.openstack.org/p/drop-python2-support

Ussuri Communtiy-wide goal:
https://governance.openstack.org/tc/goals/selected/ussuri/drop-py27.html

Use modern sphinx-build command.

Change-Id: I8b6d7f69bb465150115cfc18a047e5775f1ff567
2020-02-04 22:30:52 +01:00
Corey Bryant 071900f5a5 Add Python 3 Train unit tests
This is a mechanically generated patch to ensure unit testing is in place
for all of the Tested Runtimes for Train.

See the Train python3-updates goal document for details:
https://governance.openstack.org/tc/goals/train/python3-updates.html

Change-Id: Icdda5342d417866bf32bf891d7541e058e81ce23
Story: #2005924
Task: #34213
2019-06-25 03:10:12 +00:00
tonybrad a7da22155b Update to opendev
Change-Id: Iac5e266899b01cd84a15f7a5016961472d039240
2019-06-11 01:21:41 +00:00
Doug Hellmann 6dfe31d599 fix tox python3 overrides
We want to default to running all tox environments under python 3, so
set the basepython value in each environment.

We do not want to specify a minor version number, because we do not
want to have to update the file every time we upgrade python.

We do not want to set the override once in testenv, because that
breaks the more specific versions used in default environments like
py35 and py36.

Change-Id: Iaf4ae89bb1fa86549e4aff9ee80bca327fe92096
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-09-26 18:54:48 -04:00
Mark Hamzy b3b6dda18d Support both Ubuntu and CentOS
CentOS installs molteniron into /usr/etc/molteniron instead of
/usr/local/etc/molteniron/ so we have moved the conf.yaml file
into the molteniron Python directory and started using
pkg_resources.resource_filename to find our data file.

Change-Id: I75330d51475051a04bb2dff903f54727b9be9b6e
2017-02-21 15:12:30 -06:00
Mark Hamzy 57160823d4 Start testing the example usage for CI: test_hook_mi_ipmiblob.py
test_hook_mi_ipmiblob.py is the provided sample for a CI team to
use to allocate a MoltenIron instance before running tests.

Change-Id: I217b8e3ba14cb3c4358d71be40ad9ca80aca32e1
2016-12-16 10:48:22 -06:00
Mark Hamzy 952d4b133f Switch to using a blob of JSON encoded data
- ipmi_user VARCHAR(50),
- ipmi_password VARCHAR(50),
- port_hwaddr VARCHAR(50),
- cpu_arch VARCHAR(50),
- cpus INTEGER,
- ram_mb INTEGER,
- disk_gb INTEGER,
+ blob VARCHAR(2000),

Change-Id: I7a329d8137f877f111213af4332f50b1d8ff7295
2016-11-03 12:08:12 -05:00
Mark Hamzy 512fa17501 Enable testcases
Change-Id: I6db9f7ee5e0f2d65c96974d52f887302b4727bc3
2016-10-28 07:44:13 -05:00
Mark Hamzy 7efb4ae83a Even more pep8 fixes that the gate is catching
Change-Id: I825621d82bdc4e30a024b639f34e8be0d8593c17
2016-10-27 12:08:57 -05:00
Mark Hamzy d9afc4be46 Add files that were created running Python's cookiecutter program
Change-Id: Iac06fc379d11972601c362619b0d02e7839449d5
2016-10-27 10:18:47 -05:00
Mark Hamzy ae3df717de Fix PEP8 issues
Change-Id: I6cfebccba269c21e752307966093cfb216b81c2c
2016-10-25 09:28:39 -05:00
Mark Hamzy eadfe8ec0f Add missing tox environments
This is needed for pep8 and docs gates.

Change-Id: I3114c9a28e3dc459489f24f0d6d4d47f53fbc4ac
2016-10-21 08:16:39 -05:00
Mark Hamzy 7ead3dd0ef Add a bunch of new testcases for molteniron
Add tests for adding a BM node, for allocating a BM node, for
culling BM nodes, for deallocating a BM node, for deallocating
a node's owner, for cleaning the database, for getting a field
of a node, for getting the IPs of a node, and for removing a
BM node.

Change-Id: I666747656948e19d4817327b33017c4f01752baa
2016-10-05 17:01:46 -05:00
Mark Hamzy dcd5fc4279 Add support for installation and testing
Moved files to a new directory to support the installation
of the molteniron package.  Renamed one file to be a
command line tool and added a new file to start/stop
the daemon.

Added tox support for testing.  This needed the ability
to start and stop the daemon.  And it also needed the
ability to delete the database entries to ensure a clean
test run.

Change-Id: I1b0fadd68b9598b715c639b962cf8586f4db5da8
2016-09-15 13:05:00 -05:00