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()
|
|
|
|
|
2023-06-20 23:54:50 +08:00
|
|
|
function(copy_e2e_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()
|
|
|
|
|
[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)
|
2024-02-12 23:42:57 +08:00
|
|
|
add_subdirectory(replication)
|
2024-02-09 19:55:31 +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)
|
2023-11-28 20:34:21 +08:00
|
|
|
add_subdirectory(metadata_queries)
|
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)
|
2023-03-30 21:34:34 +08:00
|
|
|
add_subdirectory(analyze_graph)
|
2023-03-27 21:46:00 +08:00
|
|
|
add_subdirectory(transaction_queue)
|
2023-03-07 22:41:19 +08:00
|
|
|
add_subdirectory(mock_api)
|
2024-02-09 19:55:31 +08:00
|
|
|
#add_subdirectory(graphql)
|
2023-06-29 17:44:55 +08:00
|
|
|
add_subdirectory(disk_storage)
|
2023-06-21 17:13:40 +08:00
|
|
|
add_subdirectory(load_csv)
|
2023-06-20 23:54:50 +08:00
|
|
|
add_subdirectory(init_file_flags)
|
2023-06-23 18:50:03 +08:00
|
|
|
add_subdirectory(analytical_mode)
|
2023-06-26 21:46:13 +08:00
|
|
|
add_subdirectory(batched_procedures)
|
2023-09-06 01:00:53 +08:00
|
|
|
add_subdirectory(import_mode)
|
2023-08-21 22:45:36 +08:00
|
|
|
add_subdirectory(concurrent_query_modules)
|
2023-09-11 16:59:41 +08:00
|
|
|
add_subdirectory(show_index_info)
|
2023-09-04 22:17:43 +08:00
|
|
|
add_subdirectory(set_properties)
|
2023-09-08 18:52:40 +08:00
|
|
|
add_subdirectory(transaction_rollback)
|
2023-10-27 20:26:19 +08:00
|
|
|
add_subdirectory(index_hints)
|
2023-10-26 00:27:44 +08:00
|
|
|
add_subdirectory(query_modules)
|
2023-10-25 22:01:02 +08:00
|
|
|
add_subdirectory(constraints)
|
2023-10-28 21:34:52 +08:00
|
|
|
add_subdirectory(inspect_query)
|
2023-12-04 04:23:52 +08:00
|
|
|
add_subdirectory(filter_info)
|
2023-11-13 11:12:25 +08:00
|
|
|
add_subdirectory(queries)
|
2023-12-04 15:32:59 +08:00
|
|
|
add_subdirectory(query_modules_storage_modes)
|
2023-11-15 04:06:21 +08:00
|
|
|
add_subdirectory(garbage_collection)
|
2023-12-04 07:01:29 +08:00
|
|
|
add_subdirectory(query_planning)
|
2021-09-22 14:49:29 +08:00
|
|
|
|
2024-01-24 20:07:51 +08:00
|
|
|
if (MG_EXPERIMENTAL_HIGH_AVAILABILITY)
|
|
|
|
add_subdirectory(high_availability_experimental)
|
|
|
|
endif ()
|
|
|
|
|
2024-02-13 20:57:18 +08:00
|
|
|
add_subdirectory(replication_experimental)
|
2024-01-23 19:06:10 +08:00
|
|
|
|
2021-09-22 14:49:29 +08:00
|
|
|
copy_e2e_python_files(pytest_runner pytest_runner.sh "")
|
2023-10-26 00:27:44 +08:00
|
|
|
copy_e2e_python_files(x x.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})
|