From e92815b76b81b1c75bd9cd965b45d7d89ca77c8c Mon Sep 17 00:00:00 2001 From: Leos Stejskal Date: Wed, 20 Nov 2024 09:42:06 +0100 Subject: [PATCH] Mock uri from fog-libvirt --- bundler.d/libvirt.rb | 5 +++-- test/factories/compute_resources.rb | 4 ---- test/fixtures/compute_resources.yml | 4 ++-- 3 files changed, 5 insertions(+), 8 deletions(-) diff --git a/bundler.d/libvirt.rb b/bundler.d/libvirt.rb index 3d3b8718bbb..02497ff3b60 100644 --- a/bundler.d/libvirt.rb +++ b/bundler.d/libvirt.rb @@ -1,4 +1,5 @@ group :libvirt do - gem 'fog-libvirt', '~> 0.13.0' - gem 'ruby-libvirt', '>= 0.8.3', :require => 'libvirt' + # gem 'fog-libvirt', '>= 0.12.0' + gem 'fog-libvirt', github: 'ekohl/fog-libvirt', branch: 'force-test-urls' + gem 'ruby-libvirt', '~> 0.5', :require => 'libvirt' end diff --git a/test/factories/compute_resources.rb b/test/factories/compute_resources.rb index ee6882996e0..e43e67fae47 100644 --- a/test/factories/compute_resources.rb +++ b/test/factories/compute_resources.rb @@ -15,10 +15,6 @@ trait :libvirt do provider { 'Libvirt' } - # url { 'test:///default' } prevents the error: - # Call to virConnectOpen failed: Cannot read CA certificate - # '/etc/pki/CA/cacert.pem': No such file or directory - url { 'test:///default' } end trait :openstack do diff --git a/test/fixtures/compute_resources.yml b/test/fixtures/compute_resources.yml index 52c0b740da4..4e2ff8195d8 100644 --- a/test/fixtures/compute_resources.yml +++ b/test/fixtures/compute_resources.yml @@ -2,7 +2,7 @@ one: name: bigcompute description: MyString - url: test:///default + url: qemu://stam/system user: MyString password: encrypted-NEN1YVJtdWdaaTdlOHdiUXRHd29nWUZsOHc1UjdMb3p1MFZLenlLekFEbz0tLVA0MGVzUEorUDlJZHVUV2F6azUzUEE9PQ==--9f45d5c88ec582eeb48ebb906ae0a66345ded0fa uuid: MyString @@ -11,7 +11,7 @@ one: mycompute: name: mycompute description: mycompute - url: test:///default # test hypervisor URI needed to try listing vms + url: test:///default # test hypervisor URI needed to try listing vms user: MyString password: encrypted-QU5oNkZVSkRRTW81U2hSemhqcU1mdFpYM0FXUEpVZndseWl2NERvS0laWT0tLWpsU295K0kxcWNLT2g1WTRrcC9TVXc9PQ==--5936541f0bda1b2262bb610340facf3c3880bdd0 uuid: mycompute