|
|
@ -2,7 +2,10 @@ import os
|
|
|
|
from pybuilder.core import Project
|
|
|
|
from pybuilder.core import Project
|
|
|
|
from src.main.python.ddadevops.domain import DnsRecord
|
|
|
|
from src.main.python.ddadevops.domain import DnsRecord
|
|
|
|
from src.main.python.ddadevops.c4k_build import C4kBuild, add_c4k_mixin_config
|
|
|
|
from src.main.python.ddadevops.c4k_build import C4kBuild, add_c4k_mixin_config
|
|
|
|
from .domain.helper import devops_config
|
|
|
|
from .domain.helper import (
|
|
|
|
|
|
|
|
CredentialsApiMock,
|
|
|
|
|
|
|
|
devops_config,
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def test_c4k_build(tmp_path):
|
|
|
|
def test_c4k_build(tmp_path):
|
|
|
@ -24,6 +27,7 @@ def test_c4k_build(tmp_path):
|
|
|
|
}
|
|
|
|
}
|
|
|
|
),
|
|
|
|
),
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
sut.init_service.credentials_api = CredentialsApiMock({})
|
|
|
|
|
|
|
|
|
|
|
|
sut.initialize_build_dir()
|
|
|
|
sut.initialize_build_dir()
|
|
|
|
assert sut.build_path() == f"{str_tmp_path}/target/name/c4k-test"
|
|
|
|
assert sut.build_path() == f"{str_tmp_path}/target/name/c4k-test"
|
|
|
|