MCPcopy
hub / github.com/saltstack/salt / gen_cache

Method gen_cache

tests/integration/runners/test_fileserver.py:88–94  ·  view source on GitHub ↗

Create file_list cache so we have something to clear

()

Source from the content-addressed store, hash-verified

86
87 @contextlib.contextmanager
88 def gen_cache():
89 """
90 Create file_list cache so we have something to clear
91 """
92 for saltenv in saltenvs:
93 self.run_run_plus(fun="fileserver.file_list", saltenv=saltenv)
94 yield
95
96 # Test with no arguments
97 with gen_cache():

Callers

nothing calls this directly

Calls 1

run_run_plusMethod · 0.80

Tested by

no test coverage detected