summaryrefslogtreecommitdiff
path: root/tests/integration_tests/conftest.py
diff options
context:
space:
mode:
authorDaniel Watkins <oddbloke@ubuntu.com>2021-02-18 15:36:31 -0500
committerGitHub <noreply@github.com>2021-02-18 15:36:31 -0500
commit28d2d4b86ebde5261fbe3a3ffb28292b2bbdbd76 (patch)
tree233217c8d2ae967b936c672929ccf10cc52c6299 /tests/integration_tests/conftest.py
parent5a9008e53d7cf987b5cfb78964d2bd987d180993 (diff)
downloadvyos-cloud-init-28d2d4b86ebde5261fbe3a3ffb28292b2bbdbd76.tar.gz
vyos-cloud-init-28d2d4b86ebde5261fbe3a3ffb28292b2bbdbd76.zip
integration_tests: add UPGRADE CloudInitSource (#812)
This allows out-of-date images to be brought up-to-date with the archive, so that tests written against the latest cloud-init release will pass.
Diffstat (limited to 'tests/integration_tests/conftest.py')
-rw-r--r--tests/integration_tests/conftest.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/integration_tests/conftest.py b/tests/integration_tests/conftest.py
index 99dd8d9e..3933d647 100644
--- a/tests/integration_tests/conftest.py
+++ b/tests/integration_tests/conftest.py
@@ -124,6 +124,8 @@ def get_validated_source(
return CloudInitSource.PPA
elif os.path.isfile(str(source)):
return CloudInitSource.DEB_PACKAGE
+ elif source == "UPGRADE":
+ return CloudInitSource.UPGRADE
raise ValueError(
'Invalid value for CLOUD_INIT_SOURCE setting: {}'.format(source))