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

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: 726 bytes
Line 
1#! /usr/bin/env ruby -S rspec
2require 'spec_helper_acceptance'
3
4describe 'get_module_path function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
5 describe 'success' do
6 it 'get_module_paths dne' do
7 pp = <<-EOS
8 $a = $::is_pe ? {
9 'true' => '/etc/puppetlabs/puppet/modules/dne',
10 'false' => '/etc/puppet/modules/dne',
11 }
12 $o = get_module_path('dne')
13 if $o == $a {
14 notify { 'output correct': }
15 } else {
16 notify { "failed; module path is '$o'": }
17 }
18 EOS
19
20 apply_manifest(pp, :expect_failures => true)
21 end
22 end
23 describe 'failure' do
24 it 'handles improper argument counts'
25 it 'handles non-numbers'
26 end
27end
Note: See TracBrowser for help on using the repository browser.