Skip to content

Commit

Permalink
Update affected code.
Browse files Browse the repository at this point in the history
(cherry picked from commit 7522794)
  • Loading branch information
Kami authored and cognifloyd committed Dec 10, 2019
1 parent 66fdd3e commit f80446d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion st2api/tests/unit/controllers/v1/test_actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ def test_get_all_and_with_minus_one(self):
self.__do_delete(action_1_id)
self.__do_delete(action_2_id)

@mock.patch('st2common.rbac.backends.noop.NoOpRBACUtilsClass.user_is_admin',
@mock.patch('st2common.rbac.backends.noop.NoOpRBACUtils.user_is_admin',
mock.Mock(return_value=False))
def test_get_all_invalid_limit_too_large_none_admin(self):
# limit > max_page_size, but user is not admin
Expand Down
2 changes: 1 addition & 1 deletion st2api/tests/unit/controllers/v1/test_auth_api_keys.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ def test_get_all_with_pagnination_with_only_limit(self):
retrieved_ids = [apikey['id'] for apikey in resp.json]
self.assertEqual(retrieved_ids, [str(self.apikey1.id), str(self.apikey2.id)])

@mock.patch('st2common.rbac.backends.noop.NoOpRBACUtilsClass.user_is_admin',
@mock.patch('st2common.rbac.backends.noop.NoOpRBACUtils.user_is_admin',
mock.Mock(return_value=False))
def test_get_all_invalid_limit_too_large_none_admin(self):
# limit > max_page_size, but user is not admin
Expand Down

0 comments on commit f80446d

Please sign in to comment.