Test folder structure rearranged.

Patch prepares ground for further work on tripleo_validations
unit tests.

Datastructures used for testing were factored out.

__init__.py files for lookup plugins and library tests were added.
Together with minimal docstring.

.gitingore was updated to ignore stestr files.

test-requirements.txt and requirements.txt were updated to include
all necessary dependencies

Depends-On: https://review.rdoproject.org/r/c/openstack/tripleo-validations-distgit/+/32545

Closes-Bug: #1922726

Signed-off-by: Jiri Podivin <jpodivin@redhat.com>
Change-Id: If67992bec97831cc45b46e33af234a9444c5ae4c
This commit is contained in:
Jiri Podivin 2021-03-05 17:16:44 +01:00
parent 06d7104408
commit 59fdd2d1ee
7 changed files with 27 additions and 0 deletions

1
.gitignore vendored
View File

@ -29,6 +29,7 @@ cover/
nosetests.xml
.testrepository
.venv
.stestr/*
# Translations
*.mo

View File

@ -10,8 +10,10 @@ python-heatclient>=1.10.0 # Apache-2.0
python-glanceclient>=2.9.1 # Apache-2.0
python-ironicclient>=2.7.0 # Apache-2.0
python-ironic-inspector-client>=3.1.1 # Apache-2.0
python-tripleoclient>=15.0.0 # Apache-2.0
os-net-config>=7.1.0 # Apache-2.0
oslo.utils>=3.40.2 # Apache-2.0
six>=1.11.0 # MIT
tripleo-common>=7.1.0 # Apache-2.0
setuptools>=50.3.0
osc-lib>=2.3.0 # Apache-2.0

View File

@ -15,3 +15,7 @@ reno>=3.1.0 # Apache-2.0
netaddr>=0.7.18 # BSD
pre-commit # MIT
stestr>=3.0.1 # Apache-2.0
mock>=4.0.3 # BSD
requests-mock>=1.8.0 # Apache-2.0
python-tripleoclient>=15.0.0 # Apache-2.0
osc-lib>=2.3.0 # Apache-2.0

View File

@ -0,0 +1,2 @@
"""tripleo_validations tests.
"""

View File

@ -0,0 +1,14 @@
# Copyright 2021 Red Hat, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
#

View File

@ -0,0 +1,2 @@
"""library tests
"""

View File

@ -0,0 +1,2 @@
"""Lookup plugins tests.
"""