ogcore/tests/Functional
Nicolas Arenas 5ce29848f1 test(ogcore): añadir suite de tests de permisos por rol
PermissionsTest.php cubre la matriz completa de permisos:

  Sección 1 — Clientes (POST):
    - super-admin / ou-admin pueden crear (201)
    - ou-operator / ou-minimal no pueden (403)

  Sección 2 — OUs (POST):
    - super-admin / ou-admin pueden crear (201)
    - ou-operator / ou-minimal no pueden (403)

  Sección 3 — OUs (DELETE con autoría):
    - ou-admin borra la suya propia (204)
    - ou-admin no borra la de otro usuario (403)
    - super-admin borra cualquiera (204)
    - ou-operator no borra ninguna (403)

  Sección 4 — DHCP Servers:
    - super-admin puede PATCH (200)
    - ou-admin / ou-operator no pueden PATCH ni DELETE (403)

  Sección 5 — Boot Servers:
    - super-admin puede PATCH (200)
    - ou-admin / ou-operator no pueden PATCH ni DELETE (403)

  Sección 6 — Image Repositories:
    - super-admin puede crear (201)
    - ou-admin / ou-operator no pueden crear ni borrar (403)

  Sección 7 — Commands:
    - super-admin puede crear (201)
    - ou-admin / ou-operator no pueden crear, editar ni borrar (403)

OrganizationalUnitTest: reemplaza testOuOperatorCanEditOrganizationalUnitTheyCreated
(que asumía que operadores podían crear OUs) por
testOuOperatorCannotCreateOrganizationalUnit (que verifica el comportamiento correcto).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-27 15:37:12 +02:00
..
AbstractTest.php refs #452. Migrate clients and hardware profile ended 2024-06-12 12:40:38 +02:00
ClientTest.php Updated ogCore wieh new docu 2025-10-09 10:53:32 +02:00
CommandTaskTest.php refs #1942. Updated COmmandTask logic. Created new tables and API commandTaskScript and commandTaskSchedule 2025-04-30 12:30:59 +02:00
CommandTest.php refs #758. Testing command API 2024-09-16 09:18:17 +02:00
HardwareProfileTest.php Updated ogCore wieh new docu 2025-10-09 10:53:32 +02:00
HardwareTest.php refs #488. Testing 2024-07-04 11:07:55 +02:00
HardwareTypeTest.php refs #451. Testing hardwareType 2024-06-18 16:38:14 +02:00
ImageRepositoryTest.php Updated ogCore wieh new docu 2025-10-09 10:53:32 +02:00
ImageTest.php refs #2585. Updated executedPendingTrace 2025-08-25 12:25:50 +02:00
MenuTest.php Updated ogCore wieh new docu 2025-10-09 10:53:32 +02:00
OgLiveTest.php Updated ogCore wieh new docu 2025-10-09 10:53:32 +02:00
OperativeSystemTest.php refs #423. Added ddbb and endpoint OperativeSystem 2024-06-18 10:40:35 +02:00
OrganizationalUnitTest.php test(ogcore): añadir suite de tests de permisos por rol 2026-05-27 15:37:12 +02:00
PartitionTest.php Updated ogCore wieh new docu 2025-10-09 10:53:32 +02:00
PermissionsTest.php test(ogcore): añadir suite de tests de permisos por rol 2026-05-27 15:37:12 +02:00
PxeTemplateTest.php Fixed test 2024-11-26 14:57:46 +01:00
SoftwareProfileTest.php refs #488. Testing 2024-07-04 11:07:55 +02:00
SoftwareTest.php refs #955. New database fields 2024-10-16 09:12:03 +02:00
UserGroupTest.php refs #451. Testing OrganizationalUnit, and partial Client 2024-06-12 16:46:35 +02:00
UserTest.php Changed test 2025-03-05 09:15:19 +01:00
ViewTest.php Updated ogCore wieh new docu 2025-10-09 10:53:32 +02:00