dmacvicar / terraform-provider-libvirt

Terraform provider to provision infrastructure with Linux's KVM using libvirt
Apache License 2.0
1.54k stars 457 forks source link

test driver support #1067

Open deas opened 5 months ago

deas commented 5 months ago

System Information

Linux distribution

n/a

Terraform version

n/a

Provider and libvirt versions

v0.7.6

Checklist

n/a

Description of Issue/Question

For testing purposes, it would be nice if the Test "mock" driver could be made available.

Setup

n/a

Steps to Reproduce Issue

Use a system without the libvirt daemon running/listening at /var/run/libvirt/libvirt-sock.


$ export LIBVIRT_DEFAULT_URI = "test:///default"
$ terraform plan
....
 Error: failed to connect: dial unix /var/run/libvirt/libvirt-sock: connect: no such file or directory
...
$ virsh list
 Id   Name   State
----------------------
 1    test   running
$