Skip to content

Commit

Permalink
[CLIENT-2363] Deprecate client.admin_query_user[s]()
Browse files Browse the repository at this point in the history
  • Loading branch information
juliannguyen4 committed Jun 29, 2023
1 parent 0674a78 commit fc28088
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions doc/client.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1314,6 +1314,8 @@ user\'s roles. Users are assigned roles, which are collections of \

:raises: one of the :exc:`~aerospike.exception.AdminError` subclasses.

.. deprecated:: 12.0.0 :meth:`admin_query_user_info` should be used instead.

.. method:: admin_query_users ([policy: dict]) -> {}

Get the roles of all users.
Expand All @@ -1322,6 +1324,8 @@ user\'s roles. Users are assigned roles, which are collections of \
:return: a :class:`dict` of roles keyed by username.
:raises: one of the :exc:`~aerospike.exception.AdminError` subclasses.

.. deprecated:: 12.0.0 :meth:`admin_query_users_info` should be used instead.

.. _admin_user_dict:

User Dictionary
Expand Down
1 change: 1 addition & 0 deletions test/new_tests/test_admin_query_user.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import aerospike


@pytest.mark.skip("client.admin_query_user() is deprecated")
class TestQueryUser(TestBaseClass):

pytestmark = pytest.mark.skipif(
Expand Down
1 change: 1 addition & 0 deletions test/new_tests/test_admin_query_users.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import aerospike


@pytest.mark.skip("client.admin_query_users() is deprecated")
class TestQueryUsers(TestBaseClass):

pytestmark = pytest.mark.skipif(
Expand Down

0 comments on commit fc28088

Please sign in to comment.