diff --git a/e2e/binary_artifacts_test.go b/e2e/binary_artifacts_test.go index 686bedf5..a4c8a300 100644 --- a/e2e/binary_artifacts_test.go +++ b/e2e/binary_artifacts_test.go @@ -54,6 +54,7 @@ var _ = Describe("E2E TEST:"+checks.CheckBinaryArtifacts, func() { result := checks.BinaryArtifacts(&req) Expect(scut.ValidateTestReturn(nil, "no binary artifacts", &expected, &result, &dl)).Should(BeTrue()) + Expect(repoClient.Close()).Should(BeNil()) }) It("Should return binary artifacts present in source code", func() { dl := scut.TestDetailLogger{} @@ -84,6 +85,7 @@ var _ = Describe("E2E TEST:"+checks.CheckBinaryArtifacts, func() { Expect(result.Pass).Should(BeFalse()) // New version. Expect(scut.ValidateTestReturn(nil, " binary artifacts", &expected, &result, &dl)).Should(BeTrue()) + Expect(repoClient.Close()).Should(BeNil()) }) }) }) diff --git a/e2e/branch_protection_test.go b/e2e/branch_protection_test.go index 68a560cc..55cbe7a5 100644 --- a/e2e/branch_protection_test.go +++ b/e2e/branch_protection_test.go @@ -55,6 +55,7 @@ var _ = Describe("E2E TEST:"+checks.CheckBranchProtection, func() { Expect(result.Pass).Should(BeTrue()) // New version. Expect(scut.ValidateTestReturn(nil, "branch protection accessible", &expected, &result, &dl)).Should(BeTrue()) + Expect(repoClient.Close()).Should(BeNil()) }) }) }) diff --git a/e2e/ci_tests_test.go b/e2e/ci_tests_test.go index 58d4f10f..668b99e0 100644 --- a/e2e/ci_tests_test.go +++ b/e2e/ci_tests_test.go @@ -50,6 +50,7 @@ var _ = Describe("E2E TEST:"+checks.CheckCITests, func() { } result := checks.CITests(&req) Expect(scut.ValidateTestReturn(nil, "CI tests run", &expected, &result, &dl)).Should(BeTrue()) + Expect(repoClient.Close()).Should(BeNil()) }) }) }) diff --git a/e2e/code_review_test.go b/e2e/code_review_test.go index 44f0930c..b5356852 100644 --- a/e2e/code_review_test.go +++ b/e2e/code_review_test.go @@ -53,6 +53,7 @@ var _ = Describe("E2E TEST:CodeReview", func() { } result := checks.DoesCodeReview(&req) Expect(scut.ValidateTestReturn(nil, "use code reviews", &expected, &result, &dl)).Should(BeTrue()) + Expect(repoClient.Close()).Should(BeNil()) }) }) }) diff --git a/e2e/contributors_test.go b/e2e/contributors_test.go index 0bf513a0..3ea21491 100644 --- a/e2e/contributors_test.go +++ b/e2e/contributors_test.go @@ -55,6 +55,7 @@ var _ = Describe("E2E TEST:"+checks.CheckContributors, func() { Expect(result.Pass).Should(BeTrue()) // New version. Expect(scut.ValidateTestReturn(nil, "several contributors", &expected, &result, &dl)).Should(BeTrue()) + Expect(repoClient.Close()).Should(BeNil()) }) }) }) diff --git a/e2e/dependency_update_tool_test.go b/e2e/dependency_update_tool_test.go index c9212c0e..c1d05340 100644 --- a/e2e/dependency_update_tool_test.go +++ b/e2e/dependency_update_tool_test.go @@ -59,6 +59,7 @@ var _ = Describe("E2E TEST:"+checks.CheckDependencyUpdateTool, func() { Expect(result.Pass).Should(BeTrue()) // New version. Expect(scut.ValidateTestReturn(nil, "dependabot", &expected, &result, &dl)).Should(BeTrue()) + Expect(repoClient.Close()).Should(BeNil()) }) It("Should return repo uses renovatebot", func() { dl := scut.TestDetailLogger{} @@ -88,6 +89,7 @@ var _ = Describe("E2E TEST:"+checks.CheckDependencyUpdateTool, func() { Expect(result.Pass).Should(BeTrue()) // New version. Expect(scut.ValidateTestReturn(nil, "renovabot", &expected, &result, &dl)).Should(BeTrue()) + Expect(repoClient.Close()).Should(BeNil()) }) }) }) diff --git a/e2e/fuzzing_test.go b/e2e/fuzzing_test.go index df2b759f..110ccc8b 100644 --- a/e2e/fuzzing_test.go +++ b/e2e/fuzzing_test.go @@ -50,6 +50,7 @@ var _ = Describe("E2E TEST:"+checks.CheckFuzzing, func() { } result := checks.Fuzzing(&req) Expect(scut.ValidateTestReturn(nil, "use fuzzing", &expected, &result, &dl)).Should(BeTrue()) + Expect(repoClient.Close()).Should(BeNil()) }) It("Should return use of ClusterFuzzLite", func() { dl := scut.TestDetailLogger{} @@ -73,6 +74,7 @@ var _ = Describe("E2E TEST:"+checks.CheckFuzzing, func() { } result := checks.Fuzzing(&req) Expect(scut.ValidateTestReturn(nil, "use fuzzing", &expected, &result, &dl)).Should(BeTrue()) + Expect(repoClient.Close()).Should(BeNil()) }) It("Should return no fuzzing", func() { dl := scut.TestDetailLogger{} @@ -96,6 +98,7 @@ var _ = Describe("E2E TEST:"+checks.CheckFuzzing, func() { } result := checks.Fuzzing(&req) Expect(scut.ValidateTestReturn(nil, "no fuzzing", &expected, &result, &dl)).Should(BeTrue()) + Expect(repoClient.Close()).Should(BeNil()) }) }) }) diff --git a/e2e/maintained_test.go b/e2e/maintained_test.go index 449b98af..b6559f34 100644 --- a/e2e/maintained_test.go +++ b/e2e/maintained_test.go @@ -55,6 +55,7 @@ var _ = Describe("E2E TEST:"+checks.CheckMaintained, func() { Expect(result.Pass).Should(BeTrue()) // New version. Expect(scut.ValidateTestReturn(nil, "active repo", &expected, &result, &dl)).Should(BeTrue()) + Expect(repoClient.Close()).Should(BeNil()) }) }) }) diff --git a/e2e/packaging_test.go b/e2e/packaging_test.go index 95e51444..afda59bf 100644 --- a/e2e/packaging_test.go +++ b/e2e/packaging_test.go @@ -50,6 +50,7 @@ var _ = Describe("E2E TEST:"+checks.CheckPackaging, func() { } result := checks.Packaging(&req) Expect(scut.ValidateTestReturn(nil, "use packaging", &expected, &result, &dl)).Should(BeTrue()) + Expect(repoClient.Close()).Should(BeNil()) }) }) }) diff --git a/e2e/permissions_test.go b/e2e/permissions_test.go index d739d1a3..34b1dd9d 100644 --- a/e2e/permissions_test.go +++ b/e2e/permissions_test.go @@ -55,6 +55,7 @@ var _ = Describe("E2E TEST:"+checks.CheckTokenPermissions, func() { Expect(result.Pass).Should(BeFalse()) // New version. Expect(scut.ValidateTestReturn(nil, "token permissions", &expected, &result, &dl)).Should(BeTrue()) + Expect(repoClient.Close()).Should(BeNil()) }) }) }) diff --git a/e2e/pinned_dependencies_test.go b/e2e/pinned_dependencies_test.go index 97868369..e4f9be41 100644 --- a/e2e/pinned_dependencies_test.go +++ b/e2e/pinned_dependencies_test.go @@ -52,6 +52,7 @@ var _ = Describe("E2E TEST:"+checks.CheckPinnedDependencies, func() { } result := checks.PinnedDependencies(&req) Expect(scut.ValidateTestReturn(nil, "dependencies check", &expected, &result, &dl)).Should(BeTrue()) + Expect(repoClient.Close()).Should(BeNil()) }) }) }) diff --git a/e2e/sast_test.go b/e2e/sast_test.go index 4ca8b7be..7be283af 100644 --- a/e2e/sast_test.go +++ b/e2e/sast_test.go @@ -55,6 +55,7 @@ var _ = Describe("E2E TEST:"+checks.CheckSAST, func() { Expect(result.Pass).Should(BeFalse()) // New version. Expect(scut.ValidateTestReturn(nil, "sast used", &expected, &result, &dl)).Should(BeTrue()) + Expect(repoClient.Close()).Should(BeNil()) }) }) }) diff --git a/e2e/security_policy_test.go b/e2e/security_policy_test.go index 507fefcf..ae0c412b 100644 --- a/e2e/security_policy_test.go +++ b/e2e/security_policy_test.go @@ -55,6 +55,7 @@ var _ = Describe("E2E TEST:SecurityPolicy", func() { Expect(result.Pass).Should(BeTrue()) // New version. Expect(scut.ValidateTestReturn(nil, "policy found", &expected, &result, &dl)).Should(BeTrue()) + Expect(repoClient.Close()).Should(BeNil()) }) It("Should return valid security policy for rust repositories", func() { dl := scut.TestDetailLogger{} @@ -84,6 +85,7 @@ var _ = Describe("E2E TEST:SecurityPolicy", func() { Expect(result.Pass).Should(BeTrue()) // New version. Expect(scut.ValidateTestReturn(nil, "policy found", &expected, &result, &dl)).Should(BeTrue()) + Expect(repoClient.Close()).Should(BeNil()) }) }) }) diff --git a/e2e/signedreleases_test.go b/e2e/signedreleases_test.go index 7d845a39..87519109 100644 --- a/e2e/signedreleases_test.go +++ b/e2e/signedreleases_test.go @@ -55,6 +55,7 @@ var _ = Describe("E2E TEST:"+checks.CheckSignedReleases, func() { Expect(result.Pass).Should(BeTrue()) // New version. Expect(scut.ValidateTestReturn(nil, "verified release", &expected, &result, &dl)).Should(BeTrue()) + Expect(repoClient.Close()).Should(BeNil()) }) }) }) diff --git a/e2e/vulnerabilities_test.go b/e2e/vulnerabilities_test.go index 5c415a0a..9475ee24 100644 --- a/e2e/vulnerabilities_test.go +++ b/e2e/vulnerabilities_test.go @@ -56,6 +56,7 @@ var _ = Describe("E2E TEST:Vulnerabilities", func() { Expect(result.Pass).Should(BeTrue()) // New version. Expect(scut.ValidateTestReturn(nil, "no osv vulnerabilities", &expected, &result, &dl)).Should(BeTrue()) + Expect(repoClient.Close()).Should(BeNil()) }) It("Should return that there are vulnerabilities", func() { @@ -86,6 +87,7 @@ var _ = Describe("E2E TEST:Vulnerabilities", func() { Expect(result.Pass).Should(BeFalse()) // New version. Expect(scut.ValidateTestReturn(nil, "osv vulnerabilities", &expected, &result, &dl)).Should(BeTrue()) + Expect(repoClient.Close()).Should(BeNil()) }) }) })