Add new default Docker container for ansible-test. (#31944)

* Add new default Docker container for ansible-test.
* Update ansible-test change classification.
* Update list of disabled pylint rules.
* Fix pylint issues with ansible-test.
This commit is contained in:
Matt Clay 2017-10-19 13:37:22 -07:00 committed by GitHub
parent fbbffbabde
commit f76afab6e5
9 changed files with 115 additions and 3 deletions

View file

@ -461,6 +461,9 @@ class PathMapper(object):
test_path = os.path.dirname(test_path)
if path.startswith('test/runner/docker/'):
return minimal # not used by tests, only used to build the default container
if path.startswith('test/runner/lib/cloud/'):
cloud_target = 'cloud/%s/' % name
@ -476,6 +479,32 @@ class PathMapper(object):
'sanity': 'all', # test infrastructure, run all sanity checks
}
if path.startswith('test/runner/requirements/'):
if name in (
'integration',
'network-integration',
'windows-integration',
):
return {
name: self.integration_all_target,
}
if name in (
'sanity',
'units',
):
return {
name: 'all',
}
if name.startswith('integration.cloud.'):
cloud_target = 'cloud/%s/' % name.split('.')[2]
if cloud_target in self.integration_targets_by_alias:
return {
'integration': cloud_target,
}
if path.startswith('test/runner/'):
return all_tests(self.args) # test infrastructure, run all tests