From 1b6698aba8cd4c7ddfef8c54f50302fb400d085a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gon=C3=A9ri=20Le=20Bouder?= Date: Mon, 12 Jul 2021 07:33:48 +0200 Subject: [PATCH] ansible-test: exposes tiny_prefix variable (#75128) ansible-test aws provider now creates and exposes a new tiny_prefix variable to provide a shorter prefix for the AWS tests. (cherry picked from commit 5b8fb4dcd3d84aad77330644a7326bc16dd02a3b) --- changelogs/fragments/aws_tiny_prefix.yaml | 3 +++ test/lib/ansible_test/_internal/cloud/aws.py | 2 ++ 2 files changed, 5 insertions(+) create mode 100644 changelogs/fragments/aws_tiny_prefix.yaml diff --git a/changelogs/fragments/aws_tiny_prefix.yaml b/changelogs/fragments/aws_tiny_prefix.yaml new file mode 100644 index 00000000000..7e4dd6c26c5 --- /dev/null +++ b/changelogs/fragments/aws_tiny_prefix.yaml @@ -0,0 +1,3 @@ +--- +minor_changes: +- ansible-test - aws creates and exposes a new tiny_prefix variable to provide a shorter prefix for the AWS tests. diff --git a/test/lib/ansible_test/_internal/cloud/aws.py b/test/lib/ansible_test/_internal/cloud/aws.py index 1ff8977561a..e3c811b64f0 100644 --- a/test/lib/ansible_test/_internal/cloud/aws.py +++ b/test/lib/ansible_test/_internal/cloud/aws.py @@ -3,6 +3,7 @@ from __future__ import (absolute_import, division, print_function) __metaclass__ = type import os +import uuid from ..util import ( ApplicationError, @@ -95,6 +96,7 @@ class AwsCloudEnvironment(CloudEnvironment): ansible_vars = dict( resource_prefix=self.resource_prefix, + tiny_prefix=uuid.uuid4().hex[0:12] ) # noinspection PyTypeChecker