blob: 7f21a58b4575821980b20549dcd1151c3354c9ca (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
# Test key job creation, modification, and destruction
if __FILE__ == $0
$:.unshift '..'
$:.unshift '../../lib'
$puppetbase = "../.."
end
require 'puppettest'
require 'puppet'
require 'puppet/type/parsedtype/sshkey'
require 'test/unit'
require 'facter'
class TestParsedSSHKey < Test::Unit::TestCase
include TestPuppet
def setup
super
@provider = Puppet.type(:sshkey).provider(:parsed)
@oldfiletype = @provider.filetype
end
def teardown
Puppet::FileType.filetype(:ram).clear
@provider.filetype = @oldfiletype
super
end
def test_keysparse
fakedata("data/types/sshkey").each { |file|
fakedataparse(file)
}
end
end
# $Id$
|