Age | Commit message (Collapse) | Author |
|
Commit 5d14a04b ("smoketest: dhcp: T4203: move testcase to base class") added
global support in the test case framework for DHCP tests. Some interfaces (e.g.
MACsec) require additional options to be passed before the test can be launched.
In the MACsec case this includes a source interface, or encryption ciphers.
(cherry picked from commit 5ae566086c5c190d52b15f64454abcae9c8a1d46)
|
|
We do not only provide DHCP functionality to ethernet interfaces, it's a common
feature so the testcase should be made available for multiple interface types.
(cherry picked from commit 5d14a04b6ffbd592e8257d98d71da5acb1bb45a9)
|
|
(cherry picked from commit 7f665a92b3ad3978b17153726de23c80ba97c4b7)
|
|
|
|
(cherry picked from commit ab111d56410753929979b06899912ea036819405)
|
|
(cherry picked from commit 61aed576582cedc38cafa758651f1446d4ba4d34)
|
|
This commit also extends the smoketest to verify that the exception for this
error is raised.
(cherry picked from commit 84a429b41175b95634ec9492e0cf3a564a47abdd)
|
|
(cherry picked from commit 8c1c9e1c37be9e88e8a7ea0182a43a3396eff623)
|
|
Currently every smoketest does the setup and destruction of the configsession
on its own durin setUp(). This creates a lot of overhead and one configsession
should be re-used during execution of every smoketest script.
In addiion a test that failed will leaf the system in an unconsistent state.
For this reason before the test is executed we will save the running config
to /tmp and the will re-load the config after the test has passed, always
ensuring a clean environment for the next test.
(cherry picked from commit 0f3def974fbaa4a26e6ad590ee37dd965bc2358f)
|
|
Added by commit 8ff36fa268f ("smoketest: vif: T3570: fix vlan interface MTU test
for pseudo-ethernet interfaces"), but it used the new API available through
VyOSUnitTestSHIM.
This has ben fixed to use the old API.
|
|
interfaces
The MTU size of the source-interface must be greater or equal to the MTU of the
pseudo ethernet interface.
(cherry picked from commit 06dae2734aee09885e34aec0df397985c2a36961)
|
|
(cherry picked from commit ed817477dd418f4b448910e990f38a9a3de5ee73)
|
|
Replace function get_interface_config to
function get_interface_config, as we have
in 1.4 branch.
It need after this cherry-picked commit edcdea8
|
|
There had been four implementations of "ip -d -j link show interface" scattered
accross the codebase. Those implementations have now been combined into a new
helper:
vyos.util.get_json_iface_options()
(cherry picked from commit f13cc56d665a91ff3fac47df260301afefb1a3a5)
|
|
When a VIF/VLAN interface is placed in admin down state but the lower
interface, serving the vlan, is moved from admin down -> admin up, all its
vlan interfaces will be placed in admin up state, too.
This is bad as a VLAN interface will become admin up even if its specified as
admin down after a reboot.
To reproduce:
set interfaces ethernet eth1 vif 20 disable
set interfaces ethernet eth1 disable
commit
delete interfaces ethernet eth1 disable
commit
Now check the interface state and it returns UP,LOWER_UP
7: eth1.20@eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
link/ether 00:50:56:b3:09:07 brd ff:ff:ff:ff:ff:ff
inet6 fe80::250:56ff:feb3:907/64 scope link
valid_lft forever preferred_lft forever
(cherry picked from commit 49bc3f1e3ff8416908fc986bb60b444a75a1722d)
|
|
(cherry-picked form commit 99f4140d1c5b1813c75790a8a99aae8fa84d13ee)
|
|
(cherry picked from commit b2b5ea81243f672d3cc3c4082374551f38fd4dde)
|
|
Commit 35b049aa ("smoketest: interfaces: verify deletion of interfaces")
validated that when the test completed (tearDown()) there must be no
interfaces left registered for the tests. This is invalid for the loopback
interface as it can not be deleted from the system.
(cherry picked from commit b373d3841608838fd28f98691cb14e42c128c216)
|
|
When deleting the test interfaces, ensure after each run that there are no
leftovers from a previous run, indicating that there was a problem while removing
the interfaces.
(cherry picked from commit 35b049aa8b90ee41f9c59bf4b2e3610d03505776)
|
|
Verify interface is in admin down state afterwards.
(cherry picked from commit 461a106cdaf892a067bcd5630952822242edd411)
|
|
(cherry picked from commit 3b9ae4c22d8dffa8b5beee57bf5b19dac969a009)
|
|
(cherry picked from commit 910919d856d790ff8905d513c280fdf12f8892ef)
|
|
Previous fix somehow got lost during a rebase :(
|
|
|
|
|
|
Commit a8e4317c ("smoketest: interfaces: test dhcpv6 pd sla-id auto increment")
added a new test, but when executed on multiple interfaces, e.g.:
TEST_ETH="eth1 eth2" /usr/libexec/vyos/tests/smoke/cli/test_interfaces_ethernet.py
A variable was not properly reset
|
|
|
|
Commit ef629504d4 ("smoketest: mirror: drop testcase") dropped the smoketests
entirely as they have been programmed in a wrong way leading to outages on live
development systems which used dummy interfaces for management traffic.
|
|
|
|
The mirror smoketest does more harm then good. It creates interfaces which are
not cleaned up afterwards resulting and strange behavior on live systems.
The entrie interface mirror smoketest must be redone.
|
|
This reverts commit 9541355433e202fade4692851bffa33ba9d48f44.
|
|
One should not use hardcoded interfaces in this base class, rather rely on
self._options like every other test. This implementation breaks on my development
system ans also deletes my OSPF dummy mgmt interface :(.
|
|
|
|
Since the dependency problem has not been solved before,
if the monitoring interface does not exist when the
mirror rule is created, the execution will be abnormal
|
|
|
|
|
|
Commit 5f5b2808c0a ("ethernet: T3048: drop static smp-affinity for dynamic
performance tuning") but the CLI nodes have not been removed.
|
|
|
|
We had two places were the is_ip, is_ipv4 and is_ipv6 helpers had been defined.
All places now have been converged into vyos.template as they are used both
in the Jinja2 templates and also in our scripts.
|
|
|
|
Renamed using snippet below:
----------------------------
for file in $(find . -name "*.py")
do
sed -i "s/vyos_dict_search/dict_search/" $file
done
|
|
|
|
|
|
|
|
vyos-smoketest-integration (T2832)
* 'master' of github.com:vyos/vyos-smoketest: (153 commits)
pppoe-server: test some more values
lcd: adjust to cli changes
lcd: adapt test to new CLI design
pppoe-server: initial smoketest with local and radius auth
pppoe: validate dhcpv6 client will be started
wireless: validate hostapd/wpa_supplicant is running
pppoe: sync to new dhcpv6-pd cli
anyconnect: T2812: add basic testing
ethernet: check interface disable state
router-advert: check 'infinity' option in script logic
ssh: config file is now volatile (moved to /run)
ipv6: link-local: test address assignment on interfaces
router-advert: add initial test
mdns-repeater: add basic test
pseudo-ethernet: extend smoketests with VIFs
l2tpv3: add initial interface test
wireless: use library function for loading kernel modules
ethernet: test "ip" subtree of interface for e.g. ARP settings
pppoe: use assertEqual()
service: bcast-relay: add initial tests
...
|