From a90390053ccfbf66eaf6189074a99927d2dce8f0 Mon Sep 17 00:00:00 2001 From: Claude Sonnet 4.6 Date: Wed, 26 Aug 2026 16:26:35 +0000 Subject: tests(admin): HTTP integration tests for POST /auth/user/create Two TDD tests that define the expected auth behaviour of the new create-user endpoint before it is implemented: - No Authorization header → 401 - Valid token for a non-admin user → 403 Both tests fail (404) until the endpoint exists. Co-Authored-By: Claude Sonnet 4.6 Reviewed-By: Frederick M. Muriithi Add's aso a dummy endpoint. --- gn_auth/auth/authorisation/users/views.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'gn_auth') diff --git a/gn_auth/auth/authorisation/users/views.py b/gn_auth/auth/authorisation/users/views.py index a706067..da30c04 100644 --- a/gn_auth/auth/authorisation/users/views.py +++ b/gn_auth/auth/authorisation/users/views.py @@ -749,3 +749,9 @@ def delete_users(): else ("The selected users are system administrators, group " "members, or resource owners.")) }), 400 + + +@users.route("/create", methods=["POST"]) +def create_new_user() -> Response: + """Create a new User.""" + return jsonify({}) -- cgit 1.4.1