scorecard/e2e/active_test.go

31 lines
698 B
Go
Raw Normal View History

2021-01-15 23:18:43 +03:00
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())
})
})
})