diff options
| author | Maximilian Bosch <maximilian@mbosch.me> | 2023-10-24 14:24:10 +0200 |
|---|---|---|
| committer | Maximilian Bosch <maximilian@mbosch.me> | 2023-10-24 14:24:10 +0200 |
| commit | b16ac6e7bbc789cb0519c82e508189272099cdec (patch) | |
| tree | b88fa131bdc1c23e0cccc31fd2ddcfc5b911abc1 /pkgs/development/python-modules/rangehttpserver | |
| parent | 7359dcf561157ea3dc8dd0eac465c2ec7ef7172c (diff) | |
nixos/tests/openssh: use dashes for hostnames
Otherwise the tests will fail with `networking.useNetworkd = true;`
because `systemd-resolved` ignores invalid hostnames in `/etc/hosts`
(which is where all hosts from the `nodes`-attribute set end up) and
subsequently e.g. `ssh server_lazy` will fail because the name cannot be
resolved.
In d6e84a4574a200de63e8fe86ef8574b507fd366e the test-framework was
changed to replace all dashes with underscores of hostnames in the
python code to have readable hostnames that are valid. I.e.
nodes.foo-bar = {}
represents a host with a valid hostname and it can be referenced in the
`testScript` with `foo_bar`.
Applying this here fixes the test for both scripted networking and
networkd.
Diffstat (limited to 'pkgs/development/python-modules/rangehttpserver')
0 files changed, 0 insertions, 0 deletions
