From ad39875b790728d61872ac45055da0858edbe21d Mon Sep 17 00:00:00 2001 From: Tristan van Berkom Date: Mon, 30 Nov 2020 22:22:41 +0900 Subject: tests/sandboxes/remote-exec-config.py: Fixed generated project to include min-version This test was broken as it was failing for the wrong reason, even though in both cases it was a missing yaml key. Fix the test to fail due to it being missing the required cert specified in the cache config. --- tests/sandboxes/remote-exec-config.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/sandboxes/remote-exec-config.py b/tests/sandboxes/remote-exec-config.py index a6297834b..27bc38b45 100644 --- a/tests/sandboxes/remote-exec-config.py +++ b/tests/sandboxes/remote-exec-config.py @@ -23,6 +23,7 @@ def test_old_and_new_configs(cli, datafiles): project_conf = { "name": "test", + "min-version": "2.0", "remote-execution": { "url": "https://cache.example.com:12345", "execution-service": {"url": "http://localhost:8088"}, @@ -49,6 +50,7 @@ def test_missing_certs(cli, datafiles, config_key, config_value): project_conf = { "name": "test", + "min-version": "2.0", "remote-execution": { "execution-service": {"url": "http://localhost:8088"}, "storage-service": {"url": "http://charactron:11001", config_key: config_value,}, @@ -69,7 +71,7 @@ def test_missing_certs(cli, datafiles, config_key, config_value): def test_empty_config(cli, datafiles): project = os.path.join(datafiles.dirname, datafiles.basename, "missing-certs") - project_conf = {"name": "test", "remote-execution": {}} + project_conf = {"name": "test", "min-version": "2.0", "remote-execution": {}} project_conf_file = os.path.join(project, "project.conf") _yaml.roundtrip_dump(project_conf, project_conf_file) -- cgit v1.2.1