summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Clay <matt@mystile.com>2017-01-18 11:52:16 -0800
committerMatt Clay <matt@mystile.com>2017-01-18 12:19:31 -0800
commit4c97bad28eea2152df7a92c4d8f26146075c4b5f (patch)
tree25b17f09a87c62a43f6280146d31b2183a91177a
parente2a1ce2916e9b87fe1ad4a1011c04ef8d2faf046 (diff)
downloadansible-4c97bad28eea2152df7a92c4d8f26146075c4b5f.tar.gz
Update ansible-test network change classification.
-rw-r--r--test/runner/lib/classification.py35
1 files changed, 35 insertions, 0 deletions
diff --git a/test/runner/lib/classification.py b/test/runner/lib/classification.py
index 4b6153d2e6..1a99af864f 100644
--- a/test/runner/lib/classification.py
+++ b/test/runner/lib/classification.py
@@ -174,6 +174,19 @@ class PathMapper(object):
}
if ext == '.py':
+ network_utils = (
+ 'netcfg',
+ 'netcli',
+ 'network_common',
+ 'network',
+ )
+
+ if name in network_utils:
+ return {
+ 'network-integration': 'network/', # target all network platforms
+ 'units': 'all',
+ }
+
if name in self.prefixes and self.prefixes[name] == 'network':
network_target = 'network/%s/' % name
@@ -242,6 +255,28 @@ class PathMapper(object):
'units': units_path,
}
+ if path.startswith('lib/ansible/plugins/terminal/'):
+ if ext == '.py':
+ if name in self.prefixes and self.prefixes[name] == 'network':
+ network_target = 'network/%s/' % name
+
+ if network_target in self.integration_targets_by_alias:
+ return {
+ 'network-integration': network_target,
+ 'units': 'all',
+ }
+
+ display.warning('Integration tests for "%s" not found.' % network_target)
+
+ return {
+ 'units': 'all',
+ }
+
+ return {
+ 'network-integration': 'all',
+ 'units': 'all',
+ }
+
if path.startswith('lib/ansible/utils/module_docs_fragments/'):
return {
'sanity': 'all',