Skip to content

DAOS-19560 test: replace assertTrue with specific assert calls - #19030

Open
jamesanunez wants to merge 1 commit into
masterfrom
janunez/DAOS-19560-second
Open

DAOS-19560 test: replace assertTrue with specific assert calls#19030
jamesanunez wants to merge 1 commit into
masterfrom
janunez/DAOS-19560-second

Conversation

@jamesanunez

Copy link
Copy Markdown
Collaborator

Replace the call to assertTrue with assertGreater, assertGreaterEqual, assertLess, asserLessEqual or other assert where what we are checking is greater than, greater than or equal, less than or less than or equal to, respectively.

Also, add a message to the assert if one is missing.

Steps for the author:

  • Commit message follows the guidelines.
  • Appropriate Features or Test-tag pragmas were used.
  • Appropriate Functional Test Stages were run.
  • At least two positive code reviews including at least one code owner from each category referenced in the PR.
  • Testing is complete. If necessary, forced-landing label added and a reason added in a comment.

After all prior steps are complete:

  • Gatekeeper requested (daos-gatekeeper added as a reviewer).

Replace the call to assertTrue with assertGreater, assertGreaterEqual,
assertLess, asserLessEqual or other assert  where what we are checking
is greater than, greater than or equal, less than or less than or equal
to, respectively.

Also, add a message to the assert if one is missing.

Signed-off-by: James Nunez <james.nunez@hpe.com>
@jamesanunez
jamesanunez requested review from a team as code owners September 8, 2026 17:33
@github-actions

github-actions Bot commented Sep 8, 2026

Copy link
Copy Markdown

Ticket title is 'ftest: cleanup self.assertTrue'
Status is 'In Progress'
Labels: 'testp2'
https://daosio.atlassian.net/browse/DAOS-19560

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants