diff options
| author | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2006-12-23 04:49:56 +0000 |
|---|---|---|
| committer | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2006-12-23 04:49:56 +0000 |
| commit | 9bb5c50d0b30b4dfb82b6b705dfcbf0e126a9d61 (patch) | |
| tree | e41fbeb90e4050ea2af6d37e7b443cf9f84be162 /test/client | |
| parent | be711d357857f5e6d4a28a22bd60dd89e9e136c0 (diff) | |
Not downcasing facts any longer, closing #210 (although not using the patch from mpalmer, since I had not noticed the patch was there). Also, making all nodes, classes, and definitions case insensitive, closing #344. Finally, I added case insensitivity to the language in general, which should preserve backwards compatibility and probably makes the most sense in the long run anyway.
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1964 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'test/client')
| -rwxr-xr-x | test/client/master.rb | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/test/client/master.rb b/test/client/master.rb index 987649a74..5b34e6a7e 100755 --- a/test/client/master.rb +++ b/test/client/master.rb @@ -427,6 +427,23 @@ end assert_equal(Process.uid, File.stat(destfile).uid) end end + + # Test retrieving all of the facts. + def test_facts + facts = nil + assert_nothing_raised do + facts = Puppet::Client::MasterClient.facts + end + Facter.to_hash.each do |fact, value| + assert_equal(facts[fact.downcase], value, "%s is not equal" % fact.inspect) + end + + # Make sure the puppet version got added + assert_equal(Puppet::PUPPETVERSION, facts["clientversion"], "client version did not get added") + + # And make sure the ruby version is in there + assert_equal(RUBY_VERSION, facts["rubyversion"], "ruby version did not get added") + end end # $Id$ |
