2022-04-29 02:28:44 +08:00
|
|
|
# Set up C++ functions for e2e tests
|
|
|
|
function(add_query_module target_name src)
|
2022-06-20 18:28:42 +08:00
|
|
|
add_library(${target_name} SHARED ${src})
|
|
|
|
SET_TARGET_PROPERTIES(${target_name} PROPERTIES PREFIX "")
|
|
|
|
target_include_directories(${target_name} PRIVATE ${CMAKE_SOURCE_DIR}/include)
|
2022-04-29 02:28:44 +08:00
|
|
|
endfunction()
|
|
|
|
|
2021-09-22 14:49:29 +08:00
|
|
|
function(copy_e2e_python_files TARGET_PREFIX FILE_NAME)
|
2022-06-20 18:28:42 +08:00
|
|
|
add_custom_target(memgraph__e2e__${TARGET_PREFIX}__${FILE_NAME} ALL
|
|
|
|
COMMAND ${CMAKE_COMMAND} -E copy
|
2021-09-22 14:49:29 +08:00
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/${FILE_NAME}
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/${FILE_NAME}
|
2022-06-20 18:28:42 +08:00
|
|
|
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})
|
2021-09-22 14:49:29 +08:00
|
|
|
endfunction()
|
|
|
|
|
2022-04-21 21:45:31 +08:00
|
|
|
function(copy_e2e_cpp_files TARGET_PREFIX FILE_NAME)
|
2022-06-20 18:28:42 +08:00
|
|
|
add_custom_target(memgraph__e2e__${TARGET_PREFIX}__${FILE_NAME} ALL
|
|
|
|
COMMAND ${CMAKE_COMMAND} -E copy
|
2022-04-21 21:45:31 +08:00
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/${FILE_NAME}
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/${FILE_NAME}
|
2022-06-20 18:28:42 +08:00
|
|
|
DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/${FILE_NAME})
|
2022-04-21 21:45:31 +08:00
|
|
|
endfunction()
|
|
|
|
|
[E129-MG <-T0982-MG] implement edge type filtering (#489)
* 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>
2022-08-16 21:57:23 +08:00
|
|
|
add_subdirectory(fine_grained_access)
|
2022-05-18 13:50:06 +08:00
|
|
|
add_subdirectory(server)
|
2021-01-16 02:04:44 +08:00
|
|
|
add_subdirectory(replication)
|
2021-03-19 15:43:48 +08:00
|
|
|
add_subdirectory(memory)
|
2021-05-19 00:28:17 +08:00
|
|
|
add_subdirectory(triggers)
|
2021-06-14 21:47:57 +08:00
|
|
|
add_subdirectory(isolation_levels)
|
2021-07-06 23:51:11 +08:00
|
|
|
add_subdirectory(streams)
|
2021-10-02 18:49:07 +08:00
|
|
|
add_subdirectory(temporal_types)
|
2021-09-22 14:49:29 +08:00
|
|
|
add_subdirectory(write_procedures)
|
2022-08-04 00:08:44 +08:00
|
|
|
add_subdirectory(configuration)
|
2022-04-21 21:45:31 +08:00
|
|
|
add_subdirectory(magic_functions)
|
2022-02-11 18:29:41 +08:00
|
|
|
add_subdirectory(module_file_manager)
|
2022-05-18 13:50:06 +08:00
|
|
|
add_subdirectory(monitoring_server)
|
2022-08-13 01:34:47 +08:00
|
|
|
add_subdirectory(lba_procedures)
|
2022-12-09 21:30:41 +08:00
|
|
|
add_subdirectory(python_query_modules_reloading)
|
2021-09-22 14:49:29 +08:00
|
|
|
|
|
|
|
copy_e2e_python_files(pytest_runner pytest_runner.sh "")
|
2022-05-18 13:50:06 +08:00
|
|
|
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})
|