From 394c802ec247fdb0a2671b800774dc95d5bceff1 Mon Sep 17 00:00:00 2001 From: Garret Alfert Date: Mon, 26 Nov 2018 11:57:41 +0100 Subject: [PATCH] Fix spec ETag is used from Redis metadata now, not from the storage server's response. --- spec/shared_examples.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/spec/shared_examples.rb b/spec/shared_examples.rb index eea85f9..aa8f997 100644 --- a/spec/shared_examples.rb +++ b/spec/shared_examples.rb @@ -437,7 +437,8 @@ shared_examples_for 'a REST adapter' do get "/phil/food/aguacate" last_response.status.must_equal 200 - last_response.headers["ETag"].must_equal "\"0817etag\"" + # ETag is coming from the Redis metadata, not the storage server (which has "0817etag") + last_response.headers["ETag"].must_equal "\"0815etag\"" last_response.headers["Cache-Control"].must_equal "no-cache" last_response.headers["Content-Type"].must_equal "text/plain; charset=utf-8" end