diff options
author | Daniil Baturin <daniil@vyos.io> | 2024-05-02 17:18:09 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-02 17:18:09 +0200 |
commit | 94912486be3ce4a0338d9a3e1fffa4a8cfe8f52b (patch) | |
tree | d964cfd4f27e741da6eabe25967c47c9572df31e /smoketest/scripts/cli/test_qos.py | |
parent | a6cc2b4ccbcbf4b427b68000e4b31b9bd95a1d64 (diff) | |
parent | abc465f8ad894fda29d32b053798676e0294e20f (diff) | |
download | vyos-1x-94912486be3ce4a0338d9a3e1fffa4a8cfe8f52b.tar.gz vyos-1x-94912486be3ce4a0338d9a3e1fffa4a8cfe8f52b.zip |
Merge pull request #3401 from vyos/mergify/bp/sagitta/pr-3400
qos: T6225: Fix QoS random-detect policy (backport #3400)
Diffstat (limited to 'smoketest/scripts/cli/test_qos.py')
-rwxr-xr-x | smoketest/scripts/cli/test_qos.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/smoketest/scripts/cli/test_qos.py b/smoketest/scripts/cli/test_qos.py index fef1ff23a..bcf5139c7 100755 --- a/smoketest/scripts/cli/test_qos.py +++ b/smoketest/scripts/cli/test_qos.py @@ -441,7 +441,6 @@ class TestQoS(VyOSUnitTestSHIM.TestCase): self.cli_commit() def test_08_random_detect(self): - self.skipTest('tc returns invalid JSON here - needs iproute2 fix') bandwidth = 5000 first = True @@ -467,8 +466,11 @@ class TestQoS(VyOSUnitTestSHIM.TestCase): bandwidth = 5000 for interface in self._interfaces: tmp = get_tc_qdisc_json(interface) - import pprint - pprint.pprint(tmp) + self.assertTrue('gred' in tmp.get('kind')) + self.assertEqual(8, len(tmp.get('options', {}).get('vqs'))) + self.assertEqual(8, tmp.get('options', {}).get('dp_cnt')) + self.assertEqual(0, tmp.get('options', {}).get('dp_default')) + self.assertTrue(tmp.get('options', {}).get('grio')) def test_09_rate_control(self): bandwidth = 5000 |