Also configure default mech used by sasl to 'digest-md5' since
'scram-sha-1' requires an encryption layer.
Signed-off-by: Sahid Orentino Ferdjaoui <sahid.ferdjaoui(a)canonical.com>
---
.travis.yml | 3 ++-
tests/libvirtd.sasl | 2 ++
2 files changed, 4 insertions(+), 1 deletion(-)
create mode 100644 tests/libvirtd.sasl
diff --git a/.travis.yml b/.travis.yml
index ebefca8..fc2c8f4 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,6 +1,6 @@
language: rust
os: linux
-dist: trusty
+dist: bionic
sudo: require
rust:
@@ -33,6 +33,7 @@ install:
- make
- sudo make install
- popd
+ - sudo cp tests/libvirtd.sasl /etc/sasl2/libvirt.conf
- sudo libvirtd -d -l -f tests/libvirtd.conf
- sudo virtlogd -d || true
- sudo chmod a+rwx /var/run/libvirt/libvirt-sock*
diff --git a/tests/libvirtd.sasl b/tests/libvirtd.sasl
new file mode 100644
index 0000000..ab609e0
--- /dev/null
+++ b/tests/libvirtd.sasl
@@ -0,0 +1,2 @@
+mech_list: digest-md5
+sasldb_path: /etc/libvirt/passwd.db
\ No newline at end of file
--
2.17.1