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

Function allowed_funcs

tests/pytests/unit/test_master.py:1417–1429  ·  view source on GitHub ↗

Configuration with git on demand pillar allowed

(tmp_path)

Source from the content-addressed store, hash-verified

1415
1416@pytest.fixture
1417def allowed_funcs(tmp_path):
1418 """
1419 Configuration with git on demand pillar allowed
1420 """
1421 opts = _git_pillar_base_config(tmp_path)
1422 opts["on_demand_ext_pillar"] = ["git"]
1423 priv, pub = salt.crypt.gen_keys(2048)
1424 master_pki = tmp_path / "pki"
1425 master_pki.mkdir()
1426 accepted_pki = master_pki / "minions"
1427 accepted_pki.mkdir()
1428 (accepted_pki / "minion.pub").write_text(pub)
1429 return salt.master.AESFuncs(opts=opts)
1430
1431
1432@skipif_no_pygit2

Callers

nothing calls this directly

Calls 2

_git_pillar_base_configFunction · 0.85
gen_keysMethod · 0.80

Tested by

no test coverage detected