Skip to content

CASSANDRA-21425: Fix skipped tests and typos in CassandraRoleManagerTest#4857

Open
arvindKandpal-ksolves wants to merge 1 commit into
apache:trunkfrom
arvindKandpal-ksolves:CASSANDRA-21425
Open

CASSANDRA-21425: Fix skipped tests and typos in CassandraRoleManagerTest#4857
arvindKandpal-ksolves wants to merge 1 commit into
apache:trunkfrom
arvindKandpal-ksolves:CASSANDRA-21425

Conversation

@arvindKandpal-ksolves
Copy link
Copy Markdown
Contributor

Fix skipped tests (missing @ Test) and typos in CassandraRoleManagerTest

Context & Changes:
While reviewing CassandraRoleManagerTest.java, I noticed a few minor issues that this patch addresses to improve test coverage and code consistency:

  • Enabled skipped tests: Added missing @Test annotations to testPasswordUpdateRateLimiting() and testPasswordUpdateRateLimitingDisabled(), which were previously being silently skipped by JUnit.
  • Fixed typos and inconsistencies:
    • Corrected a typo in an inline comment (role_b3 -> role_b_3).
    • Removed an inconsistent trailing space in the OverloadedException assertion message ("100ms. " -> "100ms.") so it correctly matches the system's actual exception string.
    • Fixed grammar in a comment (primitive -> primitives).

Testing:

  • Ran the newly enabled tests locally using ant test -Dtest.name=CassandraRoleManagerTest.
  • Verified that both tests now execute and pass successfully.

patch by Arvind Kandpal; reviewed by TBD for CASSANDRA-21425

…Test

Adds missing @test annotations to testPasswordUpdateRateLimiting and testPasswordUpdateRateLimitingDisabled. Also fixes minor typos in comments and assertion strings.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant