Browse Source

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
changes/86/778986/30
Jiri Podivin 7 months ago
parent
commit
59fdd2d1ee
  1. 1
      .gitignore
  2. 2
      requirements.txt
  3. 4
      test-requirements.txt
  4. 2
      tripleo_validations/tests/__init__.py
  5. 14
      tripleo_validations/tests/fakes.py
  6. 2
      tripleo_validations/tests/library/__init__.py
  7. 2
      tripleo_validations/tests/lookup_plugins/__init__.py

1
.gitignore

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

2
requirements.txt

@ -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

4
test-requirements.txt

@ -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

2
tripleo_validations/tests/__init__.py

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

14
tripleo_validations/tests/fakes.py

@ -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.
#

2
tripleo_validations/tests/library/__init__.py

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

2
tripleo_validations/tests/lookup_plugins/__init__.py

@ -0,0 +1,2 @@
"""Lookup plugins tests.
"""
Loading…
Cancel
Save