Backend de erp-core - Workspace V2
Go to file
Adrian Flores Cortes 6f0548bc5b [RBAC-003] test: Add RBAC middleware and cache service unit tests
Phase 4 testing implementation:
- rbac.middleware.test.ts: Tests for requirePerm, requireAnyPerm,
  requireAllPerms, requireAccess, requirePermOrOwner
- permission-cache.service.test.ts: Tests for cache operations,
  Redis unavailable fallback, tenant-wide invalidation

Test scenarios covered:
- User with/without permission (403)
- Super admin bypass
- Cache hit/miss
- Redis unavailable fallback
- Hybrid access control (role + permission)
- Owner-based access

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-31 01:56:52 -06:00
src [RBAC-003] test: Add RBAC middleware and cache service unit tests 2026-01-31 01:56:52 -06:00
.env.example Initial commit - erp-core-backend 2026-01-04 06:40:14 -06:00
.gitignore Initial commit - erp-core-backend 2026-01-04 06:40:14 -06:00
Dockerfile Initial commit - erp-core-backend 2026-01-04 06:40:14 -06:00
jest.config.js test(core): Add comprehensive tests for core catalog services 2026-01-18 09:21:22 -06:00
package-lock.json chore: Update package-lock.json 2026-01-25 02:27:27 -06:00
package.json fix: Resolve entity/service field mismatches and build errors (84→19) 2026-01-18 02:27:03 -06:00
service.descriptor.yml Initial commit - erp-core-backend 2026-01-04 06:40:14 -06:00
tsconfig.json Initial commit - erp-core-backend 2026-01-04 06:40:14 -06:00
TYPEORM_DEPENDENCIES.md Initial commit - erp-core-backend 2026-01-04 06:40:14 -06:00
TYPEORM_INTEGRATION_SUMMARY.md Initial commit - erp-core-backend 2026-01-04 06:40:14 -06:00
TYPEORM_USAGE_EXAMPLES.md Initial commit - erp-core-backend 2026-01-04 06:40:14 -06:00