Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

e2e:chore - tests for risk accepted and false positive flags #777

Merged
merged 1 commit into from
Nov 17, 2021

Conversation

lucasbrunozup
Copy link
Contributor

Tests e2e for risk accepted and false positive flags.
Signed-off-by: lucas.bruno [email protected]

@lucasbrunozup lucasbrunozup force-pushed the feat/e2e-risk-accepted-false-positive branch 2 times, most recently from 62ac2df to b0690a4 Compare November 16, 2021 17:48
@lucasbrunozup lucasbrunozup added the help wanted This issue needs extra attention label Nov 16, 2021
@lucasbrunozup
Copy link
Contributor Author

lucasbrunozup commented Nov 16, 2021

With each analysis on Windows, the vulnerability hash is different, I need help to identify the cause or define it as a bug.

@lucasbrunozup lucasbrunozup force-pushed the feat/e2e-risk-accepted-false-positive branch from b0690a4 to 5c2afec Compare November 16, 2021 18:52
@lucasbrunozup lucasbrunozup marked this pull request as draft November 16, 2021 18:58
@lucasbrunozup lucasbrunozup force-pushed the feat/e2e-risk-accepted-false-positive branch 2 times, most recently from beab605 to 2878b64 Compare November 17, 2021 12:41
matheusalcantarazup added a commit that referenced this pull request Nov 17, 2021
Previously when running the Horusec on Windows we was getting a
different vulnerability hash for each analysis, this problem was
happening because we weren't removing the .horusec folder from
the file path before generating the hash, and since the .horusec folder
contains a uuid, on every analysis we was getting a new uuid and
consequently a new vulnerability hash.

The commit fix this issue using a better approach to remove the .horusec
folder from filepath, using the relative path from file using the
.horusec folder as base path.

This commit also change the testcase to catch this bug.

This bug was founded on #777

Signed-off-by: Matheus Alcantara <[email protected]>
matheusalcantarazup added a commit that referenced this pull request Nov 17, 2021
Previously when running the Horusec on Windows we was getting a
different vulnerability hash for each analysis, this problem was
happening because we weren't removing the .horusec folder from
the file path before generating the hash, and since the .horusec folder
contains a uuid, on every analysis we was getting a new uuid and
consequently a new vulnerability hash.

The commit fix this issue using a better approach to remove the .horusec
folder from filepath, using the relative path from file using the
.horusec folder as base path.

This commit also change the testcase to catch this bug.

This bug was founded on #777

Signed-off-by: Matheus Alcantara <[email protected]>
@lucasbrunozup lucasbrunozup force-pushed the feat/e2e-risk-accepted-false-positive branch from 2878b64 to 5755b23 Compare November 17, 2021 14:02
@lucasbrunozup lucasbrunozup marked this pull request as ready for review November 17, 2021 14:12
@matheusalcantarazup matheusalcantarazup merged commit 7f80151 into main Nov 17, 2021
@matheusalcantarazup matheusalcantarazup deleted the feat/e2e-risk-accepted-false-positive branch November 17, 2021 14:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted This issue needs extra attention
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants