From f2965bcfd118a56edccf39be99b31996d349d2c3 Mon Sep 17 00:00:00 2001 From: "Gael Chamoulaud (Strider)" Date: Wed, 4 Mar 2020 15:30:18 +0100 Subject: [PATCH] Add validations_common lib structure Signed-off-by: Gael Chamoulaud (Strider) --- validations_common/__init__.py | 18 +++++++++++++++ validations_common/tests/__init__.py | 0 validations_common/tests/base.py | 23 ++++++++++++++++++++ validations_common/tests/library/__init__.py | 0 4 files changed, 41 insertions(+) create mode 100644 validations_common/__init__.py create mode 100644 validations_common/tests/__init__.py create mode 100644 validations_common/tests/base.py create mode 100644 validations_common/tests/library/__init__.py diff --git a/validations_common/__init__.py b/validations_common/__init__.py new file mode 100644 index 0000000..cd002ba --- /dev/null +++ b/validations_common/__init__.py @@ -0,0 +1,18 @@ +# -*- coding: utf-8 -*- + +# 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. + +import pbr.version + + +__version__ = pbr.version.VersionInfo('tripleo-validations') diff --git a/validations_common/tests/__init__.py b/validations_common/tests/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/validations_common/tests/base.py b/validations_common/tests/base.py new file mode 100644 index 0000000..1c30cdb --- /dev/null +++ b/validations_common/tests/base.py @@ -0,0 +1,23 @@ +# -*- coding: utf-8 -*- + +# Copyright 2010-2011 OpenStack Foundation +# Copyright (c) 2013 Hewlett-Packard Development Company, L.P. +# +# 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. + +from oslotest import base + + +class TestCase(base.BaseTestCase): + + """Test case base class for all unit tests.""" diff --git a/validations_common/tests/library/__init__.py b/validations_common/tests/library/__init__.py new file mode 100644 index 0000000..e69de29