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

[PR #1619/344dbd1a backport][stable-6] Refactor ARN validation code #1622

Conversation

patchback[bot]
Copy link

@patchback patchback bot commented Jun 23, 2023

This is a backport of PR #1619 as merged into main (344dbd1).

SUMMARY
  • Adds resource_id and resource_type to parse_aws_arn() return value.
  • Adds validate_aws_arn() to handle common pattern matching for ARNs.
ISSUE TYPE
  • Feature Pull Request
COMPONENT NAME

ec2_instance
iam_user

ADDITIONAL INFORMATION

Related to ansible-collections/community.aws#1846 - We've been doing things like assuming the aws partition.

Refactor ARN validation code

SUMMARY

Adds resource_id and resource_type to parse_aws_arn() return value.
Adds validate_aws_arn() to handle common pattern matching for ARNs.

ISSUE TYPE

Feature Pull Request

COMPONENT NAME
ec2_instance
iam_user
ADDITIONAL INFORMATION
Related to ansible-collections/community.aws#1846 - We've been doing things like assuming the aws partition.

Reviewed-by: Alina Buzachis
(cherry picked from commit 344dbd1)
@softwarefactory-project-zuul
Copy link
Contributor

Build succeeded.
https://ansible.softwarefactory-project.io/zuul/buildset/2b237dc37244474b8cfe296323cee406

✔️ ansible-galaxy-importer SUCCESS in 4m 45s
✔️ build-ansible-collection SUCCESS in 13m 04s
✔️ ansible-test-splitter SUCCESS in 4m 55s
✔️ integration-amazon.aws-1 SUCCESS in 14m 34s
✔️ integration-amazon.aws-2 SUCCESS in 30m 16s
✔️ integration-amazon.aws-3 SUCCESS in 22m 31s
✔️ integration-amazon.aws-4 SUCCESS in 22m 40s
✔️ integration-amazon.aws-5 SUCCESS in 19m 49s
✔️ integration-amazon.aws-6 SUCCESS in 19m 25s
✔️ integration-amazon.aws-7 SUCCESS in 13m 15s
✔️ integration-amazon.aws-8 SUCCESS in 19m 39s
✔️ integration-amazon.aws-9 SUCCESS in 12m 37s
✔️ integration-amazon.aws-10 SUCCESS in 10m 45s
✔️ integration-amazon.aws-11 SUCCESS in 12m 47s
✔️ integration-amazon.aws-12 SUCCESS in 13m 42s
✔️ integration-amazon.aws-13 SUCCESS in 26m 51s
✔️ integration-amazon.aws-14 SUCCESS in 16m 47s
✔️ integration-amazon.aws-15 SUCCESS in 16m 09s
✔️ integration-amazon.aws-16 SUCCESS in 19m 50s
✔️ integration-amazon.aws-17 SUCCESS in 13m 57s
✔️ integration-amazon.aws-18 SUCCESS in 17m 34s
✔️ integration-amazon.aws-19 SUCCESS in 13m 15s
✔️ integration-amazon.aws-20 SUCCESS in 10m 05s
Skipped 24 jobs

@tremble tremble added the mergeit Merge the PR (SoftwareFactory) label Jun 26, 2023
@softwarefactory-project-zuul
Copy link
Contributor

Build failed (gate pipeline). For information on how to proceed, see
http://docs.openstack.org/infra/manual/developers.html#automated-testing

https://ansible.softwarefactory-project.io/zuul/buildset/f695b1b733ec402db2818ad15d2aecb2

✔️ ansible-galaxy-importer SUCCESS in 6m 08s
✔️ build-ansible-collection SUCCESS in 14m 43s
✔️ ansible-test-splitter SUCCESS in 9m 26s
✔️ integration-amazon.aws-1 SUCCESS in 14m 42s
✔️ integration-amazon.aws-2 SUCCESS in 27m 59s
✔️ integration-amazon.aws-3 SUCCESS in 17m 55s
✔️ integration-amazon.aws-4 SUCCESS in 23m 01s
✔️ integration-amazon.aws-5 SUCCESS in 20m 58s
✔️ integration-amazon.aws-6 SUCCESS in 19m 37s
✔️ integration-amazon.aws-7 SUCCESS in 16m 14s
✔️ integration-amazon.aws-8 SUCCESS in 24m 25s
✔️ integration-amazon.aws-9 SUCCESS in 8m 31s
✔️ integration-amazon.aws-10 SUCCESS in 10m 49s
✔️ integration-amazon.aws-11 SUCCESS in 9m 47s
✔️ integration-amazon.aws-12 SUCCESS in 14m 04s
✔️ integration-amazon.aws-13 SUCCESS in 22m 30s
integration-amazon.aws-14 RETRY_LIMIT in 1m 27s
✔️ integration-amazon.aws-15 SUCCESS in 17m 22s
✔️ integration-amazon.aws-16 SUCCESS in 21m 41s
✔️ integration-amazon.aws-17 SUCCESS in 20m 20s
✔️ integration-amazon.aws-18 SUCCESS in 17m 54s
✔️ integration-amazon.aws-19 SUCCESS in 9m 56s
✔️ integration-amazon.aws-20 SUCCESS in 9m 54s
Skipped 24 jobs

@tremble
Copy link
Contributor

tremble commented Jun 27, 2023

regate

@softwarefactory-project-zuul
Copy link
Contributor

Build failed (gate pipeline). For information on how to proceed, see
http://docs.openstack.org/infra/manual/developers.html#automated-testing

https://ansible.softwarefactory-project.io/zuul/buildset/2b2496b0b46a4ea0ac76502351ae6d6e

✔️ ansible-galaxy-importer SUCCESS in 4m 44s
✔️ build-ansible-collection SUCCESS in 12m 35s
✔️ ansible-test-splitter SUCCESS in 4m 59s
integration-amazon.aws-1 FAILURE in 7m 58s
✔️ integration-amazon.aws-2 SUCCESS in 20m 18s
✔️ integration-amazon.aws-3 SUCCESS in 21m 34s
✔️ integration-amazon.aws-4 SUCCESS in 22m 05s
✔️ integration-amazon.aws-5 SUCCESS in 19m 39s
✔️ integration-amazon.aws-6 SUCCESS in 17m 36s
✔️ integration-amazon.aws-7 SUCCESS in 12m 34s
✔️ integration-amazon.aws-8 SUCCESS in 18m 01s
✔️ integration-amazon.aws-9 SUCCESS in 16m 11s
✔️ integration-amazon.aws-10 SUCCESS in 11m 58s
✔️ integration-amazon.aws-11 SUCCESS in 12m 38s
✔️ integration-amazon.aws-12 SUCCESS in 16m 25s
✔️ integration-amazon.aws-13 SUCCESS in 24m 24s
✔️ integration-amazon.aws-14 SUCCESS in 16m 28s
✔️ integration-amazon.aws-15 SUCCESS in 19m 53s
integration-amazon.aws-16 FAILURE in 23m 39s
✔️ integration-amazon.aws-17 SUCCESS in 17m 40s
✔️ integration-amazon.aws-18 SUCCESS in 17m 37s
✔️ integration-amazon.aws-19 SUCCESS in 15m 58s
✔️ integration-amazon.aws-20 SUCCESS in 10m 30s
Skipped 24 jobs

@tremble tremble merged commit a16d0f7 into stable-6 Jun 27, 2023
@tremble tremble deleted the patchback/backports/stable-6/344dbd1a0f6cc6c2e6cfd582ba989f070001444a/pr-1619 branch June 27, 2023 07:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
mergeit Merge the PR (SoftwareFactory)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant