<feed xmlns='http://www.w3.org/2005/Atom'>
<title>vyos-1x.git/smoketest/scripts/cli/test_interfaces_pseudo_ethernet.py, branch rolling</title>
<subtitle>VyOS command definitions, scripts, and utilities (mirror of https://github.com/vyos/vyos-1x.git)
</subtitle>
<id>https://git.amelek.net/vyos/vyos-1x.git/atom?h=rolling</id>
<link rel='self' href='https://git.amelek.net/vyos/vyos-1x.git/atom?h=rolling'/>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/'/>
<updated>2023-12-31T22:49:48+00:00</updated>
<entry>
<title>T5474: establish common file name pattern for XML conf mode commands</title>
<updated>2023-12-31T22:49:48+00:00</updated>
<author>
<name>Christian Breunig</name>
<email>christian@breunig.cc</email>
</author>
<published>2023-12-30T22:25:20+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/commit/?id=4ef110fd2c501b718344c72d495ad7e16d2bd465'/>
<id>urn:sha1:4ef110fd2c501b718344c72d495ad7e16d2bd465</id>
<content type='text'>
We will use _ as CLI level divider. The XML definition filename and also
the Python helper should match the CLI node.

Example:
set interfaces ethernet -&gt; interfaces_ethernet.xml.in
set interfaces bond -&gt; interfaces_bond.xml.in
set service dhcp-server -&gt; service_dhcp-server-xml.in
</content>
</entry>
<entry>
<title>smoketest: T5242: automatically detect interface "capabilities"</title>
<updated>2023-05-27T06:57:12+00:00</updated>
<author>
<name>Christian Breunig</name>
<email>christian@breunig.cc</email>
</author>
<published>2023-05-26T20:21:55+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/commit/?id=ec8ffd2c967d178c913be645c896434aa3212c9c'/>
<id>urn:sha1:ec8ffd2c967d178c913be645c896434aa3212c9c</id>
<content type='text'>
Current state of vyos-1x smoketests have hardcoded features to test. The
feature support is inside the base class BasicInterfaceTest

class BasicInterfaceTest:
    class TestCase(VyOSUnitTestSHIM.TestCase):
        _test_dhcp = False
        _test_ip = False
        _test_mtu = False
        _test_vlan = False
        _test_qinq = False
        _test_ipv6 = False
        _test_ipv6_pd = False
        _test_ipv6_dhcpc6 = False
        _test_mirror = False

All derived classes need to enable the tests that are supported on this
interface type. Adding new feature to a given interface (like vif support in
T5237) require manually enabling those tests for the given interface.

It would make much more sense, if we can query the config backend for supported
interface options - or in other words - is there a CLI node available that
corresponds to set interfaces ethernet &lt;name&gt; vif - if that's the case,
_test_vlan = True.
</content>
</entry>
<entry>
<title>smoketest: bugfix on proper inheritance levels for classmethod</title>
<updated>2022-04-25T17:15:17+00:00</updated>
<author>
<name>Christian Poessinger</name>
<email>christian@poessinger.com</email>
</author>
<published>2022-04-25T16:49:20+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/commit/?id=dc864082ef896faa7adba8312d782d7066492aa7'/>
<id>urn:sha1:dc864082ef896faa7adba8312d782d7066492aa7</id>
<content type='text'>
</content>
</entry>
<entry>
<title>smoketest: dhcp: T4203: move testcase to base class</title>
<updated>2022-02-20T17:50:29+00:00</updated>
<author>
<name>Christian Poessinger</name>
<email>christian@poessinger.com</email>
</author>
<published>2022-02-20T17:50:29+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/commit/?id=5d14a04b6ffbd592e8257d98d71da5acb1bb45a9'/>
<id>urn:sha1:5d14a04b6ffbd592e8257d98d71da5acb1bb45a9</id>
<content type='text'>
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.
</content>
</entry>
<entry>
<title>smoketest: pseudo-ethernet: add missing "Section" import</title>
<updated>2021-05-24T09:39:41+00:00</updated>
<author>
<name>Christian Poessinger</name>
<email>christian@poessinger.com</email>
</author>
<published>2021-05-24T09:39:41+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/commit/?id=bee080daffad41468eee6084f54bc67b1470f914'/>
<id>urn:sha1:bee080daffad41468eee6084f54bc67b1470f914</id>
<content type='text'>
</content>
</entry>
<entry>
<title>smoketest: pseudo-ethernet: support setting source-interface via ENV</title>
<updated>2021-05-24T07:39:49+00:00</updated>
<author>
<name>Christian Poessinger</name>
<email>christian@poessinger.com</email>
</author>
<published>2021-05-24T07:39:49+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/commit/?id=722b88d3d88c8c89cf7bd90b52c97460338b60fa'/>
<id>urn:sha1:722b88d3d88c8c89cf7bd90b52c97460338b60fa</id>
<content type='text'>
TEST_ETH="eth2" /usr/libexec/vyos/tests/smoke/cli/test_interfaces_pseudo_ethernet.py

Will only create pseudo ethernet interfaces from eth2.
</content>
</entry>
<entry>
<title>smoketest: add shim for every test to re-use common tasts</title>
<updated>2021-03-17T18:18:17+00:00</updated>
<author>
<name>Christian Poessinger</name>
<email>christian@poessinger.com</email>
</author>
<published>2021-03-17T18:12:04+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/commit/?id=0f3def974fbaa4a26e6ad590ee37dd965bc2358f'/>
<id>urn:sha1:0f3def974fbaa4a26e6ad590ee37dd965bc2358f</id>
<content type='text'>
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.
</content>
</entry>
<entry>
<title>smoketest: refactor setUp() for all interface based testcases</title>
<updated>2021-01-26T19:49:55+00:00</updated>
<author>
<name>Christian Poessinger</name>
<email>christian@poessinger.com</email>
</author>
<published>2021-01-26T19:07:21+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/commit/?id=b48890396dcff074d1e9336ca1db9d3eafe2a12f'/>
<id>urn:sha1:b48890396dcff074d1e9336ca1db9d3eafe2a12f</id>
<content type='text'>
It does not make sense (at all!) to re-initialize the entire class with every
call to setUp(). We neither change the enabled/disabled tastcases dynamically,
not do we adjust the testinterfaces during a run.

Remove the runtime overhead and place one-time init calls into setUpClass()
instead.
</content>
</entry>
<entry>
<title>smoketest: dhcpv6: add client smoketests</title>
<updated>2021-01-25T15:27:09+00:00</updated>
<author>
<name>Christian Poessinger</name>
<email>christian@poessinger.com</email>
</author>
<published>2021-01-25T15:26:47+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/commit/?id=99f4140d1c5b1813c75790a8a99aae8fa84d13ee'/>
<id>urn:sha1:99f4140d1c5b1813c75790a8a99aae8fa84d13ee</id>
<content type='text'>
</content>
</entry>
<entry>
<title>smoketest: interface: enable ip/ipv6 tests on additional interfaces</title>
<updated>2021-01-12T20:23:04+00:00</updated>
<author>
<name>Christian Poessinger</name>
<email>christian@poessinger.com</email>
</author>
<published>2021-01-12T19:53:40+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/commit/?id=910919d856d790ff8905d513c280fdf12f8892ef'/>
<id>urn:sha1:910919d856d790ff8905d513c280fdf12f8892ef</id>
<content type='text'>
</content>
</entry>
</feed>
