From de63d664a664cb06cefcd7c68c5b3428279a9995 Mon Sep 17 00:00:00 2001 From: Scott Moser Date: Tue, 21 Mar 2017 16:33:14 -0400 Subject: 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. --- tests/unittests/test_version.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 tests/unittests/test_version.py (limited to 'tests') 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 -- cgit v1.2.3