e15576f56c
* GRANT, REVOKE, DENY and access_checker DONE * Added AccessChecker to ExecutionContext * grammar expanded; (#462) * current * T0954 mg expand user and role to hold permissions on labels (#465) * added FineGrainedAccessPermissions class to model * expanded user and role with fine grained access permissions * fixed grammar * [E129 < T0953-MG] GRANT, DENY, REVOKE added in interpreter and mainVisitor (#464) * GRANT, DENY, REVOKE added in interpreter and mainVisitor * Commented labelPermissons * remove labelsPermission adding * Fixed * Removed extra lambda * fixed * [E129<-T0955-MG] Expand ExecutionContext with label related information (#467) * added * Added FineGrainedAccessChecker to Context * fixed * Added filtering * testing * Added edge filtering to storage, need to add filtering in simple Expand in operator.cpp * Removed storage changes * MATCH filtering working * EdgeTypeFiltering working, just need to test everything again * Removed FineGrainedAccessChecker * Removed Expand Path * Fix * Tested FineGrainedAccessHandler, need to test AuthChecker * Added integration test for lba * Fixed merge conflicts * PR fix * fixed * PR fix * Fix test * removed .vscode, .cache, .githooks * githooks * added tests * fixed build * Changed ast.lcp and User pointer to value in context.hpp * Fixed test * Remove denies on grant all * AuthChecker * Pr fix, auth_checker still not fixed * Create mg-glue and extract UserBasedAuthChecker from AuthChecker * Build fixed, need to fix test * e2e tests * e2e test working * Added unit test, e2e and FineGrainedChecker * Mege E129, auth_checker tests * Fixed test * e2e fix Co-authored-by: Boris Taševski <36607228+BorisTasevski@users.noreply.github.com> Co-authored-by: josipmrden <josip.mrden@external-basf.com> Co-authored-by: János Benjamin Antal <benjamin.antal@memgraph.io>
49 lines
2.1 KiB
CMake
49 lines
2.1 KiB
CMake
# Set up C++ functions for e2e tests
|
|
function(add_query_module target_name src)
|
|
add_library(${target_name} SHARED ${src})
|
|
SET_TARGET_PROPERTIES(${target_name} PROPERTIES PREFIX "")
|
|
target_include_directories(${target_name} PRIVATE ${CMAKE_SOURCE_DIR}/include)
|
|
endfunction()
|
|
|
|
function(copy_e2e_python_files TARGET_PREFIX FILE_NAME)
|
|
add_custom_target(memgraph__e2e__${TARGET_PREFIX}__${FILE_NAME} ALL
|
|
COMMAND ${CMAKE_COMMAND} -E copy
|
|
${CMAKE_CURRENT_SOURCE_DIR}/${FILE_NAME}
|
|
${CMAKE_CURRENT_BINARY_DIR}/${FILE_NAME}
|
|
DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/${FILE_NAME})
|
|
endfunction()
|
|
|
|
function(copy_e2e_python_files_from_parent_folder TARGET_PREFIX EXTRA_PATH FILE_NAME)
|
|
add_custom_target(memgraph__e2e__${TARGET_PREFIX}__${FILE_NAME} ALL
|
|
COMMAND ${CMAKE_COMMAND} -E copy
|
|
${CMAKE_CURRENT_SOURCE_DIR}/${EXTRA_PATH}/${FILE_NAME}
|
|
${CMAKE_CURRENT_BINARY_DIR}/${FILE_NAME}
|
|
DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/${EXTRA_PATH}/${FILE_NAME})
|
|
endfunction()
|
|
|
|
function(copy_e2e_cpp_files TARGET_PREFIX FILE_NAME)
|
|
add_custom_target(memgraph__e2e__${TARGET_PREFIX}__${FILE_NAME} ALL
|
|
COMMAND ${CMAKE_COMMAND} -E copy
|
|
${CMAKE_CURRENT_SOURCE_DIR}/${FILE_NAME}
|
|
${CMAKE_CURRENT_BINARY_DIR}/${FILE_NAME}
|
|
DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/${FILE_NAME})
|
|
endfunction()
|
|
|
|
add_subdirectory(fine_grained_access)
|
|
add_subdirectory(server)
|
|
add_subdirectory(replication)
|
|
add_subdirectory(memory)
|
|
add_subdirectory(triggers)
|
|
add_subdirectory(isolation_levels)
|
|
add_subdirectory(streams)
|
|
add_subdirectory(temporal_types)
|
|
add_subdirectory(write_procedures)
|
|
add_subdirectory(magic_functions)
|
|
add_subdirectory(module_file_manager)
|
|
add_subdirectory(monitoring_server)
|
|
add_subdirectory(lba_procedures)
|
|
|
|
copy_e2e_python_files(pytest_runner pytest_runner.sh "")
|
|
file(COPY ${CMAKE_CURRENT_SOURCE_DIR}/memgraph-selfsigned.crt DESTINATION ${CMAKE_CURRENT_BINARY_DIR})
|
|
file(COPY ${CMAKE_CURRENT_SOURCE_DIR}/memgraph-selfsigned.key DESTINATION ${CMAKE_CURRENT_BINARY_DIR})
|