Doc fragments to plugins (#50172)

* promote doc_fragments into actual plugins

  change tests hardcoded path to doc fragments
  avoid sanity in fragments
  avoid improper testing of doc_fragments
  also change runner paths
 fix botmeta
 updated comment for fragments
 updated docs
This commit is contained in:
Brian Coca
2019-01-23 20:03:47 -05:00
committed by GitHub
parent 4041f02389
commit 96b3ef5553
106 changed files with 51 additions and 31 deletions

View File

@@ -559,7 +559,7 @@ class PathMapper(object):
'units': 'all',
}
if path.startswith('lib/ansible/utils/module_docs_fragments/'):
if path.startswith('lib/ansible/plugins/docs_fragments/'):
return {
'sanity': 'all',
}

View File

@@ -41,9 +41,11 @@ class AnsibleDocTest(SanityMultipleVersion):
skip_file = 'test/sanity/ansible-doc/skip.txt'
skip_modules = set(read_lines_without_comments(skip_file, remove_blank_lines=True))
# This should use documentable plugins from constants instead
plugin_type_blacklist = set([
# not supported by ansible-doc
'action',
'doc_fragments',
'cliconf',
'filter',
'httpapi',

View File

@@ -44,7 +44,7 @@ class YamllintTest(SanitySingleVersion):
[i.path for i in targets.include if os.path.splitext(i.path)[1] == '.py' and
os.path.basename(i.path) != '__init__.py' and
i.path.startswith('lib/ansible/utils/module_docs_fragments/')],
i.path.startswith('lib/ansible/plugins/docs_fragments/')],
]
paths = [sorted(p) for p in paths if p]