Last change
on this file since 30903 was 30903, checked in by davidb, 8 years ago |
Vagrant provisioning files for a 4-node Hadoop cluster. See README.txt for more details
|
-
Property svn:executable
set to
*
|
File size:
748 bytes
|
Line | |
---|
1 | #! /usr/bin/env ruby -S rspec
|
---|
2 | require 'spec_helper_acceptance'
|
---|
3 |
|
---|
4 | describe 'ensure_resource function' do
|
---|
5 | describe 'success' do
|
---|
6 | it 'ensures a resource already declared' do
|
---|
7 | apply_manifest('')
|
---|
8 | pp = <<-EOS
|
---|
9 | notify { "test": loglevel => 'err' }
|
---|
10 | ensure_resource('notify', 'test', { 'loglevel' => 'err' })
|
---|
11 | EOS
|
---|
12 |
|
---|
13 | apply_manifest(pp, :expect_changes => true)
|
---|
14 | end
|
---|
15 |
|
---|
16 | it 'ensures a undeclared resource' do
|
---|
17 | apply_manifest('')
|
---|
18 | pp = <<-EOS
|
---|
19 | ensure_resource('notify', 'test', { 'loglevel' => 'err' })
|
---|
20 | EOS
|
---|
21 |
|
---|
22 | apply_manifest(pp, :expect_changes => true)
|
---|
23 | end
|
---|
24 | it 'takes defaults arguments'
|
---|
25 | end
|
---|
26 | describe 'failure' do
|
---|
27 | it 'handles no arguments'
|
---|
28 | it 'handles non strings'
|
---|
29 | end
|
---|
30 | end
|
---|
Note:
See
TracBrowser
for help on using the repository browser.