Skip to content

Commit

Permalink
fix(ToggleAuditNemesisSyslog): Remove enterprise-only restriction for…
Browse files Browse the repository at this point in the history
… audit feature

This patch allows audit feature tested across all Scylla versions.

Signed-off-by: Lakshmipathi.Ganapathi <[email protected]>
  • Loading branch information
Lakshmipathi committed Feb 5, 2025
1 parent acfb2d1 commit 30f3473
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions sdcm/nemesis.py
Original file line number Diff line number Diff line change
Expand Up @@ -5166,8 +5166,9 @@ def _disrupt_toggle_audit(self, store: AuditStore):
reduce categories by excluding DML and QUERY,
verify DDL are logged in audit log correctly. Leaves audit log enabled this way.
"""
if not self.target_node.is_enterprise:
raise UnsupportedNemesis("Auditing feature is only supported by Scylla Enterprise")
if not self.target_node.is_enterprise and ComparableScyllaVersion(self.target_node.scylla_version) < "2025.1.0~dev":
raise UnsupportedNemesis(
"Auditing feature is only supported by Scylla Enterprise or non-enterprise versions greater than 6")

if store == "syslog" and self._is_it_on_kubernetes():
# generally syslog is not supported on K8S because of different log line format
Expand Down

0 comments on commit 30f3473

Please sign in to comment.