-
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
New resource for Detective Member and Invitation Accepter #22163
New resource for Detective Member and Invitation Accepter #22163
Conversation
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.
Thanks for this next set of Detective resources @coderGo93! I've gone ahead and made a number of comments + suggestions -- mostly small in scope.
However, we do require one larger change: namely, the acceptance tests here need to be converted to run serially and not concurrently -- due to the AWS restriction of one graph per account per region. You've gotten around that restriction so far by running one test at a time, but for robustness we really want that restriction built in to the tests.
Luckily, converting tests to be run serially is pretty straightforward: just follow this short guide on acceptance test concurrency to rearrange your test functions.
Related: this means we only need one set of environmental variables instead of two!
Looking forward to your further contributions and getting this merged!
Hi @coderGo93! I've just pushed a number of small final changes and confirmed that we're clearing acceptance tests (see below). It's rather late here -- so I'm going to call it a night for now; will look at with fresh eyes in the morning and hopefully merge then! Thanks so much for your patience. ❯ make testacc PKG=detective
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/detective/... -v -count 1 -parallel 20 -timeout 180m
=== RUN TestAccDetective_serial
=== RUN TestAccDetective_serial/Graph
=== RUN TestAccDetective_serial/Graph/basic
=== RUN TestAccDetective_serial/Graph/disappears
=== RUN TestAccDetective_serial/Graph/tags
=== RUN TestAccDetective_serial/InvitationAccepter
=== RUN TestAccDetective_serial/InvitationAccepter/basic
=== RUN TestAccDetective_serial/Member
=== RUN TestAccDetective_serial/Member/basic
=== RUN TestAccDetective_serial/Member/disappear
=== RUN TestAccDetective_serial/Member/message
--- PASS: TestAccDetective_serial (139.71s)
--- PASS: TestAccDetective_serial/Graph (57.22s)
--- PASS: TestAccDetective_serial/Graph/basic (14.37s)
--- PASS: TestAccDetective_serial/Graph/disappears (9.66s)
--- PASS: TestAccDetective_serial/Graph/tags (33.20s)
--- PASS: TestAccDetective_serial/InvitationAccepter (20.29s)
--- PASS: TestAccDetective_serial/InvitationAccepter/basic (20.29s)
--- PASS: TestAccDetective_serial/Member (62.20s)
--- PASS: TestAccDetective_serial/Member/basic (17.94s)
--- PASS: TestAccDetective_serial/Member/disappear (15.64s)
--- PASS: TestAccDetective_serial/Member/message (28.62s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/detective 139.754s |
This functionality has been released in v3.73.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. |
Added a new resource, doc and tests for Detective Member called
aws_detective_member
and Detective Invitation Accepter calledaws_detective_invitation_accepter
Community Note
Relates #11672
Output from acceptance testing:
Detective Member