summaryrefslogtreecommitdiffstats
path: root/test/lib
diff options
context:
space:
mode:
authorLuke Kanies <luke@madstop.com>2007-09-04 16:59:30 -0500
committerLuke Kanies <luke@madstop.com>2007-09-04 16:59:30 -0500
commitb0a947589ea6c7abf5658d9e5038eb7d96a11339 (patch)
tree484b6a7ac6f33b23cc022e3b972bde6982e1ff3f /test/lib
parent11b127bd6708a18b512ca5b3018ccff1200cc47a (diff)
downloadpuppet-b0a947589ea6c7abf5658d9e5038eb7d96a11339.tar.gz
puppet-b0a947589ea6c7abf5658d9e5038eb7d96a11339.tar.xz
puppet-b0a947589ea6c7abf5658d9e5038eb7d96a11339.zip
Flipped the switch so that compiles now return a Configuration instance instead of pre-extracting the configuration.
Diffstat (limited to 'test/lib')
-rw-r--r--test/lib/puppettest/parsertesting.rb2
-rw-r--r--test/lib/puppettest/resourcetesting.rb15
2 files changed, 1 insertions, 16 deletions
diff --git a/test/lib/puppettest/parsertesting.rb b/test/lib/puppettest/parsertesting.rb
index 9e90bbdd6..b8fd8bd83 100644
--- a/test/lib/puppettest/parsertesting.rb
+++ b/test/lib/puppettest/parsertesting.rb
@@ -316,7 +316,7 @@ module PuppetTest::ParserTesting
comp = nil
assert_nothing_raised {
- comp = config.to_type
+ comp = config.extract.to_type
}
assert_apply(comp)
diff --git a/test/lib/puppettest/resourcetesting.rb b/test/lib/puppettest/resourcetesting.rb
index 54154d504..325602c22 100644
--- a/test/lib/puppettest/resourcetesting.rb
+++ b/test/lib/puppettest/resourcetesting.rb
@@ -1,21 +1,6 @@
module PuppetTest::ResourceTesting
Parser = Puppet::Parser
AST = Puppet::Parser::AST
- def mkclassframing(parser = nil)
- parser ||= mkparser
-
- parser.newdefine("resource", :arguments => [%w{one}, %w{two value}, %w{three}])
- parser.newclass("")
- source = parser.newclass("base")
- parser.newclass("sub1", :parent => "base")
- parser.newclass("sub2", :parent => "base")
- parser.newclass("other")
-
- config = mkconfig(:parser => parser)
- config.topscope.source = source
-
- return parser, config.topscope, source
- end
def mkevaltest(parser = nil)
parser ||= mkparser