Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[2.9]ansible-test: exposes tiny_prefix variable #75130

Merged
merged 1 commit into from Jul 12, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 3 additions & 0 deletions 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.
2 changes: 2 additions & 0 deletions test/lib/ansible_test/_internal/cloud/aws.py
Expand Up @@ -3,6 +3,7 @@
__metaclass__ = type

import os
import uuid

from ..util import (
ApplicationError,
Expand Down Expand Up @@ -95,6 +96,7 @@ def get_environment_config(self):

ansible_vars = dict(
resource_prefix=self.resource_prefix,
tiny_prefix=uuid.uuid4().hex[0:12]
)

ansible_vars.update(dict(parser.items('default')))
Expand Down