summaryrefslogtreecommitdiffstats
path: root/ext
diff options
context:
space:
mode:
authorLuke Kanies <luke@madstop.com>2008-03-16 16:40:28 -0500
committerLuke Kanies <luke@madstop.com>2008-03-16 16:40:28 -0500
commitda77cb687127a8cdb329b7bd8e4ce62ec93f1bba (patch)
treecf2270d3c62f99c822e73fecfbb01f0ed0ef53c1 /ext
parent405802ec039adefd919b99567befa6e6b6e8d5b5 (diff)
downloadpuppet-da77cb687127a8cdb329b7bd8e4ce62ec93f1bba.tar.gz
puppet-da77cb687127a8cdb329b7bd8e4ce62ec93f1bba.tar.xz
puppet-da77cb687127a8cdb329b7bd8e4ce62ec93f1bba.zip
Adding a test for local compiling
Diffstat (limited to 'ext')
-rwxr-xr-xext/puppet-test17
1 files changed, 13 insertions, 4 deletions
diff --git a/ext/puppet-test b/ext/puppet-test
index a860ac002..3d8ab4dd9 100755
--- a/ext/puppet-test
+++ b/ext/puppet-test
@@ -220,7 +220,16 @@ Suite.new :parser, "Manifest parsing" do
end
end
-Suite.new :catalog, "Catalog handling" do
+Suite.new :local_catalog, "Local catalog handling" do
+ def prepare
+ end
+
+ newtest :compile, "Compiled catalog" do
+ Puppet::Node::Catalog.find(Puppet[:certname])
+ end
+end
+
+Suite.new :remote_catalog, "Remote catalog handling" do
def prepare
$args[:cache] = false
# Create a config client and pull the config down
@@ -249,7 +258,7 @@ Suite.new :catalog, "Catalog handling" do
@facts = YAML.dump(@facts)
end
- newtest :compile, "Compiled catalog" do
+ newtest :getconfig, "Compiled catalog" do
@client.driver.getconfig(@facts, "yaml")
end
@@ -447,8 +456,8 @@ Puppet.parse_config
$args[:Server] = Puppet[:server]
unless $options[:test]
- $options[:suite] = :configuration
- $options[:test] = :compile
+ $options[:suite] = :remote_catalog
+ $options[:test] = :getconfig
end
unless $options[:test]