diff options
| author | Ian Taylor <ian@lorf.org> | 2009-06-05 12:39:04 -0400 |
|---|---|---|
| committer | James Turnbull <james@lovedthanlost.net> | 2009-06-06 09:12:00 +1000 |
| commit | 4f2c066a97e59a89df64af4b25beac6f3f0553c2 (patch) | |
| tree | 126540beec3c65448e01e1b48d27275ec4ee6ea4 /test/ral/providers/sshkey | |
| parent | 97e6975d69f239e24993315a25a3117b1daa48c3 (diff) | |
| download | puppet-4f2c066a97e59a89df64af4b25beac6f3f0553c2.tar.gz puppet-4f2c066a97e59a89df64af4b25beac6f3f0553c2.tar.xz puppet-4f2c066a97e59a89df64af4b25beac6f3f0553c2.zip | |
Removed extra whitespace from end of lines
Diffstat (limited to 'test/ral/providers/sshkey')
| -rwxr-xr-x | test/ral/providers/sshkey/parsed.rb | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/test/ral/providers/sshkey/parsed.rb b/test/ral/providers/sshkey/parsed.rb index f2992386d..868640a10 100755 --- a/test/ral/providers/sshkey/parsed.rb +++ b/test/ral/providers/sshkey/parsed.rb @@ -22,7 +22,7 @@ class TestParsedSSHKey < Test::Unit::TestCase @provider.clear super end - + def mkkey(name = "host.domain.com") if defined? @pcount @pcount += 1 @@ -52,39 +52,39 @@ class TestParsedSSHKey < Test::Unit::TestCase fakedataparse(file) } end - + def test_simplekey @provider.filetype = :ram file = @provider.default_target - + key = nil assert_nothing_raised do key = mkkey end - + assert(key, "did not create key") - + assert_nothing_raised do key.flush end - + assert(key.alias, "No alias set for key") - + hash = key.property_hash.dup text = @provider.target_object(file).read names = [key.name, key.alias].flatten.join(",") - + assert_equal("#{names} #{key.type} #{key.key}\n", text) - + assert_nothing_raised do @provider.prefetch end - + hash.each do |p, v| next unless key.respond_to?(p) assert_equal(v, key.send(p), "%s did not match" % p) end - + assert(key.name !~ /,/, "Aliases were not split out during parsing") end |
