summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDougal Matthews <dougal@redhat.com>2017-10-26 16:39:23 +0100
committerDougal Matthews <dougal@redhat.com>2017-11-03 08:25:15 +0000
commit5c2886a5ceec4131f9e17abbe40e6462df89f85e (patch)
treed73431c8e71d50346429303879395eeb24572dc3
Create initial project layout
-rw-r--r--.coveragerc6
-rw-r--r--.gitignore5
-rw-r--r--.gitreview4
-rw-r--r--.testr.conf7
-rw-r--r--CONTRIBUTING.rst16
-rw-r--r--HACKING.rst4
-rw-r--r--LICENSE176
-rw-r--r--README.rst85
-rw-r--r--babel.cfg1
-rw-r--r--requirements.txt13
-rw-r--r--setup.cfg51
-rw-r--r--setup.py29
-rw-r--r--test-requirements.txt18
-rw-r--r--tox.ini57
-rw-r--r--tripleo_common_tempest_plugin/README.rst6
-rw-r--r--tripleo_common_tempest_plugin/__init__.py0
-rw-r--r--tripleo_common_tempest_plugin/config.py0
-rw-r--r--tripleo_common_tempest_plugin/plugin.py34
-rw-r--r--tripleo_common_tempest_plugin/services/__init__.py0
-rw-r--r--tripleo_common_tempest_plugin/tests/__init__.py0
-rw-r--r--tripleo_common_tempest_plugin/tests/api/__init__.py0
-rw-r--r--tripleo_common_tempest_plugin/tests/base.py0
-rw-r--r--tripleo_common_tempest_plugin/tests/scenario/__init__.py0
-rw-r--r--tripleo_common_tempest_plugin/tests/scenario/workflows/__init__.py0
-rw-r--r--tripleo_common_tempest_plugin/tests/scenario/workflows/test_access.py27
25 files changed, 539 insertions, 0 deletions
diff --git a/.coveragerc b/.coveragerc
new file mode 100644
index 0000000..d5d45a9
--- /dev/null
+++ b/.coveragerc
@@ -0,0 +1,6 @@
1[run]
2branch = True
3source = tripleo_common_tempest_plugin
4
5[report]
6ignore_errors = True
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..e29f426
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,5 @@
1__pycache__
2.testrepository
3.tox
4*.egg-info
5.stestr
diff --git a/.gitreview b/.gitreview
new file mode 100644
index 0000000..698048f
--- /dev/null
+++ b/.gitreview
@@ -0,0 +1,4 @@
1[gerrit]
2host=review.openstack.org
3port=29418
4project=openstack/openstack.git
diff --git a/.testr.conf b/.testr.conf
new file mode 100644
index 0000000..6d83b3c
--- /dev/null
+++ b/.testr.conf
@@ -0,0 +1,7 @@
1[DEFAULT]
2test_command=OS_STDOUT_CAPTURE=${OS_STDOUT_CAPTURE:-1} \
3 OS_STDERR_CAPTURE=${OS_STDERR_CAPTURE:-1} \
4 OS_TEST_TIMEOUT=${OS_TEST_TIMEOUT:-60} \
5 ${PYTHON:-python} -m subunit.run discover -t ./ . $LISTOPT $IDOPTION
6test_id_option=--load-list $IDFILE
7test_list_option=--list
diff --git a/CONTRIBUTING.rst b/CONTRIBUTING.rst
new file mode 100644
index 0000000..9a8d56d
--- /dev/null
+++ b/CONTRIBUTING.rst
@@ -0,0 +1,16 @@
1If you would like to contribute to the development of OpenStack,
2you must follow the steps in this page:
3
4 http://docs.openstack.org/infra/manual/developers.html
5
6Once those steps have been completed, changes to OpenStack
7should be submitted for review via the Gerrit tool, following
8the workflow documented at:
9
10 http://docs.openstack.org/infra/manual/developers.html#development-workflow
11
12Pull requests submitted through GitHub will be ignored.
13
14Bugs should be filed on Launchpad, not GitHub:
15
16 https://bugs.launchpad.net/tripleo-common
diff --git a/HACKING.rst b/HACKING.rst
new file mode 100644
index 0000000..54188d0
--- /dev/null
+++ b/HACKING.rst
@@ -0,0 +1,4 @@
1tripleo-common Style Commandments
2=================================
3
4Read the OpenStack Style Commandments https://docs.openstack.org/hacking/latest/
diff --git a/LICENSE b/LICENSE
new file mode 100644
index 0000000..68c771a
--- /dev/null
+++ b/LICENSE
@@ -0,0 +1,176 @@
1
2 Apache License
3 Version 2.0, January 2004
4 http://www.apache.org/licenses/
5
6 TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
8 1. Definitions.
9
10 "License" shall mean the terms and conditions for use, reproduction,
11 and distribution as defined by Sections 1 through 9 of this document.
12
13 "Licensor" shall mean the copyright owner or entity authorized by
14 the copyright owner that is granting the License.
15
16 "Legal Entity" shall mean the union of the acting entity and all
17 other entities that control, are controlled by, or are under common
18 control with that entity. For the purposes of this definition,
19 "control" means (i) the power, direct or indirect, to cause the
20 direction or management of such entity, whether by contract or
21 otherwise, or (ii) ownership of fifty percent (50%) or more of the
22 outstanding shares, or (iii) beneficial ownership of such entity.
23
24 "You" (or "Your") shall mean an individual or Legal Entity
25 exercising permissions granted by this License.
26
27 "Source" form shall mean the preferred form for making modifications,
28 including but not limited to software source code, documentation
29 source, and configuration files.
30
31 "Object" form shall mean any form resulting from mechanical
32 transformation or translation of a Source form, including but
33 not limited to compiled object code, generated documentation,
34 and conversions to other media types.
35
36 "Work" shall mean the work of authorship, whether in Source or
37 Object form, made available under the License, as indicated by a
38 copyright notice that is included in or attached to the work
39 (an example is provided in the Appendix below).
40
41 "Derivative Works" shall mean any work, whether in Source or Object
42 form, that is based on (or derived from) the Work and for which the
43 editorial revisions, annotations, elaborations, or other modifications
44 represent, as a whole, an original work of authorship. For the purposes
45 of this License, Derivative Works shall not include works that remain
46 separable from, or merely link (or bind by name) to the interfaces of,
47 the Work and Derivative Works thereof.
48
49 "Contribution" shall mean any work of authorship, including
50 the original version of the Work and any modifications or additions
51 to that Work or Derivative Works thereof, that is intentionally
52 submitted to Licensor for inclusion in the Work by the copyright owner
53 or by an individual or Legal Entity authorized to submit on behalf of
54 the copyright owner. For the purposes of this definition, "submitted"
55 means any form of electronic, verbal, or written communication sent
56 to the Licensor or its representatives, including but not limited to
57 communication on electronic mailing lists, source code control systems,
58 and issue tracking systems that are managed by, or on behalf of, the
59 Licensor for the purpose of discussing and improving the Work, but
60 excluding communication that is conspicuously marked or otherwise
61 designated in writing by the copyright owner as "Not a Contribution."
62
63 "Contributor" shall mean Licensor and any individual or Legal Entity
64 on behalf of whom a Contribution has been received by Licensor and
65 subsequently incorporated within the Work.
66
67 2. Grant of Copyright License. Subject to the terms and conditions of
68 this License, each Contributor hereby grants to You a perpetual,
69 worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70 copyright license to reproduce, prepare Derivative Works of,
71 publicly display, publicly perform, sublicense, and distribute the
72 Work and such Derivative Works in Source or Object form.
73
74 3. Grant of Patent License. Subject to the terms and conditions of
75 this License, each Contributor hereby grants to You a perpetual,
76 worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77 (except as stated in this section) patent license to make, have made,
78 use, offer to sell, sell, import, and otherwise transfer the Work,
79 where such license applies only to those patent claims licensable
80 by such Contributor that are necessarily infringed by their
81 Contribution(s) alone or by combination of their Contribution(s)
82 with the Work to which such Contribution(s) was submitted. If You
83 institute patent litigation against any entity (including a
84 cross-claim or counterclaim in a lawsuit) alleging that the Work
85 or a Contribution incorporated within the Work constitutes direct
86 or contributory patent infringement, then any patent licenses
87 granted to You under this License for that Work shall terminate
88 as of the date such litigation is filed.
89
90 4. Redistribution. You may reproduce and distribute copies of the
91 Work or Derivative Works thereof in any medium, with or without
92 modifications, and in Source or Object form, provided that You
93 meet the following conditions:
94
95 (a) You must give any other recipients of the Work or
96 Derivative Works a copy of this License; and
97
98 (b) You must cause any modified files to carry prominent notices
99 stating that You changed the files; and
100
101 (c) You must retain, in the Source form of any Derivative Works
102 that You distribute, all copyright, patent, trademark, and
103 attribution notices from the Source form of the Work,
104 excluding those notices that do not pertain to any part of
105 the Derivative Works; and
106
107 (d) If the Work includes a "NOTICE" text file as part of its
108 distribution, then any Derivative Works that You distribute must
109 include a readable copy of the attribution notices contained
110 within such NOTICE file, excluding those notices that do not
111 pertain to any part of the Derivative Works, in at least one
112 of the following places: within a NOTICE text file distributed
113 as part of the Derivative Works; within the Source form or
114 documentation, if provided along with the Derivative Works; or,
115 within a display generated by the Derivative Works, if and
116 wherever such third-party notices normally appear. The contents
117 of the NOTICE file are for informational purposes only and
118 do not modify the License. You may add Your own attribution
119 notices within Derivative Works that You distribute, alongside
120 or as an addendum to the NOTICE text from the Work, provided
121 that such additional attribution notices cannot be construed
122 as modifying the License.
123
124 You may add Your own copyright statement to Your modifications and
125 may provide additional or different license terms and conditions
126 for use, reproduction, or distribution of Your modifications, or
127 for any such Derivative Works as a whole, provided Your use,
128 reproduction, and distribution of the Work otherwise complies with
129 the conditions stated in this License.
130
131 5. Submission of Contributions. Unless You explicitly state otherwise,
132 any Contribution intentionally submitted for inclusion in the Work
133 by You to the Licensor shall be under the terms and conditions of
134 this License, without any additional terms or conditions.
135 Notwithstanding the above, nothing herein shall supersede or modify
136 the terms of any separate license agreement you may have executed
137 with Licensor regarding such Contributions.
138
139 6. Trademarks. This License does not grant permission to use the trade
140 names, trademarks, service marks, or product names of the Licensor,
141 except as required for reasonable and customary use in describing the
142 origin of the Work and reproducing the content of the NOTICE file.
143
144 7. Disclaimer of Warranty. Unless required by applicable law or
145 agreed to in writing, Licensor provides the Work (and each
146 Contributor provides its Contributions) on an "AS IS" BASIS,
147 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148 implied, including, without limitation, any warranties or conditions
149 of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150 PARTICULAR PURPOSE. You are solely responsible for determining the
151 appropriateness of using or redistributing the Work and assume any
152 risks associated with Your exercise of permissions under this License.
153
154 8. Limitation of Liability. In no event and under no legal theory,
155 whether in tort (including negligence), contract, or otherwise,
156 unless required by applicable law (such as deliberate and grossly
157 negligent acts) or agreed to in writing, shall any Contributor be
158 liable to You for damages, including any direct, indirect, special,
159 incidental, or consequential damages of any character arising as a
160 result of this License or out of the use or inability to use the
161 Work (including but not limited to damages for loss of goodwill,
162 work stoppage, computer failure or malfunction, or any and all
163 other commercial damages or losses), even if such Contributor
164 has been advised of the possibility of such damages.
165
166 9. Accepting Warranty or Additional Liability. While redistributing
167 the Work or Derivative Works thereof, You may choose to offer,
168 and charge a fee for, acceptance of support, warranty, indemnity,
169 or other liability obligations and/or rights consistent with this
170 License. However, in accepting such obligations, You may act only
171 on Your own behalf and on Your sole responsibility, not on behalf
172 of any other Contributor, and only if You agree to indemnify,
173 defend, and hold each Contributor harmless for any liability
174 incurred by, or claims asserted against, such Contributor by reason
175 of your accepting any such warranty or additional liability.
176
diff --git a/README.rst b/README.rst
new file mode 100644
index 0000000..1e6bd6e
--- /dev/null
+++ b/README.rst
@@ -0,0 +1,85 @@
1========================
2Team and repository tags
3========================
4
5.. image:: http://governance.openstack.org/badges/tripleo-common.svg
6 :target: http://governance.openstack.org/reference/tags/index.html
7
8.. Change things from this point on
9
10==============
11tripleo-common
12==============
13
14A common library for TripleO workflows.
15
16* Free software: Apache license
17* Documentation: https://docs.openstack.org/tripleo-common/latest/
18* Source: http://git.openstack.org/cgit/openstack/tripleo-common
19* Bugs: http://bugs.launchpad.net/tripleo-common
20
21Action Development
22------------------
23
24
25When developing new actions, you will checkout a copy of tripleo-common to an
26undercloud machine and add actions as needed. To test the actions they need
27to be installed and selected services need to be restarted. Use the following
28code to accomplish these tasks. ::
29
30
31 sudo rm -Rf /usr/lib/python2.7/site-packages/tripleo_common*
32 sudo python setup.py install
33 sudo cp /usr/share/tripleo-common/sudoers /etc/sudoers.d/tripleo-common
34 sudo systemctl restart openstack-mistral-executor
35 sudo systemctl restart openstack-mistral-engine
36 # this loads the actions via entrypoints
37 sudo mistral-db-manage populate
38 # make sure the new actions got loaded
39 mistral action-list | grep tripleo
40
41Validations
42-----------
43
44Prerequisites
45~~~~~~~~~~~~~
46
47If you haven't installed the undercloud with the ``enable_validations`` set to
48true, you will have to prepare your undercloud to run the validations::
49
50 $ sudo pip install git+https://git.openstack.org/openstack/tripleo-validations
51 $ sudo yum install ansible
52 $ sudo useradd validations
53
54Finally you need to generate an SSH keypair for the validation user and copy
55it to the overcloud's authorized_keys files::
56
57 $ mistral execution-create tripleo.validations.v1.copy_ssh_key
58
59Running validations using the mistral workflow
60~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
61
62Create a context.json file containing the arguments passed to the workflow::
63
64 {
65 "validation_names": ["512e", "rabbitmq-limits"]
66 }
67
68Run the ``tripleo.validations.v1.run_validations`` workflow with mistral
69client::
70
71 mistral execution-create tripleo.validations.v1.run_validations context.json
72
73
74Running groups of validations
75~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
76
77Create a context.json file containing the arguments passed to the workflow::
78
79 {
80 "group_names": ["network", "post-deployment"]
81 }
82
83Run the ``tripleo.validations.v1.run_groups`` workflow with mistral client::
84
85 mistral execution-create tripleo.validations.v1.run_groups context.json
diff --git a/babel.cfg b/babel.cfg
new file mode 100644
index 0000000..efceab8
--- /dev/null
+++ b/babel.cfg
@@ -0,0 +1 @@
[python: **.py]
diff --git a/requirements.txt b/requirements.txt
new file mode 100644
index 0000000..feea97d
--- /dev/null
+++ b/requirements.txt
@@ -0,0 +1,13 @@
1# The order of packages is significant, because pip processes them in the order
2# of appearance. Changing the order has an impact on the overall integration
3# process, which may cause wedges in the gate later.
4
5pbr!=2.1.0,>=2.0.0 # Apache-2.0
6Babel!=2.4.0,>=2.3.4 # BSD
7openstacksdk>=0.9.18 # Apache-2.0
8oslo.config!=4.3.0,!=4.4.0,>=4.0.0 # Apache-2.0
9oslo.serialization!=2.19.1,>=1.10.0 # Apache-2.0
10oslo.utils>=3.20.0 # Apache-2.0
11six>=1.9.0 # MIT
12tempest>=16.1.0 # Apache-2.0
13tempest-lib>=0.14.0 # Apache-2.0
diff --git a/setup.cfg b/setup.cfg
new file mode 100644
index 0000000..808ffab
--- /dev/null
+++ b/setup.cfg
@@ -0,0 +1,51 @@
1[metadata]
2name = openstack
3summary = Tempest plugin tripleo_common_tempest_plugin
4description-file =
5 README.rst
6author = OpenStack
7author-email = openstack-dev@lists.openstack.org
8home-page = https://docs.openstack.org/tripleo-docs/latest/
9classifier =
10 Environment :: OpenStack
11 Intended Audience :: Information Technology
12 Intended Audience :: System Administrators
13 License :: OSI Approved :: Apache Software License
14 Operating System :: POSIX :: Linux
15 Programming Language :: Python
16 Programming Language :: Python :: 2
17 Programming Language :: Python :: 2.7
18 Programming Language :: Python :: 3
19 Programming Language :: Python :: 3.5
20
21[files]
22packages =
23 tripleo_common_tempest_plugin
24
25[build_sphinx]
26all_files = 1
27warning-is-error = 1
28source-dir = doc/source
29build-dir = doc/build
30
31[upload_sphinx]
32upload-dir = doc/build/html
33
34[compile_catalog]
35directory = tripleo_common_tempest_plugin/locale
36domain = tripleo_common_tempest_plugin
37
38[update_catalog]
39domain = tripleo_common_tempest_plugin
40output_dir = tripleo_common_tempest_plugin/locale
41input_file = tripleo_common_tempest_plugin/locale/tripleo_common_tempest_plugin.pot
42
43[extract_messages]
44keywords = _ gettext ngettext l_ lazy_gettext
45mapping_file = babel.cfg
46output_file = tripleo_common_tempest_plugin/locale/tripleo_common_tempest_plugin.pot
47
48[entry_points]
49tempest.test_plugins =
50 tripleo_common_tests = tripleo_common_tempest_plugin.plugin:TripleOCommonTempestPlugin
51
diff --git a/setup.py b/setup.py
new file mode 100644
index 0000000..566d844
--- /dev/null
+++ b/setup.py
@@ -0,0 +1,29 @@
1# Copyright (c) 2013 Hewlett-Packard Development Company, L.P.
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
12# implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
15
16# THIS FILE IS MANAGED BY THE GLOBAL REQUIREMENTS REPO - DO NOT EDIT
17import setuptools
18
19# In python < 2.7.4, a lazy loading of package `pbr` will break
20# setuptools if some other modules registered functions in `atexit`.
21# solution from: http://bugs.python.org/issue15881#msg170215
22try:
23 import multiprocessing # noqa
24except ImportError:
25 pass
26
27setuptools.setup(
28 setup_requires=['pbr>=2.0.0'],
29 pbr=True)
diff --git a/test-requirements.txt b/test-requirements.txt
new file mode 100644
index 0000000..656cd31
--- /dev/null
+++ b/test-requirements.txt
@@ -0,0 +1,18 @@
1# The order of packages is significant, because pip processes them in the order
2# of appearance. Changing the order has an impact on the overall integration
3# process, which may cause wedges in the gate later.
4
5# Hacking already pins down pep8, pyflakes and flake8
6coverage!=4.4,>=4.0 # Apache-2.0
7hacking!=0.13.0,<0.14,>=0.12.0 # Apache-2.0
8oslotest>=1.10.0 # Apache-2.0
9os-testr>=0.8.0 # Apache-2.0
10testrepository>=0.0.18 # Apache-2.0/BSD
11testtools>=1.4.0 # MIT
12
13# Documentation
14sphinx>=1.6.2 # BSD
15reno>=2.5.0 # Apache-2.0
16
17# Bandit build requirements
18bandit>=1.1.0 # Apache-2.0
diff --git a/tox.ini b/tox.ini
new file mode 100644
index 0000000..3c2a3ba
--- /dev/null
+++ b/tox.ini
@@ -0,0 +1,57 @@
1[tox]
2minversion = 2.0
3envlist = py35,py27,pep8,api,functional
4skipsdist = True
5
6[testenv]
7deps = -r{toxinidir}/test-requirements.txt
8usedevelop = True
9install_command = pip install -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt} {opts} {packages}
10commands =
11 find . -type f -name "*.py[c|o]" -delete
12 ostestr --slowest --regex 'tripleo_common_tempest_plugin.api.*' {posargs}
13
14whitelist_externals = find
15
16[testenv:api]
17basepython = python3.5
18setenv = VIRTUAL_ENV={envdir}
19 PYTHONHASHSEED=0
20 OS_TEST_PATH=tripleo_common_tempest_plugin/api
21commands =
22 find . -type f -name "*.py[c|o]" -delete
23 ostestr --slowest --regex 'tripleo_common_tempest_plugin.functional.*' {posargs}
24
25[testenv:functional]
26basepython = python3.5
27setenv = VIRTUAL_ENV={envdir}
28 PYTHONHASHSEED=0
29 OS_TEST_PATH=tripleo_common_tempest_plugin/functional
30# By default ostestr will set concurrency to ncpu, to specify something else
31# use the concurrency=<n> option.
32# e.g.: 'tox -efunctional -- --concurrency=4'
33commands =
34 find . -type f -name "*.py[c|o]" -delete
35 ostestr --slowest {posargs}
36
37whitelist_externals = find
38
39[testenv:pep8]
40commands =
41 flake8 tripleo_common_tempest_plugin
42
43[testenv:venv]
44commands = {posargs}
45
46[testenv:releasenotes]
47commands = sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
48
49[flake8]
50# Temporarily disable complaints about docstring for public module/class/method
51# H106 Don’t put vim configuration in source files
52# H203 Use assertIs(Not)None to check for None
53ignore = D100,D101,D102,D103,D104,D105,D200,D201,D202,D204,D205,D300,D301,D400,D401
54enable-extensions=H106,H203
55show-source = true
56exclude=.venv,.git,.tox,*lib/python*,*egg,tools,build,releasenotes
57max-complexity=10
diff --git a/tripleo_common_tempest_plugin/README.rst b/tripleo_common_tempest_plugin/README.rst
new file mode 100644
index 0000000..abac323
--- /dev/null
+++ b/tripleo_common_tempest_plugin/README.rst
@@ -0,0 +1,6 @@
1===============================================
2Tempest Integration of tripleo-common
3===============================================
4
5This directory contains Tempest tests to cover the tripleo-common project.
6
diff --git a/tripleo_common_tempest_plugin/__init__.py b/tripleo_common_tempest_plugin/__init__.py
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/tripleo_common_tempest_plugin/__init__.py
diff --git a/tripleo_common_tempest_plugin/config.py b/tripleo_common_tempest_plugin/config.py
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/tripleo_common_tempest_plugin/config.py
diff --git a/tripleo_common_tempest_plugin/plugin.py b/tripleo_common_tempest_plugin/plugin.py
new file mode 100644
index 0000000..39d11f1
--- /dev/null
+++ b/tripleo_common_tempest_plugin/plugin.py
@@ -0,0 +1,34 @@
1# Copyright 2015
2# All Rights Reserved.
3#
4# Licensed under the Apache License, Version 2.0 (the "License"); you may
5# not use this file except in compliance with the License. You may obtain
6# a copy of the License at
7#
8# http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
12# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
13# License for the specific language governing permissions and limitations
14# under the License.
15
16
17import os
18
19from tempest.test_discover import plugins
20
21
22class TripleOCommonTempestPlugin(plugins.TempestPlugin):
23 def load_tests(self):
24 base_path = os.path.split(os.path.dirname(
25 os.path.abspath(__file__)))[0]
26 test_dir = "tripleo_common_tempest_plugin/tests"
27 full_test_dir = os.path.join(base_path, test_dir)
28 return full_test_dir, base_path
29
30 def register_opts(self, conf):
31 pass
32
33 def get_opt_lists(self):
34 pass
diff --git a/tripleo_common_tempest_plugin/services/__init__.py b/tripleo_common_tempest_plugin/services/__init__.py
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/tripleo_common_tempest_plugin/services/__init__.py
diff --git a/tripleo_common_tempest_plugin/tests/__init__.py b/tripleo_common_tempest_plugin/tests/__init__.py
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/tripleo_common_tempest_plugin/tests/__init__.py
diff --git a/tripleo_common_tempest_plugin/tests/api/__init__.py b/tripleo_common_tempest_plugin/tests/api/__init__.py
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/tripleo_common_tempest_plugin/tests/api/__init__.py
diff --git a/tripleo_common_tempest_plugin/tests/base.py b/tripleo_common_tempest_plugin/tests/base.py
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/tripleo_common_tempest_plugin/tests/base.py
diff --git a/tripleo_common_tempest_plugin/tests/scenario/__init__.py b/tripleo_common_tempest_plugin/tests/scenario/__init__.py
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/tripleo_common_tempest_plugin/tests/scenario/__init__.py
diff --git a/tripleo_common_tempest_plugin/tests/scenario/workflows/__init__.py b/tripleo_common_tempest_plugin/tests/scenario/workflows/__init__.py
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/tripleo_common_tempest_plugin/tests/scenario/workflows/__init__.py
diff --git a/tripleo_common_tempest_plugin/tests/scenario/workflows/test_access.py b/tripleo_common_tempest_plugin/tests/scenario/workflows/test_access.py
new file mode 100644
index 0000000..8029691
--- /dev/null
+++ b/tripleo_common_tempest_plugin/tests/scenario/workflows/test_access.py
@@ -0,0 +1,27 @@
1# All Rights Reserved.
2#
3# Licensed under the Apache License, Version 2.0 (the "License"); you may
4# not use this file except in compliance with the License. You may obtain
5# a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
11# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
12# License for the specific language governing permissions and limitations
13# under the License.
14
15from tempest.lib import decorators
16from tempest import test
17
18from tripleo_common_tempest_plugin.tests import base
19
20
21
22class AccessWorkflowTestCase(test.BaseTestCase):
23
24 @decorators.attr(type='openstack')
25 @decorators.idempotent_id('2d9bf96a-2d1f-4c79-a44d-97208bd0e1a3')
26 def test_noop(self):
27 pass