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:
532 bytes
|
Line | |
---|
1 | #! /usr/bin/env ruby -S rspec
|
---|
2 | require 'spec_helper_acceptance'
|
---|
3 |
|
---|
4 | describe 'chomp function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
|
---|
5 | describe 'success' do
|
---|
6 | it 'should eat the newline' do
|
---|
7 | pp = <<-EOS
|
---|
8 | $input = "test\n"
|
---|
9 | if size($input) != 5 {
|
---|
10 | fail("Size of ${input} is not 5.")
|
---|
11 | }
|
---|
12 | $output = chomp($input)
|
---|
13 | if size($output) != 4 {
|
---|
14 | fail("Size of ${input} is not 4.")
|
---|
15 | }
|
---|
16 | EOS
|
---|
17 |
|
---|
18 | apply_manifest(pp, :catch_failures => true)
|
---|
19 | end
|
---|
20 | end
|
---|
21 | end
|
---|
Note:
See
TracBrowser
for help on using the repository browser.