diff options
author | Christian Poessinger <christian@poessinger.com> | 2020-07-11 18:03:36 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2020-07-11 18:03:53 +0200 |
commit | 10b5196ddfb9a83b17f90f93524ea077275a8557 (patch) | |
tree | c57ec34a60b8ace057a26d3b88d46aba928f8e11 | |
parent | 2cea49cef987e5c6e73744d310857a2e592e409e (diff) | |
download | vyos-1x-10b5196ddfb9a83b17f90f93524ea077275a8557.tar.gz vyos-1x-10b5196ddfb9a83b17f90f93524ea077275a8557.zip |
snmp: adjust to latest CLI version
-rwxr-xr-x | scripts/cli/test_service_snmp.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/scripts/cli/test_service_snmp.py b/scripts/cli/test_service_snmp.py index d4bbdc0b1..983eadf4c 100755 --- a/scripts/cli/test_service_snmp.py +++ b/scripts/cli/test_service_snmp.py @@ -84,7 +84,7 @@ class TestSNMPService(unittest.TestCase): def test_snmpv3(self): """ Check if SNMPv3 can be configured and service runs""" - self.session.set(base_path + ['v3', 'engineid', '0xaffedeadbeef']) + self.session.set(base_path + ['v3', 'engineid', '000000000000000000000002']) self.session.set(base_path + ['v3', 'group', 'default', 'mode', 'ro']) # check validate() - a view must be created before this can be comitted with self.assertRaises(ConfigSessionError): @@ -95,9 +95,10 @@ class TestSNMPService(unittest.TestCase): self.session.commit() # create user - for authpriv in ['auth', 'privacy']: - self.session.set(base_path + ['v3', 'user', 'vyos', authpriv, 'plaintext-key', 'vyos1234']) - + self.session.set(base_path + ['v3', 'user', 'vyos', 'auth', 'plaintext-password', 'vyos12345678']) + self.session.set(base_path + ['v3', 'user', 'vyos', 'auth', 'type', 'sha']) + self.session.set(base_path + ['v3', 'user', 'vyos', 'privacy', 'plaintext-password', 'vyos12345678']) + self.session.set(base_path + ['v3', 'user', 'vyos', 'privacy', 'type', 'aes']) self.session.set(base_path + ['v3', 'user', 'vyos', 'group', 'default']) # TODO: read in config file and check values |