-
Notifications
You must be signed in to change notification settings - Fork 588
HDDS-9978. Improve assertTrue assertions in OM integration tests #5850
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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