-
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
Support for features in GuardDuty Detector #31463
Support for features in GuardDuty Detector #31463
Conversation
Community NoteVoting for Prioritization
For Submitters
|
@justinretzolk I need help to complete the test suite! Can someone from the team chime in on my problem? The new resource "aws_guardduty_detector" "test" {
features {
name = "EKS_AUDIT_LOGS"
enable = %[1]t
}
} all the other features are populated with the default values. This isn't the case for the deprecated
How should I write the tests that I verify the configured feature to be in the list with the correct |
Hey @ringods 👋 Thank you for taking the time to raise this! Since you're having issues with the tests, feel free to leave them for now, and when we're able to prioritize this, someone from the team will be happy to help workshop them 🙂 |
Hello @justinretzolk, my PR is "feature complete" now that it includes the changes for the resource, the datasource and the documentation. I will monitor the PR and help out where needed to get the test suite working. The old |
Is there any chance it will be prioritized soon? |
Hey all 👋 Thank you for checking in on this! Unfortunately I can't provide an ETA on when this will be reviewed/merged due to the potential of shifting priorities. We prioritize by count of 👍 reactions and a few other things (more information on our prioritization guide if you're interested). That said, with the deprecation called out above, I'll make sure to bring this one up to the team to see what we can do. |
This reverts commit 931f43f.
# Conflicts: # website/docs/r/guardduty_detector.html.markdown
% make testacc TESTARGS='-run=TestAccGuardDuty_serial/Filter' PKG=guardduty ==> Checking that code complies with gofmt requirements... TF_ACC=1 go test ./internal/service/guardduty/... -v -count 1 -parallel 20 -run=TestAccGuardDuty_serial/Filter -timeout 360m === RUN TestAccGuardDuty_serial === PAUSE TestAccGuardDuty_serial === CONT TestAccGuardDuty_serial === RUN TestAccGuardDuty_serial/Filter === RUN TestAccGuardDuty_serial/Filter/basic === RUN TestAccGuardDuty_serial/Filter/update === RUN TestAccGuardDuty_serial/Filter/tags === RUN TestAccGuardDuty_serial/Filter/disappears --- PASS: TestAccGuardDuty_serial (172.71s) --- PASS: TestAccGuardDuty_serial/Filter (172.71s) --- PASS: TestAccGuardDuty_serial/Filter/basic (49.88s) --- PASS: TestAccGuardDuty_serial/Filter/update (38.80s) --- PASS: TestAccGuardDuty_serial/Filter/tags (58.11s) --- PASS: TestAccGuardDuty_serial/Filter/disappears (25.92s) PASS ok github.com/hashicorp/terraform-provider-aws/internal/service/guardduty 177.788s
% make testacc TESTARGS='-run=TestAccGuardDuty_serial/DetectorFeature' PKG=guardduty ==> Checking that code complies with gofmt requirements... TF_ACC=1 go test ./internal/service/guardduty/... -v -count 1 -parallel 20 -run=TestAccGuardDuty_serial/DetectorFeature -timeout 360m === RUN TestAccGuardDuty_serial === PAUSE TestAccGuardDuty_serial === CONT TestAccGuardDuty_serial === RUN TestAccGuardDuty_serial/DetectorFeature === RUN TestAccGuardDuty_serial/DetectorFeature/basic --- PASS: TestAccGuardDuty_serial (26.71s) --- PASS: TestAccGuardDuty_serial/DetectorFeature (26.71s) --- PASS: TestAccGuardDuty_serial/DetectorFeature/basic (26.71s) PASS ok github.com/hashicorp/terraform-provider-aws/internal/service/guardduty 32.307s
% make testacc TESTARGS='-run=TestAccGuardDuty_serial/DetectorFeature/multiple' PKG=guardduty ==> Checking that code complies with gofmt requirements... TF_ACC=1 go test ./internal/service/guardduty/... -v -count 1 -parallel 20 -run=TestAccGuardDuty_serial/DetectorFeature/multiple -timeout 360m === RUN TestAccGuardDuty_serial === PAUSE TestAccGuardDuty_serial === CONT TestAccGuardDuty_serial === RUN TestAccGuardDuty_serial/DetectorFeature === RUN TestAccGuardDuty_serial/DetectorFeature/multiple --- PASS: TestAccGuardDuty_serial (62.34s) --- PASS: TestAccGuardDuty_serial/DetectorFeature (62.34s) --- PASS: TestAccGuardDuty_serial/DetectorFeature/multiple (62.34s) PASS ok github.com/hashicorp/terraform-provider-aws/internal/service/guardduty 67.776s
…tector." This reverts commit 10be4c2.
% make testacc TESTARGS='-run=TestAccGuardDuty_serial/DetectorFeature/multiple' PKG=guardduty ==> Checking that code complies with gofmt requirements... TF_ACC=1 go test ./internal/service/guardduty/... -v -count 1 -parallel 20 -run=TestAccGuardDuty_serial/DetectorFeature/multiple -timeout 360m === RUN TestAccGuardDuty_serial === PAUSE TestAccGuardDuty_serial === CONT TestAccGuardDuty_serial === RUN TestAccGuardDuty_serial/DetectorFeature === RUN TestAccGuardDuty_serial/DetectorFeature/multiple --- PASS: TestAccGuardDuty_serial (57.49s) --- PASS: TestAccGuardDuty_serial/DetectorFeature (57.49s) --- PASS: TestAccGuardDuty_serial/DetectorFeature/multiple (57.49s) PASS ok github.com/hashicorp/terraform-provider-aws/internal/service/guardduty 62.908s
% make testacc TESTARGS='-run=TestAccGuardDuty_serial/^Detector$$/datasource_' PKG=guardduty ==> Checking that code complies with gofmt requirements... TF_ACC=1 go test ./internal/service/guardduty/... -v -count 1 -parallel 20 -run=TestAccGuardDuty_serial/^Detector$/datasource_ -timeout 360m === RUN TestAccGuardDuty_serial === PAUSE TestAccGuardDuty_serial === CONT TestAccGuardDuty_serial === RUN TestAccGuardDuty_serial/Detector === RUN TestAccGuardDuty_serial/Detector/datasource_basic === RUN TestAccGuardDuty_serial/Detector/datasource_id --- PASS: TestAccGuardDuty_serial (43.59s) --- PASS: TestAccGuardDuty_serial/Detector (43.59s) --- PASS: TestAccGuardDuty_serial/Detector/datasource_basic (22.86s) --- PASS: TestAccGuardDuty_serial/Detector/datasource_id (20.73s) PASS ok github.com/hashicorp/terraform-provider-aws/internal/service/guardduty 48.907s
@xxx Thanks for the contribution 🎉 👏. |
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=TestAccGuardDuty_serial/Filter' PKG=guardduty
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/guardduty/... -v -count 1 -parallel 20 -run=TestAccGuardDuty_serial/Filter -timeout 360m
=== RUN TestAccGuardDuty_serial
=== PAUSE TestAccGuardDuty_serial
=== CONT TestAccGuardDuty_serial
=== RUN TestAccGuardDuty_serial/Filter
=== RUN TestAccGuardDuty_serial/Filter/basic
=== RUN TestAccGuardDuty_serial/Filter/update
=== RUN TestAccGuardDuty_serial/Filter/tags
=== RUN TestAccGuardDuty_serial/Filter/disappears
--- PASS: TestAccGuardDuty_serial (172.71s)
--- PASS: TestAccGuardDuty_serial/Filter (172.71s)
--- PASS: TestAccGuardDuty_serial/Filter/basic (49.88s)
--- PASS: TestAccGuardDuty_serial/Filter/update (38.80s)
--- PASS: TestAccGuardDuty_serial/Filter/tags (58.11s)
--- PASS: TestAccGuardDuty_serial/Filter/disappears (25.92s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/guardduty 177.788s
% make testacc TESTARGS='-run=TestAccGuardDuty_serial/^Detector$$/datasource_' PKG=guardduty
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/guardduty/... -v -count 1 -parallel 20 -run=TestAccGuardDuty_serial/^Detector$/datasource_ -timeout 360m
=== RUN TestAccGuardDuty_serial
=== PAUSE TestAccGuardDuty_serial
=== CONT TestAccGuardDuty_serial
=== RUN TestAccGuardDuty_serial/Detector
=== RUN TestAccGuardDuty_serial/Detector/datasource_basic
=== RUN TestAccGuardDuty_serial/Detector/datasource_id
--- PASS: TestAccGuardDuty_serial (43.59s)
--- PASS: TestAccGuardDuty_serial/Detector (43.59s)
--- PASS: TestAccGuardDuty_serial/Detector/datasource_basic (22.86s)
--- PASS: TestAccGuardDuty_serial/Detector/datasource_id (20.73s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/guardduty 48.907s
% make testacc TESTARGS='-run=TestAccGuardDuty_serial/DetectorFeature' PKG=guardduty
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/guardduty/... -v -count 1 -parallel 20 -run=TestAccGuardDuty_serial/DetectorFeature -timeout 360m
=== RUN TestAccGuardDuty_serial
=== PAUSE TestAccGuardDuty_serial
=== CONT TestAccGuardDuty_serial
=== RUN TestAccGuardDuty_serial/DetectorFeature
=== RUN TestAccGuardDuty_serial/DetectorFeature/multiple
=== RUN TestAccGuardDuty_serial/DetectorFeature/basic
=== RUN TestAccGuardDuty_serial/DetectorFeature/additional_configuration
--- PASS: TestAccGuardDuty_serial (142.21s)
--- PASS: TestAccGuardDuty_serial/DetectorFeature (142.21s)
--- PASS: TestAccGuardDuty_serial/DetectorFeature/multiple (64.97s)
--- PASS: TestAccGuardDuty_serial/DetectorFeature/basic (21.23s)
--- PASS: TestAccGuardDuty_serial/DetectorFeature/additional_configuration (56.00s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/guardduty 147.222s
% make testacc TESTARGS='-run=TestAccGuardDuty_serial/^Detector$$' PKG=guardduty
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/guardduty/... -v -count 1 -parallel 20 -run=TestAccGuardDuty_serial/^Detector$ -timeout 360m
=== RUN TestAccGuardDuty_serial
=== PAUSE TestAccGuardDuty_serial
=== CONT TestAccGuardDuty_serial
=== RUN TestAccGuardDuty_serial/Detector
=== RUN TestAccGuardDuty_serial/Detector/tags
=== RUN TestAccGuardDuty_serial/Detector/datasource_basic
=== RUN TestAccGuardDuty_serial/Detector/datasource_id
=== RUN TestAccGuardDuty_serial/Detector/basic
=== RUN TestAccGuardDuty_serial/Detector/datasources_s3logs
=== RUN TestAccGuardDuty_serial/Detector/datasources_kubernetes_audit_logs
=== RUN TestAccGuardDuty_serial/Detector/datasources_malware_protection
=== RUN TestAccGuardDuty_serial/Detector/datasources_all
--- PASS: TestAccGuardDuty_serial (370.85s)
--- PASS: TestAccGuardDuty_serial/Detector (370.85s)
--- PASS: TestAccGuardDuty_serial/Detector/tags (55.58s)
--- PASS: TestAccGuardDuty_serial/Detector/datasource_basic (21.83s)
--- PASS: TestAccGuardDuty_serial/Detector/datasource_id (21.22s)
--- PASS: TestAccGuardDuty_serial/Detector/basic (78.72s)
--- PASS: TestAccGuardDuty_serial/Detector/datasources_s3logs (39.46s)
--- PASS: TestAccGuardDuty_serial/Detector/datasources_kubernetes_audit_logs (39.58s)
--- PASS: TestAccGuardDuty_serial/Detector/datasources_malware_protection (42.37s)
--- PASS: TestAccGuardDuty_serial/Detector/datasources_all (72.08s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/guardduty 375.899s
… a single newline character'.
This functionality has been released in v5.20.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
Relations
Closes #30303.
Closes #18619.
Closes #21030.
Closes #19893.
Closes #32949.
Closes #30859.
Closes #28229.
References
Output from Acceptance Testing
Current tests fail on the new
features
. See my ask for help below.