Files
infix/test/case/containers/enabled
Joachim Wiberg 1bbd80d8c7 test: drop leading ietf/infix prefix from directories
Let's drop the leading IETF or Infix prefixes from tests.  Initially the
idea was to mimnic the YANG models, but it's difficult to navigate and
does not provide any real benefit to developers or end-users.

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
2025-11-20 20:23:23 +01:00
..

=== Container enabled/disabled

ifdef::topdoc[:imagesdir: {topdoc}../../test/case/containers/enabled]

==== Description

Verify that a container can be enabled and disabled via configuration.
Tests the 'enabled' leaf functionality by:

1. Creating an enabled container and verifying it starts
2. Disabling the container and verifying it stops
3. Re-enabling the container and verifying it starts again

Uses operational datastore to verify container running status.

==== Topology

image::topology.svg[Container enabled/disabled topology, align=center, scaledwidth=75%]

==== Sequence

. Set up topology and attach to target DUT
. Set hostname to 'container-host'
. Create enabled container from bundled OCI image
. Verify container has started
. Disable container
. Verify container has stopped
. Re-enable container
. Verify container has started again