Skip to content

Commit

Permalink
Merge branch 'main' into PF-3525-pdk-sync
Browse files Browse the repository at this point in the history
  • Loading branch information
Ramesh7 authored Oct 1, 2024
2 parents 323aad7 + ed18548 commit 50058fa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions spec/unit/facter/mysql_server_id_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
describe 'mysql_server_id' do
context "igalic's laptop" do
before :each do
allow(Facter.fact(:macaddress)).to receive(:value).and_return('3c:97:0e:69:fb:e1')
allow(Facter).to receive(:value).with(:macaddress).and_return('3c:97:0e:69:fb:e1')
end

it do
Expand All @@ -20,7 +20,7 @@

context 'node with lo only' do
before :each do
allow(Facter.fact(:macaddress)).to receive(:value).and_return('00:00:00:00:00:00')
allow(Facter).to receive(:value).with(:macaddress).and_return('00:00:00:00:00:00')
end

it do
Expand All @@ -30,7 +30,7 @@

context 'test nil case' do
before :each do
allow(Facter.fact(:macaddress)).to receive(:value).and_return(nil)
allow(Facter).to receive(:value).with(:macaddress).and_return(nil)
end

it do
Expand Down

0 comments on commit 50058fa

Please sign in to comment.