summaryrefslogtreecommitdiffstats
path: root/test/executables
diff options
context:
space:
mode:
authorluke <luke@980ebf18-57e1-0310-9a29-db15c13687c0>2006-01-12 21:04:06 +0000
committerluke <luke@980ebf18-57e1-0310-9a29-db15c13687c0>2006-01-12 21:04:06 +0000
commitf420135270ab66c7bad10ebc4b031ddac3b57659 (patch)
tree558fd25f3b4e9881c20a7123fbef5d5b715ca7ff /test/executables
parent8aa331d7b31033b1a7594a0020e8462f646241cf (diff)
downloadpuppet-f420135270ab66c7bad10ebc4b031ddac3b57659.tar.gz
puppet-f420135270ab66c7bad10ebc4b031ddac3b57659.tar.xz
puppet-f420135270ab66c7bad10ebc4b031ddac3b57659.zip
Converting transport format to YAML instead of Marshal, and caching the file in a YAML format, also. This required a significant rework of both Transportable classes. Lastly, I am also now caching the list of classes in a class file in /etc/puppet.
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@816 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'test/executables')
-rwxr-xr-xtest/executables/puppetmasterd.rb8
1 files changed, 3 insertions, 5 deletions
diff --git a/test/executables/puppetmasterd.rb b/test/executables/puppetmasterd.rb
index 389141ed0..e1f48c11b 100755
--- a/test/executables/puppetmasterd.rb
+++ b/test/executables/puppetmasterd.rb
@@ -80,8 +80,6 @@ class TestPuppetMasterD < Test::Unit::TestCase
}
objects = nil
- assert_instance_of(Puppet::TransBucket, retval,
- "Retrieved non-transportable object")
stopmasterd
sleep(1)
end
@@ -135,16 +133,16 @@ class TestPuppetMasterD < Test::Unit::TestCase
Facter.each { |p,v|
facts[p] = v
}
- textfacts = CGI.escape(Marshal::dump(facts))
+ textfacts = CGI.escape(YAML.dump(facts))
assert_nothing_raised() {
#Puppet.notice "calling status"
#retval = client.call("status.status", "")
- retval = client.call("puppetmaster.getconfig", textfacts)
+ retval = client.call("puppetmaster.getconfig", textfacts, "yaml")
}
objects = nil
assert_nothing_raised {
- Marshal::load(CGI.unescape(retval))
+ YAML.load(CGI.unescape(retval))
}
#stopmasterd
end