commit 81d5e5e1fc8fdef3f9293ca2ac147c11f4b7cdb5 Author: Takashi Kajinami Date: Fri Oct 9 13:27:32 2020 +0900 Remove unit tests for CentOS6/7 ... and replaces them by the ones for CentOS 8 since we only support CentOS8 now. Change-Id: I545ade2d52cc6bd1b765a52b92fc60efc98ce9d7 diff --git a/spec/classes/nova_compute_libvirt_spec.rb b/spec/classes/nova_compute_libvirt_spec.rb index c6476bc..083b4c8 100644 --- a/spec/classes/nova_compute_libvirt_spec.rb +++ b/spec/classes/nova_compute_libvirt_spec.rb @@ -265,12 +265,6 @@ describe 'nova::compute::libvirt' do shared_examples 'redhat-nova-compute-libvirt' do - before do - facts.merge!({ :operatingsystem => 'RedHat', :osfamily => 'RedHat', - :operatingsystemrelease => 6.5, - :operatingsystemmajrelease => '6' }) - end - describe 'with default parameters' do it { is_expected.to contain_class('nova::params')} @@ -299,21 +293,6 @@ describe 'nova::compute::libvirt' do :name => 'dbus' ) } - describe 'on rhel 7' do - before do - facts.merge!({ - :operatingsystemrelease => 7.0, - :operatingsystemmajrelease => '7' - }) - end - - it { is_expected.to contain_service('libvirt')} - - it { is_expected.to contain_service('messagebus').with( - :name => 'dbus' - )} - end - it { is_expected.to contain_nova_config('DEFAULT/compute_driver').with_value('libvirt.LibvirtDriver')} it { is_expected.to contain_nova_config('libvirt/virt_type').with_value('kvm')} it { is_expected.to contain_nova_config('libvirt/inject_password').with_value(false)}