HDDS-9978. Improve assertTrue assertions in OM integration tests#5850
HDDS-9978. Improve assertTrue assertions in OM integration tests#5850adoroszlai merged 8 commits intoapache:masterfrom
Conversation
|
@wzhallright please resolve conflicts |
# Conflicts: # hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/hdds/scm/pipeline/TestLeaderChoosePolicy.java # hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/client/rpc/TestOzoneRpcClientAbstract.java # hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/om/TestOmBlockVersioning.java
Has resolved conflicts. Thanks for review. |
adoroszlai
left a comment
There was a problem hiding this comment.
Thanks @wzhallright for updating the patch. Let's wait with this a bit for other conflicting changes.
...ozone/integration-test/src/test/java/org/apache/hadoop/fs/ozone/TestOzoneFileInterfaces.java
Outdated
Show resolved
Hide resolved
...one/integration-test/src/test/java/org/apache/hadoop/ozone/om/TestAddRemoveOzoneManager.java
Outdated
Show resolved
Hide resolved
...one/integration-test/src/test/java/org/apache/hadoop/ozone/om/TestAddRemoveOzoneManager.java
Outdated
Show resolved
Hide resolved
...integration-test/src/test/java/org/apache/hadoop/ozone/om/TestOzoneManagerConfiguration.java
Outdated
Show resolved
Hide resolved
hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/om/TestOmMetrics.java
Outdated
Show resolved
Hide resolved
hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/om/TestKeyManagerImpl.java
Outdated
Show resolved
Hide resolved
|
@wzhallright, I think you have to wait for HDDS-9922 and update https://github.com/apache/ozone/pull/5838/files?diff=unified&w=0#diff-7204a4e31ff9ef05e7839a26737265513d5aedc6ddeac72a9cbda7f263a0ddffR1826 as well. |
OK,Thanks for review @hemantk-12. I will rebase and update it after #5838 is merged. |
|
No need to wait/rebase, filesystem integration tests will be covered by separate sub-task later. |
...ozone/integration-test/src/test/java/org/apache/hadoop/ozone/om/TestOzoneManagerPrepare.java
Outdated
Show resolved
Hide resolved
...ozone/integration-test/src/test/java/org/apache/hadoop/ozone/om/TestOzoneManagerPrepare.java
Outdated
Show resolved
Hide resolved
be24006 to
f319462
Compare
|
Thanks @wzhallright for the improvement. |
What changes were proposed in this pull request?
Improve assertTrue assertions in hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/om
Assertions in the form:
do not provide any information about the actual value, if the assertion fails.
This can be improved by replacing them with:
which gives us more info in the form:
Similarly, assertions about inequality relations, e.g.:
can be replaced with:
The goal of this task is to find and replace such assertTrue assertions.
What is the link to the Apache JIRA
https://issues.apache.org/jira/browse/HDDS-9978
CI
https://github.com/wzhallright/ozone/actions/runs/7295265484