Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
Signed-off-by: laurentsimon <[email protected]>
  • Loading branch information
laurentsimon committed Dec 12, 2022
1 parent 8bf9626 commit 37941b5
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions e2e/branch_protection_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ package e2e
import (
"context"

"github.com/go-git/go-git/v5"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"

Expand Down Expand Up @@ -49,7 +50,7 @@ var _ = Describe("E2E TEST PAT:"+checks.CheckBranchProtection, func() {
Score: 5,
NumberOfWarn: 2,
NumberOfInfo: 4,
NumberOfDebug: 3,
NumberOfDebug: 4,
}
result := checks.BranchProtection(&req)
// UPGRADEv2: to remove.
Expand Down Expand Up @@ -87,7 +88,7 @@ var _ = Describe("E2E TEST PAT:"+checks.CheckBranchProtection, func() {
Expect(scut.ValidateTestReturn(nil, "branch protection accessible", &expected, &result, &dl)).Should(BeTrue())
Expect(repoClient.Close()).Should(BeNil())
})
It("Should fail to return branch protection on other repositories", func() {
It("Should fail to return branch protection on other repositories patch", func() {
skipIfTokenIsNot(patTokenType, "PAT only")

dl := scut.TestDetailLogger{}
Expand All @@ -107,7 +108,7 @@ var _ = Describe("E2E TEST PAT:"+checks.CheckBranchProtection, func() {
Score: 1,
NumberOfWarn: 3,
NumberOfInfo: 3,
NumberOfDebug: 3,
NumberOfDebug: 4,
}
result := checks.BranchProtection(&req)

Expand Down

0 comments on commit 37941b5

Please sign in to comment.