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

Method store

tests/pytests/unit/cluster/test_state_sync.py:160–161  ·  view source on GitHub ↗
(self, bank, key, value)

Source from the content-addressed store, hash-verified

158 return fake_dump.get(bank, {}).get(key)
159
160 def store(self, bank, key, value):
161 fake_dump.setdefault(bank, {})[key] = value
162
163 monkeypatch.setattr(salt.cache, "Cache", _FakeCache)
164 return {"cache": "localfs"}

Callers 15

test_basic_storeFunction · 0.45
test_store_multipleFunction · 0.45
test_basic_fetchFunction · 0.45
test_basic_updatedFunction · 0.45
test_remove_singleFunction · 0.45
test_remove_remainingFunction · 0.45
test_flush_bankFunction · 0.45
test_containsFunction · 0.45
test_list_simpleFunction · 0.45

Calls 2

setdefaultMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected