Skip to content

Commit

Permalink
PR feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
mrdubr committed Jan 5, 2023
1 parent ab36e86 commit 215d4aa
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
22 changes: 11 additions & 11 deletions pagerduty/resource_pagerduty_automation_actions_action_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -210,16 +210,16 @@ resource "pagerduty_automation_actions_action" "foo" {
`, actionName, actionName)
}

func testAccCheckPagerDutyAutomationActionsActionTypeProcessAutomationConfigUpdated(oldName, updatedName, updatedDescription, updatedActionClassification string) string {
func testAccCheckPagerDutyAutomationActionsActionTypeProcessAutomationConfigUpdated(previousActionName, actionName, actionDescription, actionClassification string) string {
return fmt.Sprintf(`
resource "pagerduty_automation_actions_runner" "foo_runner" {
name = "%s runner"
description = "Runner created by TF"
runner_type = "runbook"
runbook_base_uri = "cat-cat"
runbook_api_key = "cat-secret"
}
resource "pagerduty_automation_actions_runner" "foo_runner" {
name = "%s runner"
description = "Runner created by TF"
runner_type = "runbook"
runbook_base_uri = "cat-cat"
runbook_api_key = "cat-secret"
}
resource "pagerduty_automation_actions_action" "foo" {
name = "%s"
Expand All @@ -231,7 +231,7 @@ resource "pagerduty_automation_actions_action" "foo" {
process_automation_job_id = "updated_pa_job_id_123"
}
}
`, oldName, updatedName, updatedDescription, updatedActionClassification)
`, previousActionName, actionName, actionDescription, actionClassification)
}

func testAccCheckPagerDutyAutomationActionsActionTypeScriptConfig(actionName string) string {
Expand All @@ -248,7 +248,7 @@ resource "pagerduty_automation_actions_action" "foo" {
`, actionName)
}

func testAccCheckPagerDutyAutomationActionsActionTypeScriptConfigUpdated(name, description, actionClassification string) string {
func testAccCheckPagerDutyAutomationActionsActionTypeScriptConfigUpdated(actionName, actionDescription, actionClassification string) string {
return fmt.Sprintf(`
resource "pagerduty_automation_actions_action" "foo" {
name = "%s"
Expand All @@ -259,5 +259,5 @@ func testAccCheckPagerDutyAutomationActionsActionTypeScriptConfigUpdated(name, d
script = "echo 777"
}
}
`, name, description, actionClassification)
`, actionName, actionDescription, actionClassification)
}
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ resource "pagerduty_automation_actions_runner" "foo" {
`, runnerName)
}

func testAccCheckPagerDutyAutomationActionsRunnerUpdatedConfig(nameUpdated, descriptionUpdated string) string {
func testAccCheckPagerDutyAutomationActionsRunnerUpdatedConfig(runnerName, runnerDescription string) string {
return fmt.Sprintf(`
resource "pagerduty_automation_actions_runner" "foo" {
name = "%s"
Expand All @@ -118,5 +118,5 @@ resource "pagerduty_automation_actions_runner" "foo" {
runbook_base_uri = "cat-cat-updated"
runbook_api_key = "cat-secret-updated"
}
`, nameUpdated, descriptionUpdated)
`, runnerName, runnerDescription)
}

0 comments on commit 215d4aa

Please sign in to comment.