Skip to content

Commit 10c76c7

Browse files
committed
Remove unnecessary skip blocks as individual and anonymous access to org rulesets will never be a thing
Signed-off-by: Timo Sand <[email protected]>
1 parent 9d97d36 commit 10c76c7

File tree

1 file changed

+4
-36
lines changed

1 file changed

+4
-36
lines changed

github/resource_github_organization_ruleset_test.go

Lines changed: 4 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -628,16 +628,8 @@ func TestGithubOrganizationRulesets(t *testing.T) {
628628
testCase(t, enterprise)
629629
})
630630

631-
t.Run("with an anonymous account", func(t *testing.T) {
632-
t.Skip("anonymous account not supported for this operation")
633-
})
634-
635-
t.Run("with an individual account", func(t *testing.T) {
636-
t.Skip("individual account not supported for this operation")
637-
})
638-
639631
t.Run("with an organization account", func(t *testing.T) {
640-
testCase(t, organization)
632+
t.Skip("organization account not supported for this operation, since it needs a paid Team plan.")
641633
})
642634
})
643635

@@ -671,16 +663,8 @@ func TestGithubOrganizationRulesets(t *testing.T) {
671663
testCase(t, enterprise)
672664
})
673665

674-
t.Run("with an anonymous account", func(t *testing.T) {
675-
t.Skip("anonymous account not supported for this operation")
676-
})
677-
678-
t.Run("with an individual account", func(t *testing.T) {
679-
t.Skip("individual account not supported for this operation")
680-
})
681-
682666
t.Run("with an organization account", func(t *testing.T) {
683-
testCase(t, organization)
667+
t.Skip("organization account not supported for this operation, since it needs a paid Team plan.")
684668
})
685669
})
686670

@@ -725,16 +709,8 @@ func TestGithubOrganizationRulesets(t *testing.T) {
725709
testCase(t, enterprise)
726710
})
727711

728-
t.Run("with an anonymous account", func(t *testing.T) {
729-
t.Skip("anonymous account not supported for this operation")
730-
})
731-
732-
t.Run("with an individual account", func(t *testing.T) {
733-
t.Skip("individual account not supported for this operation")
734-
})
735-
736712
t.Run("with an organization account", func(t *testing.T) {
737-
testCase(t, organization)
713+
t.Skip("organization account not supported for this operation, since it needs a paid Team plan.")
738714
})
739715
})
740716

@@ -779,16 +755,8 @@ func TestGithubOrganizationRulesets(t *testing.T) {
779755
testCase(t, enterprise)
780756
})
781757

782-
t.Run("with an anonymous account", func(t *testing.T) {
783-
t.Skip("anonymous account not supported for this operation")
784-
})
785-
786-
t.Run("with an individual account", func(t *testing.T) {
787-
t.Skip("individual account not supported for this operation")
788-
})
789-
790758
t.Run("with an organization account", func(t *testing.T) {
791-
testCase(t, organization)
759+
t.Skip("organization account not supported for this operation, since it needs a paid Team plan.")
792760
})
793761
})
794762
}

0 commit comments

Comments
 (0)