diff --git a/src/bk-user/tests/apis/web/audit/test_audit.py b/src/bk-user/tests/apis/web/audit/test_audit.py index f3cb07192..5d2f00aee 100644 --- a/src/bk-user/tests/apis/web/audit/test_audit.py +++ b/src/bk-user/tests/apis/web/audit/test_audit.py @@ -214,3 +214,15 @@ def test_audit_record_list_pagination_second_page(self, api_client, audit_record assert resp.status_code == status.HTTP_200_OK assert len(resp.data) == 2 + + def test_audit_record_list_pagination_third_page(self, api_client, audit_records): + resp = api_client.get(reverse("audit.list"), data={"page": 3, "page_size": 2}) + + assert resp.status_code == status.HTTP_200_OK + assert len(resp.data) == 0 + + def test_audit_record_list_pagination_large_page(self, api_client, audit_records): + resp = api_client.get(reverse("audit.list"), data={"page": 100, "page_size": 2}) + + assert resp.status_code == status.HTTP_200_OK + assert len(resp.data) == 0