[E2E] Use aggregate_failures for file_spec
What does this MR do and why?
We occasionally have failures in this spec but as we don't use aggregate failures we only see a single failure message. This makes debugging the failure difficult, as it's hard to figure out quite what went wrong in the spec.
Let's use aggregate_failure, and additional add a check for the status code, which should help make it clearer why a failure in this spec may have happened.
Failure in api/3_create/repository/files_spec.r... (#364387 - closed)
How to set up and validate locally
bundle exec rspec qa/specs/features/api/3_create/repository/files_spec.rb
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.