diff options
-rw-r--r-- | cloudinit/version.py | 2 | ||||
-rw-r--r-- | tests/unittests/test_version.py | 14 |
2 files changed, 16 insertions, 0 deletions
diff --git a/cloudinit/version.py b/cloudinit/version.py index e61597d2..dff4af04 100644 --- a/cloudinit/version.py +++ b/cloudinit/version.py @@ -9,6 +9,8 @@ __VERSION__ = "0.7.9" FEATURES = [ # supports network config version 1 'NETWORK_CONFIG_V1', + # supports network config version 2 (netplan) + 'NETWORK_CONFIG_V2', ] 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 |