[Fix] Fixes flaky stops and removes containers spec
What does this MR do and why?
I encountered what appears to be a flaky failure in jobs such https://gitlab.com/gitlab-org/gitlab-qa/-/jobs/4916277036 Hardening this spec by using double of File and stubbed methods.
How to set up and validate locally
bundle exec rspec ./spec/gitlab/qa/component/gitlab_spec.rb:361
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.