diff options
author | Matt Clay <matt@mystile.com> | 2017-10-19 22:37:22 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-19 22:37:22 +0200 |
commit | f76afab6e54a65cfa8db2d8dc330a72f3eb430ad (patch) | |
tree | a146e5d30addd26d3342c30f05fd789ac5c26240 /test/runner/lib/classification.py | |
parent | Mdd module unit test docs (#31373) (diff) | |
download | ansible-f76afab6e54a65cfa8db2d8dc330a72f3eb430ad.tar.xz ansible-f76afab6e54a65cfa8db2d8dc330a72f3eb430ad.zip |
Add new default Docker container for ansible-test. (#31944)
* Add new default Docker container for ansible-test.
* Update ansible-test change classification.
* Update list of disabled pylint rules.
* Fix pylint issues with ansible-test.
Diffstat (limited to 'test/runner/lib/classification.py')
-rw-r--r-- | test/runner/lib/classification.py | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/test/runner/lib/classification.py b/test/runner/lib/classification.py index d63fc1c290..f7c89bd24e 100644 --- a/test/runner/lib/classification.py +++ b/test/runner/lib/classification.py @@ -461,6 +461,9 @@ class PathMapper(object): test_path = os.path.dirname(test_path) + if path.startswith('test/runner/docker/'): + return minimal # not used by tests, only used to build the default container + if path.startswith('test/runner/lib/cloud/'): cloud_target = 'cloud/%s/' % name @@ -476,6 +479,32 @@ class PathMapper(object): 'sanity': 'all', # test infrastructure, run all sanity checks } + if path.startswith('test/runner/requirements/'): + if name in ( + 'integration', + 'network-integration', + 'windows-integration', + ): + return { + name: self.integration_all_target, + } + + if name in ( + 'sanity', + 'units', + ): + return { + name: 'all', + } + + if name.startswith('integration.cloud.'): + cloud_target = 'cloud/%s/' % name.split('.')[2] + + if cloud_target in self.integration_targets_by_alias: + return { + 'integration': cloud_target, + } + if path.startswith('test/runner/'): return all_tests(self.args) # test infrastructure, run all tests |