mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00: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:
@@ -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):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user