Use multiple AWS regions in ansible-test. (#20429)

* Move ansible-test EnvironmentConfig to util.
* Use multiple AWS regions in ansible-test.
This commit is contained in:
Matt Clay 2017-01-18 16:31:34 -08:00 committed by GitHub
commit 4ba9f63afe
6 changed files with 108 additions and 63 deletions

View file

@ -51,6 +51,10 @@ from lib.target import (
walk_sanity_targets,
)
from lib.core_ci import (
AWS_ENDPOINTS,
)
import lib.cover
@ -409,6 +413,7 @@ def add_environments(parser, tox_version=False, tox_only=False):
docker=None,
remote=None,
remote_stage=None,
remote_aws_region=None,
)
return
@ -433,6 +438,12 @@ def add_environments(parser, tox_version=False, tox_only=False):
choices=['prod', 'dev'],
default='prod')
remote.add_argument('--remote-aws-region',
metavar='REGION',
help='remote aws region to use: %(choices)s (default: auto)',
choices=sorted(AWS_ENDPOINTS),
default=None)
def add_extra_docker_options(parser, integration=True):
"""