[pve-devel] [PATCH container 2/2] tests: add minimal test for LXC_NAME hosts entry

Thomas Lamprecht t.lamprecht at proxmox.com
Wed Jun 14 13:32:37 CEST 2023


Am 14/06/2023 um 12:43 schrieb Stoiko Ivanov:
> +++ b/src/test/test-alpine-003/etc/hosts
> @@ -0,0 +1,5 @@
> +127.0.0.1	localhost localhost.localdomain
> +::1		localhost localhost.localdomain


Misses the "LXC_NAME" line we want to test that it gets removed?

> +# --- BEGIN PVE ---
> +127.0.1.1 test3.proxmox.com test3
> +# --- END PVE ---
> diff --git a/src/test/test-alpine-003/etc/hosts.exp b/src/test/test-alpine-003/etc/hosts.exp
> new file mode 100644
> index 0000000..1d122ce
> --- /dev/null
> +++ b/src/test/test-alpine-003/etc/hosts.exp
> @@ -0,0 +1,5 @@
> +127.0.0.1	localhost localhost.localdomain
> +::1		localhost localhost.localdomain
> +# --- BEGIN PVE ---
> +10.0.0.100 test3.proxmox.com test3
> +# --- END PVE ---
i.e. hosts.exp is identical with hosts?





More information about the pve-devel mailing list