-
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
resource/aws_connect_contact_flow: add delete function #22303
resource/aws_connect_contact_flow: add delete function #22303
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.
Welcome @rahul-amzn 👋
It looks like this is your first Pull Request submission to the Terraform AWS Provider! If you haven’t already done so please make sure you have checked out our CONTRIBUTING guide and FAQ to make sure your contribution is adhering to best practice and has all the necessary elements in place for a successful approval.
Also take a look at our FAQ which details how we prioritize Pull Requests for inclusion.
Thanks again, and welcome to the community! 😃
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 good to me!
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.
Additional changes requested thanks to @GlennChia 's eagle eyes.
@@ -131,7 +131,6 @@ func testAccContactFlow_filename(t *testing.T) { | |||
}) | |||
} | |||
|
|||
// Can't delete an contact flow. Test deletion of entire connect instance | |||
func testAccContactFlow_disappears_ConnectInstance(t *testing.T) { |
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.
This name and implementation should be changed to the ContactFlow:
testAccContactFlow_disappears
And the on line 152, we need to test the Contact Flow resource itself, not the Connect Instance:
acctest.CheckResourceDisappears(acctest.Provider, tfconnect.ResourceContactFlow(), 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.
@AdamTylerLynch @GlennChia Thanks for review, made requested changes. Please check.
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.
@AdamTylerLynch Here is the AccTest output:
$ date
Mon 27 Dec 2021 22:38:27 IST
$ make testacc TESTARGS='-run=TestAccConnectContactFlow_serial' PKG_NAME=internal/service/connect
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/connect/... -v -count 1 -parallel 20 -run=TestAccConnectContactFlow_serial -timeout 180m
=== RUN TestAccConnectContactFlow_serial
=== RUN TestAccConnectContactFlow_serial/disappears
=== RUN TestAccConnectContactFlow_serial/basic
=== RUN TestAccConnectContactFlow_serial/filename
--- PASS: TestAccConnectContactFlow_serial (552.29s)
--- PASS: TestAccConnectContactFlow_serial/disappears (149.91s)
--- PASS: TestAccConnectContactFlow_serial/basic (202.02s)
--- PASS: TestAccConnectContactFlow_serial/filename (200.37s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/connect 555.793s
...
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 🚀
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
LGTM 🚀 Verified Acceptance Tests in Commercial (us-west-2) make testacc TESTARGS='-run=TestAccConnectContactFlow_serial' PKG_NAME=internal/service/connect
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/connect/... -v -count 1 -parallel 20 -run=TestAccConnectContactFlow_serial -timeout 180m
=== RUN TestAccConnectContactFlow_serial
=== RUN TestAccConnectContactFlow_serial/basic
=== RUN TestAccConnectContactFlow_serial/filename
=== RUN TestAccConnectContactFlow_serial/disappears
--- PASS: TestAccConnectContactFlow_serial (333.11s)
--- PASS: TestAccConnectContactFlow_serial/basic (144.93s)
--- PASS: TestAccConnectContactFlow_serial/filename (102.31s)
--- PASS: TestAccConnectContactFlow_serial/disappears (85.86s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/connect 336.684s Verified Acceptance Tests in GovCloud (us-gov-west-1) make testacc TESTARGS='-run=TestAccConnectContactFlow_serial' PKG_NAME=internal/service/connect
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/connect/... -v -count 1 -parallel 20 -run=TestAccConnectContactFlow_serial -timeout 180m
=== RUN TestAccConnectContactFlow_serial
=== RUN TestAccConnectContactFlow_serial/basic
=== RUN TestAccConnectContactFlow_serial/filename
=== RUN TestAccConnectContactFlow_serial/disappears
--- PASS: TestAccConnectContactFlow_serial (296.24s)
--- PASS: TestAccConnectContactFlow_serial/basic (130.28s)
--- PASS: TestAccConnectContactFlow_serial/filename (96.57s)
--- PASS: TestAccConnectContactFlow_serial/disappears (69.40s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/connect 299.776s |
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. |
Community Note
Relates OR Closes #21935
Output from acceptance testing:
we evaluated the acceptance tests and determined that no changes were required. would love feedback on this decision