-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
r/aws_transfer_user - fix error removing home_directory_mappings
#27563
r/aws_transfer_user - fix error removing home_directory_mappings
#27563
Conversation
Community NoteVoting for Prioritization
For Submitters
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🚀.
% make testacc TESTARGS='-run=TestAccTransfer_serial/User' PKG=transfer
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/transfer/... -v -count 1 -parallel 20 -run=TestAccTransfer_serial/User -timeout 180m
=== RUN TestAccTransfer_serial
=== PAUSE TestAccTransfer_serial
=== CONT TestAccTransfer_serial
=== RUN TestAccTransfer_serial/User
=== RUN TestAccTransfer_serial/User/UserNameValidation
=== RUN TestAccTransfer_serial/User/basic
=== RUN TestAccTransfer_serial/User/disappears
=== RUN TestAccTransfer_serial/User/tags
=== RUN TestAccTransfer_serial/User/HomeDirectoryMappings
=== RUN TestAccTransfer_serial/User/ModifyWithOptions
=== RUN TestAccTransfer_serial/User/Posix
--- PASS: TestAccTransfer_serial (1164.51s)
--- PASS: TestAccTransfer_serial/User (1164.51s)
--- PASS: TestAccTransfer_serial/User/UserNameValidation (16.07s)
--- PASS: TestAccTransfer_serial/User/basic (190.77s)
--- PASS: TestAccTransfer_serial/User/disappears (157.61s)
--- PASS: TestAccTransfer_serial/User/tags (210.15s)
--- PASS: TestAccTransfer_serial/User/HomeDirectoryMappings (201.15s)
--- PASS: TestAccTransfer_serial/User/ModifyWithOptions (199.25s)
--- PASS: TestAccTransfer_serial/User/Posix (162.45s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/transfer 1169.975s
@mtt88 Thanks for the contribution 🎉 👏. |
This functionality has been released in v4.57.0 of the Terraform AWS Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you! |
I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
Description
It's not currently possible to completely remove all
home_directory_mappings
attributes from a transfer user. Removing allhome_directory_mappings
from a transfer_user was represented as an empty list. This caused a validation error in the AWS SDK. See here.We now represent this value as
nil
rather than an empty list.Note: The tests for transfer package are serial/non-concurrent. I temporarily changed the access of the test to allow individual execution and the output below.
Relations
Output from Acceptance Testing