-
Notifications
You must be signed in to change notification settings - Fork 461
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
bcaa2e7
commit c00aa4b
Showing
14 changed files
with
314 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
package e2e | ||
|
||
import ( | ||
"context" | ||
|
||
. "github.com/onsi/ginkgo" | ||
. "github.com/onsi/gomega" | ||
"github.com/ossf/scorecard/checker" | ||
"github.com/ossf/scorecard/checks" | ||
) | ||
|
||
var _ = Describe("E2E TEST:Active", func() { | ||
Context("E2E TEST:Validating active status", func() { | ||
It("Should return valid active status", func() { | ||
l := log{} | ||
checker := checker.Checker{ | ||
Ctx: context.Background(), | ||
Client: ghClient, | ||
HttpClient: client, | ||
Owner: "apache", | ||
Repo: "airflow", | ||
GraphClient: graphClient, | ||
Logf: l.Logf, | ||
} | ||
result := checks.IsActive(checker) | ||
Expect(result.Error).Should(BeNil()) | ||
Expect(result.Pass).Should(BeTrue()) | ||
}) | ||
}) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
package e2e | ||
|
||
import ( | ||
"context" | ||
|
||
. "github.com/onsi/ginkgo" | ||
. "github.com/onsi/gomega" | ||
"github.com/ossf/scorecard/checker" | ||
"github.com/ossf/scorecard/checks" | ||
) | ||
|
||
var _ = Describe("E2E TEST:CITests", func() { | ||
Context("E2E TEST:Validating use of CI tests", func() { | ||
It("Should return use of CI tests", func() { | ||
l := log{} | ||
checker := checker.Checker{ | ||
Ctx: context.Background(), | ||
Client: ghClient, | ||
HttpClient: client, | ||
Owner: "apache", | ||
Repo: "airflow", | ||
GraphClient: graphClient, | ||
Logf: l.Logf, | ||
} | ||
result := checks.CITests(checker) | ||
Expect(result.Error).Should(BeNil()) | ||
Expect(result.Pass).Should(BeTrue()) | ||
}) | ||
}) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
package e2e | ||
|
||
import ( | ||
"context" | ||
|
||
. "github.com/onsi/ginkgo" | ||
. "github.com/onsi/gomega" | ||
"github.com/ossf/scorecard/checker" | ||
"github.com/ossf/scorecard/checks" | ||
) | ||
|
||
var _ = Describe("E2E TEST:CIIBestPractices", func() { | ||
Context("E2E TEST:Validating use of CII Best Practices", func() { | ||
It("Should return use of CII Best Practices", func() { | ||
l := log{} | ||
checker := checker.Checker{ | ||
Ctx: context.Background(), | ||
Client: ghClient, | ||
HttpClient: client, | ||
Owner: "tensorflow", | ||
Repo: "tensorflow", | ||
GraphClient: graphClient, | ||
Logf: l.Logf, | ||
} | ||
result := checks.CIIBestPractices(checker) | ||
Expect(result.Error).Should(BeNil()) | ||
Expect(result.Pass).Should(BeTrue()) | ||
}) | ||
}) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
package e2e | ||
|
||
import ( | ||
"context" | ||
|
||
. "github.com/onsi/ginkgo" | ||
. "github.com/onsi/gomega" | ||
"github.com/ossf/scorecard/checker" | ||
"github.com/ossf/scorecard/checks" | ||
) | ||
|
||
var _ = Describe("E2E TEST:CodeReview", func() { | ||
Context("E2E TEST:Validating use of code reviews", func() { | ||
It("Should return use of code reviews", func() { | ||
l := log{} | ||
checker := checker.Checker{ | ||
Ctx: context.Background(), | ||
Client: ghClient, | ||
HttpClient: client, | ||
Owner: "apache", | ||
Repo: "airflow", | ||
GraphClient: graphClient, | ||
Logf: l.Logf, | ||
} | ||
result := checks.DoesCodeReview(checker) | ||
Expect(result.Error).Should(BeNil()) | ||
Expect(result.Pass).Should(BeTrue()) | ||
}) | ||
}) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
package e2e | ||
|
||
import ( | ||
"context" | ||
|
||
. "github.com/onsi/ginkgo" | ||
. "github.com/onsi/gomega" | ||
"github.com/ossf/scorecard/checker" | ||
"github.com/ossf/scorecard/checks" | ||
) | ||
|
||
var _ = Describe("E2E TEST:CodeReview", func() { | ||
Context("E2E TEST:Validating project contributors", func() { | ||
It("Should return valid project contributors", func() { | ||
l := log{} | ||
checker := checker.Checker{ | ||
Ctx: context.Background(), | ||
Client: ghClient, | ||
HttpClient: client, | ||
Owner: "apache", | ||
Repo: "airflow", | ||
GraphClient: graphClient, | ||
Logf: l.Logf, | ||
} | ||
result := checks.Contributors(checker) | ||
Expect(result.Error).Should(BeNil()) | ||
Expect(result.Pass).Should(BeTrue()) | ||
}) | ||
}) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
package e2e | ||
|
||
import ( | ||
"context" | ||
|
||
. "github.com/onsi/ginkgo" | ||
. "github.com/onsi/gomega" | ||
"github.com/ossf/scorecard/checker" | ||
"github.com/ossf/scorecard/checks" | ||
) | ||
|
||
var _ = Describe("E2E TEST:FrozenDeps", func() { | ||
Context("E2E TEST:Validating deps are frozen", func() { | ||
It("Should return deps are frozen", func() { | ||
l := log{} | ||
checker := checker.Checker{ | ||
Ctx: context.Background(), | ||
Client: ghClient, | ||
HttpClient: client, | ||
Owner: "tensorflow", | ||
Repo: "tensorflow", | ||
GraphClient: graphClient, | ||
Logf: l.Logf, | ||
} | ||
result := checks.FrozenDeps(checker) | ||
Expect(result.Error).Should(BeNil()) | ||
Expect(result.Pass).Should(BeTrue()) | ||
}) | ||
}) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
package e2e | ||
|
||
import ( | ||
"context" | ||
|
||
. "github.com/onsi/ginkgo" | ||
. "github.com/onsi/gomega" | ||
"github.com/ossf/scorecard/checker" | ||
"github.com/ossf/scorecard/checks" | ||
) | ||
|
||
var _ = Describe("E2E TEST:Fuzzing", func() { | ||
Context("E2E TEST:Validating use of fuzzing tools", func() { | ||
It("Should return use of fuzzing tools", func() { | ||
l := log{} | ||
checker := checker.Checker{ | ||
Ctx: context.Background(), | ||
Client: ghClient, | ||
HttpClient: client, | ||
Owner: "tensorflow", | ||
Repo: "tensorflow", | ||
GraphClient: graphClient, | ||
Logf: l.Logf, | ||
} | ||
result := checks.Fuzzing(checker) | ||
Expect(result.Error).Should(BeNil()) | ||
Expect(result.Pass).Should(BeTrue()) | ||
}) | ||
}) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
package e2e | ||
|
||
import ( | ||
"context" | ||
|
||
. "github.com/onsi/ginkgo" | ||
. "github.com/onsi/gomega" | ||
"github.com/ossf/scorecard/checker" | ||
"github.com/ossf/scorecard/checks" | ||
) | ||
|
||
var _ = Describe("E2E TEST:PullRequests", func() { | ||
Context("E2E TEST:Validating use of pull requests", func() { | ||
It("Should return use of pull requests", func() { | ||
l := log{} | ||
checker := checker.Checker{ | ||
Ctx: context.Background(), | ||
Client: ghClient, | ||
HttpClient: client, | ||
Owner: "apache", | ||
Repo: "airflow", | ||
GraphClient: graphClient, | ||
Logf: l.Logf, | ||
} | ||
result := checks.PullRequests(checker) | ||
Expect(result.Error).Should(BeNil()) | ||
Expect(result.Pass).Should(BeTrue()) | ||
}) | ||
}) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
package e2e | ||
|
||
import ( | ||
"context" | ||
|
||
. "github.com/onsi/ginkgo" | ||
. "github.com/onsi/gomega" | ||
"github.com/ossf/scorecard/checker" | ||
"github.com/ossf/scorecard/checks" | ||
) | ||
|
||
var _ = Describe("E2E TEST:SAST", func() { | ||
Context("E2E TEST:Validating use of SAST tools", func() { | ||
It("Should return use of SAST tools", func() { | ||
l := log{} | ||
checker := checker.Checker{ | ||
Ctx: context.Background(), | ||
Client: ghClient, | ||
HttpClient: client, | ||
Owner: "apache", | ||
Repo: "airflow", | ||
GraphClient: graphClient, | ||
Logf: l.Logf, | ||
} | ||
result := checks.SAST(checker) | ||
Expect(result.Error).Should(BeNil()) | ||
Expect(result.Pass).Should(BeTrue()) | ||
}) | ||
}) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
package e2e | ||
|
||
import ( | ||
"context" | ||
|
||
. "github.com/onsi/ginkgo" | ||
. "github.com/onsi/gomega" | ||
"github.com/ossf/scorecard/checker" | ||
"github.com/ossf/scorecard/checks" | ||
) | ||
|
||
var _ = Describe("E2E TEST:SecurityPolicy", func() { | ||
Context("E2E TEST:Validating security policy", func() { | ||
It("Should return valid security policy", func() { | ||
l := log{} | ||
checker := checker.Checker{ | ||
Ctx: context.Background(), | ||
Client: ghClient, | ||
HttpClient: client, | ||
Owner: "tensorflow", | ||
Repo: "tensorflow", | ||
GraphClient: graphClient, | ||
Logf: l.Logf, | ||
} | ||
result := checks.SecurityPolicy(checker) | ||
Expect(result.Error).Should(BeNil()) | ||
Expect(result.Pass).Should(BeTrue()) | ||
}) | ||
}) | ||
}) |