Skip to content
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

Plan recreation of tag assignments and teams on external to Terraform deletion #686

Conversation

imjaroiswebdev
Copy link
Contributor

Handle external to Terraform deletion of pagerduty_tag_assignment and pagerduty_team resources generating a plan for recreating those resources.

Test cases extended...

$ make testacc TESTARGS="-run TestAccPagerDutyTagAssignment"
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test $(go list ./... |grep -v 'vendor') -v -run TestAccPagerDutyTagAssignment -timeout 120m
?       github.com/terraform-providers/terraform-provider-pagerduty     [no test files]
=== RUN   TestAccPagerDutyTagAssignment_import
--- PASS: TestAccPagerDutyTagAssignment_import (12.18s)
=== RUN   TestAccPagerDutyTagAssignment_User # 👈 Test extended
--- PASS: TestAccPagerDutyTagAssignment_User (13.39s)
=== RUN   TestAccPagerDutyTagAssignment_Team # 👈 Test extended
--- PASS: TestAccPagerDutyTagAssignment_Team (14.23s)
=== RUN   TestAccPagerDutyTagAssignment_EP # 👈 Test extended
--- PASS: TestAccPagerDutyTagAssignment_EP (17.65s)
PASS
ok      github.com/terraform-providers/terraform-provider-pagerduty/pagerduty   57.945s

$ make testacc TESTARGS="-run TestAccPagerDutyTeam"
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test $(go list ./... |grep -v 'vendor') -v -run TestAccPagerDutyTeam -timeout 120m
?       github.com/terraform-providers/terraform-provider-pagerduty     [no test files]
=== RUN   TestAccPagerDutyTeamMembership_import
--- PASS: TestAccPagerDutyTeamMembership_import (10.15s)
=== RUN   TestAccPagerDutyTeamMembership_importWithRole
--- PASS: TestAccPagerDutyTeamMembership_importWithRole (9.16s)
=== RUN   TestAccPagerDutyTeam_import
--- PASS: TestAccPagerDutyTeam_import (5.39s)
=== RUN   TestAccPagerDutyTeamMembership_Basic
--- PASS: TestAccPagerDutyTeamMembership_Basic (9.59s)
=== RUN   TestAccPagerDutyTeamMembership_WithRole
--- PASS: TestAccPagerDutyTeamMembership_WithRole (8.93s)
=== RUN   TestAccPagerDutyTeamMembership_WithRoleConsistentlyAssigned
--- PASS: TestAccPagerDutyTeamMembership_WithRoleConsistentlyAssigned (17.89s)
=== RUN   TestAccPagerDutyTeamMembership_DestroyWithEscalationPolicyDependant
--- PASS: TestAccPagerDutyTeamMembership_DestroyWithEscalationPolicyDependant (14.56s)
=== RUN   TestAccPagerDutyTeam_Basic # 👈 Test extended
--- PASS: TestAccPagerDutyTeam_Basic (11.08s)
=== RUN   TestAccPagerDutyTeam_Parent
--- PASS: TestAccPagerDutyTeam_Parent (9.58s)
PASS
ok      github.com/terraform-providers/terraform-provider-pagerduty/pagerduty   96.813s

@imjaroiswebdev imjaroiswebdev merged commit 4f595a6 into PagerDuty:master May 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant