refactor: restrict artifact creation to registered categories
following up on #173 (closed) and the discussion as in !2773 (comment 733280).
this change restricts artifact creation to only registered categories (from LocalArtifact.artifact_categories()). Previously, unknown categories were allowed and skipped validation
now:
- Artifact creation fails for unknown categories
- Validation (
full_clean) is always applied
Tests were updated to replace the unregistered "testing" category with the registered "debusine:test" artifact and to use valid data for it.
This ensures that all created artifacts are validated and consistent.
closes #1390 (closed).
Edited by Ayush Sharma