Add failing spec when `import_sources` is corrupted
<!--IssueSummary start-->
<details>
<summary>
Everyone can contribute. [Help move this issue forward](https://handbook.gitlab.com/handbook/marketing/developer-relations/contributor-success/community-contributors-workflows/#contributor-links) while earning points, leveling up and collecting rewards.
</summary>
- [Close this issue](https://contributors.gitlab.com/manage-issue?action=close&projectId=278964&issueIid=408814)
</details>
<!--IssueSummary end-->
Add failing spec when `import_sources` is corrupted. ~"corrective action" for https://gitlab.com/gitlab-com/gl-infra/production/-/issues/9134
https://gitlab.com/gitlab-org/gitlab/-/merge_requests/118026#note_1368393172 had a passing CI even though it resulted in a corrupted `import_sources` on staging (and development)
We should have specs / CI to prevent this.
issue