Files
nixpkgs/nixos/tests/openstack-image.nix
Philip Taron aa80ef70bb nixosTests.openstack-image: fix hardcoded image filename
The test hardcoded "/nixos.qcow2" but the actual output filename
is derived from image.baseName and image.extension (e.g.
"nixos-image-...-x86_64-linux.qcow2"). Use image.fileName to get
the correct path, matching the pattern in ec2-image.nix.

Also make the IMDS server's token validation conditional: when no
token file exists in the metadata directory, requests are served
without authentication. This supports both EC2 (IMDSv2 with tokens)
and OpenStack (plain GET) metadata fetchers.
2026-03-24 18:40:48 -07:00

3.1 KiB