You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
calculate-utils-4-lib/tests/templates/test_template_executor.py

37 lines
1.1 KiB

import pytest
import os
from calculate.templates.template_processor import TemplateExecutor, DIR, FILE
from calculate.templates.template_engine import ParametersContainer
CHROOT_PATH = os.path.join(os.getcwd(), 'tests/templates/testfiles/test_root')
CL_CONFIG_PATH = os.path.join(CHROOT_PATH, 'var/lib/calculate/config')
CL_CONFIG_ARCHIVE_PATH = os.path.join(CHROOT_PATH,
'var/lib/calculate/config-archive')
CL_EXECUTE_ARCHIVE_PATH = os.path.join(CHROOT_PATH,
'var/lib/calculate/.execute')
template_executor = TemplateExecutor(chroot_path=CHROOT_PATH,
cl_config_archive=CL_CONFIG_ARCHIVE_PATH,
cl_config_path=CL_CONFIG_PATH,
exec_dir_path=CL_EXECUTE_ARCHIVE_PATH)
@pytest.mark.template_executor
class TestTemplateAction:
def test_chown_directory(self):
pass
def test_chmod_directory(self):
pass
def test_create_directory(self):
pass
def test_link_directory(self):
pass
def test_remove_directory(self):
pass