Revision a9542a4f test/py/ganeti.ssh_unittest.py
b/test/py/ganeti.ssh_unittest.py | ||
---|---|---|
46 | 46 |
cfg = mocks.FakeConfig() |
47 | 47 |
ssh.WriteKnownHostsFile(cfg, self.tmpfile) |
48 | 48 |
self.assertFileContent(self.tmpfile, |
49 |
"%s ssh-rsa %s\n" % (cfg.GetClusterName(), |
|
50 |
mocks.FAKE_CLUSTER_KEY)) |
|
49 |
"%s ssh-rsa %s\n%s ssh-dss %s\n" % |
|
50 |
(cfg.GetClusterName(), mocks.FAKE_CLUSTER_KEY, |
|
51 |
cfg.GetClusterName(), mocks.FAKE_CLUSTER_KEY)) |
|
51 | 52 |
|
52 | 53 |
|
53 | 54 |
class TestGetUserFiles(unittest.TestCase): |
Also available in: Unified diff