-
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/mq_broker - allow updating engine version #12758
r/mq_broker - allow updating engine version #12758
Conversation
Verified acceptance tests: $ make testacc TEST=./aws/ TESTARGS='-run=TestAccAWSMqBroker_updateEngineVersion'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws/ -v -count 1 -parallel 20 -run=TestAccAWSMqBroker_updateEngineVersion -timeout 120m
=== RUN TestAccAWSMqBroker_updateEngineVersion
=== PAUSE TestAccAWSMqBroker_updateEngineVersion
=== CONT TestAccAWSMqBroker_updateEngineVersion
--- PASS: TestAccAWSMqBroker_updateEngineVersion (1515.99s)
PASS
ok github.com/terraform-providers/terraform-provider-aws/aws 1516.030s |
7ceae87
to
65671ec
Compare
Verified acceptance test: $ make testacc TEST=./aws/ TESTARGS='-run=TestAccAWSMqBroker_updateEngineVersion'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws/ -v -count 1 -parallel 20 -run=TestAccAWSMqBroker_updateEngineVersion -timeout 120m
=== RUN TestAccAWSMqBroker_updateEngineVersion
=== PAUSE TestAccAWSMqBroker_updateEngineVersion
=== CONT TestAccAWSMqBroker_updateEngineVersion
--- PASS: TestAccAWSMqBroker_updateEngineVersion (1466.44s)
PASS
ok github.com/terraform-providers/terraform-provider-aws/aws 1466.464s |
918fa2e
to
3de5c5f
Compare
9c1fcc8
to
af3ba33
Compare
testing refactor + rebase, test re-run:
|
Any chance we can have this merged? |
8e42172
to
dfd53d7
Compare
Any chance we can have this merged? |
@DrFaust92 This looks like a very helpful PR. Now that some rework with #16108 is merged, if you have a chance to rebase, it would be great to also get this fix in. |
b5a73f4
to
995f0fe
Compare
Thanks @YakDriver rebased and reran tests:
|
Verified acceptance tests: $ make testacc TEST=./aws/ TESTARGS='-run=TestAccAWSMqBroker_' ACCTEST_PARALLELISM=2
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws -v -count 1 -parallel 2 -run=TestAccAWSMqBroker_ -timeout 120m
=== RUN TestAccAWSMqBroker_basic
=== PAUSE TestAccAWSMqBroker_basic
=== RUN TestAccAWSMqBroker_allFieldsDefaultVpc
=== PAUSE TestAccAWSMqBroker_allFieldsDefaultVpc
=== RUN TestAccAWSMqBroker_allFieldsCustomVpc
=== PAUSE TestAccAWSMqBroker_allFieldsCustomVpc
=== RUN TestAccAWSMqBroker_EncryptionOptions_KmsKeyId
=== PAUSE TestAccAWSMqBroker_EncryptionOptions_KmsKeyId
=== RUN TestAccAWSMqBroker_EncryptionOptions_UseAwsOwnedKey_Disabled
=== PAUSE TestAccAWSMqBroker_EncryptionOptions_UseAwsOwnedKey_Disabled
=== RUN TestAccAWSMqBroker_EncryptionOptions_UseAwsOwnedKey_Enabled
=== PAUSE TestAccAWSMqBroker_EncryptionOptions_UseAwsOwnedKey_Enabled
=== RUN TestAccAWSMqBroker_updateUsers
=== PAUSE TestAccAWSMqBroker_updateUsers
=== RUN TestAccAWSMqBroker_tags
=== PAUSE TestAccAWSMqBroker_tags
=== RUN TestAccAWSMqBroker_updateSecurityGroup
=== PAUSE TestAccAWSMqBroker_updateSecurityGroup
=== RUN TestAccAWSMqBroker_updateEngineVersion
=== PAUSE TestAccAWSMqBroker_updateEngineVersion
=== RUN TestAccAWSMqBroker_disappears
=== PAUSE TestAccAWSMqBroker_disappears
=== RUN TestAccAWSMqBroker_rabbitmq
=== PAUSE TestAccAWSMqBroker_rabbitmq
=== CONT TestAccAWSMqBroker_basic
=== CONT TestAccAWSMqBroker_tags
=== CONT TestAccAWSMqBroker_rabbitmq
--- PASS: TestAccAWSMqBroker_basic (1115.06s)
--- PASS: TestAccAWSMqBroker_tags (1178.00s)
=== CONT TestAccAWSMqBroker_disappears
--- PASS: TestAccAWSMqBroker_rabbitmq (539.40s)
=== CONT TestAccAWSMqBroker_updateEngineVersion
--- PASS: TestAccAWSMqBroker_disappears (1114.89s)
=== CONT TestAccAWSMqBroker_updateSecurityGroup
--- PASS: TestAccAWSMqBroker_updateEngineVersion (1287.01s)
=== CONT TestAccAWSMqBroker_EncryptionOptions_UseAwsOwnedKey_Disabled
--- PASS: TestAccAWSMqBroker_updateSecurityGroup (1344.09s)
=== CONT TestAccAWSMqBroker_updateUsers
--- PASS: TestAccAWSMqBroker_EncryptionOptions_UseAwsOwnedKey_Disabled (1075.88s)
=== CONT TestAccAWSMqBroker_EncryptionOptions_UseAwsOwnedKey_Enabled
--- PASS: TestAccAWSMqBroker_updateUsers (1464.31s)
=== CONT TestAccAWSMqBroker_allFieldsCustomVpc
--- PASS: TestAccAWSMqBroker_EncryptionOptions_UseAwsOwnedKey_Enabled (1167.66s)
=== CONT TestAccAWSMqBroker_EncryptionOptions_KmsKeyId
--- PASS: TestAccAWSMqBroker_EncryptionOptions_KmsKeyId (1149.59s)
=== CONT TestAccAWSMqBroker_allFieldsDefaultVpc
--- PASS: TestAccAWSMqBroker_allFieldsDefaultVpc (1561.53s)
--- PASS: TestAccAWSMqBroker_allFieldsCustomVpc (1782.41s)
PASS
ok github.com/terraform-providers/terraform-provider-aws/aws 6883.803s |
Ut-oh. Looks like a bug in our Anyway, thanks for working on this! |
58100d5
to
120fa81
Compare
Co-authored-by: Kit Ewbank <[email protected]>
120fa81
to
253c647
Compare
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.
Looks great! 🎉
Acceptance tests on commercial (us-west-2
):
--- PASS: TestAccAWSMqBroker_rabbitmq (516.10s)
--- PASS: TestAccAWSMqBroker_throughputOptimized (1015.89s)
--- PASS: TestAccAWSMqBroker_EncryptionOptions_KmsKeyId (1100.35s)
--- PASS: TestAccAWSMqBroker_EncryptionOptions_UseAwsOwnedKey_Disabled (1102.55s)
--- PASS: TestAccAWSMqBroker_tags (1120.97s)
--- PASS: TestAccAWSMqBroker_basic (1131.82s)
--- PASS: TestAccAWSMqBroker_disappears (1138.39s)
--- PASS: TestAccAWSMqBroker_EncryptionOptions_UseAwsOwnedKey_Enabled (1146.32s)
--- PASS: TestAccAWSMqBroker_updateSecurityGroup (1340.00s)
--- PASS: TestAccAWSMqBroker_updateEngineVersion (1340.28s)
--- PASS: TestAccAWSMqBroker_updateUsers (1507.62s)
--- PASS: TestAccAWSMqBroker_allFieldsDefaultVpc (1797.68s)
--- PASS: TestAccAWSMqBroker_allFieldsCustomVpc (1818.05s)
On GovCloud (service not available):
--- SKIP: TestAccAWSMqBroker_updateUsers (1.23s)
--- SKIP: TestAccAWSMqBroker_rabbitmq (1.23s)
--- SKIP: TestAccAWSMqBroker_basic (1.23s)
--- SKIP: TestAccAWSMqBroker_allFieldsCustomVpc (1.23s)
--- SKIP: TestAccAWSMqBroker_disappears (1.23s)
--- SKIP: TestAccAWSMqBroker_updateEngineVersion (1.23s)
--- SKIP: TestAccAWSMqBroker_tags (1.23s)
--- SKIP: TestAccAWSMqBroker_updateSecurityGroup (1.23s)
--- SKIP: TestAccAWSMqBroker_throughputOptimized (1.23s)
--- SKIP: TestAccAWSMqBroker_EncryptionOptions_UseAwsOwnedKey_Enabled (1.23s)
--- SKIP: TestAccAWSMqBroker_allFieldsDefaultVpc (1.23s)
--- SKIP: TestAccAWSMqBroker_EncryptionOptions_KmsKeyId (1.23s)
--- SKIP: TestAccAWSMqBroker_EncryptionOptions_UseAwsOwnedKey_Disabled (1.23s)
Check: resource.ComposeTestCheckFunc( | ||
testAccCheckAwsMqBrokerExists(resourceName, &broker), | ||
testAccCheckAwsMqBrokerDisappears(&broker), | ||
testAccCheckResourceDisappears(testAccProvider, resourceAwsMqBroker(), resourceName), |
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.
Nice!
@@ -896,13 +895,13 @@ func flattenMqBrokerInstances(instances []*mq.BrokerInstance) []interface{} { | |||
for i, instance := range instances { | |||
m := make(map[string]interface{}) | |||
if instance.ConsoleURL != nil { | |||
m["console_url"] = *instance.ConsoleURL | |||
m["console_url"] = aws.StringValue(instance.ConsoleURL) |
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.
Good!
@@ -356,7 +354,7 @@ func resourceAwsMqBrokerCreate(d *schema.ResourceData, meta interface{}) error { | |||
input.MaintenanceWindowStartTime = expandMqWeeklyStartTime(v.([]interface{})) | |||
} | |||
if v, ok := d.GetOk("security_groups"); ok && v.(*schema.Set).Len() > 0 { | |||
input.SecurityGroups = expandStringSet(d.Get("security_groups").(*schema.Set)) |
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.
Good catch!
This has been released in version 3.32.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 for triage. Thanks! |
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! |
Community Note
Closes #11827
Release note for CHANGELOG:
Output from acceptance testing: