Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
r/aws_sqs_queue: append .fifo suffix for FIFO queue if name unspecifi…
…ed (#17164) * fix: append .fifo suffix for FIFO queue if name unspecified * test: add test for unnamed fifo queues * r/aws_sqs_queue: Make name generation and validation consistent with aws_sns_topic (#15828). Acceptance test output: % make testacc TEST=./aws TESTARGS='-run=TestAccAWSSQSQueue_' ACCTEST_PARALLELISM=4 ==> Checking that code complies with gofmt requirements... TF_ACC=1 go test ./aws -v -count 1 -parallel 4 -run=TestAccAWSSQSQueue_ -timeout 180m === RUN TestAccAWSSQSQueue_basic === PAUSE TestAccAWSSQSQueue_basic === RUN TestAccAWSSQSQueue_tags === PAUSE TestAccAWSSQSQueue_tags === RUN TestAccAWSSQSQueue_namePrefix === PAUSE TestAccAWSSQSQueue_namePrefix === RUN TestAccAWSSQSQueue_namePrefix_fifo === PAUSE TestAccAWSSQSQueue_namePrefix_fifo === RUN TestAccAWSSQSQueue_policy === PAUSE TestAccAWSSQSQueue_policy === RUN TestAccAWSSQSQueue_queueDeletedRecently === PAUSE TestAccAWSSQSQueue_queueDeletedRecently === RUN TestAccAWSSQSQueue_redrivePolicy === PAUSE TestAccAWSSQSQueue_redrivePolicy === RUN TestAccAWSSQSQueue_Policybasic === PAUSE TestAccAWSSQSQueue_Policybasic === RUN TestAccAWSSQSQueue_FIFO === PAUSE TestAccAWSSQSQueue_FIFO === RUN TestAccAWSSQSQueue_FIFOExpectNameError === PAUSE TestAccAWSSQSQueue_FIFOExpectNameError === RUN TestAccAWSSQSQueue_FIFOWithContentBasedDeduplication === PAUSE TestAccAWSSQSQueue_FIFOWithContentBasedDeduplication === RUN TestAccAWSSQSQueue_ExpectContentBasedDeduplicationError === PAUSE TestAccAWSSQSQueue_ExpectContentBasedDeduplicationError === RUN TestAccAWSSQSQueue_Encryption === PAUSE TestAccAWSSQSQueue_Encryption === RUN TestAccAWSSQSQueue_FIFO_MinusName === PAUSE TestAccAWSSQSQueue_FIFO_MinusName === CONT TestAccAWSSQSQueue_basic === CONT TestAccAWSSQSQueue_FIFO === CONT TestAccAWSSQSQueue_Encryption === CONT TestAccAWSSQSQueue_policy --- PASS: TestAccAWSSQSQueue_FIFO (14.10s) === CONT TestAccAWSSQSQueue_Policybasic --- PASS: TestAccAWSSQSQueue_Encryption (14.34s) === CONT TestAccAWSSQSQueue_redrivePolicy --- PASS: TestAccAWSSQSQueue_redrivePolicy (14.96s) === CONT TestAccAWSSQSQueue_queueDeletedRecently --- PASS: TestAccAWSSQSQueue_basic (33.02s) === CONT TestAccAWSSQSQueue_FIFOWithContentBasedDeduplication --- PASS: TestAccAWSSQSQueue_FIFOWithContentBasedDeduplication (11.85s) === CONT TestAccAWSSQSQueue_ExpectContentBasedDeduplicationError --- PASS: TestAccAWSSQSQueue_ExpectContentBasedDeduplicationError (1.64s) === CONT TestAccAWSSQSQueue_namePrefix_fifo --- PASS: TestAccAWSSQSQueue_queueDeletedRecently (17.96s) === CONT TestAccAWSSQSQueue_FIFOExpectNameError --- PASS: TestAccAWSSQSQueue_FIFOExpectNameError (1.59s) === CONT TestAccAWSSQSQueue_FIFO_MinusName --- PASS: TestAccAWSSQSQueue_namePrefix_fifo (13.39s) === CONT TestAccAWSSQSQueue_tags --- PASS: TestAccAWSSQSQueue_FIFO_MinusName (13.12s) === CONT TestAccAWSSQSQueue_namePrefix --- PASS: TestAccAWSSQSQueue_policy (66.36s) --- PASS: TestAccAWSSQSQueue_namePrefix (11.90s) --- PASS: TestAccAWSSQSQueue_Policybasic (64.42s) --- PASS: TestAccAWSSQSQueue_tags (30.27s) PASS ok github.com/terraform-providers/terraform-provider-aws/aws 94.367s * r/aws_sqs_queue: Additional name generation tests. Acceptance test output: % make testacc TEST=./aws TESTARGS='-run=TestAccAWSSQSQueue_' ACCTEST_PARALLELISM=4 ==> Checking that code complies with gofmt requirements... TF_ACC=1 go test ./aws -v -count 1 -parallel 4 -run=TestAccAWSSQSQueue_ -timeout 180m === RUN TestAccAWSSQSQueue_basic === PAUSE TestAccAWSSQSQueue_basic === RUN TestAccAWSSQSQueue_tags === PAUSE TestAccAWSSQSQueue_tags === RUN TestAccAWSSQSQueue_Name_Generated === PAUSE TestAccAWSSQSQueue_Name_Generated === RUN TestAccAWSSQSQueue_Name_Generated_FIFOQueue === PAUSE TestAccAWSSQSQueue_Name_Generated_FIFOQueue === RUN TestAccAWSSQSQueue_NamePrefix === PAUSE TestAccAWSSQSQueue_NamePrefix === RUN TestAccAWSSQSQueue_NamePrefix_FIFOQueue === PAUSE TestAccAWSSQSQueue_NamePrefix_FIFOQueue === RUN TestAccAWSSQSQueue_policy === PAUSE TestAccAWSSQSQueue_policy === RUN TestAccAWSSQSQueue_queueDeletedRecently === PAUSE TestAccAWSSQSQueue_queueDeletedRecently === RUN TestAccAWSSQSQueue_redrivePolicy === PAUSE TestAccAWSSQSQueue_redrivePolicy === RUN TestAccAWSSQSQueue_Policybasic === PAUSE TestAccAWSSQSQueue_Policybasic === RUN TestAccAWSSQSQueue_FIFO === PAUSE TestAccAWSSQSQueue_FIFO === RUN TestAccAWSSQSQueue_FIFOExpectNameError === PAUSE TestAccAWSSQSQueue_FIFOExpectNameError === RUN TestAccAWSSQSQueue_FIFOWithContentBasedDeduplication === PAUSE TestAccAWSSQSQueue_FIFOWithContentBasedDeduplication === RUN TestAccAWSSQSQueue_ExpectContentBasedDeduplicationError === PAUSE TestAccAWSSQSQueue_ExpectContentBasedDeduplicationError === RUN TestAccAWSSQSQueue_Encryption === PAUSE TestAccAWSSQSQueue_Encryption === CONT TestAccAWSSQSQueue_basic === CONT TestAccAWSSQSQueue_redrivePolicy === CONT TestAccAWSSQSQueue_NamePrefix === CONT TestAccAWSSQSQueue_queueDeletedRecently --- PASS: TestAccAWSSQSQueue_NamePrefix (14.27s) === CONT TestAccAWSSQSQueue_policy --- PASS: TestAccAWSSQSQueue_redrivePolicy (16.99s) === CONT TestAccAWSSQSQueue_Name_Generated --- PASS: TestAccAWSSQSQueue_queueDeletedRecently (20.58s) === CONT TestAccAWSSQSQueue_Name_Generated_FIFOQueue --- PASS: TestAccAWSSQSQueue_Name_Generated (12.20s) === CONT TestAccAWSSQSQueue_FIFOWithContentBasedDeduplication --- PASS: TestAccAWSSQSQueue_Name_Generated_FIFOQueue (12.84s) === CONT TestAccAWSSQSQueue_NamePrefix_FIFOQueue --- PASS: TestAccAWSSQSQueue_basic (34.10s) === CONT TestAccAWSSQSQueue_tags --- PASS: TestAccAWSSQSQueue_FIFOWithContentBasedDeduplication (13.36s) === CONT TestAccAWSSQSQueue_ExpectContentBasedDeduplicationError --- PASS: TestAccAWSSQSQueue_ExpectContentBasedDeduplicationError (1.61s) === CONT TestAccAWSSQSQueue_Encryption --- PASS: TestAccAWSSQSQueue_NamePrefix_FIFOQueue (12.78s) === CONT TestAccAWSSQSQueue_FIFO --- PASS: TestAccAWSSQSQueue_Encryption (11.97s) === CONT TestAccAWSSQSQueue_FIFOExpectNameError --- PASS: TestAccAWSSQSQueue_FIFOExpectNameError (1.62s) === CONT TestAccAWSSQSQueue_Policybasic --- PASS: TestAccAWSSQSQueue_FIFO (11.88s) --- PASS: TestAccAWSSQSQueue_tags (30.67s) --- PASS: TestAccAWSSQSQueue_policy (64.88s) --- PASS: TestAccAWSSQSQueue_Policybasic (63.94s) PASS ok github.com/terraform-providers/terraform-provider-aws/aws 124.792s * r/aws_sns_topic: Remove 'ImportStateVerifyIgnore' for 'name_prefix' in acceptance tests. Acceptance test output: % make testacc TEST=./aws TESTARGS='-run=TestAccAWSSNSTopic_' ACCTEST_PARALLELISM=4 ==> Checking that code complies with gofmt requirements... TF_ACC=1 go test ./aws -v -count 1 -parallel 4 -run=TestAccAWSSNSTopic_ -timeout 180m === RUN TestAccAWSSNSTopic_basic === PAUSE TestAccAWSSNSTopic_basic === RUN TestAccAWSSNSTopic_Name === PAUSE TestAccAWSSNSTopic_Name === RUN TestAccAWSSNSTopic_NamePrefix === PAUSE TestAccAWSSNSTopic_NamePrefix === RUN TestAccAWSSNSTopic_policy === PAUSE TestAccAWSSNSTopic_policy === RUN TestAccAWSSNSTopic_withIAMRole === PAUSE TestAccAWSSNSTopic_withIAMRole === RUN TestAccAWSSNSTopic_withFakeIAMRole === PAUSE TestAccAWSSNSTopic_withFakeIAMRole === RUN TestAccAWSSNSTopic_withDeliveryPolicy === PAUSE TestAccAWSSNSTopic_withDeliveryPolicy === RUN TestAccAWSSNSTopic_deliveryStatus === PAUSE TestAccAWSSNSTopic_deliveryStatus === RUN TestAccAWSSNSTopic_Name_Generated_FIFOTopic === PAUSE TestAccAWSSNSTopic_Name_Generated_FIFOTopic === RUN TestAccAWSSNSTopic_Name_FIFOTopic === PAUSE TestAccAWSSNSTopic_Name_FIFOTopic === RUN TestAccAWSSNSTopic_NamePrefix_FIFOTopic === PAUSE TestAccAWSSNSTopic_NamePrefix_FIFOTopic === RUN TestAccAWSSNSTopic_FIFOWithContentBasedDeduplication === PAUSE TestAccAWSSNSTopic_FIFOWithContentBasedDeduplication === RUN TestAccAWSSNSTopic_FIFOExpectContentBasedDeduplicationError === PAUSE TestAccAWSSNSTopic_FIFOExpectContentBasedDeduplicationError === RUN TestAccAWSSNSTopic_encryption === PAUSE TestAccAWSSNSTopic_encryption === RUN TestAccAWSSNSTopic_tags === PAUSE TestAccAWSSNSTopic_tags === CONT TestAccAWSSNSTopic_basic === CONT TestAccAWSSNSTopic_Name_Generated_FIFOTopic === CONT TestAccAWSSNSTopic_FIFOWithContentBasedDeduplication === CONT TestAccAWSSNSTopic_FIFOExpectContentBasedDeduplicationError --- PASS: TestAccAWSSNSTopic_FIFOExpectContentBasedDeduplicationError (3.24s) === CONT TestAccAWSSNSTopic_NamePrefix_FIFOTopic --- PASS: TestAccAWSSNSTopic_basic (17.44s) === CONT TestAccAWSSNSTopic_Name_FIFOTopic --- PASS: TestAccAWSSNSTopic_Name_Generated_FIFOTopic (17.45s) === CONT TestAccAWSSNSTopic_withIAMRole --- PASS: TestAccAWSSNSTopic_NamePrefix_FIFOTopic (16.26s) === CONT TestAccAWSSNSTopic_deliveryStatus --- PASS: TestAccAWSSNSTopic_FIFOWithContentBasedDeduplication (29.43s) === CONT TestAccAWSSNSTopic_withDeliveryPolicy --- PASS: TestAccAWSSNSTopic_Name_FIFOTopic (13.79s) === CONT TestAccAWSSNSTopic_withFakeIAMRole --- PASS: TestAccAWSSNSTopic_withIAMRole (23.62s) === CONT TestAccAWSSNSTopic_Name --- PASS: TestAccAWSSNSTopic_withDeliveryPolicy (14.49s) === CONT TestAccAWSSNSTopic_policy --- PASS: TestAccAWSSNSTopic_deliveryStatus (34.30s) === CONT TestAccAWSSNSTopic_tags --- PASS: TestAccAWSSNSTopic_Name (13.55s) === CONT TestAccAWSSNSTopic_NamePrefix --- PASS: TestAccAWSSNSTopic_policy (15.40s) === CONT TestAccAWSSNSTopic_encryption --- PASS: TestAccAWSSNSTopic_NamePrefix (13.83s) --- PASS: TestAccAWSSNSTopic_encryption (26.86s) --- PASS: TestAccAWSSNSTopic_tags (38.04s) --- PASS: TestAccAWSSNSTopic_withFakeIAMRole (125.75s) PASS ok github.com/terraform-providers/terraform-provider-aws/aws 160.023s Co-authored-by: Kit Ewbank <Kit_Ewbank@hotmail.com>
- Loading branch information