source: src/puppetcode/environments/test/modules/stdlib/spec/acceptance/getparam_spec.rb@ 2f9bd3a

debian/bullseye debian/jessie
Last change on this file since 2f9bd3a was 1c22429, checked in by Joachim Langenbach <joachim.langenbach@…>, 10 years ago
  • gnuboat_epd adds the apt repository from gnuboat to install epd-fuse package
  • Property mode set to 100755
File size: 679 bytes
Line 
1#! /usr/bin/env ruby -S rspec
2require 'spec_helper_acceptance'
3
4describe 'getparam function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
5 describe 'success' do
6 it 'getparam a notify' do
7 pp = <<-EOS
8 notify { 'rspec':
9 message => 'custom rspec message',
10 }
11 $o = getparam(Notify['rspec'], 'message')
12 notice(inline_template('getparam is <%= @o.inspect %>'))
13 EOS
14
15 apply_manifest(pp, :catch_failures => true) do |r|
16 expect(r.stdout).to match(/getparam is "custom rspec message"/)
17 end
18 end
19 end
20 describe 'failure' do
21 it 'handles no arguments'
22 it 'handles non strings'
23 end
24end
Note: See TracBrowser for help on using the repository browser.