Resources
2Install
npx skillscat add fortiumpartners/ai-mesh/skills-smoke-test-auth Install via the SkillsCat registry.
About this skill
The Smoke Test Auth skill runs automated authentication and authorization tests that verify login flows, token validation, session handling, and access control. It helps detect integration defects before release, ensuring that authentication mechanisms function correctly. Use it during CI pipelines or before deploying new authentication features.
SKILL.md
Smoke Test Auth Skill
Quick Reference - Load this first for fast context (~2KB)
Mission
Execute comprehensive authentication and authorization smoke tests to validate login flows, token validation, session management, and access control during release workflows.
Core Capabilities
- Login Flow Testing: Validate email/password, OAuth, SSO authentication
- Token Validation: Test JWT generation, validation, and refresh
- Session Management: Verify session creation, persistence, expiration
- Access Control: Test role-based and permission-based authorization
- Password Operations: Validate password reset and change flows
- Multi-Factor Authentication: Test 2FA/MFA flows
Quick Start
const { SmokeTestAuth } = require('./scripts/test-auth-flows.js');
const tester = new SmokeTestAuth({
baseUrl: 'https://staging.example.com',
testCredentials: {
email: 'test@example.com',
password: process.env.TEST_USER_PASSWORD
}
});
const result = await tester.executeTests({
environment: 'staging',
tests: ['login', 'token-validation', 'protected-resource']
});
if (result.passed) {
console.log('✅ Auth smoke tests passed');
}Performance SLAs
const SLA_TARGETS = {
login: 2000, // Login: ≤2s
tokenValidation: 100, // Token validation: ≤100ms
sessionCheck: 50, // Session check: ≤50ms
protectedResource: 500, // Protected resource: ≤500ms
logout: 1000 // Logout: ≤1s
};Pass/Fail Criteria
Pass: All auth tests must pass
- ✅ Login successful with valid credentials
- ✅ Login fails with invalid credentials
- ✅ Tokens generated and validated correctly
- ✅ Protected resources accessible with valid auth
- ✅ Protected resources blocked without auth
Fail: Any auth test failure blocks deployment
- ❌ Login fails with valid credentials
- ❌ Login succeeds with invalid credentials
- ❌ Token validation failures
- ❌ Unauthorized access to protected resources
- ❌ Authorized access blocked
Need More Detail?
Load: skills/smoke-test-auth/REFERENCE.md (~10KB)