1 import ./make-test-python.nix ({ pkgs, lib, ... }: {
2 name = "containers-names";
4 maintainers = with lib.maintainers; [ patryk27 ];
7 nodes.machine = { ... }: {
8 # We're using the newest kernel, so that we can test containers with long names.
9 # Please see https://github.com/NixOS/nixpkgs/issues/38509 for details.
10 boot.kernelPackages = pkgs.linuxPackages_latest;
15 privateNetwork = true;
16 hostAddress = "192.168.${subnet}.1";
17 localAddress = "192.168.${subnet}.2";
22 first = container "1";
23 second = container "2";
24 really-long-name = container "3";
25 really-long-long-name-2 = container "4";
30 machine.wait_for_unit("default.target")
32 machine.succeed("ip link show | grep ve-first")
33 machine.succeed("ip link show | grep ve-second")
34 machine.succeed("ip link show | grep ve-really-lFYWO")
35 machine.succeed("ip link show | grep ve-really-l3QgY")