Skip to content

Commit

Permalink
Merge pull request #944 from newrelic/chore/integration-tests-for-all
Browse files Browse the repository at this point in the history
chore: allow integration tests to run for all accounts
  • Loading branch information
ctrombley authored Oct 6, 2020
2 parents f0ddf08 + e155173 commit a6ab720
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions newrelic/data_source_newrelic_account_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ func TestAccNewRelicAccountDataSource_Basic(t *testing.T) {
}

func TestAccNewRelicAccountDataSource_ByName(t *testing.T) {
if !nrInternalAccount {
t.Skipf("New Relic internal testing account required")
}

resource.ParallelTest(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t) },
Providers: testAccProviders,
Expand Down
6 changes: 3 additions & 3 deletions newrelic/resource_newrelic_workload_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ resource "newrelic_workload" "foo" {
query = "name like '%[3]s'"
}
scope_account_ids = [%[1]d, 1]
scope_account_ids = [%[1]d]
}
`, testAccountID, name, testAccExpectedApplicationName)
}
Expand All @@ -195,7 +195,7 @@ resource "newrelic_workload" "foo" {
query = "name like '%[3]s'"
}
scope_account_ids = [%[1]d, 1]
scope_account_ids = [%[1]d]
}
`, testAccountID, name, testAccExpectedApplicationName)
}
Expand Down Expand Up @@ -236,7 +236,7 @@ resource "newrelic_workload" "foo" {
name = "%[2]s"
account_id = %[1]d
scope_account_ids = [%[1]d, 1]
scope_account_ids = [%[1]d]
}
`, testAccountID, name)
}

0 comments on commit a6ab720

Please sign in to comment.