mirror of
https://github.com/falcosecurity/falco.git
synced 2025-10-21 19:44:57 +00:00
Add ~74 new automated tests that verify K8s PSP Support. For each PSP attribute, add both positive and negative test cases. For some of the more complicated attributes like runAsUser/Group/etc, include cases where the uids are specicified both at the container security context level and pod security context level and then combined with mayRunAs/mustRunAs, etc. Also, some existing tests are updated to handle proper use of "in" and "intersects" in expressions. Signed-off-by: Mark Stemm <mark.stemm@gmail.com>
15 lines
595 B
CMake
15 lines
595 B
CMake
add_subdirectory(k8s_audit)
|
|
add_subdirectory(psp)
|
|
# Note: list of traces is created at cmake time, not build time
|
|
file(GLOB test_trace_files
|
|
"${CMAKE_CURRENT_SOURCE_DIR}/*.scap")
|
|
|
|
foreach(trace_file_path ${test_trace_files})
|
|
get_filename_component(trace_file ${trace_file_path} NAME)
|
|
add_custom_target(test-trace-${trace_file} ALL
|
|
DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/${trace_file})
|
|
add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/${trace_file}
|
|
COMMAND ${CMAKE_COMMAND} -E copy ${trace_file_path} ${CMAKE_CURRENT_BINARY_DIR}/${trace_file}
|
|
DEPENDS ${trace_file_path})
|
|
endforeach()
|