Skip to content

Commit 5f5154b

Browse files
Jonathan Thurmanzlesnr
Jonathan Thurman
authored andcommitted
chore(test): update resource name in test
1 parent 755cc6c commit 5f5154b

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

newrelic/resource_newrelic_application_settings_test.go

+5-3
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,14 @@ import (
55
"strconv"
66
"testing"
77

8+
"github.com/hashicorp/terraform-plugin-sdk/helper/acctest"
89
"github.com/hashicorp/terraform-plugin-sdk/helper/resource"
910
"github.com/hashicorp/terraform-plugin-sdk/terraform"
1011
)
1112

1213
func TestAccNewRelicApplicationSettings_Basic(t *testing.T) {
13-
resourceName := "newrelic_application.app"
14+
resourceName := "newrelic_application_settings.app"
15+
testExpectedApplicationName = fmt.Sprintf("tf_test_%s", acctest.RandString(10))
1416

1517
resource.ParallelTest(t, resource.TestCase{
1618
PreCheck: func() { testAccPreCheck(t) },
@@ -48,7 +50,7 @@ func testAccCheckNewRelicApplicationDestroy(s *terraform.State) error {
4850
// The test application for this data source is created in provider_test.go
4951
func testAccNewRelicApplicationConfig() string {
5052
return fmt.Sprintf(`
51-
resource "newrelic_application" "app" {
53+
resource "newrelic_application_settings" "app" {
5254
name = "%s"
5355
app_apdex_threshold = "0.9"
5456
end_user_apdex_threshold = "0.8"
@@ -59,7 +61,7 @@ resource "newrelic_application" "app" {
5961

6062
func testAccNewRelicApplicationConfigUpdated(name string) string {
6163
return fmt.Sprintf(`
62-
resource "newrelic_application" "app" {
64+
resource "newrelic_application_settings" "app" {
6365
name = "%s-updated"
6466
app_apdex_threshold = "0.8"
6567
end_user_apdex_threshold = "0.7"

0 commit comments

Comments
 (0)