Skip to content

Commit

Permalink
e2e fix
Browse files Browse the repository at this point in the history
  • Loading branch information
laurentsimon committed May 3, 2022
1 parent c95a257 commit 98dbc29
Showing 1 changed file with 10 additions and 14 deletions.
24 changes: 10 additions & 14 deletions e2e/binary_artifacts_test.go
Expand Up @@ -85,10 +85,7 @@ var _ = Describe("E2E TEST:"+checks.CheckBinaryArtifacts, func() {
NumberOfDebug: 0,
}
result := checks.BinaryArtifacts(&req)
// UPGRADEv2: to remove.
// Old version.
Expect(result.Pass).Should(BeFalse())
// New version.

Expect(scut.ValidateTestReturn(nil, "binary artifacts", &expected, &result, &dl)).Should(BeTrue())
Expect(repoClient.Close()).Should(BeNil())
})
Expand Down Expand Up @@ -116,10 +113,7 @@ var _ = Describe("E2E TEST:"+checks.CheckBinaryArtifacts, func() {
NumberOfDebug: 0,
}
result := checks.BinaryArtifacts(&req)
// UPGRADEv2: to remove.
// Old version.
Expect(result.Pass).Should(BeFalse())
// New version.

Expect(scut.ValidateTestReturn(nil, "binary artifacts", &expected, &result, &dl)).Should(BeTrue())
Expect(repoClient.Close()).Should(BeNil())
})
Expand Down Expand Up @@ -165,11 +159,12 @@ var _ = Describe("E2E TEST:"+checks.CheckBinaryArtifacts, func() {
Repo: repo,
Dlogger: &dl,
}
// TODO: upload real binaries to the repo as well.
// TODO: upload real binaries to the repo.
// Existing binaries only contain SCII characters and are ignored.
expected := scut.TestReturn{
Error: nil,
Score: checker.MaxResultScore - 4,
NumberOfWarn: 4,
Score: checker.MaxResultScore,
NumberOfWarn: 0,
NumberOfInfo: 0,
NumberOfDebug: 0,
}
Expand Down Expand Up @@ -203,11 +198,12 @@ var _ = Describe("E2E TEST:"+checks.CheckBinaryArtifacts, func() {
Repo: repo,
Dlogger: &dl,
}
// TODO: upload real binaries to the repo as well.
// TODO: upload real binaries to the repo.
// Existing binaries only contain SCII characters and are ignored.
expected := scut.TestReturn{
Error: nil,
Score: checker.MaxResultScore - 4,
NumberOfWarn: 4,
Score: checker.MaxResultScore,
NumberOfWarn: 0,
NumberOfInfo: 0,
NumberOfDebug: 0,
}
Expand Down

0 comments on commit 98dbc29

Please sign in to comment.