Skip to content

Commit

Permalink
Merge pull request #23293 from agrare/fix_metric_ci_mixin_spec_failure
Browse files Browse the repository at this point in the history
Fix metric/ci_mixin_spec using kubevirt vm
  • Loading branch information
Fryguy authored Dec 11, 2024
2 parents 87b2b2c + 41c0efd commit d4f76b2
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions spec/models/metric/ci_mixin_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -63,26 +63,4 @@
end
end
end

context "#supports?(:capture)" do
context "with a VM" do
let(:unsupported_vm) { FactoryBot.create(:vm_kubevirt) }
let(:supported_vm) { FactoryBot.create(:vm_vmware) }

it "correctly checks capture support" do
expect(unsupported_vm.supports?(:capture)).to be_falsy
expect(supported_vm.supports?(:capture)).to be_truthy
end
end

context "with a Host" do
let(:unsupported_host) { FactoryBot.create(:ibm_power_hmc_host) }
let(:supported_host) { FactoryBot.create(:host_vmware) }

it "correctly checks capture support" do
expect(unsupported_host.supports?(:capture)).to be_falsy
expect(supported_host.supports?(:capture)).to be_truthy
end
end
end
end

0 comments on commit d4f76b2

Please sign in to comment.