mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-30 06:11:26 -07:00
Add Azure support to ansible-test. (#28092)
* Initial Azure cloud testing support. * Add missing Azure requirements. * Fix test handling of setup and requirements. * Update Azure cloud plugin. * Add setup_azure role for integration tests. * Update minimal Azure integration test sample.
This commit is contained in:
parent
c27ebfc368
commit
caf8bbf3bd
11 changed files with 261 additions and 8 deletions
|
@ -347,9 +347,20 @@ class PathMapper(object):
|
|||
|
||||
if path.startswith('packaging/'):
|
||||
if path.startswith('packaging/requirements/'):
|
||||
return {
|
||||
'integration': 'ansible',
|
||||
}
|
||||
if name.startswith('requirements-') and ext == '.txt':
|
||||
component = name.split('-', 1)[1]
|
||||
|
||||
candidates = (
|
||||
'cloud/%s/' % component,
|
||||
)
|
||||
|
||||
for candidate in candidates:
|
||||
if candidate in self.integration_targets_by_alias:
|
||||
return {
|
||||
'integration': candidate,
|
||||
}
|
||||
|
||||
return all_tests(self.args) # broad impact, run all tests
|
||||
|
||||
return minimal
|
||||
|
||||
|
@ -467,9 +478,7 @@ class PathMapper(object):
|
|||
return all_tests(self.args) # test infrastructure, run all tests
|
||||
|
||||
if path == 'setup.py':
|
||||
return {
|
||||
'integration': 'ansible',
|
||||
}
|
||||
return all_tests(self.args) # broad impact, run all tests
|
||||
|
||||
if path == '.yamllint':
|
||||
return {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue