UserInfoControllerIntegrationTests¶
Namespace: IntegrationTests.Controllers
Integration tests for the User Info Controller to verify user management, profile operations, and access control
functionality.
Inheritance Object → IntegrationTestBase → ApiClientTestBase → UserInfoControllerIntegrationTests
Constructors¶
UserInfoControllerIntegrationTests()¶
Methods¶
ChangePassword_WithInvalidCurrentPassword_ReturnsBadRequest()¶
Tests password change with invalid current password and verifies proper error response handling.
Returns¶
ChangePassword_WithoutToken_ReturnsUnauthorized()¶
Tests password change without authentication token and verifies 401 Unauthorized response.
DeleteUser_WithNonExistentUserId_ReturnsNotFound()¶
Tests user deletion with non-existent user ID and verifies 404 Not Found response or proper error handling.
Returns¶
DeleteUser_WithUserToken_ReturnsForbidden()¶
Tests user deletion with user token and verifies 403 Forbidden response for insufficient privileges.
Returns¶
GetAllUsers_WithAdminToken_ReturnsOk()¶
Tests retrieving all users with admin privileges and verifies successful response or proper error handling.
Returns¶
GetAllUsers_WithoutToken_ReturnsUnauthorized()¶
Tests retrieving all users without authentication token and verifies 401 Unauthorized response.
Returns¶
GetAllUsers_WithUserToken_ReturnsForbidden()¶
Tests retrieving all users with user token and verifies 403 Forbidden response for insufficient privileges.
Returns¶
GetUserById_WithInvalidUserId_ReturnsNotFound()¶
Tests retrieving user by invalid ID and verifies 404 Not Found response or proper error handling.
Returns¶
GetUserById_WithoutToken_ReturnsUnauthorized()¶
Tests retrieving user by ID without authentication token and verifies 401 Unauthorized response.