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

Method test_get_dir

tests/integration/modules/test_cp.py:132–141  ·  view source on GitHub ↗

cp.get_dir

(self)

Source from the content-addressed store, hash-verified

130
131 @pytest.mark.slow_test
132 def test_get_dir(self):
133 """
134 cp.get_dir
135 """
136 tgt = os.path.join(RUNTIME_VARS.TMP, "many")
137 self.run_function("cp.get_dir", ["salt://grail", tgt])
138 self.assertIn("grail", os.listdir(tgt))
139 self.assertIn("36", os.listdir(os.path.join(tgt, "grail")))
140 self.assertIn("empty", os.listdir(os.path.join(tgt, "grail")))
141 self.assertIn("scene", os.listdir(os.path.join(tgt, "grail", "36")))
142
143 @pytest.mark.slow_test
144 def test_get_dir_templated_paths(self):

Callers

nothing calls this directly

Calls 1

run_functionMethod · 0.95

Tested by

no test coverage detected