diff options
| author | Scott Moser <smoser@brickies.net> | 2017-03-21 16:33:14 -0400 | 
|---|---|---|
| committer | Scott Moser <smoser@brickies.net> | 2017-03-22 11:12:33 -0400 | 
| commit | de63d664a664cb06cefcd7c68c5b3428279a9995 (patch) | |
| tree | 4d38a776f975942c97608d9dc6bb48cd0de75725 /tests/unittests/test_version.py | |
| parent | e1a1854e3f30bed18467e6c0feb896338ad4419a (diff) | |
| download | vyos-cloud-init-de63d664a664cb06cefcd7c68c5b3428279a9995.tar.gz vyos-cloud-init-de63d664a664cb06cefcd7c68c5b3428279a9995.zip | |
advertise network config v2 support (NETWORK_CONFIG_V2) in features.
ef18b8ac4c added support for handing network config v2 (aka netplan
format).  This just adds that feature to the list of supported features.
Diffstat (limited to 'tests/unittests/test_version.py')
| -rw-r--r-- | tests/unittests/test_version.py | 14 | 
1 files changed, 14 insertions, 0 deletions
| diff --git a/tests/unittests/test_version.py b/tests/unittests/test_version.py new file mode 100644 index 00000000..1662ce09 --- /dev/null +++ b/tests/unittests/test_version.py @@ -0,0 +1,14 @@ +# This file is part of cloud-init. See LICENSE file for license information. + +from .helpers import CiTestCase +from cloudinit import version + + +class TestExportsFeatures(CiTestCase): +    def test_has_network_config_v1(self): +        self.assertIn('NETWORK_CONFIG_V1', version.FEATURES) + +    def test_has_network_config_v2(self): +        self.assertIn('NETWORK_CONFIG_V2', version.FEATURES) + +# vi: ts=4 expandtab | 
