Skip to content

Commit

Permalink
[irods#7918] replica_truncate: Add unit test output string checking
Browse files Browse the repository at this point in the history
This change adds assertions about the contents of the output string
that is returned from the replica_truncate API. Depending on the error,
the message and other contents of the JSON structure could be in a
variety of states, so we want to make sure that these hold the expected
values in all cases. In the cases where errors do not occur, we want to
ensure that the correct replica number and resource hierarchy are returned
so that the caller knows which replica was truncated.

This change also adds a new test for when a logical path including a zone
name which does not exist is targeted for truncate.
  • Loading branch information
alanking committed Jul 25, 2024
1 parent 1164865 commit 046238b
Showing 1 changed file with 481 additions and 26 deletions.
Loading

0 comments on commit 046238b

Please sign in to comment.