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

add security test suite to eden #917

Merged
merged 1 commit into from
Nov 6, 2023
Merged

Conversation

shjala
Copy link
Member

@shjala shjala commented Nov 3, 2023

This adds security test suite to eden. As suggested by @uncleDecart, to liberate ourselves from bash and eden script, it is written in go ;)

For now it just check apparmor enablement, more to be added to the suite.

@shjala shjala requested a review from uncleDecart as a code owner November 3, 2023 11:34
Copy link
Member

@uncleDecart uncleDecart left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thank you @shjala for this!

cc: @milan-zededa and @giggsoff for suggestions, comments if any

@shjala
Copy link
Member Author

shjala commented Nov 3, 2023

I will fix the yetus complains.

@@ -0,0 +1,110 @@
package sec
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's a reasonable complaint

@shjala shjala force-pushed the sec_test branch 2 times, most recently from f3cc7e1 to 6e5158d Compare November 3, 2023 13:46
Signed-off-by: Shahriyar Jalayeri <[email protected]>
@uncleDecart uncleDecart merged commit b30a2c3 into lf-edge:master Nov 6, 2023
7 of 10 checks passed
Copy link
Contributor

@milan-zededa milan-zededa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall this is OK, although there is quite a lot of boiler-plate out of which only one line is the actual test. Currently, I would not say that writing eden tests in golang is easier than with escript, but hopefully over time we can improve the test framework and make it more user friendly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants