diff options
author | Tristan van Berkom <tristan@codethink.co.uk> | 2020-11-30 22:22:41 +0900 |
---|---|---|
committer | Tristan van Berkom <tristan@codethink.co.uk> | 2020-11-30 22:33:06 +0900 |
commit | ad39875b790728d61872ac45055da0858edbe21d (patch) | |
tree | 61aa6c0406cbe0f28b361b967d3fd4afc48edd2d /tests | |
parent | 0ddf0ce2d6afcaffdc641585af981e0e4852152a (diff) | |
download | buildstream-ad39875b790728d61872ac45055da0858edbe21d.tar.gz |
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.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/sandboxes/remote-exec-config.py | 4 |
1 files changed, 3 insertions, 1 deletions
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) |