diff --git a/requirements.txt b/requirements.txt index 3359a966..610763ed 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,3 @@ jinja2==3.1.2 grpcio==1.53.0 -hm-pyhelper==0.14.13 +hm-pyhelper==0.14.16 diff --git a/tests/test_output_by_variant.py b/tests/test_output_by_variant.py index 9435db1a..2dca944a 100644 --- a/tests/test_output_by_variant.py +++ b/tests/test_output_by_variant.py @@ -18,6 +18,7 @@ pycom_output_file = join(here, 'pycom.yml') controllino_output_file = join(here, 'controllino.yml') rak_output_file = join(here, 'rak.yml') +bobcat_px30_output_file = join(here, 'bobcat-px30.yml') sys.path.insert(1, parent) @@ -40,7 +41,8 @@ def _remove_output_files(self): syncrobit_output_file, pycom_output_file, controllino_output_file, - rak_output_file): + rak_output_file, + bobcat_px30_output_file): if exists(filename): unlink(filename) @@ -126,6 +128,16 @@ def test_rak_compose_output_is_valid(self): check_call( f'docker-compose -f {rak_output_file} config -q', shell=True) + def test_bobcat_px30_compose_output_is_valid(self): + dc = DockerComposer() + dc.generate_compose_file('bobcat-px30', template_file, bobcat_px30_output_file) + + # On failure or non-zero return code this returns CalledProcessError + # so if this runs without that, it's considered successful as + # `docker-compose config -q` returns 1 on invalid config + check_call( + f'docker-compose -f {bobcat_px30_output_file} config -q', shell=True) + def test_variant_is_invalid(self): dc = DockerComposer()