Skip to content

Commit 3c3e110

Browse files
committed
Add SKIP to template repo test if not configured
Signed-off-by: Timo Sand <[email protected]>
1 parent c2a1941 commit 3c3e110

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

github/resource_github_repository_test.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -439,6 +439,10 @@ func TestAccGithubRepository(t *testing.T) {
439439
})
440440

441441
t.Run("creates a repository using an org template", func(t *testing.T) {
442+
if len(testAccConf.testOrgTemplateRepository) == 0 {
443+
t.Skip("No org template repository provided")
444+
}
445+
442446
randomID := acctest.RandStringFromCharSet(5, acctest.CharSetAlphaNum)
443447
config := fmt.Sprintf(`
444448
resource "github_repository" "test" {

0 commit comments

Comments
 (0)