Skip to content

Commit

Permalink
Require CIRCLECI_PROJECT to be set for acceptance tests
Browse files Browse the repository at this point in the history
It's required to run environment variable tests, so bail if unset.
  • Loading branch information
sulami committed May 10, 2022
1 parent 383be7e commit 69f0551
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions circleci/provider_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,8 @@ func testAccPreCheck(t *testing.T) {
if v := os.Getenv("TEST_CIRCLECI_ORGANIZATION"); v == "" {
t.Fatal("TEST_CIRCLECI_ORGANIZATION must be set for acceptance tests")
}

if v := os.Getenv("CIRCLECI_PROJECT"); v == "" {
t.Fatal("CIRCLECI_PROJECT must be set for acceptance tests")
}
}

0 comments on commit 69f0551

Please sign in to comment.