mirror of
https://github.com/kernelkit/infix.git
synced 2026-08-01 13:23:01 +02:00
=== Container environment variables
==== Description
Verify that environment variables can be set in container configuration
and are available inside the running container. Tests the 'env' list
functionality by:
1. Creating a container with multiple environment variables
2. Using a custom script to extract env vars and serve them via HTTP
3. Fetching the served content to verify environment variables are set correctly
Uses the nftables container image with custom rc.local script.
==== Topology
ifdef::topdoc[]
image::{topdoc}../../test/case/infix_containers/container_environment/topology.svg[Container environment variables topology]
endif::topdoc[]
ifndef::topdoc[]
ifdef::testgroup[]
image::container_environment/topology.svg[Container environment variables topology]
endif::testgroup[]
ifndef::testgroup[]
image::topology.svg[Container environment variables topology]
endif::testgroup[]
endif::topdoc[]
==== Test sequence
. Set up topology and attach to target DUT
. Configure data interface with static IPv4
. Create container with environment variables
. Verify container has started
. Verify environment variables are available via HTTP
. Verify basic connectivity to data interface
. Verify environment variables in HTTP response
<<<