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:
Matt Clay 2017-08-11 17:33:39 -07:00 committed by GitHub
parent c27ebfc368
commit caf8bbf3bd
11 changed files with 261 additions and 8 deletions

View file

@ -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 {