Skip to content

Commit

Permalink
dt/admin: Add get_enterprise
Browse files Browse the repository at this point in the history
Signed-off-by: Oren Leiman <oren.leiman@redpanda.com>
  • Loading branch information
oleiman committed Sep 17, 2024
1 parent 5fdc178 commit b5c06fa
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/rptest/services/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -355,6 +355,12 @@ class MigrationAction(Enum):
cancel = "cancel"


class EnterpriseLicenseStatus(Enum):
valid = "valid"
expired = "expired"
not_present = "not_present"


class Admin:
"""
Wrapper for Redpanda admin REST API.
Expand Down Expand Up @@ -820,6 +826,9 @@ def get_license(self, node=None, timeout=None):
def put_license(self, license):
return self._request("PUT", "features/license", data=license)

def get_enterprise_features(self):
return self._request("GET", "features/enterprise")

def get_loggers(self, node):
"""
Get the names of all loggers.
Expand Down

0 comments on commit b5c06fa

Please sign in to comment.