зеркало из https://github.com/Azure/iotedgedev.git
update unit test layered deployment runtime version
This commit is contained in:
Родитель
dc45d0be4c
Коммит
92889e3242
|
@ -5,11 +5,17 @@ from .utility import (
|
|||
get_platform_type,
|
||||
runner_invoke,
|
||||
)
|
||||
from iotedgedev.envvars import EnvVars
|
||||
from iotedgedev.output import Output
|
||||
|
||||
|
||||
pytestmark = pytest.mark.e2e
|
||||
|
||||
test_solution_shared_lib_dir = os.path.join(os.getcwd(), "tests", "assets", "test_solution_shared_lib")
|
||||
|
||||
output = Output()
|
||||
envvars = EnvVars(output)
|
||||
envvars.load()
|
||||
|
||||
def test_build_and_push():
|
||||
os.chdir(test_solution_shared_lib_dir)
|
||||
|
@ -36,4 +42,4 @@ def test_build_and_push_with_no_modules():
|
|||
set_property = content["content"]["modulesContent"]["exampleModule"]["properties.desired"]["foo"]
|
||||
|
||||
assert 'ERROR' not in result.output
|
||||
assert 'bar-1.0' == set_property
|
||||
assert 'bar-${envvars.EDGE_RUNTIME_VERSION}' == set_property
|
||||
|
|
Загрузка…
Ссылка в новой задаче