summaryrefslogtreecommitdiff
path: root/smoketest/scripts/cli/base_accel_ppp_test.py
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-10-28 19:57:23 +0100
committerChristian Poessinger <christian@poessinger.com>2020-10-28 19:57:43 +0100
commit58e99dc96e52e4c4b6c0da3b155fe59a039d41a7 (patch)
tree7c3a68f65a3efd0b2922be297bb904a873701fe9 /smoketest/scripts/cli/base_accel_ppp_test.py
parent25551c5a30bda8bd6e459638cda252ee4c93a07f (diff)
downloadvyos-1x-58e99dc96e52e4c4b6c0da3b155fe59a039d41a7.tar.gz
vyos-1x-58e99dc96e52e4c4b6c0da3b155fe59a039d41a7.zip
smoketest: accel: T2631: check disable-accounting option
Diffstat (limited to 'smoketest/scripts/cli/base_accel_ppp_test.py')
-rw-r--r--smoketest/scripts/cli/base_accel_ppp_test.py20
1 files changed, 20 insertions, 0 deletions
diff --git a/smoketest/scripts/cli/base_accel_ppp_test.py b/smoketest/scripts/cli/base_accel_ppp_test.py
index 56cbf1dd4..e3e5071c1 100644
--- a/smoketest/scripts/cli/base_accel_ppp_test.py
+++ b/smoketest/scripts/cli/base_accel_ppp_test.py
@@ -192,3 +192,23 @@ class BasicAccelPPPTest:
# Check for running process
self.assertTrue(process_named_running(self._process_name))
+
+ #
+ # Disable Radius Accounting
+ #
+ self.delete(['authentication', 'radius', 'server', radius_server, 'acct-port'])
+ self.set(['authentication', 'radius', 'server', radius_server, 'disable-accounting'])
+
+ # commit changes
+ self.session.commit()
+
+ conf.read(self._config_file)
+
+ server = conf['radius']['server'].split(',')
+ self.assertEqual(radius_server, server[0])
+ self.assertEqual(radius_key, server[1])
+ self.assertEqual(f'auth-port={radius_port}', server[2])
+ self.assertEqual(f'acct-port=0', server[3])
+ self.assertEqual(f'req-limit=0', server[4])
+ self.assertEqual(f'fail-time=0', server[5])
+