You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The tests should pass because it passes in every other configuration.
Observed behavior (including steps to reproduce, if applicable)
The tests fail with the following message:
<testcaseclassname="irods.test.test_itrim.Test_Itrim"name="test_itrim_minimum_replicas_to_keep_invalid_values__issue_7502"time="7.525"timestamp="2024-04-24T15:10:12"file="scripts/irods/test/test_itrim.py"line="356">
<failuretype="AssertionError"message="False is not true"><![CDATA[Traceback (most recent call last): File "/var/lib/irods/scripts/irods/test/test_itrim.py", line 373, in test_itrim_minimum_replicas_to_keep_invalid_values__issue_7502 self.assertTrue(lib.replica_exists_on_resource(self.admin, logical_path, self.admin.default_resource))AssertionError: False is not true]]></failure>
Al of the failing tests have similar messages, failing on a similar assertion. Here are the lines on the one shown above ( test_itrim.Test_Itrim.test_itrim_minimum_replicas_to_keep_invalid_values__issue_7502):
The test assumes that the IrodsSession represented by self.admin will have a default_resource value of the local server's storage resource, which in this case is 2bec7eaeffe6Resource. The value queried is demoResc.
We need to update the test tools to get the correct default resource based on the server on which the tests are being run.
The text was updated successfully, but these errors were encountered:
Alternatively, the tests can be updated to be more specific about where the source replica is stored on the original itouch command and use that resource for the assertions.
Bug Report
iRODS Version, OS and Version
4.3.2
What did you try to do?
Run the following tests in topology on consumer:
Expected behavior
The tests should pass because it passes in every other configuration.
Observed behavior (including steps to reproduce, if applicable)
The tests fail with the following message:
Al of the failing tests have similar messages, failing on a similar assertion. Here are the lines on the one shown above (
test_itrim.Test_Itrim.test_itrim_minimum_replicas_to_keep_invalid_values__issue_7502
):irods/scripts/irods/test/test_itrim.py
Lines 367 to 375 in e4b4e8a
Here is the output from the test demonstrating the query which fails:
The test assumes that the
IrodsSession
represented byself.admin
will have adefault_resource
value of the local server's storage resource, which in this case is2bec7eaeffe6Resource
. The value queried isdemoResc
.We need to update the test tools to get the correct default resource based on the server on which the tests are being run.
The text was updated successfully, but these errors were encountered: