Admin — Internal Use Only
Registration Flow Test
Runs end-to-end POST tests against /api/registration?test=1 — writes to test tables only. No real student data is created.
This test verifies:
LTC registration routes to test_ltc_registrations
Security registration routes to test_security_registrations
General course routes to test_course_registrations
Date of birth is captured and stored (TX DPS RSD requirement)
Missing DOB returns HTTP 400 with correct error message
Missing email returns HTTP 400
LTC — all required fields (ltc_registrations)
Table: test_ltc_registrations
Security — all required fields (security_registrations)
Table: test_security_registrations
General course — all required fields (course_registrations)
Table: test_course_registrations
Specialized Cont. Ed. — Level III & IV (security_registrations)
Table: test_security_registrations
Missing DOB → expect 400 (TX DPS validation guard)
Table: n/a (should reject)
Missing email → expect 400 (validation guard)
Table: n/a (should reject)