summaryrefslogtreecommitdiffstats
path: root/test/client
diff options
context:
space:
mode:
authorluke <luke@980ebf18-57e1-0310-9a29-db15c13687c0>2006-06-28 19:47:36 +0000
committerluke <luke@980ebf18-57e1-0310-9a29-db15c13687c0>2006-06-28 19:47:36 +0000
commite8c57ae6decdd5409c102f23488a18022f80836d (patch)
treeea02d9b8bd5144262704e9fb734d812e43754d50 /test/client
parentd98ab112a6ed5cd84d4e8b2e9c349283923ecc29 (diff)
downloadpuppet-e8c57ae6decdd5409c102f23488a18022f80836d.tar.gz
puppet-e8c57ae6decdd5409c102f23488a18022f80836d.tar.xz
puppet-e8c57ae6decdd5409c102f23488a18022f80836d.zip
Cleaning up plugin handling a bit -- they can now be colon-separated paths, and I added a separate "plugindest" setting for determining where plugins are synchronized to. The major feature I added, though, is that Puppet::Type now knows how to load plugins, and treats :pluginpath as a search path for plugins.
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1330 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'test/client')
-rw-r--r--test/client/master.rb9
1 files changed, 8 insertions, 1 deletions
diff --git a/test/client/master.rb b/test/client/master.rb
index a2dbad22d..0a35a78c3 100644
--- a/test/client/master.rb
+++ b/test/client/master.rb
@@ -154,7 +154,7 @@ end
client.send(:getplugins)
}
- destfile = File.join(Puppet[:pluginpath], "myplugin.rb")
+ destfile = File.join(Puppet[:plugindest], "myplugin.rb")
assert(File.exists?(destfile), "Did not get plugin")
@@ -196,5 +196,12 @@ end
assert(! obj.validattr?(:argument),
"Old namevar is still valid")
+
+ # Now make sure it works with multiple paths specified.
+ newdir = tempfile()
+ Dir.mkdir(newdir)
+ Puppet[:pluginpath] = [Puppet[:pluginpath], newdir].join(":")
+
+ client.send(:getplugins)
end
end