Project

General

Profile

« Previous | Next » 

Revision 2c3cd215

Added by Marek Hulán over 8 years ago

Fixes #11258 - validation handles blank provider

(cherry picked from commit 3b27c173467c3ab4b53e844913cfd559b78d44ac)

View differences:

test/unit/nics/bmc_test.rb
assert FactoryGirl.build(:nic_bmc, :host => host, :provider => 'ipmi').valid?
end
test 'upcasing provider does not fail if provider is not present' do
host = FactoryGirl.build(:host, :managed)
assert_nothing_raised do
FactoryGirl.build(:nic_bmc, :host => host, :provider => nil).valid?
end
end
context "no BMC smart proxy exists" do
def setup
SmartProxy.with_features('BMC').destroy_all

Also available in: Unified diff