Skip to content
Permalink
Browse files
ninja: fix version checks in TestNetworkAuth
Follow up to CASSANDRA-16404
  • Loading branch information
Sam Tunnicliffe committed Sep 6, 2021
1 parent 2ed526a commit 573573d92d5c5b8716a0673444fafd36b3d83de2
Showing 1 changed file with 5 additions and 2 deletions.
@@ -3114,7 +3114,7 @@ def test_revoked_access(cache_name):
self.clear_network_auth_cache(self.dc2_node, cache_name)
self.assertUnauthorized(lambda: session.execute("SELECT * FROM ks.tbl"))

if self.dtest_config.cassandra_version_from_build > '4.0':
if self.dtest_config.cassandra_version_from_build >= '4.1':
test_revoked_access("NetworkPermissionsCache")

# deprecated cache name, scheduled for removal in 5.0
@@ -3155,7 +3155,10 @@ def test_revoked_login(self):
session = self.exclusive_cql_connection(self.dc2_node, user=username, password='password')
superuser.execute("ALTER ROLE %s WITH LOGIN=false" % username)
self.clear_roles_cache(self.dc2_node)
self.clear_network_auth_cache(self.dc2_node)

cache_name = "NetworkPermissionsCache" if self.dtest_config.cassandra_version_from_build >= '4.1' else "NetworkAuthCache"
self.clear_network_auth_cache(self.dc2_node, cache_name)

self.assertUnauthorized(lambda: session.execute("SELECT * FROM ks.tbl"))


0 comments on commit 573573d

Please sign in to comment.