diff options
author | Daniel Pittman <daniel@rimspace.net> | 2011-03-01 20:33:56 -0800 |
---|---|---|
committer | Daniel Pittman <daniel@rimspace.net> | 2011-03-03 15:23:38 -0800 |
commit | af2c85b5a98ba062a9a58c6c92279f3371d59bb4 (patch) | |
tree | 864b6edc9571246040f8db99fb1a96778c6e4b18 /test | |
parent | c1d7881c9255d6470fda7c27e800b4caa061b7c0 (diff) | |
download | puppet-af2c85b5a98ba062a9a58c6c92279f3371d59bb4.tar.gz puppet-af2c85b5a98ba062a9a58c6c92279f3371d59bb4.tar.xz puppet-af2c85b5a98ba062a9a58c6c92279f3371d59bb4.zip |
(#6551) remove deprecated 'env' parameter to the 'exec' type
We deprecated this back in 0.24, so we can eliminate it in the next release.
We ran through our deprecation period full of constant complaints to the
users. Now we just fail.
Diffstat (limited to 'test')
-rwxr-xr-x | test/ral/type/exec.rb | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/test/ral/type/exec.rb b/test/ral/type/exec.rb index 933994b88..829b1a068 100755 --- a/test/ral/type/exec.rb +++ b/test/ral/type/exec.rb @@ -609,49 +609,6 @@ class TestExec < Test::Unit::TestCase } end - def test_envparam - - exec = Puppet::Type.newexec( - - :command => "echo $envtest", - :path => ENV["PATH"], - - :env => "envtest=yayness" - ) - - assert(exec, "Could not make exec") - - output = status = nil - assert_nothing_raised { - output, status = exec.run("echo $envtest") - } - - assert_equal("yayness\n", output) - - # Now check whether we can do multiline settings - assert_nothing_raised do - exec[:env] = "envtest=a list of things -and stuff" - end - - output = status = nil - assert_nothing_raised { - output, status = exec.run('echo "$envtest"') - } - assert_equal("a list of things\nand stuff\n", output) - - # Now test arrays - assert_nothing_raised do - exec[:env] = ["funtest=A", "yaytest=B"] - end - - output = status = nil - assert_nothing_raised { - output, status = exec.run('echo "$funtest" "$yaytest"') - } - assert_equal("A B\n", output) - end - def test_environmentparam exec = Puppet::Type.newexec( |