-
Notifications
You must be signed in to change notification settings - Fork 29
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
Union #818 #821 #822 #823
base: main
Are you sure you want to change the base?
Union #818 #821 #822 #823
Conversation
…installation On a freshly configured system (VM/container/server) the apt cache may not be populated. This causes any remediation task that requires package installation to happen to fail. Ensure we update the package cache on the first invocation of a function that attempts to install a package.
22700c1
to
10e145f
Compare
) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: extra newlines
|
||
set(SRC ${moduletest_SOURCE_DIR}/recipes) | ||
set(MOF1 ${OsConfigResourceSsh_SOURCE_DIR}/LinuxSshServerSecurityBaseline.mof) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
a CMake list
might be better here as the list grows...
eg.
set(MOFS
${OsConfigResourceSsh_SOURCE_DIR}/LinuxSshServerSecurityBaseline.mof
${OsConfigResourceAsb_SOURCE_DIR}/AzureLinuxBaseline.mof
)
list(JOIN MOF_LIST " " flat_string)
add_custom_command(
OUTPUT ${SRC}/SecurityBaselineTests.json
DEPENDS ${SRC}/create-asb-json.sh ${SRC}/mof-to-json.awk ${SRC}/SecurityBaselineTests.json-header ${SRC}/SecurityBaselineTests.json-mid ${SRC}/SecurityBaselineTests.json-footer ${MOF1} ${MOF2}
COMMAND ./create-asb-json.sh ${MOF_LIST} >${SRC}/SecurityBaselineTests.json
WORKING_DIRECTORY ${SRC}
)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
will do
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No hurry, I also wanted to file an issue with more context for the selinux context problem.
I was actually thinking the opposite - use this one just to demonstrate passing CI but review/merge the individual PRs. @AhmedBM could you rerun the failing test runs? I think they're somehow flaky (todo: investigate). |
Description
This is a merge of:
This is intended to demonstrate that moduletests pass when all three PRs are merged together. Not intended for merging.
Checklist
main
branch prior to this PR submission.main
branch.