mirror of
https://github.com/kernelkit/infix.git
synced 2026-07-31 13:03:02 +02:00
To reduce the duplication of effort between 9pm and the Infamy framework this change consolidates the move from local 'infamy: title:' extension to 9pm 'name:'. For the parameterized tunnel tests we leverage the 9pm dynamic test-spec variable, which looks for a correspodning <case>.adoc instead of static Readme.adoc, when generating the test report. Each test documentation should cover all aspects of the test, much like the usage text of a UNIX program. To this end, the tunnel test docs are now more spelled out, including all invariants. Some refactoring of these tests were also necessary, e.g., replacing any reserved Python keywords like 'type', and other PEP-8 fixes. Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
=== Set hostname
ifdef::topdoc[:imagesdir: {topdoc}../../test/case/ietf_system/hostname]
==== Description
Verify that it is possible to set hostname using both regular text and
format specificers, like '%h-%m'. These format specifiers expand to
'<default hostname>-<MAC>', where MAC is the last three bytes of the
base MAC address. E.g., ix-01-01-01.
==== Topology
image::topology.svg[Set hostname topology, align=center, scaledwidth=75%]
==== Sequence
. Set up topology and attach to target DUT
. Set hostname to 'h0stn4m3'
. Verify new hostname 'h0stn4m3'
. Set hostname to '%h-%m'
. Verify hostname is %h-%m in running configuration
. Verify hostname format in operational