/
githubmirror
/
salt
Обзор
Документация
Войти
/
githubmirror
/
salt
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
tests/pytests/integration/sdb/conftest.py
20 строк
514 B
jeanluc
Rewrite vault core, issue AppRoles to minions (#62684)
16 дек 2023, 07:42
Не верифицирован
16 дек 2023, 07:42
f2121e5
Код
Авторство
О чём код?
import pytest @pytest.fixture(scope="module") def pillar_tree(salt_master, salt_minion): top_file = """ base: '{}': - sdb """.format( salt_minion.id ) sdb_pillar_file = """ test_etcd_pillar_sdb: sdb://sdbetcd/secret/test/test_pillar_sdb/foo """ top_tempfile = salt_master.pillar_tree.base.temp_file("top.sls", top_file) sdb_tempfile = salt_master.pillar_tree.base.temp_file("sdb.sls", sdb_pillar_file) with top_tempfile, sdb_tempfile: yield