diff options
author | Daniel Watkins <oddbloke@ubuntu.com> | 2021-02-18 15:36:31 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-18 15:36:31 -0500 |
commit | 28d2d4b86ebde5261fbe3a3ffb28292b2bbdbd76 (patch) | |
tree | 233217c8d2ae967b936c672929ccf10cc52c6299 /tests/integration_tests/conftest.py | |
parent | 5a9008e53d7cf987b5cfb78964d2bd987d180993 (diff) | |
download | vyos-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.py | 2 |
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)) |