File tree Expand file tree Collapse file tree 4 files changed +0
-27
lines changed Expand file tree Collapse file tree 4 files changed +0
-27
lines changed Original file line number Diff line number Diff line change 1313 'ensure_param=present variant_pattern_param=0xAE321EEF url_param="https://www.google.com"'
1414 end
1515
16- before ( :all ) do # rubocop:disable RSpec/BeforeAfterAll
17- if Gem ::Version . new ( Puppet ::PUPPETVERSION ) >= Gem ::Version . new ( '5.3.0' ) && Gem ::Version . new ( Puppet ::PUPPETVERSION ) < Gem ::Version . new ( '5.4.0' )
18- # work around https://tickets.puppetlabs.com/browse/PUP-8632 and https://tickets.puppetlabs.com/browse/PUP-9047
19- FileUtils . mkdir_p ( File . expand_path ( '~/.puppetlabs/opt/puppet/cache/devices/the_node/state' ) )
20- end
21- end
22-
2316 describe 'using `puppet resource`' do
2417 it 'manages resources on the target system' do
2518 stdout_str , status = Open3 . capture2e ( "puppet resource #{ common_args } device_provider foo ensure=present #{ default_type_values } " )
10396 DEVICE_CREDS
10497 end
10598
106- def is_device_apply_supported?
107- Gem ::Version . new ( Puppet ::PUPPETVERSION ) >= Gem ::Version . new ( '5.3.6' ) && Gem ::Version . new ( Puppet ::PUPPETVERSION ) != Gem ::Version . new ( '5.4.0' )
108- end
109-
11099 before do
111- skip "No device --apply in puppet before v5.3.6 nor in v5.4.0 (v#{ Puppet ::PUPPETVERSION } is installed)" unless is_device_apply_supported?
112100 device_conf . write ( device_conf_content )
113101 device_conf . close
114102
Original file line number Diff line number Diff line change 2727 DEVICE_CONF
2828 end
2929
30- def is_device_apply_supported?
31- Gem ::Version . new ( Puppet ::PUPPETVERSION ) >= Gem ::Version . new ( '5.3.6' ) && Gem ::Version . new ( Puppet ::PUPPETVERSION ) != Gem ::Version . new ( '5.4.0' )
32- end
33-
3430 before do
35- skip "No device --apply in puppet before v5.3.6 nor in v5.4.0 (v#{ Puppet ::PUPPETVERSION } is installed)" unless is_device_apply_supported?
3631 device_conf . write ( device_conf_content )
3732 device_conf . close
3833 end
Original file line number Diff line number Diff line change 2323 end
2424 let ( :device_credentials ) { Tempfile . new ( 'credentials.txt' ) }
2525
26- def is_device_apply_supported?
27- Gem ::Version . new ( Puppet ::PUPPETVERSION ) >= Gem ::Version . new ( '5.3.6' ) && Gem ::Version . new ( Puppet ::PUPPETVERSION ) != Gem ::Version . new ( '5.4.0' )
28- end
29-
3026 before do
31- skip "No device --apply in puppet before v5.3.6 nor in v5.4.0 (v#{ Puppet ::PUPPETVERSION } is installed)" unless is_device_apply_supported?
3227 device_conf . write ( device_conf_content )
3328 device_conf . close
3429
Original file line number Diff line number Diff line change 2323 end
2424 let ( :device_credentials ) { Tempfile . new ( 'credentials.txt' ) }
2525
26- def is_device_apply_supported?
27- Gem ::Version . new ( Puppet ::PUPPETVERSION ) >= Gem ::Version . new ( '5.3.6' ) && Gem ::Version . new ( Puppet ::PUPPETVERSION ) != Gem ::Version . new ( '5.4.0' )
28- end
29-
3026 before do
31- skip "No device --apply in puppet before v5.3.6 nor in v5.4.0 (v#{ Puppet ::PUPPETVERSION } is installed)" unless is_device_apply_supported?
3227 device_conf . write ( device_conf_content )
3328 device_conf . close
3429
You can’t perform that action at this time.
0 commit comments