Last change
on this file since 30903 was 30903, checked in by davidb, 7 years ago |
Vagrant provisioning files for a 4-node Hadoop cluster. See README.txt for more details
|
-
Property svn:executable
set to
*
|
File size:
679 bytes
|
Line | |
---|
1 | #! /usr/bin/env ruby -S rspec
|
---|
2 | require 'spec_helper_acceptance'
|
---|
3 |
|
---|
4 | describe '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
|
---|
24 | end
|
---|
Note:
See
TracBrowser
for help on using the repository browser.