mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Correct change classification for network plugins.
This commit is contained in:
parent
117b88cd38
commit
14a2757116
1 changed files with 23 additions and 5 deletions
|
@ -183,25 +183,43 @@ class PathMapper(object):
|
||||||
'units': 'test/units/plugins/connection/',
|
'units': 'test/units/plugins/connection/',
|
||||||
}
|
}
|
||||||
|
|
||||||
|
units_path = 'test/units/plugins/connection/test_%s.py' % name
|
||||||
|
|
||||||
|
if units_path not in self.units_paths:
|
||||||
|
units_path = None
|
||||||
|
|
||||||
|
integration_name = 'connection_%s' % name
|
||||||
|
|
||||||
|
if integration_name not in self.integration_targets_by_name:
|
||||||
|
integration_name = None
|
||||||
|
|
||||||
|
# entire integration test commands depend on these connection plugins
|
||||||
|
|
||||||
if name == 'winrm':
|
if name == 'winrm':
|
||||||
return {
|
return {
|
||||||
'windows-integration': 'all',
|
'windows-integration': 'all',
|
||||||
'units': 'test/units/plugins/connection/',
|
'units': units_path,
|
||||||
}
|
}
|
||||||
|
|
||||||
if name == 'local':
|
if name == 'local':
|
||||||
return {
|
return {
|
||||||
'integration': 'all',
|
'integration': 'all',
|
||||||
'network-integration': 'all',
|
'network-integration': 'all',
|
||||||
'units': 'test/units/plugins/connections/',
|
'units': units_path,
|
||||||
}
|
}
|
||||||
|
|
||||||
if 'connection_%s' % name in self.integration_targets_by_name:
|
if name == 'network_cli':
|
||||||
return {
|
return {
|
||||||
'integration': 'connection_%s' % name,
|
'network-integration': 'all',
|
||||||
|
'units': units_path,
|
||||||
}
|
}
|
||||||
|
|
||||||
return minimal
|
# other connection plugins have isolated integration and unit tests
|
||||||
|
|
||||||
|
return {
|
||||||
|
'integration': integration_name,
|
||||||
|
'units': units_path,
|
||||||
|
}
|
||||||
|
|
||||||
if path.startswith('lib/ansible/utils/module_docs_fragments/'):
|
if path.startswith('lib/ansible/utils/module_docs_fragments/'):
|
||||||
return {
|
return {
|
||||||
|
|
Loading…
Reference in a new issue