summaryrefslogtreecommitdiff
path: root/cloudinit/handlers
diff options
context:
space:
mode:
authorDaniel Watkins <oddbloke@ubuntu.com>2020-11-17 16:37:29 -0500
committerGitHub <noreply@github.com>2020-11-17 16:37:29 -0500
commit4f2da1cc1d24cbc47025cc8613c0d3ec287a20f9 (patch)
tree00db3d5efc4a83e7fd4251d88943075e56b165a9 /cloudinit/handlers
parenta925b5a0ca4aa3e63b084c0f6664fe815c2c9db0 (diff)
downloadvyos-cloud-init-4f2da1cc1d24cbc47025cc8613c0d3ec287a20f9.tar.gz
vyos-cloud-init-4f2da1cc1d24cbc47025cc8613c0d3ec287a20f9.zip
introduce an upgrade framework and related testing (#659)
This commit does the following: * introduces the `cloudinit.persistence` module, containing `CloudInitPickleMixin` which provides lightweight versioning of objects' pickled representations (and associated testing) * introduces a basic upgrade testing framework (in `cloudinit.tests.test_upgrade`) which unpickles pickles from previous versions of cloud-init (stored in `tests/data/old_pickles`) and tests invariants that the current cloud-init codebase expects * uses the versioning framework to address an upgrade issue where `Distro.networking` could get into an unexpected state, and uses the upgrade testing framework to confirm that the issue is addressed
Diffstat (limited to 'cloudinit/handlers')
0 files changed, 0 insertions, 0 deletions