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:
721 bytes
|
Line | |
---|
1 | #! /usr/bin/env ruby -S rspec
|
---|
2 | require 'spec_helper_acceptance'
|
---|
3 |
|
---|
4 | describe 'delete_values function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
|
---|
5 | describe 'success' do
|
---|
6 | it 'should delete elements of the hash' do
|
---|
7 | pp = <<-EOS
|
---|
8 | $a = { 'a' => 'A', 'b' => 'B', 'B' => 'C', 'd' => 'B' }
|
---|
9 | $b = { 'a' => 'A', 'B' => 'C' }
|
---|
10 | $o = delete_values($a, 'B')
|
---|
11 | if $o == $b {
|
---|
12 | notify { 'output correct': }
|
---|
13 | }
|
---|
14 | EOS
|
---|
15 |
|
---|
16 | apply_manifest(pp, :catch_failures => true) do |r|
|
---|
17 | expect(r.stdout).to match(/Notice: output correct/)
|
---|
18 | end
|
---|
19 | end
|
---|
20 | end
|
---|
21 | describe 'failure' do
|
---|
22 | it 'handles non-hash arguments'
|
---|
23 | it 'handles improper argument counts'
|
---|
24 | end
|
---|
25 | end
|
---|
Note:
See
TracBrowser
for help on using the repository browser.