source: other-projects/hathitrust/vagrant-hadoop-cluster/trunk/modules/stdlib/spec/acceptance/ensure_resource_spec.rb@ 30903

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
2require 'spec_helper_acceptance'
3
4describe '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
30end
Note: See TracBrowser for help on using the repository browser.