Mercurial > kallithea
comparison rhodecode/tests/api/api_base.py @ 3759:12ca667b69b6 beta
api: don't report invalidated cache_keys after invalidating a repo
The keys are an implementation detail and is never relevant outside RhodeCode
internals and should not be leaked.
author | Mads Kiilerich <madski@unity3d.com> |
---|---|
date | Wed, 03 Apr 2013 15:56:12 +0200 |
parents | 7e3d89d9d3a2 |
children | 60335b702a00 |
comparison
equal
deleted
inserted
replaced
3758:d5c684052ea4 | 3759:12ca667b69b6 |
---|---|
266 def test_api_invalidate_cache(self): | 266 def test_api_invalidate_cache(self): |
267 id_, params = _build_data(self.apikey, 'invalidate_cache', | 267 id_, params = _build_data(self.apikey, 'invalidate_cache', |
268 repoid=self.REPO) | 268 repoid=self.REPO) |
269 response = api_call(self, params) | 269 response = api_call(self, params) |
270 | 270 |
271 expected = ("Cache for repository `%s` was invalidated: " | 271 expected = ("Caches of repository `%s` was invalidated" % (self.REPO)) |
272 "invalidated cache keys: %s" % (self.REPO, | |
273 [unicode(self.REPO)])) | |
274 self._compare_ok(id_, expected, given=response.body) | 272 self._compare_ok(id_, expected, given=response.body) |
275 | 273 |
276 @mock.patch.object(ScmModel, 'mark_for_invalidation', crash) | 274 @mock.patch.object(ScmModel, 'mark_for_invalidation', crash) |
277 def test_api_invalidate_cache_error(self): | 275 def test_api_invalidate_cache_error(self): |
278 id_, params = _build_data(self.apikey, 'invalidate_cache', | 276 id_, params = _build_data(self.apikey, 'invalidate_cache', |