🐛 Fix broken e2e tests for Binary Artifacts

Fixed the broken e2e tests for Binary artifacts.
This commit is contained in:
naveen 2021-10-29 21:59:12 +00:00 committed by Naveen
parent 83649a799e
commit a53245a9fc

View File

@ -46,18 +46,13 @@ var _ = Describe("E2E TEST:"+checks.CheckBinaryArtifacts, func() {
}
expected := scut.TestReturn{
Error: nil,
Score: checker.MaxResultScore,
NumberOfWarn: 0,
Score: checker.MinResultScore,
NumberOfWarn: 1,
NumberOfInfo: 0,
NumberOfDebug: 0,
}
result := checks.BinaryArtifacts(&req)
// UPGRADEv2: to remove.
// Old version.
Expect(result.Error).Should(BeNil())
Expect(result.Pass).Should(BeTrue())
// New version.
Expect(scut.ValidateTestReturn(nil, "no binary artifacts", &expected, &result, &dl)).Should(BeTrue())
})
It("Should return binary artifacts present in source code", func() {