summaryrefslogtreecommitdiff
path: root/smoketest/scripts
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2023-11-23 12:14:23 +0100
committerChristian Breunig <christian@breunig.cc>2023-11-23 12:14:23 +0100
commitaddf70b659c44e0ee1318be7aaac0a0622ad55ad (patch)
tree8c6d322d9093c6fbad75493a1d40d80888b1ab18 /smoketest/scripts
parentbdf0a3b288f93f2e8257106de968ddaa3fca0e21 (diff)
downloadvyos-1x-addf70b659c44e0ee1318be7aaac0a0622ad55ad.tar.gz
vyos-1x-addf70b659c44e0ee1318be7aaac0a0622ad55ad.zip
smoketest: tftp: T4012: disable VRF based tests due to false positives
TFTP VRF support is working on a live system but the smoketests tend to fail. This commit removes the VRF based smoketests for TFTP server, to make the equuleus Jenkins builds work again.
Diffstat (limited to 'smoketest/scripts')
-rwxr-xr-xsmoketest/scripts/cli/test_service_tftp-server.py41
1 files changed, 0 insertions, 41 deletions
diff --git a/smoketest/scripts/cli/test_service_tftp-server.py b/smoketest/scripts/cli/test_service_tftp-server.py
index 642b6af88..850c012ff 100755
--- a/smoketest/scripts/cli/test_service_tftp-server.py
+++ b/smoketest/scripts/cli/test_service_tftp-server.py
@@ -31,7 +31,6 @@ base_path = ['service', 'tftp-server']
dummy_if_path = ['interfaces', 'dummy', 'dum69']
address_ipv4 = '192.0.2.1'
address_ipv6 = '2001:db8::1'
-vrf = 'mgmt'
class TestServiceTFTPD(VyOSUnitTestSHIM.TestCase):
@classmethod
@@ -121,45 +120,5 @@ class TestServiceTFTPD(VyOSUnitTestSHIM.TestCase):
count += 1
self.assertEqual(count, len(address))
- def test_03_tftpd_vrf(self):
- directory = '/tmp'
- port = '69' # default port
-
- self.cli_set(base_path + ['allow-upload'])
- self.cli_set(base_path + ['directory', directory])
- self.cli_set(base_path + ['listen-address', address_ipv4, 'vrf', vrf])
-
- # VRF does yet not exist - an error must be thrown
- with self.assertRaises(ConfigSessionError):
- self.cli_commit()
-
- self.cli_set(['vrf', 'name', vrf, 'table', '1338'])
- self.cli_set(dummy_if_path + ['vrf', vrf])
-
- # commit changes
- self.cli_commit()
-
- config = read_file('/etc/default/tftpd0')
- # verify listen IP address
- self.assertIn(f'{address_ipv4}:{port} -4', config)
- # verify directory
- self.assertIn(directory, config)
- # verify upload
- self.assertIn('--create --umask 000', config)
-
- # Check for process in VRF
- count = 0
- while count < 10:
- count += 1
- tmp = cmd(f'ip vrf pids {vrf}')
- print(tmp)
- if tmp: break
- sleep(1)
- self.assertIn(PROCESS_NAME, tmp)
-
- # delete VRF
- self.cli_delete(dummy_if_path + ['vrf'])
- self.cli_delete(['vrf', 'name', vrf])
-
if __name__ == '__main__':
unittest.main(verbosity=2)