introduce devops factory
parent
a28a1b43d3
commit
481d20a14c
@ -1,4 +1,4 @@
|
||||
from .common import Validateable, DnsRecord, Devops
|
||||
from .common import Validateable, DnsRecord, Devops, DevopsFactory
|
||||
from .image import Image
|
||||
from .c4k import C4k
|
||||
from .release import Release, ReleaseContext, ReleaseType, Version, EnvironmentKeys
|
||||
|
@ -0,0 +1,16 @@
|
||||
import pytest
|
||||
from src.main.python.ddadevops.domain.common import (
|
||||
Devops,
|
||||
DevopsFactory,
|
||||
)
|
||||
|
||||
def test_devops_factory():
|
||||
with pytest.raises(Exception):
|
||||
DevopsFactory().build_devops({'build_type': 'NOTEXISTING'})
|
||||
|
||||
|
||||
def test_devops_buildpath():
|
||||
sut = Devops(
|
||||
stage="test", project_root_path="../../..", module="cloud", name="meissa"
|
||||
)
|
||||
assert "../../../target/meissa/cloud" == sut.build_path()
|
Loading…
Reference in New Issue