Skip to content

Commit

Permalink
[ 7104] Add API tests for rc_replica_truncate
Browse files Browse the repository at this point in the history
This adds a basic set of tests for the new replica_truncate API, including:

- Basic tests for targeting a single replica with non-boundary size values
- Basic tests for targeting a replica in a replication hierarchy with
  non-boundary size values
- Test for targeting a replica for truncate while in intermediate state
- Invalid input tests
  • Loading branch information
alanking committed Mar 13, 2024
1 parent 2f3bdce commit fbb67ad
Show file tree
Hide file tree
Showing 4 changed files with 849 additions and 0 deletions.
1 change: 1 addition & 0 deletions unit_tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ set(
replica_access_table
replica_open_and_close
replica_state_table
replica_truncate
rerror_stack
resource_administration
scoped_privileged_client
Expand Down
13 changes: 13 additions & 0 deletions unit_tests/cmake/test_config/irods_replica_truncate.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
set(IRODS_TEST_TARGET irods_replica_truncate)

set(IRODS_TEST_SOURCE_FILES ${CMAKE_CURRENT_SOURCE_DIR}/src/main.cpp
${CMAKE_CURRENT_SOURCE_DIR}/src/test_replica_truncate.cpp)

set(IRODS_TEST_INCLUDE_PATH ${IRODS_EXTERNALS_FULLPATH_BOOST}/include)

set(IRODS_TEST_LINK_LIBRARIES irods_common
irods_client
irods_plugin_dependencies
${IRODS_EXTERNALS_FULLPATH_BOOST}/lib/libboost_filesystem.so
${IRODS_EXTERNALS_FULLPATH_BOOST}/lib/libboost_system.so
fmt::fmt)
Loading

0 comments on commit fbb67ad

Please sign in to comment.