Closed maseman closed 2 years ago
I have created a test version with this fix: https://github.com/remoe/terraform-provider-libvirt/releases/tag/untagged-fb1e891272fa09d2d159
It works on my side.
ATTENTION: this not an official version. Use it only for testing.
Can anyone merge this with the above changes for next release?
I have manually rebased and committed this.
I don't like the 120M image for the test, so the test is pending and I opened #913 to revisit it.
Reimplements qemu-guest-agent interface query using go-libvirt interface.
Needed to query dhcp allocated IPs on bridged networks.
Testcase
I wanted to produce a decent reproducible test case so I generated an VM image (using alpine scripts) that runs qemu-guest-agent and configures a static IP that can be queried. See TestAccLibvirtDomain_NetworkInterfaceQemuGuestAgentStaticIP.
The VM test image in https://github.com/maseman/testvm-tflibvirt is generated with a workflow as a release asset. At ~100MB I thought it best NOT to add the file to terraform-provider-libvirt /testdata and instead setup a download in the testcase.
Alpine VMs like this (and with small overlay configurations) might be useful for other more complex test scenarios in the future.