Skip to content

Commit

Permalink
Mock uri from fog-libvirt
Browse files Browse the repository at this point in the history
  • Loading branch information
stejskalleos committed Nov 21, 2024
1 parent 6656b34 commit 5396763
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 8 deletions.
4 changes: 2 additions & 2 deletions bundler.d/libvirt.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
group :libvirt do
gem 'fog-libvirt', '~> 0.13.0'
gem 'ruby-libvirt', '>= 0.8.3', :require => 'libvirt'
gem 'fog-libvirt', '>= 0.13.1'
gem 'ruby-libvirt', '~> 0.5', :require => 'libvirt'
end
4 changes: 0 additions & 4 deletions test/factories/compute_resources.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions test/fixtures/compute_resources.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
one:
name: bigcompute
description: MyString
url: test:///default
url: qemu://stam/system
user: MyString
password: encrypted-NEN1YVJtdWdaaTdlOHdiUXRHd29nWUZsOHc1UjdMb3p1MFZLenlLekFEbz0tLVA0MGVzUEorUDlJZHVUV2F6azUzUEE9PQ==--9f45d5c88ec582eeb48ebb906ae0a66345ded0fa
uuid: MyString
Expand All @@ -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
Expand Down

0 comments on commit 5396763

Please sign in to comment.