@@ -5,12 +5,14 @@ import (
5
5
"strconv"
6
6
"testing"
7
7
8
+ "github.com/hashicorp/terraform-plugin-sdk/helper/acctest"
8
9
"github.com/hashicorp/terraform-plugin-sdk/helper/resource"
9
10
"github.com/hashicorp/terraform-plugin-sdk/terraform"
10
11
)
11
12
12
13
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 ))
14
16
15
17
resource .ParallelTest (t , resource.TestCase {
16
18
PreCheck : func () { testAccPreCheck (t ) },
@@ -48,7 +50,7 @@ func testAccCheckNewRelicApplicationDestroy(s *terraform.State) error {
48
50
// The test application for this data source is created in provider_test.go
49
51
func testAccNewRelicApplicationConfig () string {
50
52
return fmt .Sprintf (`
51
- resource "newrelic_application " "app" {
53
+ resource "newrelic_application_settings " "app" {
52
54
name = "%s"
53
55
app_apdex_threshold = "0.9"
54
56
end_user_apdex_threshold = "0.8"
@@ -59,7 +61,7 @@ resource "newrelic_application" "app" {
59
61
60
62
func testAccNewRelicApplicationConfigUpdated (name string ) string {
61
63
return fmt .Sprintf (`
62
- resource "newrelic_application " "app" {
64
+ resource "newrelic_application_settings " "app" {
63
65
name = "%s-updated"
64
66
app_apdex_threshold = "0.8"
65
67
end_user_apdex_threshold = "0.7"
0 commit comments