Last change
on this file since 30960 was 30960, checked in by davidb, 8 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:
619 bytes
|
Line | |
---|
1 | #! /usr/bin/env ruby -S rspec
|
---|
2 | require 'spec_helper_acceptance'
|
---|
3 |
|
---|
4 | describe 'defined_with_params function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
|
---|
5 | describe 'success' do
|
---|
6 | it 'should successfully notify' do
|
---|
7 | pp = <<-EOS
|
---|
8 | user { 'dan':
|
---|
9 | ensure => present,
|
---|
10 | }
|
---|
11 |
|
---|
12 | if defined_with_params(User[dan], {'ensure' => 'present' }) {
|
---|
13 | notify { 'User defined with ensure=>present': }
|
---|
14 | }
|
---|
15 | EOS
|
---|
16 |
|
---|
17 | apply_manifest(pp, :catch_failures => true) do |r|
|
---|
18 | expect(r.stdout).to match(/Notice: User defined with ensure=>present/)
|
---|
19 | end
|
---|
20 | end
|
---|
21 | end
|
---|
22 | end
|
---|
Note:
See
TracBrowser
for help on using the repository browser.