summaryrefslogtreecommitdiff
path: root/smoketest/scripts/cli
diff options
context:
space:
mode:
authorJohn Estabrook <jestabro@vyos.io>2022-10-28 14:26:03 -0500
committerGitHub <noreply@github.com>2022-10-28 14:26:03 -0500
commit562c367e8877086bbc66005f441339b847f243a2 (patch)
tree61c1c2830239106b76e6c5a3ee09bc43b1e8db43 /smoketest/scripts/cli
parent5f26d80a262dacbff750a22b670a9b8411773174 (diff)
parent0e63712195465c9bf0bf55c369b86961d54dfaac (diff)
downloadvyos-1x-562c367e8877086bbc66005f441339b847f243a2.tar.gz
vyos-1x-562c367e8877086bbc66005f441339b847f243a2.zip
Merge pull request #1619 from jestabro/component-version-string
T4291: consolidate component version string read/write functions
Diffstat (limited to 'smoketest/scripts/cli')
-rwxr-xr-xsmoketest/scripts/cli/test_component_version.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/smoketest/scripts/cli/test_component_version.py b/smoketest/scripts/cli/test_component_version.py
index 1355c1f94..7b1b12c53 100755
--- a/smoketest/scripts/cli/test_component_version.py
+++ b/smoketest/scripts/cli/test_component_version.py
@@ -16,7 +16,7 @@
import unittest
-from vyos.systemversions import get_system_versions, get_system_component_version
+import vyos.component_version as component_version
# After T3474, component versions should be updated in the files in
# vyos-1x/interface-definitions/include/version/
@@ -24,8 +24,8 @@ from vyos.systemversions import get_system_versions, get_system_component_versio
# that in the xml cache.
class TestComponentVersion(unittest.TestCase):
def setUp(self):
- self.legacy_d = get_system_versions()
- self.xml_d = get_system_component_version()
+ self.legacy_d = component_version.legacy_from_system()
+ self.xml_d = component_version.from_system()
self.set_legacy_d = set(self.legacy_d)
self.set_xml_d = set(self.xml_d)