source: other-projects/hathitrust/vagrant-solr-cluster/trunk/modules/stdlib/spec/acceptance/getparam_spec.rb@ 30960

Last change on this file since 30960 was 30960, checked in by davidb, 7 years ago

Switch to using Puppet to provision machine. Strongly based on files developed for spark-hdfs cluster

  • Property svn:executable set to *
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.