MCPcopy Create free account
hub / github.com/saltstack/salt / test_basic_updated

Function test_basic_updated

tests/pytests/unit/cache/test_redis_cache.py:261–269  ·  view source on GitHub ↗

Test that updated retrieves the correct value.

(mock_redis_cache)

Source from the content-addressed store, hash-verified

259
260
261def test_basic_updated(mock_redis_cache):
262 """
263 Test that updated retrieves the correct value.
264 """
265 redis_server = redis_cache.__context__["cache.redis"]["client"]
266
267 redis_cache.store("minions/myhost", "grain", {"os": "Linux"})
268
269 assert redis_cache.updated("minions/myhost", "grain") == 0
270
271
272def test_remove_single(mock_redis_cache):

Callers

nothing calls this directly

Calls 2

updatedMethod · 0.80
storeMethod · 0.45

Tested by

no test coverage detected