Write a new request specs to test Workhorse (etag) caching
The goal is to write new request specs to test that Workhorse caching works (using Etag) as expected. See gitlab-workhorse!270 (comment 84793971).
Quoting @jacobvosmaer-gitlab:
For instance we could make the same request two times in a row. Can we reliably see, perhaps in the logs, that the second request didn't reach gitlab-rails?
This could just be new request specs since we're actually using Workhorse in the gitlab-rails
test suite:
For every route at https://gitlab.com/gitlab-org/gitlab-ce/blob/master/lib/gitlab/etag_caching/router.rb:
- Makes a first request
- Checks that the request returns a
200
- Makes the same request again
- Checks that the request returns a
304
Edited by Jacob Vosmaer