Skip to content

Conversation

@jbellanti
Copy link
Contributor

SUMMARY

According to the S3 docs (https://docs.aws.amazon.com/AmazonS3/latest/userguide/bucketnamingrules.html), the minimum bucket name is 3 characters. The current validate_bucket_name function fails for any bucket name less than 4 characters. This PR updates the check and adds unit test cases for minimum length.

ISSUE TYPE
  • Bugfix Pull Request
COMPONENT NAME

s3

ADDITIONAL INFORMATION

To reproduce, attempt to perform an action on a bucket with a 3 character name.

Add unit test cases for 2 and 3 character bucket names
@ansibullbot ansibullbot added bug This issue/PR relates to a bug community_review module_utils module_utils needs_triage new_contributor Help guide this first time contributor plugins plugin (any type) tests tests labels May 4, 2022
@softwarefactory-project-zuul
Copy link
Contributor

@softwarefactory-project-zuul
Copy link
Contributor

@jbellanti jbellanti marked this pull request as ready for review May 4, 2022 11:37
Copy link
Collaborator

@alinabuzachis alinabuzachis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jbellanti Thank you. LGTM!

@jbellanti
Copy link
Contributor Author

recheck

@softwarefactory-project-zuul
Copy link
Contributor

Build succeeded.

✔️ ansible-galaxy-importer SUCCESS in 4m 22s
✔️ build-ansible-collection SUCCESS in 5m 11s
✔️ ansible-test-sanity-aws-ansible-python38 SUCCESS in 9m 10s
✔️ ansible-test-sanity-aws-ansible-2.9-python38 SUCCESS in 10m 30s
✔️ ansible-test-sanity-aws-ansible-2.11-python38 SUCCESS in 9m 12s
✔️ ansible-test-units-amazon-aws-python38 SUCCESS in 6m 30s
✔️ ansible-test-splitter SUCCESS in 3m 30s
⚠️ integration-amazon.aws-1 SKIPPED
⚠️ integration-amazon.aws-2 SKIPPED
⚠️ integration-amazon.aws-3 SKIPPED
⚠️ integration-amazon.aws-4 SKIPPED
⚠️ integration-amazon.aws-5 SKIPPED
⚠️ integration-amazon.aws-6 SKIPPED
⚠️ integration-amazon.aws-7 SKIPPED
⚠️ integration-amazon.aws-8 SKIPPED
⚠️ integration-amazon.aws-9 SKIPPED
⚠️ integration-amazon.aws-10 SKIPPED
⚠️ integration-amazon.aws-11 SKIPPED
⚠️ integration-amazon.aws-12 SKIPPED
⚠️ integration-amazon.aws-13 SKIPPED
⚠️ integration-community.aws-1 SKIPPED
⚠️ integration-community.aws-2 SKIPPED
⚠️ integration-community.aws-3 SKIPPED
⚠️ integration-community.aws-4 SKIPPED
⚠️ integration-community.aws-5 SKIPPED
⚠️ integration-community.aws-6 SKIPPED
⚠️ integration-community.aws-7 SKIPPED
⚠️ integration-community.aws-8 SKIPPED
⚠️ integration-community.aws-9 SKIPPED
⚠️ integration-community.aws-10 SKIPPED
⚠️ integration-community.aws-11 SKIPPED
⚠️ integration-community.aws-12 SKIPPED
⚠️ integration-community.aws-13 SKIPPED
ansible-ee-tests-stable-2.12 FAILURE in 13m 28s (non-voting)

@goneri goneri added mergeit Merge the PR (SoftwareFactory) and removed needs_triage labels May 10, 2022
@goneri
Copy link
Member

goneri commented May 10, 2022

Thank you for the contribution @jbellanti

@goneri goneri added backport-2 PR should be backported to the stable-2 branch backport-3 PR should be backported to the stable-3 branch labels May 10, 2022
@softwarefactory-project-zuul
Copy link
Contributor

Build succeeded (gate pipeline).

✔️ ansible-galaxy-importer SUCCESS in 4m 21s
✔️ build-ansible-collection SUCCESS in 4m 40s
✔️ ansible-test-sanity-aws-ansible-python38 SUCCESS in 9m 22s
✔️ ansible-test-sanity-aws-ansible-2.9-python38 SUCCESS in 11m 43s
✔️ ansible-test-sanity-aws-ansible-2.11-python38 SUCCESS in 9m 43s
✔️ ansible-test-units-amazon-aws-python38 SUCCESS in 7m 25s
✔️ ansible-test-splitter SUCCESS in 2m 45s
⚠️ integration-amazon.aws-1 SKIPPED
⚠️ integration-amazon.aws-2 SKIPPED
⚠️ integration-amazon.aws-3 SKIPPED
⚠️ integration-amazon.aws-4 SKIPPED
⚠️ integration-amazon.aws-5 SKIPPED
⚠️ integration-amazon.aws-6 SKIPPED
⚠️ integration-amazon.aws-7 SKIPPED
⚠️ integration-amazon.aws-8 SKIPPED
⚠️ integration-amazon.aws-9 SKIPPED
⚠️ integration-amazon.aws-10 SKIPPED
⚠️ integration-amazon.aws-11 SKIPPED
⚠️ integration-amazon.aws-12 SKIPPED
⚠️ integration-amazon.aws-13 SKIPPED
⚠️ integration-community.aws-1 SKIPPED
⚠️ integration-community.aws-2 SKIPPED
⚠️ integration-community.aws-3 SKIPPED
⚠️ integration-community.aws-4 SKIPPED
⚠️ integration-community.aws-5 SKIPPED
⚠️ integration-community.aws-6 SKIPPED
⚠️ integration-community.aws-7 SKIPPED
⚠️ integration-community.aws-8 SKIPPED
⚠️ integration-community.aws-9 SKIPPED
⚠️ integration-community.aws-10 SKIPPED
⚠️ integration-community.aws-11 SKIPPED
⚠️ integration-community.aws-12 SKIPPED
⚠️ integration-community.aws-13 SKIPPED
ansible-ee-tests-stable-2.12 FAILURE in 12m 23s (non-voting)

@softwarefactory-project-zuul softwarefactory-project-zuul bot merged commit 93b8370 into ansible-collections:main May 10, 2022
@patchback
Copy link

patchback bot commented May 10, 2022

Backport to stable-2: 💚 backport PR created

✅ Backport PR branch: patchback/backports/stable-2/93b837067bd69a99548ce258401e4a96cab70876/pr-802

Backported as #807

🤖 @patchback
I'm built with octomachinery and
my source is open — https://github.com/sanitizers/patchback-github-app.

patchback bot pushed a commit that referenced this pull request May 10, 2022
…et name (#802)

Update s3 module_util validate_bucket_name to accept 3 character bucket name

SUMMARY
According to the S3 docs (https://docs.aws.amazon.com/AmazonS3/latest/userguide/bucketnamingrules.html), the minimum bucket name is 3 characters. The current validate_bucket_name function fails for any bucket name less than 4 characters. This PR updates the check and adds unit test cases for minimum length.
ISSUE TYPE

Bugfix Pull Request

COMPONENT NAME
s3
ADDITIONAL INFORMATION
To reproduce, attempt to perform an action on a bucket with a 3 character name.

Reviewed-by: Alina Buzachis <None>
Reviewed-by: Gonéri Le Bouder <[email protected]>
(cherry picked from commit 93b8370)
@patchback
Copy link

patchback bot commented May 10, 2022

Backport to stable-3: 💚 backport PR created

✅ Backport PR branch: patchback/backports/stable-3/93b837067bd69a99548ce258401e4a96cab70876/pr-802

Backported as #808

🤖 @patchback
I'm built with octomachinery and
my source is open — https://github.com/sanitizers/patchback-github-app.

patchback bot pushed a commit that referenced this pull request May 10, 2022
…et name (#802)

Update s3 module_util validate_bucket_name to accept 3 character bucket name

SUMMARY
According to the S3 docs (https://docs.aws.amazon.com/AmazonS3/latest/userguide/bucketnamingrules.html), the minimum bucket name is 3 characters. The current validate_bucket_name function fails for any bucket name less than 4 characters. This PR updates the check and adds unit test cases for minimum length.
ISSUE TYPE

Bugfix Pull Request

COMPONENT NAME
s3
ADDITIONAL INFORMATION
To reproduce, attempt to perform an action on a bucket with a 3 character name.

Reviewed-by: Alina Buzachis <None>
Reviewed-by: Gonéri Le Bouder <[email protected]>
(cherry picked from commit 93b8370)
softwarefactory-project-zuul bot pushed a commit that referenced this pull request May 19, 2022
…et name (#802) (#808)

[PR #802/93b83706 backport][stable-3] Update s3 module_util validate_bucket_name to accept 3 character bucket name

This is a backport of PR #802 as merged into main (93b8370).
SUMMARY
According to the S3 docs (https://docs.aws.amazon.com/AmazonS3/latest/userguide/bucketnamingrules.html), the minimum bucket name is 3 characters. The current validate_bucket_name function fails for any bucket name less than 4 characters. This PR updates the check and adds unit test cases for minimum length.
ISSUE TYPE

Bugfix Pull Request

COMPONENT NAME
s3
ADDITIONAL INFORMATION
To reproduce, attempt to perform an action on a bucket with a 3 character name.

Reviewed-by: Mark Chappell <None>
softwarefactory-project-zuul bot pushed a commit that referenced this pull request May 24, 2022
…et name (#802) (#807)

[PR #802/93b83706 backport][stable-2] Update s3 module_util validate_bucket_name to accept 3 character bucket name

This is a backport of PR #802 as merged into main (93b8370).
SUMMARY
According to the S3 docs (https://docs.aws.amazon.com/AmazonS3/latest/userguide/bucketnamingrules.html), the minimum bucket name is 3 characters. The current validate_bucket_name function fails for any bucket name less than 4 characters. This PR updates the check and adds unit test cases for minimum length.
ISSUE TYPE

Bugfix Pull Request

COMPONENT NAME
s3
ADDITIONAL INFORMATION
To reproduce, attempt to perform an action on a bucket with a 3 character name.

Reviewed-by: Mark Chappell <None>
alinabuzachis pushed a commit to alinabuzachis/amazon.aws that referenced this pull request Sep 16, 2022
Route53: fix diff mode when state: absent

SUMMARY
Fix diff mode when state: absend
ISSUE TYPE

Bugfix Pull Request

COMPONENT NAME

route53

Reviewed-by: Felix Fontein <None>
Reviewed-by: None <None>

This commit was initially merged in https://github.com/ansible-collections/community.aws
See: ansible-collections/community.aws@2b01e9c
goneri pushed a commit to alinabuzachis/amazon.aws that referenced this pull request Sep 21, 2022
Route53: fix diff mode when state: absent

SUMMARY
Fix diff mode when state: absend
ISSUE TYPE

Bugfix Pull Request

COMPONENT NAME

route53

Reviewed-by: Felix Fontein <None>
Reviewed-by: None <None>

This commit was initially merged in https://github.com/ansible-collections/community.aws
See: ansible-collections/community.aws@2b01e9c
goneri pushed a commit to alinabuzachis/amazon.aws that referenced this pull request Sep 21, 2022
Route53: fix diff mode when state: absent

SUMMARY
Fix diff mode when state: absend
ISSUE TYPE

Bugfix Pull Request

COMPONENT NAME

route53

Reviewed-by: Felix Fontein <None>
Reviewed-by: None <None>

This commit was initially merged in https://github.com/ansible-collections/community.aws
See: ansible-collections/community.aws@2b01e9c
goneri pushed a commit to alinabuzachis/amazon.aws that referenced this pull request Sep 21, 2022
Route53: fix diff mode when state: absent

SUMMARY
Fix diff mode when state: absend
ISSUE TYPE

Bugfix Pull Request

COMPONENT NAME

route53

Reviewed-by: Felix Fontein <None>
Reviewed-by: None <None>

This commit was initially merged in https://github.com/ansible-collections/community.aws
See: ansible-collections/community.aws@2b01e9c
abikouo pushed a commit to abikouo/amazon.aws that referenced this pull request Sep 18, 2023
Route53: fix diff mode when state: absent

SUMMARY
Fix diff mode when state: absend
ISSUE TYPE


Bugfix Pull Request

COMPONENT NAME

route53

Reviewed-by: Felix Fontein <None>
Reviewed-by: None <None>
abikouo pushed a commit to abikouo/amazon.aws that referenced this pull request Sep 18, 2023
Route53: fix diff mode when state: absent

SUMMARY
Fix diff mode when state: absend
ISSUE TYPE


Bugfix Pull Request

COMPONENT NAME

route53

Reviewed-by: Felix Fontein <None>
Reviewed-by: None <None>
abikouo pushed a commit to abikouo/amazon.aws that referenced this pull request Oct 24, 2023
Route53: fix diff mode when state: absent

SUMMARY
Fix diff mode when state: absend
ISSUE TYPE


Bugfix Pull Request

COMPONENT NAME

route53

Reviewed-by: Felix Fontein <None>
Reviewed-by: None <None>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport-2 PR should be backported to the stable-2 branch backport-3 PR should be backported to the stable-3 branch bug This issue/PR relates to a bug community_review mergeit Merge the PR (SoftwareFactory) module_utils module_utils new_contributor Help guide this first time contributor plugins plugin (any type) tests tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants