test-user-management

Automate Bash-driven REST API tests for user management validation.

Updated Mar 30, 2025
One-click install
npx skills add https://github.com/j4xie/my-prototype-logistics --skill test-user-management
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: test-user-management
Source: https://github.com/j4xie/my-prototype-logistics/tree/main/.claude/skills/test-user-management
Command: npx skills add https://github.com/j4xie/my-prototype-logistics --skill test-user-management

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill validates the user management module, including user listing, role-based filtering, CRUD, whitelist flows, and activation/deactivation.

Core Features & Use Cases

  • User & Role Testing: Validate user listing, role filters, and user details.
  • Lifecycle Flows: Test whitelist operations and user activation cycles.
  • Use Case: Confirm that user onboarding and access control work as intended.

Quick Start

Run the user management test suite: bash tests/api/test-user-management.sh

Frequently Asked Questions about test-user-management

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I test user management APIs with end-to-end tests?

End-to-end tests for user management validate the complete user lifecycle: registration, CRUD operations, role-based filtering, and whitelist management. This Skill automates those tests using Bash and curl against a local REST API, checking HTTP status codes and response content to confirm user onboarding and access control work as intended.

Can I test RBAC and role-based user filtering with curl and Bash?

Yes. This Skill uses curl-based HTTP requests with JSON payloads to test role-based access control and user filtering. It extracts tokens, lists users by role, and validates responses deterministically using Bash counters and status-code checks.

What does whitelist management testing cover?

Whitelist management testing covers batch additions, validation of whitelist rules, and confirmation that access control enforces the whitelist. This Skill tests these flows end-to-end to ensure user registration and activation respect whitelist constraints.

How do I validate user activation and deactivation workflows?

This Skill tests user lifecycle transitions by sending REST API requests to activate or deactivate users, then asserting the correct status-code responses and user state changes. It confirms the activation workflow functions correctly in your local testing environment.

Do I need a specific API endpoint structure to run these tests?

Tests target localhost:10010 and expect REST endpoints for token retrieval, user listing, filtering, CRUD operations, and whitelist management. The Skill supports standard HTTP verbs and JSON payloads; your API must expose these core user management operations.

What's the entry barrier for running user management test automation?

Minimal. The Skill requires Bash, curl, and a running local API on localhost:10010. No external dependencies or frameworks are needed; it uses simple HTTP requests and Bash logic for test reporting, making it accessible for teams already testing REST APIs.