Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
resource/aws_ssm_parameter: Handle data_type retries after creation f…
…or asynchronous validation process (#14514) Reference: #14513 Previously (depending on relative distance and asynchronous validation timing of SSM API): ``` === CONT TestAccAWSSSMParameter_DataType_AwsEc2Image TestAccAWSSSMParameter_DataType_AwsEc2Image: testing.go:684: Step 0 error: errors during apply: Error: error reading SSM Parameter (tf-acc-test-7552804317262985734) after creation: this can indicate that the provided parameter value could not be validated by SSM ``` Now consistently: ```console $ TF_ACC=1 go test ./aws -v -count 10 -timeout 120m -parallel 20 -run='TestAccAWSSSMParameter_DataType_AwsEc2Image' === RUN TestAccAWSSSMParameter_DataType_AwsEc2Image === PAUSE TestAccAWSSSMParameter_DataType_AwsEc2Image === CONT TestAccAWSSSMParameter_DataType_AwsEc2Image --- PASS: TestAccAWSSSMParameter_DataType_AwsEc2Image (8.37s) === RUN TestAccAWSSSMParameter_DataType_AwsEc2Image === PAUSE TestAccAWSSSMParameter_DataType_AwsEc2Image === CONT TestAccAWSSSMParameter_DataType_AwsEc2Image --- PASS: TestAccAWSSSMParameter_DataType_AwsEc2Image (8.66s) === RUN TestAccAWSSSMParameter_DataType_AwsEc2Image === PAUSE TestAccAWSSSMParameter_DataType_AwsEc2Image === CONT TestAccAWSSSMParameter_DataType_AwsEc2Image --- PASS: TestAccAWSSSMParameter_DataType_AwsEc2Image (10.05s) === RUN TestAccAWSSSMParameter_DataType_AwsEc2Image === PAUSE TestAccAWSSSMParameter_DataType_AwsEc2Image === CONT TestAccAWSSSMParameter_DataType_AwsEc2Image --- PASS: TestAccAWSSSMParameter_DataType_AwsEc2Image (7.75s) === RUN TestAccAWSSSMParameter_DataType_AwsEc2Image === PAUSE TestAccAWSSSMParameter_DataType_AwsEc2Image === CONT TestAccAWSSSMParameter_DataType_AwsEc2Image --- PASS: TestAccAWSSSMParameter_DataType_AwsEc2Image (9.09s) === RUN TestAccAWSSSMParameter_DataType_AwsEc2Image === PAUSE TestAccAWSSSMParameter_DataType_AwsEc2Image === CONT TestAccAWSSSMParameter_DataType_AwsEc2Image --- PASS: TestAccAWSSSMParameter_DataType_AwsEc2Image (8.09s) === RUN TestAccAWSSSMParameter_DataType_AwsEc2Image === PAUSE TestAccAWSSSMParameter_DataType_AwsEc2Image === CONT TestAccAWSSSMParameter_DataType_AwsEc2Image --- PASS: TestAccAWSSSMParameter_DataType_AwsEc2Image (8.31s) === RUN TestAccAWSSSMParameter_DataType_AwsEc2Image === PAUSE TestAccAWSSSMParameter_DataType_AwsEc2Image === CONT TestAccAWSSSMParameter_DataType_AwsEc2Image --- PASS: TestAccAWSSSMParameter_DataType_AwsEc2Image (8.14s) === RUN TestAccAWSSSMParameter_DataType_AwsEc2Image === PAUSE TestAccAWSSSMParameter_DataType_AwsEc2Image === CONT TestAccAWSSSMParameter_DataType_AwsEc2Image --- PASS: TestAccAWSSSMParameter_DataType_AwsEc2Image (8.25s) === RUN TestAccAWSSSMParameter_DataType_AwsEc2Image === PAUSE TestAccAWSSSMParameter_DataType_AwsEc2Image === CONT TestAccAWSSSMParameter_DataType_AwsEc2Image --- PASS: TestAccAWSSSMParameter_DataType_AwsEc2Image (7.64s) PASS ok github.com/terraform-providers/terraform-provider-aws/aws 85.316s ``` Output from acceptance testing: ``` --- PASS: TestAccAWSSSMParameter_disappears (5.12s) --- PASS: TestAccAWSSSMParameter_basic (7.31s) --- PASS: TestAccAWSSSMParameter_secure (8.34s) --- PASS: TestAccAWSSSMParameter_changeNameForcesNew (12.40s) --- PASS: TestAccAWSSSMParameter_updateDescription (12.63s) --- PASS: TestAccAWSSSMParameter_overwrite (13.83s) --- PASS: TestAccAWSSSMParameter_DataType_AwsEc2Image (15.06s) --- PASS: TestAccAWSSSMParameter_fullPath (17.87s) --- PASS: TestAccAWSSSMParameter_Tier (18.01s) --- PASS: TestAccAWSSSMParameter_secure_keyUpdate (19.02s) --- PASS: TestAccAWSSSMParameter_secure_with_key (22.61s) --- PASS: TestAccAWSSSMParameter_updateType (24.92s) --- PASS: TestAccAWSSSMParameter_tags (38.88s) ```
- Loading branch information