-
Notifications
You must be signed in to change notification settings - Fork 9.2k
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_sqs_queue allow SQS name validation during terraform validate #2837
Conversation
Forgot to add the test output!
|
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.
This looks great! Thanks so much!
make testacc TEST=./aws TESTARGS='-run=TestAccAWSSQSQueue'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws -v -run=TestAccAWSSQSQueue -timeout 120m
=== RUN TestAccAWSSQSQueue_importBasic
--- PASS: TestAccAWSSQSQueue_importBasic (14.54s)
=== RUN TestAccAWSSQSQueue_importFifo
--- PASS: TestAccAWSSQSQueue_importFifo (15.59s)
=== RUN TestAccAWSSQSQueue_importEncryption
--- PASS: TestAccAWSSQSQueue_importEncryption (12.00s)
=== RUN TestAccAWSSQSQueuePolicy_basic
--- PASS: TestAccAWSSQSQueuePolicy_basic (14.32s)
=== RUN TestAccAWSSQSQueuePolicy_import
--- PASS: TestAccAWSSQSQueuePolicy_import (14.17s)
=== RUN TestAccAWSSQSQueue_basic
--- PASS: TestAccAWSSQSQueue_basic (28.56s)
=== RUN TestAccAWSSQSQueue_tags
--- PASS: TestAccAWSSQSQueue_tags (29.72s)
=== RUN TestAccAWSSQSQueue_namePrefix
--- PASS: TestAccAWSSQSQueue_namePrefix (11.04s)
=== RUN TestAccAWSSQSQueue_policy
--- PASS: TestAccAWSSQSQueue_policy (16.33s)
=== RUN TestAccAWSSQSQueue_redrivePolicy
--- PASS: TestAccAWSSQSQueue_redrivePolicy (15.00s)
=== RUN TestAccAWSSQSQueue_Policybasic
--- PASS: TestAccAWSSQSQueue_Policybasic (16.04s)
=== RUN TestAccAWSSQSQueue_FIFO
--- PASS: TestAccAWSSQSQueue_FIFO (10.62s)
=== RUN TestAccAWSSQSQueue_FIFOExpectNameError
--- PASS: TestAccAWSSQSQueue_FIFOExpectNameError (2.51s)
=== RUN TestAccAWSSQSQueue_FIFOWithContentBasedDeduplication
--- PASS: TestAccAWSSQSQueue_FIFOWithContentBasedDeduplication (11.39s)
=== RUN TestAccAWSSQSQueue_ExpectContentBasedDeduplicationError
--- PASS: TestAccAWSSQSQueue_ExpectContentBasedDeduplicationError (2.54s)
=== RUN TestAccAWSSQSQueue_Encryption
--- PASS: TestAccAWSSQSQueue_Encryption (10.37s)
PASS
ok github.com/terraform-providers/terraform-provider-aws/aws 224.790s
This has been released in version 1.10.0 of the AWS provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks! |
Fixes #2835.
I have repurposed the validateSQSQueueName function to allow for both FIFO and non-FIFO queue names which therefore can be used in the Schema. I moved the old functionality to the new validateSQSNonFifoQueueName function. I also bumped the FIFO and non-FIFO tests to test against both relevant functions.