diff --git a/test/case/infix_containers/container_host_commands/Readme.adoc b/test/case/infix_containers/container_host_commands/Readme.adoc new file mode 120000 index 00000000..8195248c --- /dev/null +++ b/test/case/infix_containers/container_host_commands/Readme.adoc @@ -0,0 +1 @@ +container_host_commands.adoc \ No newline at end of file diff --git a/test/case/infix_containers/container_host_commands/container_host_commands.adoc b/test/case/infix_containers/container_host_commands/container_host_commands.adoc new file mode 100644 index 00000000..032fd214 --- /dev/null +++ b/test/case/infix_containers/container_host_commands/container_host_commands.adoc @@ -0,0 +1,29 @@ +=== Host Command Execution from Container +==== Description +This test verifies that a container running on Infix can execute commands +that affect the host system. Specifically, it confirms that the container +can change the hostname of the host. + +==== Topology +ifdef::topdoc[] +image::{topdoc}../../test/case/infix_containers/container_host_commands/topology.svg[Host Command Execution from Container topology] +endif::topdoc[] +ifndef::topdoc[] +ifdef::testgroup[] +image::container_host_commands/topology.svg[Host Command Execution from Container topology] +endif::testgroup[] +ifndef::testgroup[] +image::topology.svg[Host Command Execution from Container topology] +endif::testgroup[] +endif::topdoc[] +==== Test sequence +. Set up topology and attach to target DUT +. Set initial hostname +. Verify initial hostname in operational +. Include script in OCI image to modify host hostname +. Verify container has started +. Verify the new hostname set by the container + + +<<< + diff --git a/test/case/infix_containers/container_host_commands/topology.svg b/test/case/infix_containers/container_host_commands/topology.svg new file mode 100644 index 00000000..6fc6f47a --- /dev/null +++ b/test/case/infix_containers/container_host_commands/topology.svg @@ -0,0 +1,33 @@ + + + + + + +1x1 + + + +host + +host + +mgmt + + + +target + +mgmt + +target + + + +host:mgmt--target:mgmt + + + +