Skip to content

Commit d598fa3

Browse files
authored
Merge pull request #451 from cloudfoundry/fix-specs
Set correct expectations for Azure SRIOV specs
2 parents 4d31399 + b3ef02a commit d598fa3

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

bosh-stemcell/spec/stemcells/azure_spec.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,11 @@
5656
describe 'SR-IOV VF udev rules' do
5757
subject { file('/etc/udev/rules.d/10-azure-sriov-unmanaged.rules') }
5858

59-
it { should be_mode(644) }
59+
it { should be_mode(0644) }
6060
it { should be_owned_by('root') }
6161

6262
its(:content) { should match /SUBSYSTEM=="net"/ }
63-
its(:content) { should match /ATTR\{flags\}=="0\?\?\[89ABCDEF\]\*"/ }
63+
its(:content) { should match /ATTR\{flags\}=="0x\?\[89ABCDEF\]\*"/ }
6464
its(:content) { should match /ENV\{AZURE_UNMANAGED_SRIOV\}="1"/ }
6565
its(:content) { should match /ENV\{ID_NET_MANAGED_BY\}="unmanaged"/ }
6666
its(:content) { should match /ENV\{NM_UNMANAGED\}="1"/ }
@@ -70,7 +70,7 @@
7070
describe 'systemd network configuration for unmanaged SR-IOV devices' do
7171
subject { file('/etc/systemd/network/01-azure-sriov-unmanaged.network') }
7272

73-
it { should be_mode(644) }
73+
it { should be_mode(0644) }
7474
it { should be_owned_by('root') }
7575

7676
its(:content) { should match /\[Match\]/ }

0 commit comments

Comments
 (0)