We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 41bbfba commit 25af7c3Copy full SHA for 25af7c3
spec/acceptance/netboot_spec.rb
@@ -5,20 +5,7 @@
5
6
include_examples 'the example', 'tftp.pp'
7
8
- root = case host_inventory['facter']['os']['name']
9
- when 'Debian'
10
- '/srv/tftp'
11
- when 'Ubuntu'
12
- if host_inventory['facter']['os']['release']['major'].to_f >= 20.04
13
14
- else
15
- '/var/lib/tftpboot'
16
- end
17
18
19
20
-
21
- describe file("#{root}/grub2/boot") do
+ describe file("#{tftp_root}/grub2/boot") do
22
it { should be_symlink }
23
it { should be_linked_to '../boot' }
24
end
spec/support/acceptance/tftp_root.rb
@@ -0,0 +1,8 @@
1
+def tftp_root
2
+ case host_inventory['facter']['os']['name']
3
+ when 'Debian', 'Ubuntu'
4
+ '/srv/tftp'
+ else
+ '/var/lib/tftpboot'
+ end
+end
0 commit comments