E2E test: make add and delete ssh key spec idempotent
What does this MR do and why?
In #438605 (closed), the delete
spec failed since the add
test failed.
The tests are currently non-idempotent, this MR separates the delete
spec so it does its' own setup.
How to set up and validate locally
Run together:
QA_LOG_LEVEL=DEBUG QA_GITLAB_URL=http://192.168.4.31:3000 bundle exec rspec qa/specs/features/browser_ui/3_create/repository/ssh_key_support_spec.rb
Run separately:
QA_LOG_LEVEL=DEBUG QA_GITLAB_URL=http://192.168.4.31:3000 bundle exec rspec qa/specs/features/browser_ui/3_create/repository/ssh_key_support_spec.rb:12
QA_LOG_LEVEL=DEBUG QA_GITLAB_URL=http://192.168.4.31:3000 bundle exec rspec qa/specs/features/browser_ui/3_create/repository/ssh_key_support_spec.rb:21
Edited by Jay McCure