mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-10-09 01:44:03 -07:00
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:
parent
5a48c7ac7a
commit
4ba9f63afe
6 changed files with 108 additions and 63 deletions
|
@ -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):
|
||||
"""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue